{"repo_url":"https://github.com/langgenius/dify","overall_status":"completed","scanned_at":"2026-10-14T23:52:06.135Z","scan_summary":{"total_components":8,"worst_case_severity":"CRITICAL","repo_trust_score":{"score":25,"tier":"critical","capability_band":"extreme","score_confidence":"low","score_interval":{"low":8,"high":42},"factors":["ATR-M0003 HIGH","ATR-M0009 HIGH","ATR-C0001 HIGH","ATR-C0002 HIGH","ATR-C0005 MEDIUM","ATR-C0006 MEDIUM","ATR-C0007 HIGH","ATR-C0011 HIGH","ATR-C0013 HIGH"]}},"components":[{"artifact_version":"2.0","component":{"component_type":"skill","component_name":"skills-plugins/.agents/skills/backend-code-review","component_path":".agents/skills/backend-code-review","metadata":{"manifest":"SKILL.md"}},"scan_provenance":{"scanned_at":"2026-10-14T23:52:06.135Z","resolved_ref":"f77facfe6520ed379d723288aed0b4806ad76143","resolved_ver":null},"repo_context":{"repo_url":"https://github.com/langgenius/dify","languages":["Python","TypeScript","JavaScript","Go","Dockerfile"],"transports_detected":["stdio","sse","streamable_http"],"deployment_artifacts":["docker/docker-compose.yaml","docker/Dockerfile","api/Dockerfile","web/Dockerfile","docker/docker-compose.middleware.yaml"],"provenance":{"publisher":"langgenius","publisher_verified":true,"signed_build":false,"dependency_cve_count":34,"maintenance_active":true,"declared_policy":false}},"component_findings":[{"rule_id":"ATR-P0001","rule_version":"1.0.0","rule_name":"Capability Transparency: Declared Purpose vs. Actual Behavior (Shadow Features)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"SKILL.md frontmatter declares a narrow purpose (review backend code under api/ only, on explicit request) and the body + referenced rule packs (architecture, db-schema, repositories, sqlalchemy) match that declared purpose exactly -- they are read-only review guidance documents with no bundled scripts, no network calls, and no tool invocations beyond reading files. No behavior is hidden or undeclared.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Install-time trust is granted from the artifact's self-description, so any bundled capability the description does not disclose -- network egress, credential reads, or subprocess execution -- runs as an unconsented backdoor with the host agent's full privileges.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/backend-code-review/SKILL.md","start_line":1,"end_line":16,"snippet":"---\nname: backend-code-review\ndescription: Use only when the user explicitly requests a review or audit of backend code under `api/`. Supports pending-change, file-focused, and pasted-diff reviews. Do not use for implementation-only requests, diagnosis without review intent, frontend code, or backend code outside `api/`.\n---\n\n# Backend Code Review\n\nReview the requested scope for concrete, reproducible defects. The nearest `AGENTS.md` owns package facts and commands; this skill owns the review workflow and routes to its bundled rule packs.\n\n## Evidence First\n\n1. Establish the requested review scope and inspect the relevant diff or files.\n2. Read the changed lines, their behavior owner, nearby tests, and local docstrings or comments that define contracts.\n3. Trace callers, persistence boundaries, authorization, generated schemas, or external I/O only when they decide correctness.\n4. Report only findings tied to an observable failure, violated contract, security boundary, data integrity risk, or demonstrated maintenance problem."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/backend-code-review"},{"rule_id":"ATR-P0002","rule_version":"1.0.0","rule_name":"Consent Suppression and Guardrail / Human-in-the-Loop Subversion via Trusted Instructions","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"This is a review-only skill: it explicitly scopes to reading/reporting findings and states 'Do not add praise sections, speculative risks, or an unsolicited offer to implement fixes.' There is no instruction anywhere in the manifest or references to skip confirmation, suppress warnings, or bypass any human-in-the-loop gate; it does not even implement changes.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Because a skill/plugin instruction body is ingested as trusted first-party context, consent- or oversight-suppressing prose inherits the host's full authority and turns a passive package into a self-authorizing backdoor that strips the human-in-the-loop control from every action it can reach.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/backend-code-review/SKILL.md","start_line":28,"end_line":35,"snippet":"## Severity And Output\n\n- **P0**: security or privacy exposure, data loss, or a production-wide outage.\n- **P1**: user-visible regression, broken authorization or tenant isolation, invalid public contract, or failed primary workflow.\n- **P2**: concrete correctness, performance, maintainability, or test defect likely to cause incorrect behavior.\n- **P3**: minor actionable cleanup; omit unless the user requested a thorough audit.\n\nLead with findings ordered by severity. Include a tight file and line reference, the failing contract or reproduction path, impact, and a concrete fix direction. If there are no findings, say `No issues found.` and state any material verification gap. Do not add praise sections, speculative risks, or an unsolicited offer to implement fixes."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/backend-code-review"},{"rule_id":"ATR-P0003","rule_version":"1.2.0","rule_name":"Host-Credential and Conversation-Context Harvesting and Exfiltration","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"The skill does not read host credentials, environment variables, or conversation/memory context; it only reads project files under api/ for review purposes. Because no credential- or conversation-context harvest step exists, the harvesting/exfiltration behavior this rule evaluates is not present in this component.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin that couples a host-credential or live-conversation read with an outbound channel turns an ostensibly benign helper into an autonomous exfiltration agent, leaking long-lived secrets, session tokens, and confidential prompt context to an attacker on every invocation across every tool the artifact serves.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/backend-code-review/SKILL.md","start_line":10,"end_line":15,"snippet":"## Evidence First\n\n1. Establish the requested review scope and inspect the relevant diff or files.\n2. Read the changed lines, their behavior owner, nearby tests, and local docstrings or comments that define contracts.\n3. Trace callers, persistence boundaries, authorization, generated schemas, or external I/O only when they decide correctness.\n4. Report only findings tied to an observable failure, violated contract, security boundary, data integrity risk, or demonstrated maintenance problem."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/backend-code-review"},{"rule_id":"ATR-P0004","rule_version":"1.1.0","rule_name":"Format-Native Out-of-Band Execution and Host Control-Plane Persistence","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"The component ships only markdown guidance and local reference packs; its SKILL.md contains no scripts, hooks, entry points, host-configuration directives, executable environment assignment, or persistent-state write. No format-native execution or control-plane primitive exists in this skill.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Format-native execution and control-plane writes bypass the model's reasoning loop, converting a single install approval into durable, self-reinjecting code execution that can MITM the host agent's own model endpoint and silently subvert every subsequent tool call.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/backend-code-review/SKILL.md","start_line":1,"end_line":8,"snippet":"---\nname: backend-code-review\ndescription: Use only when the user explicitly requests a review or audit of backend code under `api/`. Supports pending-change, file-focused, and pasted-diff reviews. Do not use for implementation-only requests, diagnosis without review intent, frontend code, or backend code outside `api/`.\n---\n\n# Backend Code Review\n\nReview the requested scope for concrete, reproducible defects. The nearest `AGENTS.md` owns package facts and commands; this skill owns the review workflow and routes to its bundled rule packs."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/backend-code-review"},{"rule_id":"ATR-P0005","rule_version":"1.0.0","rule_name":"Over-Declared / Over-Privileged Artifact Manifest Scope","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"The skill is restricted by its description to backend code under api/ only, read-only review, and it does not request any filesystem/network/tool scope beyond reading repo files -- scope matches purpose.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact that self-declares host privilege far beyond its stated function -- or hides executable reach inside a passive-looking package -- gives a single install a blast radius the operator never scoped, so any later mistake, compromise, or misconfiguration detonates across resources the artifact never needed.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/backend-code-review/SKILL.md","start_line":3,"end_line":3,"snippet":"description: Use only when the user explicitly requests a review or audit of backend code under `api/`. Supports pending-change, file-focused, and pasted-diff reviews. Do not use for implementation-only requests, diagnosis without review intent, frontend code, or backend code outside `api/`."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/backend-code-review"},{"rule_id":"ATR-P0006","rule_version":"1.1.0","rule_name":"Injection and Concealed Directives in Skill/Plugin Manifest and Instruction Text","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"low","rationale":"Manual review of SKILL.md and its referenced rule packs found no zero-width characters, HTML comments, RTL/LRO override characters, or 'ignore previous instructions'-style injected directives. Grep for common injection markers across all .agents/skills content returned no hits in this skill.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin's always-loaded manifest and instruction carriers (frontmatter/body, `description_for_model`, Gemini `FunctionDeclaration.description` / Vertex AI extension `manifest` / ADK agent `instruction`, tool docstrings, JSON-Schema descriptions) are concatenated into the host agent prompt at operator privilege, so a directive that is hidden with non-printing codepoints, disguised with a homoglyph, forged with role-control tokens, or masked from the rendered view silently commandeers model behavior toward attacker-chosen actions across every tool the artifact serves -- with no code execution required and nothing visible to a reviewer reading the rendered text.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/backend-code-review/SKILL.md","start_line":1,"end_line":41,"snippet":"(full file reviewed; plain markdown prose, no hidden/zero-width characters or concealed directives found)"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/backend-code-review"},{"rule_id":"ATR-P0007","rule_version":"1.0.0","rule_name":"Skill/Plugin Package Provenance, Integrity, and Post-Approval Mutation (Rug-Pull)","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"This skill is shipped in-tree as part of the same git-versioned monorepo as the product it reviews, not as a separately-distributed/pulled package; its integrity is bound to the same commit/provenance as the rest of the reviewed source. There is no separate unsigned package manifest or remote update channel for this skill specifically -- mutation would require a repo commit, which is out of scope for this artifact-level rule (no CI/signing infra evaluated here since the skill ships with the source, not as an installable package).","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill/plugin reviewed once and then trusted indefinitely becomes a rug-pull vector when its OWN model-facing instruction body, declared scope, or manifest can be live-swapped or silently mutated after approval -- without an approval-time digest that is re-compared on load and re-consent on any change, a publisher (or an attacker who compromises the distribution channel) can rewrite the artifact's trusted instructions or widen its tool scope under authority the host already granted, turning an approved package into an exfiltration or unauthorized-action backdoor.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/backend-code-review/SKILL.md","start_line":1,"end_line":4,"snippet":"---\nname: backend-code-review\ndescription: Use only when the user explicitly requests a review or audit of backend code under `api/`. Supports pending-change, file-focused, and pasted-diff reviews. Do not use for implementation-only requests, diagnosis without review intent, frontend code, or backend code outside `api/`.\n---"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/backend-code-review"},{"rule_id":"ATR-P0008","rule_version":"1.0.0","rule_name":"Skill/Plugin Impersonation, Typosquatting & Publisher Spoofing","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"First-party, in-tree skill shipped by the Dify maintainers in the Dify repo itself; name 'backend-code-review' is a plain descriptive name with no resemblance to a well-known third-party tool/brand, no publisher claim to impersonate.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Impersonation is the entry point of the agentic supply chain (OWASP LLM ASI04 / MITRE ATT&CK T1195): a skill or plugin installed on the strength of a familiar name inherits the host agent's execution context before any payload runs. The deception front-runs trust, so catching the identity lie breaks the chain at the cheapest point -- and it is independent of whether the current code is benign, because the same trusted-looking name can ship a payload in the next version.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/backend-code-review/SKILL.md","start_line":2,"end_line":2,"snippet":"name: backend-code-review"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/backend-code-review"}],"repo_findings_inherited":[{"rule_id":"ATR-C0001","rule_version":"1.2.0","rule_name":"Unrestricted Network Fetch / SSRF","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The outbound HTTP client used for custom tool invocations and HTTP Request nodes falls back to a direct httpx client whenever SSRF_PROXY_HTTP_URL/SSRF_PROXY_HTTPS_URL are unset (they default to None in api/core/helper/ssrf_proxy.py), meaning the SSRF-blocking Squid proxy is an opt-in deployment choice rather than a code-enforced control. The custom-tool invocation path (api/core/tools/custom_tool/tool.py) dispatches the tool's configured server URL through this client with no in-code destination gate (no check against private/loopback/link-local ranges) before the request is sent. A deployment that does not explicitly configure the SSRF proxy environment variables -- which is possible under the project's supported configuration surface, not just the shipped Compose example -- allows a custom tool's configured URL to reach internal or private network destinations unguarded.","vulnerability_details":null,"fix_guidance":"Enforce SSRF protection in code rather than relying solely on an external proxy default: add a destination-validation check (reject private/loopback/link-local IP ranges) directly in the HTTP client construction path in api/core/helper/ssrf_proxy.py so protection applies even when SSRF_PROXY_HTTP_URL/HTTPS_URL are unset, and add an explicit gate in the custom-tool dispatch path in api/core/tools/custom_tool/tool.py before the configured server URL is fetched.","why_this_matters":"Enables internal pivoting and data exfiltration.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/tools/custom_tool/tool.py","start_line":65,"end_line":76,"snippet":"        self, credentials: dict[str, Any], parameters: dict[str, Any], format_only: bool = False\n    ) -> str:\n        \"\"\"\n        validate the credentials for Api tool\n        \"\"\"\n        # assemble validate request and request parameters\n        headers = self.assembling_request(parameters)\n\n        if format_only:\n            return \"\"\n\n        response = self.do_http_request(self.api_bundle.server_url, self.api_bundle.method, headers, parameters)"},{"path":"api/configs/feature/__init__.py","start_line":725,"end_line":738,"snippet":"    SSRF_PROXY_ALL_URL: str | None = Field(\n        description=\"Proxy URL for HTTP or HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTP_URL: str | None = Field(\n        description=\"Proxy URL for HTTP requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTPS_URL: str | None = Field(\n        description=\"Proxy URL for HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )"},{"path":"api/core/helper/ssrf_proxy.py","start_line":86,"end_line":101,"snippet":"def _build_ssrf_client(verify: bool) -> httpx.Client:\n    if dify_config.SSRF_PROXY_ALL_URL:\n        return httpx.Client(\n            proxy=dify_config.SSRF_PROXY_ALL_URL,\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    if dify_config.SSRF_PROXY_HTTP_URL and dify_config.SSRF_PROXY_HTTPS_URL:\n        return httpx.Client(\n            mounts=_create_proxy_mounts(verify=verify),\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    return httpx.Client(verify=verify, limits=_SSRF_CLIENT_LIMITS)"},{"path":"api/core/tools/custom_tool/tool.py","start_line":292,"end_line":306,"snippet":"            raise ValueError(f\"Invalid http method {method}\")\n        response: httpx.Response = _METHOD_MAP[\n            method_lc\n        ](  # https://discuss.python.org/t/type-inference-for-function-return-types/42926\n            url,\n            max_retries=0,\n            params=params,\n            headers=headers,\n            cookies=cookies,\n            data=body,\n            files=files,\n            timeout=API_TOOL_DEFAULT_TIMEOUT,\n            follow_redirects=True,\n        )\n        return response"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0002","rule_version":"1.3.2","rule_name":"Static Secrets","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"docker-compose.yaml and docker-compose-template.yaml ship REAL-LOOKING hardcoded default secret VALUES for inter-service authentication that take effect the moment an operator runs `docker compose up` without overriding the env vars: PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY default to the fixed base64-looking string 'lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi' / 'QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1' (identical across every public clone of the repo), DIFY_AGENT_SERVER_SECRET_KEY defaults to the fixed hex string '0123456789abcdef0123456789abcdef', and MINIO_SECRET_KEY defaults to 'minioadmin'. These are not placeholder/empty values in a .env.example (which would be the negative case) -- they are live fallback defaults baked directly into the shipped docker-compose YAML that is the project's documented one-command quick-start path, so any internet-reachable deployment that forgets to override them authenticates its internal plugin-daemon/inner-API channel and MinIO object storage with a publicly known static secret. This matches the rule's positive_indicator 'default changeme-style value' and its CWE-798/312 class directly.","vulnerability_details":"docker/docker-compose.yaml uses shell-style `${VAR:-default}` substitution where `default` is a concrete, realistic-looking secret baked into the committed YAML (not a placeholder like 'changeme' or empty string), for PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY/INNER_API_KEY_FOR_PLUGIN, DIFY_AGENT_SERVER_SECRET_KEY, and MINIO_SECRET_KEY. Any deployment that does not explicitly set these environment variables before `docker compose up` will run with these known-to-the-public credentials protecting the plugin-daemon <-> API inner channel and the MinIO backing store, letting anyone with network access to those internal ports (e.g. via SSRF, container escape, or a misconfigured network) authenticate as a trusted internal service.","fix_guidance":"Remove hardcoded fallback values from docker-compose for PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY/DIFY_AGENT_SERVER_SECRET_KEY/MINIO_SECRET_KEY; instead fail fast (or auto-generate a random secret at first-run via an init script) when the operator has not supplied a value, so no installation ever runs with a secret value that is identical and publicly known across every Dify deployment.","why_this_matters":"Plaintext secrets are easily exfiltrated.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0002 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/docker-compose.yaml","start_line":600,"end_line":604,"snippet":"      SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}\n      ...\n      DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":688,"end_line":688,"snippet":"      DIFY_AGENT_SERVER_SECRET_KEY: ${DIFY_AGENT_SERVER_SECRET_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":1104,"end_line":1104,"snippet":"      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}"},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":16,"end_line":17,"snippet":"PLUGIN_DAEMON_KEY=[REDACTED]\nPLUGIN_DIFY_INNER_API_KEY=[REDACTED]"},{"path":"api/Dockerfile","start_line":57,"end_line":57,"snippet":"ARG NODESOURCE_KEY_FPR=6F71F525282841EEDAF851B42F59B5F99B1BE0B4","vulnerability":{}},{"path":"api/.env.example","start_line":239,"end_line":239,"snippet":"# Prefix used to create collection name in vector database","vulnerability":{}},{"path":"api/.env.example","start_line":701,"end_line":701,"snippet":"POSITION_TOOL_EXCLUDES=","vulnerability":{}},{"path":"api/.env.example","start_line":715,"end_line":715,"snippet":"PLUGIN_MODEL_PROVIDERS_CACHE_TTL=86400","vulnerability":{}},{"path":"api/knowledge-fs-contract.lock.json","start_line":3,"end_line":3,"snippet":"  \"openapiSha256\": \"f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb\",","vulnerability":{}},{"path":"api/providers/vdb/vdb-alibabacloud-mysql/pyproject.toml","start_line":10,"end_line":10,"snippet":"alibabacloud_mysql = \"dify_vdb_alibabacloud_mysql.alibabacloud_mysql_vector:AlibabaCloudMySQLVectorFactory\"","vulnerability":{}},{"path":"api/services/agent/package_resource_exporter.py","start_line":257,"end_line":257,"snippet":"                    try:","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":30,"end_line":30,"snippet":"DIFY_AGENT_PLUGIN_DAEMON_API_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":36,"end_line":36,"snippet":"DIFY_AGENT_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":91,"end_line":91,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"dify-agent/docs/dify-agent/guide/index.md","start_line":151,"end_line":151,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/worker.env.example","start_line":10,"end_line":10,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/api.env.example","start_line":13,"end_line":13,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":165,"end_line":165,"snippet":"WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":174,"end_line":174,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":224,"end_line":224,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/.env.example","start_line":234,"end_line":234,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":280,"end_line":280,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":17,"end_line":17,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/dify-agent.env.example","start_line":118,"end_line":118,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/security.env.example","start_line":28,"end_line":29,"snippet":"OTLP_API_KEY=\nBAIDU_VECTOR_DB_API_KEY=dify","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":133,"end_line":133,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":166,"end_line":166,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":179,"end_line":179,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/vectorstores/weaviate.env.example","start_line":11,"end_line":11,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":204,"end_line":205,"snippet":"SENDGRID_API_KEY=\nINVITE_EXPIRY_HOURS=72","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":495,"end_line":495,"snippet":"VECTOR_STORE=weaviate","vulnerability":{}},{"path":"docker/docker-compose.yaml","start_line":1273,"end_line":1273,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"docker/docker-compose-template.yaml","start_line":1267,"end_line":1267,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"packages/contracts/generated/knowledge-fs/metadata.gen.ts","start_line":4,"end_line":5,"snippet":"export const knowledgeFsSourceOpenapiSha256 =\n  'f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb'","vulnerability":{}},{"path":"web/public/vs/editor/editor.main.js","start_line":631,"end_line":631,"snippet":"`))}}e.Trace=t}),define(ne[689],se([1,0,8,247,140]),function(oe,e,d,k,I){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.BaseResolvedKeybinding=void 0;class E extends I.ResolvedKeybinding{constructor(m,_){if(super(),_.length===0)throw(0,d.illegalArgument)(\"chords\");this._os=m,this._chords=_}getLabel(){return k.UILabelProvider.toLabel(this._os,this._chords,m=>this._getLabel(m))}getAriaLabel(){return k.AriaLabelProvider.toLabel(this._os,this._chords,m=>this._getAriaLabel(m))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:k.ElectronAcceleratorLabelProvider.toLabel(this._os,this._chords,m=>this._getElectronAccelerator(m))}getUserSettingsLabel(){return k.UserSettingsLabelProvider.toLabel(this._os,this._chords,m=>this._getUserSettingsLabel(m))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(m=>this._getChord(m))}_getChord(m){return new I.ResolvedChord(m.ctrlKey,m.shiftKey,m.altKey,m.metaKey,this._getLabel(m),this._getAriaLabel(m))}getDispatchChords(){return this._chords.map(m=>this._getChordDispatch(m))}getSingleModifierDispatchChords(){return this._chords.map(m=>this._getSingleModifierChordDispatch(m))}}e.BaseResolvedKeybinding=E}),define(ne[31],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,d.createDecorator)(\"keybindingService\")}),define(ne[391],se([1,0,5,174,2,31]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorHoverStatusBar=void 0;const y=d.$;let m=class extends I.Disposable{get hasContent(){return this._hasContent}constructor(b){super(),this._keybindingService=b,this.actions=[],this._hasContent=!1,this.hoverElement=y(\"div.hover-row.status-bar\"),this.hoverElement.tabIndex=0,this.actionsElement=d.append(this.hoverElement,y(\"div.actions\"))}addAction(b){const p=this._keybindingService.lookupKeybinding(b.commandId),n=p?p.getLabel():null;this._hasContent=!0;const o=this._register(k.HoverAction.render(this.actionsElement,b,n));return this.actions.push(o),o}append(b){const p=d.append(this.actionsElement,b);return this._hasContent=!0,p}};e.EditorHoverStatusBar=m,e.EditorHoverStatusBar=m=ke([ce(0,E.IKeybindingService)],m)}),define(ne[690],se([1,0,5,31,670,12,28,61,20,174,6]),function(oe,e,d,k,I,E,y,m,_,b,p){\"use strict\";var n;Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContentHoverWidget=void 0;const o=30,t=6;let i=class extends I.ResizableContentWidget{static{n=this}static{this.ID=\"editor.contrib.resizableContentHoverWidget\"}static{this._lastDimensions=new d.Dimension(0,0)}get isVisibleFromKeyboard(){return this._renderedHover?.source===1}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(c,l,a,r,u){const C=c.getOption(67)+8,f=150,h=new d.Dimension(f,C);super(c,h),this._configurationService=a,this._accessibilityService=r,this._keybindingService=u,this._hover=this._register(new b.HoverWidget),this._onDidResize=this._register(new p.Emitter),this.onDidResize=this._onDidResize.event,this._minimumSize=h,this._hoverVisibleKey=_.EditorContextKeys.hoverVisible.bindTo(l),this._hoverFocusedKey=_.EditorContextKeys.hoverFocused.bindTo(l),d.append(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex=\"50\",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(w=>{w.hasChanged(50)&&this._updateFont()}));const v=this._register(d.trackFocus(this._resizableNode.domNode));this._register(v.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(v.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return n.ID}static _applyDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.width=r,c.style.height=u}_setContentsDomNodeDimensions(c,l){const a=this._hover.contentsDomNode;return n._applyDimensions(a,c,l)}_setContainerDomNodeDimensions(c,l){const a=this._hover.containerDomNode;return n._applyDimensions(a,c,l)}_setHoverWidgetDimensions(c,l){this._setContentsDomNodeDimensions(c,l),this._setContainerDomNodeDimensions(c,l),this._layoutContentWidget()}static _applyMaxDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.maxWidth=r,c.style.maxHeight=u}_setHoverWidgetMaxDimensions(c,l){n._applyMaxDimensions(this._hover.contentsDomNode,c,l),n._applyMaxDimensions(this._hover.containerDomNode,c,l),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-maxWidth\",typeof c==\"number\"?`${c}px`:c),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(c){this._setHoverWidgetMaxDimensions(\"none\",\"none\");const l=c.width,a=c.height;this._setHoverWidgetDimensions(l,a)}_updateResizableNodeMaxDimensions(){const c=this._findMaximumRenderingWidth()??1/0,l=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new d.Dimension(c,l),this._setHoverWidgetMaxDimensions(c,l)}_resize(c){n._lastDimensions=new d.Dimension(c.width,c.height),this._setAdjustedHoverWidgetDimensions(c),this._resizableNode.layout(c.height,c.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const c=this._renderedHover?.showAtPosition;if(c)return this._positionPreference===1?this._availableVerticalSpaceAbove(c):this._availableVerticalSpaceBelow(c)}_findMaximumRenderingHeight(){const c=this._findAvailableSpaceVertically();if(!c)return;let l=t;return Array.from(this._hover.contentsDomNode.children).forEach(a=>{l+=a.clientHeight}),Math.min(c,l)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty(\"--vscode-hover-whiteSpace\",\"nowrap\"),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-sourceWhiteSpace\",\"nowrap\");const c=Array.from(this._hover.contentsDomNode.children).some(l=>l.scrollWidth>l.clientWidth);return this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-whiteSpace\"),this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-sourceWhiteSpace\"),c}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const c=this._isHoverTextOverflowing(),l=typeof this._contentWidth>\"u\"?0:this._contentWidth-2;return c||this._hover.containerDomNode.clientWidth<l?d.getClientArea(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(c,l){if(!this._renderedHover)return!1;if(this._renderedHover.initialMousePosX===void 0||this._renderedHover.initialMousePosY===void 0)return this._renderedHover.initialMousePosX=c,this._renderedHover.initialMousePosY=l,!1;const a=d.getDomNodePagePosition(this.getDomNode());this._renderedHover.closestMouseDistance===void 0&&(this._renderedHover.closestMouseDistance=s(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,a.left,a.top,a.width,a.height));const r=s(c,l,a.left,a.top,a.width,a.height);return r>this._renderedHover.closestMouseDistance+4?!1:(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,r),!0)}_setRenderedHover(c){this._renderedHover?.dispose(),this._renderedHover=c,this._hoverVisibleKey.set(!!c),this._hover.containerDomNode.classList.toggle(\"hidden\",!c)}_updateFont(){const{fontSize:c,lineHeight:l}=this._editor.getOption(50),a=this._hover.contentsDomNode;a.style.fontSize=`${c}px`,a.style.lineHeight=`${l/c}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName(\"code\")).forEach(u=>this._editor.applyFontInfo(u))}_updateContent(c){const l=this._hover.contentsDomNode;l.style.paddingBottom=\"\",l.textContent=\"\",l.appendChild(c)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const c=Math.max(this._editor.getLayoutInfo().height/4,250,n._lastDimensions.height),l=Math.max(this._editor.getLayoutInfo().width*.66,500,n._lastDimensions.width);this._setHoverWidgetMaxDimensions(l,c)}_render(c){this._setRenderedHover(c),this._updateFont(),this._updateContent(c.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(c){if(!this._editor||!this._editor.hasModel())return;this._render(c);const l=d.getTotalHeight(this._hover.containerDomNode),a=c.showAtPosition;this._positionPreference=this._findPositionPreference(l,a)??1,this.onContentsChanged(),c.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const u=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,b.getHoverAccessibleViewHint)(this._configurationService.getValue(\"accessibility.verbosity.hover\")===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding(\"editor.action.accessibleView\")?.getAriaLabel()??\"\");u&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+\", \"+u)}hide(){if(!this._renderedHover)return;const c=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new d.Dimension(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),c&&this._editor.focus()}_removeConstraintsRenderNormally(){const c=this._editor.getLayoutInfo();this._resizableNode.layout(c.height,c.width),this._setHoverWidgetDimensions(\"auto\",\"auto\")}setMinimumDimensions(c){this._minimumSize=new d.Dimension(Math.max(this._minimumSize.width,c.width),Math.max(this._minimumSize.height,c.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const c=typeof this._contentWidth>\"u\"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new d.Dimension(c,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const c=this._hover.containerDomNode;let l=d.getTotalHeight(c),a=d.getTotalWidth(c);if(this._resizableNode.layout(l,a),this._setHoverWidgetDimensions(a,l),l=d.getTotalHeight(c),a=d.getTotalWidth(c),this._contentWidth=a,this._updateMinimumWidth(),this._resizableNode.layout(l,a),this._renderedHover?.showAtPosition){const r=d.getTotalHeight(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(r,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c-l.lineHeight})}scrollDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c+l.lineHeight})}scrollLeft(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c-o})}scrollRight(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c+o})}pageUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c-l})}pageDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c+l})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};e.ContentHoverWidget=i,e.ContentHoverWidget=i=n=ke([ce(1,E.IContextKeyService),ce(2,y.IConfigurationService),ce(3,m.IAccessibilityService),ce(4,k.IKeybindingService)],i);function s(g,c,l,a,r,u){const C=l+r/2,f=a+u/2,h=Math.max(Math.abs(g-C)-r/2,0),v=Math.max(Math.abs(c-f)-u/2,0);return Math.sqrt(h*h+v*v)}}),define(ne[392],se([1,0,12]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.KeybindingResolver=e.NoMatchingKb=void 0,e.NoMatchingKb={kind:0};const k={kind:1};function I(_,b,p){return{kind:2,commandId:_,commandArgs:b,isBubble:p}}class E{constructor(b,p,n){this._log=n,this._defaultKeybindings=b,this._defaultBoundCommands=new Map;for(const o of b){const t=o.command;t&&t.charAt(0)!==\"-\"&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=E.handleRemovals([].concat(b).concat(p));for(let o=0,t=this._keybindings.length;o<t;o++){const i=this._keybindings[o];if(i.chords.length===0)continue;const s=i.when?.substituteConstants();s&&s.type===0||this._addKeyPress(i.chords[0],i)}}static _isTargetedForRemoval(b,p,n){if(p){for(let o=0;o<p.length;o++)if(p[o]!==b.chords[o])return!1}return!(n&&n.type!==1&&(!b.when||!(0,d.expressionsAreEqualWithConstantSubstitution)(n,b.when)))}static handleRemovals(b){const p=new Map;for(let o=0,t=b.length;o<t;o++){const i=b[o];if(i.command&&i.command.charAt(0)===\"-\"){const s=i.command.substring(1);p.has(s)?p.get(s).push(i):p.set(s,[i])}}if(p.size===0)return b;const n=[];for(let o=0,t=b.length;o<t;o++){const i=b[o];if(!i.command||i.command.length===0){n.push(i);continue}if(i.command.charAt(0)===\"-\")continue;const s=p.get(i.command);if(!s||!i.isDefault){n.push(i);continue}let g=!1;for(const c of s){const l=c.when;if(this._isTargetedForRemoval(i,c.chords,l)){g=!0;break}}if(!g){n.push(i);continue}}return n}_addKeyPress(b,p){const n=this._map.get(b);if(typeof n>\"u\"){this._map.set(b,[p]),this._addToLookupMap(p);return}for(let o=n.length-1;o>=0;o--){const t=n[o];if(t.command===p.command)continue;let i=!0;for(let s=1;s<t.chords.length&&s<p.chords.length;s++)if(t.chords[s]!==p.chords[s]){i=!1;break}i&&E.whenIsEntirelyIncluded(t.when,p.when)&&this._removeFromLookupMap(t)}n.push(p),this._addToLookupMap(p)}_addToLookupMap(b){if(!b.command)return;let p=this._lookupMap.get(b.command);typeof p>\"u\"?(p=[b],this._lookupMap.set(b.command,p)):p.push(b)}_removeFromLookupMap(b){if(!b.command)return;const p=this._lookupMap.get(b.command);if(!(typeof p>\"u\")){for(let n=0,o=p.length;n<o;n++)if(p[n]===b){p.splice(n,1);return}}}static whenIsEntirelyIncluded(b,p){return!p||p.type===1?!0:!b||b.type===1?!1:(0,d.implies)(b,p)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(b,p){const n=this._lookupMap.get(b);if(typeof n>\"u\"||n.length===0)return null;if(n.length===1)return n[0];for(let o=n.length-1;o>=0;o--){const t=n[o];if(p.contextMatchesRules(t.when))return t}return n[n.length-1]}resolve(b,p,n){const o=[...p,n];this._log(`| Resolving ${o}`);const t=this._map.get(o[0]);if(t===void 0)return this._log(\"\\\\ No keybinding entries.\"),e.NoMatchingKb;let i=null;if(o.length<2)i=t;else{i=[];for(let g=0,c=t.length;g<c;g++){const l=t[g];if(o.length>l.chords.length)continue;let a=!0;for(let r=1;r<o.length;r++)if(l.chords[r]!==o[r]){a=!1;break}a&&i.push(l)}}const s=this._findCommand(b,i);return s?o.length<s.chords.length?(this._log(`\\\\ From ${i.length} keybinding entries, awaiting ${s.chords.length-o.length} more chord(s), when: ${y(s.when)}, source: ${m(s)}.`),k):(this._log(`\\\\ From ${i.length} keybinding entries, matched ${s.command}, when: ${y(s.when)}, source: ${m(s)}.`),I(s.command,s.commandArgs,s.bubble)):(this._log(`\\\\ From ${i.length} keybinding entries, no when clauses matched the context.`),e.NoMatchingKb)}_findCommand(b,p){for(let n=p.length-1;n>=0;n--){const o=p[n];if(E._contextMatchesRules(b,o.when))return o}return null}static _contextMatchesRules(b,p){return p?p.evaluate(b):!0}}e.KeybindingResolver=E;function y(_){return _?`${_.serialize()}`:\"no when condition\"}function m(_){return _.extensionId?_.isBuiltinExtension?`built-in extension ${_.extensionId}`:`user extension ${_.extensionId}`:_.isDefault?\"built-in\":\"user\"}}),define(ne[691],se([1,0,14,8,6,300,2,3,392]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractKeybindingService=void 0;const b=/^(cursor|delete|undo|redo|tab|editor\\.action\\.clipboard)/;class p extends y.Disposable{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:I.Event.None}get inChordMode(){return this._currentChords.length>0}constructor(t,i,s,g,c){super(),this._contextKeyService=t,this._commandService=i,this._telemetryService=s,this._notificationService=g,this._logService=c,this._onDidUpdateKeybindings=this._register(new I.Emitter),this._currentChords=[],this._currentChordChecker=new d.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new d.TimeoutTimer,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(t){this._logging&&this._logService.info(`[KeybindingService]: ${t}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(t,i){const s=this._getResolver().lookupPrimaryKeybinding(t,i||this._contextKeyService);if(s)return s.resolvedKeybinding}dispatchEvent(t,i){return this._dispatch(t,i)}softDispatch(t,i){this._log(\"/ Soft dispatching keyboard event\");const s=this.resolveKeyboardEvent(t);if(s.hasMultipleChords())return console.warn(\"keyboard event should not be mapped to multiple chords\"),_.NoMatchingKb;const[g]=s.getDispatchChords();if(g===null)return this._log(\"\\\\ Keyboard event cannot be dispatched\"),_.NoMatchingKb;const c=this._contextKeyService.getContext(i),l=this._currentChords.map(({keypress:a})=>a);return this._getResolver().resolve(c,l,g)}_scheduleLeaveChordMode(){const t=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-t>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(t,i){switch(this._currentChords.push({keypress:t,label:i}),this._currentChords.length){case 0:throw(0,k.illegalState)(\"impossible\");case 1:this._currentChordStatusMessage=this._notificationService.status(m.localize(1538,\"({0}) was pressed. Waiting for second key of chord...\",i));break;default:{const s=this._currentChords.map(({label:g})=>g).join(\", \");this._currentChordStatusMessage=this._notificationService.status(m.localize(1539,\"({0}) was pressed. Waiting for next key of chord...\",s))}}this._scheduleLeaveChordMode(),E.IME.enabled&&E.IME.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],E.IME.enable()}_dispatch(t,i){return this._doDispatch(this.resolveKeyboardEvent(t),i,!1)}_singleModifierDispatch(t,i){const s=this.resolveKeyboardEvent(t),[g]=s.getSingleModifierDispatchChords();if(g)return this._ignoreSingleModifiers.has(g)?(this._log(`+ Ignoring single modifier ${g} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${g}.`),this._currentSingleModifier=g,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log(\"+ Clearing single modifier due to 300ms elapsed.\"),this._currentSingleModifier=null},300),!1):g===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${g} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(s,i,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[c]=s.getChords();return this._ignoreSingleModifiers=new n(c),this._currentSingleModifier!==null&&this._log(\"+ Clearing single modifier due to other key up.\"),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(t,i,s=!1){let g=!1;if(t.hasMultipleChords())return console.warn(\"Unexpected keyboard event mapped to multiple chords\"),!1;let c=null,l=null;if(s){const[C]=t.getSingleModifierDispatchChords();c=C,l=C?[C]:[]}else[c]=t.getDispatchChords(),l=this._currentChords.map(({keypress:C})=>C);if(c===null)return this._log(\"\\\\ Keyboard event cannot be dispatched in keydown phase.\"),g;const a=this._contextKeyService.getContext(i),r=t.getLabel(),u=this._getResolver().resolve(a,l,c);switch(u.kind){case 0:{if(this._logService.trace(\"KeybindingService#dispatch\",r,\"[ No matching keybinding ]\"),this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving multi-chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1540,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}return g}case 1:return this._logService.trace(\"KeybindingService#dispatch\",r,\"[ Several keybindings match - more chords needed ]\"),g=!0,this._expectAnotherChord(c,r),this._log(this._currentChords.length===1?\"+ Entering multi-chord mode...\":\"+ Continuing multi-chord mode...\"),g;case 2:{if(this._logService.trace(\"KeybindingService#dispatch\",r,`[ Will dispatch command ${u.commandId} ]`),u.commandId===null||u.commandId===\"\"){if(this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1541,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}}else{this.inChordMode&&this._leaveChordMode(),u.isBubble||(g=!0),this._log(`+ Invoking command ${u.commandId}.`),this._currentlyDispatchingCommandId=u.commandId;try{typeof u.commandArgs>\"u\"?this._commandService.executeCommand(u.commandId).then(void 0,C=>this._notificationService.warn(C)):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,C=>this._notificationService.warn(C))}finally{this._currentlyDispatchingCommandId=null}b.test(u.commandId)||this._telemetryService.publicLog2(\"workbenchActionExecuted\",{id:u.commandId,from:\"keybinding\",detail:t.getUserSettingsLabel()??void 0})}return g}}}mightProducePrintableCharacter(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30}}e.AbstractKeybindingService=p;class n{static{this.EMPTY=new n(null)}constructor(t){this._ctrlKey=t?t.ctrlKey:!1,this._shiftKey=t?t.shiftKey:!1,this._altKey=t?t.altKey:!1,this._metaKey=t?t.metaKey:!1}has(t){switch(t){case\"ctrl\":return this._ctrlKey;case\"shift\":return this._shiftKey;case\"alt\":return this._altKey;case\"meta\":return this._metaKey}}}}),define(ne[393],se([1,0]),function(oe,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ResolvedKeybindingItem=void 0,e.toEmptyArrayIfContainsNull=k;class d{constructor(E,y,m,_,b,p,n){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=E,this.chords=E?k(E.getDispatchChords()):[],E&&this.chords.length===0&&(this.chords=k(E.getSingleModifierDispatchChords())),this.bubble=y?y.charCodeAt(0)===94:!1,this.command=this.bubble?y.substr(1):y,this.commandArgs=m,this.when=_,this.isDefault=b,this.extensionId=p,this.isBuiltinExtension=n}}e.ResolvedKeybindingItem=d;function k(I){const E=[];for(let y=0,m=I.length;y<m;y++){const _=I[y];if(!_)return[];E.push(_)}return E}}),define(ne[692],se([1,0,72,140,689,393]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.USLayoutResolvedKeybinding=void 0;class y extends I.BaseResolvedKeybinding{constructor(_,b){super(b,_)}_keyCodeToUILabel(_){if(this._os===2)switch(_){case 15:return\"\\u2190\";case 16:return\"\\u2191\";case 17:return\"\\u2192\";case 18:return\"\\u2193\"}return d.KeyCodeUtils.toString(_)}_getLabel(_){return _.isDuplicateModifierCase()?\"\":this._keyCodeToUILabel(_.keyCode)}_getAriaLabel(_){return _.isDuplicateModifierCase()?\"\":d.KeyCodeUtils.toString(_.keyCode)}_getElectronAccelerator(_){return d.KeyCodeUtils.toElectronAccelerator(_.keyCode)}_getUserSettingsLabel(_){if(_.isDuplicateModifierCase())return\"\";const b=d.KeyCodeUtils.toUserSettingsUS(_.keyCode);return b&&b.toLowerCase()}_getChordDispatch(_){return y.getDispatchStr(_)}static getDispatchStr(_){if(_.isModifierKey())return null;let b=\"\";return _.ctrlKey&&(b+=\"ctrl+\"),_.shiftKey&&(b+=\"shift+\"),_.altKey&&(b+=\"alt+\"),_.metaKey&&(b+=\"meta+\"),b+=d.KeyCodeUtils.toString(_.keyCode),b}_getSingleModifierChordDispatch(_){return _.keyCode===5&&!_.shiftKey&&!_.altKey&&!_.metaKey?\"ctrl\":_.keyCode===4&&!_.ctrlKey&&!_.altKey&&!_.metaKey?\"shift\":_.keyCode===6&&!_.ctrlKey&&!_.shiftKey&&!_.metaKey?\"alt\":_.keyCode===57&&!_.ctrlKey&&!_.shiftKey&&!_.altKey?\"meta\":null}static _scanCodeToKeyCode(_){const b=d.IMMUTABLE_CODE_TO_KEY_CODE[_];if(b!==-1)return b;switch(_){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(_){if(!_)return null;if(_ instanceof k.KeyCodeChord)return _;const b=this._scanCodeToKeyCode(_.scanCode);return b===0?null:new k.KeyCodeChord(_.ctrlKey,_.shiftKey,_.altKey,_.metaKey,b)}static resolveKeybinding(_,b){const p=(0,E.toEmptyArrayIfContainsNull)(_.chords.map(n=>this._toKeyCodeChord(n)));return p.length>0?[new y(p,b)]:[]}}e.USLayoutResolvedKeybinding=y}),define(ne[181],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,d.createDecorator)(\"labelService\")}),define(ne[119],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILayoutService=void 0,e.ILayoutService=(0,d.createDecorator)(\"layoutService\")}),define(ne[394],se([1,0,5,52,13,6,34,49,119]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorScopedLayoutService=void 0;let b=class{get mainContainer(){return(0,I.firstOrDefault)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??k.mainWindow.document.body}get activeContainer(){return(this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor())?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return d.getClientArea(this.mainContainer)}get activeContainerDimension(){return d.getClientArea(this.activeContainer)}get containers(){return(0,I.coalesce)(this._codeEditorService.listCodeEditors().map(o=>o.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(o){this._codeEditorService=o,this.onDidLayoutMainContainer=E.Event.None,this.onDidLayoutActiveContainer=E.Event.None,this.onDidLayoutContainer=E.Event.None,this.onDidChangeActiveContainer=E.Event.None,this.onDidAddContainer=E.Event.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};b=ke([ce(0,y.ICodeEditorService)],b);let p=class extends b{get mainContainer(){return this._container}constructor(o,t){super(t),this._container=o}};e.EditorScopedLayoutService=p,e.EditorScopedLayoutService=p=ke([ce(1,y.ICodeEditorService)],p),(0,m.registerSingleton)(_.ILayoutService,b,1)}),define(ne[693],se([1,0,5,52,6,2,61,28,12,119]),function(oe,e,d,k,I,E,y,m,_,b){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AccessibilityService=void 0;let p=class extends E.Disposable{constructor(o,t,i){super(),this._contextKeyService=o,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new I.Emitter,this._onDidChangeReducedMotion=new I.Emitter,this._onDidChangeLinkUnderline=new I.Emitter,this._accessibilityModeEnabledContext=y.CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration(\"editor.accessibilitySupport\")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),c.affectsConfiguration(\"workbench.reduceMotion\")&&(this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._onDidChangeReducedMotion.fire())})),s(),this._register(this.onDidChangeScreenReaderOptimized(()=>s()));const g=k.mainWindow.matchMedia(\"(prefers-reduced-motion: reduce)\");this._systemMotionReduced=g.matches,this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._linkUnderlinesEnabled=this._configurationService.getValue(\"accessibility.underlineLinks\"),this.initReducedMotionListeners(g),this.initLinkUnderlineListeners()}initReducedMotionListeners(o){this._register((0,d.addDisposableListener)(o,\"change\",()=>{this._systemMotionReduced=o.matches,this._configMotionReduced===\"auto\"&&this._onDidChangeReducedMotion.fire()}));const t=()=>{const i=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle(\"reduce-motion\",i),this._layoutService.mainContainer.classList.toggle(\"enable-motion\",!i)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration(t=>{if(t.affectsConfiguration(\"accessibility.underlineLinks\")){const i=this._configurationService.getValue(\"accessibility.underlineLinks\");this._linkUnderlinesEnabled=i,this._onDidChangeLinkUnderline.fire()}}));const o=()=>{const t=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle(\"underline-links\",t)};o(),this._register(this.onDidChangeLinkUnderlines(()=>o()))}onDidChangeLinkUnderlines(o){return this._onDidChangeLinkUnderline.event(o)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const o=this._configurationService.getValue(\"editor.accessibilitySupport\");return o===\"on\"||o===\"auto\"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const o=this._configMotionReduced;return o===\"on\"||o===\"auto\"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};e.AccessibilityService=p,e.AccessibilityService=p=ke([ce(0,_.IContextKeyService),ce(1,b.ILayoutService),ce(2,m.IConfigurationService)],p)}),define(ne[395],se([1,0,353,2,119,5]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContextViewService=e.ContextViewHandler=void 0;let y=class extends k.Disposable{constructor(b){super(),this.layoutService=b,this.contextView=this._register(new d.ContextView(this.layoutService.mainContainer,1)),this.layout(),this._register(b.onDidLayoutContainer(()=>this.layout()))}showContextView(b,p,n){let o;p?p===this.layoutService.getContainer((0,E.getWindow)(p))?o=1:n?o=3:o=2:o=1,this.contextView.setContainer(p??this.layoutService.activeContainer,o),this.contextView.show(b);const t={close:()=>{this.openContextView===t&&this.hideContextView()}};return this.openContextView=t,t}layout(){this.contextView.layout()}hideContextView(b){this.contextView.hide(b),this.openContextView=void 0}};e.ContextViewHandler=y,e.ContextViewHandler=y=ke([ce(0,I.ILayoutService)],y);class m extends y{getContextViewElement(){return this.contextView.getViewElement()}}e.ContextViewService=m}),define(ne[62],se([1,0,6,2,12,7]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.CONTEXT_LOG_LEVEL=e.MultiplexLogger=e.ConsoleLogger=e.AbstractLogger=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILogService=void 0,e.LogLevelToString=p,e.ILogService=(0,E.createDecorator)(\"logService\");var y;(function(n){n[n.Off=0]=\"Off\",n[n.Trace=1]=\"Trace\",n[n.Debug=2]=\"Debug\",n[n.Info=3]=\"Info\",n[n.Warning=4]=\"Warning\",n[n.Error=5]=\"Error\"})(y||(e.LogLevel=y={})),e.DEFAULT_LOG_LEVEL=y.Info;class m extends k.Disposable{constructor(){super(...arguments),this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new d.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(o){this.level!==o&&(this.level=o,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(o){return this.level!==y.Off&&this.level<=o}}e.AbstractLogger=m;class _ extends m{constructor(o=e.DEFAULT_LOG_LEVEL,t=!0){super(),this.useColors=t,this.setLevel(o)}trace(o,...t){this.checkLogLevel(y.Trace)&&(this.useColors?console.log(\"%cTRACE\",\"color: #888\",o,...t):console.log(o,...t))}debug(o,...t){this.checkLogLevel(y.Debug)&&(this.useColors?console.log(\"%cDEBUG\",\"background: #eee; color: #888\",o,...t):console.log(o,...t))}info(o,...t){this.checkLogLevel(y.Info)&&(this.useColors?console.log(\"%c INFO\",\"color: #33f\",o,...t):console.log(o,...t))}warn(o,...t){this.checkLogLevel(y.Warning)&&(this.useColors?console.log(\"%c WARN\",\"color: #993\",o,...t):console.log(o,...t))}error(o,...t){this.checkLogLevel(y.Error)&&(this.useColors?console.log(\"%c  ERR\",\"color: #f33\",o,...t):console.error(o,...t))}}e.ConsoleLogger=_;class b extends m{constructor(o){super(),this.loggers=o,o.length&&this.setLevel(o[0].getLevel())}setLevel(o){for(const t of this.loggers)t.setLevel(o);super.setLevel(o)}trace(o,...t){for(const i of this.loggers)i.trace(o,...t)}debug(o,...t){for(const i of this.loggers)i.debug(o,...t)}info(o,...t){for(const i of this.loggers)i.info(o,...t)}warn(o,...t){for(const i of this.loggers)i.warn(o,...t)}error(o,...t){for(const i of this.loggers)i.error(o,...t)}dispose(){for(const o of this.loggers)o.dispose();super.dispose()}}e.MultiplexLogger=b;function p(n){switch(n){case y.Trace:return\"trace\";case y.Debug:return\"debug\";case y.Info:return\"info\";case y.Warning:return\"warn\";case y.Error:return\"error\";case y.Off:return\"off\"}}e.CONTEXT_LOG_LEVEL=new I.RawContextKey(\"logLevel\",p(y.Info))}),define(ne[212],se([1,0,64,5,93,47,296,14,6,2,128,11,310,23,61,62]),function(oe,e,d,k,I,E,y,m,_,b,p,n,o,t,i,s){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.TextAreaWrapper=e.ClipboardEventUtils=e.TextAreaInput=e.InMemoryClipboardMetadataManager=e.CopyOptions=e.TextAreaSyntethicEvents=void 0;var g;(function(u){u.Tap=\"-monaco-textarea-synthetic-tap\"})(g||(e.TextAreaSyntethicEvents=g={})),e.CopyOptions={forceCopyWithSyntaxHighlighting:!1};class c{static{this.INSTANCE=new c}constructor(){this._lastState=null}set(C,f){this._lastState={lastCopiedValue:C,data:f}}get(C){return this._lastState&&this._lastState.lastCopiedValue===C?this._lastState.data:(this._lastState=null,null)}}e.InMemoryClipboardMetadataManager=c;class l{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(C){C=C||\"\";const f={text:C,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=C.length,f}}let a=class extends b.Disposable{get textAreaState(){return this._textAreaState}constructor(C,f,h,v,w,S){super(),this._host=C,this._textArea=f,this._OS=h,this._browser=v,this._accessibilityService=w,this._logService=S,this._onFocus=this._register(new _.Emitter),this.onFocus=this._onFocus.event,this._onBlur=this._register(new _.Emitter),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new _.Emitter),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new _.Emitter),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new _.Emitter),this.onCut=this._onCut.event,this._onPaste=this._register(new _.Emitter),this.onPaste=this._onPaste.event,this._onType=this._register(new _.Emitter),this.onType=this._onType.event,this._onCompositionStart=this._register(new _.Emitter),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new _.Emitter),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new _.Emitter),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new _.Emitter),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new b.MutableDisposable),this._asyncTriggerCut=this._register(new m.RunOnceScheduler(()=>this._onCut.fire(),0)),this._textAreaState=o.TextAreaState.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent(\"ctor\"),this._register(_.Event.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let L=null;this._register(this._textArea.onKeyDown(D=>{const T=new E.StandardKeyboardEvent(D);(T.keyCode===114||this._currentComposition&&T.keyCode===1)&&T.stopPropagation(),T.equals(9)&&T.preventDefault(),L=T,this._onKeyDown.fire(T)})),this._register(this._textArea.onKeyUp(D=>{const T=new E.StandardKeyboardEvent(D);this._onKeyUp.fire(T)})),this._register(this._textArea.onCompositionStart(D=>{o._debugComposition&&console.log(\"[compositionstart]\",D);const T=new l;if(this._currentComposition){this._currentComposition=T;return}if(this._currentComposition=T,this._OS===2&&L&&L.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===D.data&&(L.code===\"ArrowRight\"||L.code===\"ArrowLeft\")){o._debugComposition&&console.log(\"[compositionstart] Handling long press case on macOS + arrow key\",D),T.handleCompositionUpdate(\"x\"),this._onCompositionStart.fire({data:D.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:D.data});return}this._onCompositionStart.fire({data:D.data})})),this._register(this._textArea.onCompositionUpdate(D=>{o._debugComposition&&console.log(\"[compositionupdate]\",D);const T=this._currentComposition;if(!T)return;if(this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionUpdate.fire(D);return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionUpdate.fire(D)})),this._register(this._textArea.onCompositionEnd(D=>{o._debugComposition&&console.log(\"[compositionend]\",D);const T=this._currentComposition;if(!T)return;if(this._currentComposition=null,this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionEnd.fire();return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(D=>{if(o._debugComposition&&console.log(\"[input]\",D),this._textArea.setIgnoreSelectionChangeTime(\"received input event\"),this._currentComposition)return;const T=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),M=o.TextAreaState.deduceInput(this._textAreaState,T,this._OS===2);M.replacePrevCharCnt===0&&M.text.length===1&&(n.isHighSurrogate(M.text.charCodeAt(0))||M.text.charCodeAt(0)===127)||(this._textAreaState=T,(M.text!==\"\"||M.replacePrevCharCnt!==0||M.replaceNextCharCnt!==0||M.positionDelta!==0)&&this._onType.fire(M))})),this._register(this._textArea.onCut(D=>{this._textArea.setIgnoreSelectionChangeTime(\"received cut event\"),this._ensureClipboardGetsEditorSelection(D),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(D=>{this._ensureClipboardGetsEditorSelection(D)})),this._register(this._textArea.onPaste(D=>{if(this._textArea.setIgnoreSelectionChangeTime(\"received paste event\"),D.preventDefault(),!D.clipboardData)return;let[T,M]=e.ClipboardEventUtils.getTextData(D.clipboardData);T&&(M=M||c.INSTANCE.get(T),this._onPaste.fire({text:T,metadata:M}))})),this._register(this._textArea.onFocus(()=>{const D=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!D&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"blurWithoutCompositionEnd\"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"tapWithoutCompositionEnd\"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let C=0;return k.addDisposableListener(this._textArea.ownerDocument,\"selectionchange\",f=>{if(y.inputLatency.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const h=Date.now(),v=h-C;if(C=h,v<5)return;const w=h-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),w<100||!this._textAreaState.selection)return;const S=this._textArea.getValue();if(this._textAreaState.value!==S)return;const L=this._textArea.getSelectionStart(),D=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===L&&this._textAreaState.selectionEnd===D)return;const T=this._textAreaState.deduceEditorPosition(L),M=this._host.deduceModelPosition(T[0],T[1],T[2]),A=this._textAreaState.deduceEditorPosition(D),P=this._host.deduceModelPosition(A[0],A[1],A[2]),N=new t.Selection(M.lineNumber,M.column,P.lineNumber,P.column);this._onSelectionChangeRequest.fire(N)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(C){this._hasFocus!==C&&(this._hasFocus=C,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent(\"focusgain\"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(C,f){this._hasFocus||(f=f.collapseSelection()),f.writeToTextArea(C,this._textArea,this._hasFocus),this._textAreaState=f}writeNativeTextAreaContent(C){!this._accessibilityService.isScreenReaderOptimized()&&C===\"render\"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${C})`),this._setAndWriteTextAreaState(C,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(C){const f=this._host.getDataToCopy(),h={version:1,isFromEmptySelection:f.isFromEmptySelection,multicursorText:f.multicursorText,mode:f.mode};c.INSTANCE.set(this._browser.isFirefox?f.text.replace(/\\r\\n/g,`","vulnerability":{}},{"path":"web/public/vs/language/typescript/tsWorker.js","start_line":320,"end_line":320,"snippet":"`||hn[0]===\"\\r\");)hn.shift()}function CP(hn){for(;hn.length;){let Tr=hn[hn.length-1].trimEnd();if(Tr===\"\")hn.pop();else if(Tr.length<hn[hn.length-1].length){hn[hn.length-1]=Tr;break}else break}}function fE(){for(;;){if(gt(),j()===1)return!0;if(!(j()===5||j()===4))return!1}}function Dg(){if(!((j()===5||j()===4)&&_i(fE)))for(;j()===5||j()===4;)gt()}function jy(){if((j()===5||j()===4)&&_i(fE))return\"\";let hn=t.hasPrecedingLineBreak(),Tr=!1,gr=\"\";for(;hn&&j()===42||j()===5||j()===4;)gr+=t.getTokenText(),j()===4?(hn=!0,Tr=!0,gr=\"\"):j()===42&&(hn=!1),gt();return Tr?gr:\"\"}function lD(hn){x.assert(j()===60);let Tr=t.getTokenStart();gt();let gr=gE(void 0),Ei=jy(),hi;switch(gr.escapedText){case\"author\":hi=Ss(Tr,gr,hn,Ei);break;case\"implements\":hi=Hy(Tr,gr,hn,Ei);break;case\"augments\":case\"extends\":hi=lm(Tr,gr,hn,Ei);break;case\"class\":case\"constructor\":hi=hE(Tr,m.createJSDocClassTag,gr,hn,Ei);break;case\"public\":hi=hE(Tr,m.createJSDocPublicTag,gr,hn,Ei);break;case\"private\":hi=hE(Tr,m.createJSDocPrivateTag,gr,hn,Ei);break;case\"protected\":hi=hE(Tr,m.createJSDocProtectedTag,gr,hn,Ei);break;case\"readonly\":hi=hE(Tr,m.createJSDocReadonlyTag,gr,hn,Ei);break;case\"override\":hi=hE(Tr,m.createJSDocOverrideTag,gr,hn,Ei);break;case\"deprecated\":Nr=!0,hi=hE(Tr,m.createJSDocDeprecatedTag,gr,hn,Ei);break;case\"this\":hi=T7(Tr,gr,hn,Ei);break;case\"enum\":hi=D$(Tr,gr,hn,Ei);break;case\"arg\":case\"argument\":case\"param\":return w(Tr,gr,2,hn);case\"return\":case\"returns\":hi=Be(Tr,gr,hn,Ei);break;case\"template\":hi=Jy(Tr,gr,hn,Ei);break;case\"type\":hi=kt(Tr,gr,hn,Ei);break;case\"typedef\":hi=MP(Tr,gr,hn,Ei);break;case\"callback\":hi=Ame(Tr,gr,hn,Ei);break;case\"overload\":hi=Ime(Tr,gr,hn,Ei);break;case\"satisfies\":hi=_E(Tr,gr,hn,Ei);break;case\"see\":hi=ir(Tr,gr,hn,Ei);break;case\"exception\":case\"throws\":hi=Wi(Tr,gr,hn,Ei);break;default:hi=Uy(Tr,gr,hn,Ei);break}return hi}function _p(hn,Tr,gr,Ei){return Ei||(gr+=Tr-hn),Sa(gr,Ei.slice(gr))}function Sa(hn,Tr){let gr=M(),Ei=[],hi=[],wa,ns=0,Dd;function ih(Cg){Dd||(Dd=hn),Ei.push(Cg),hn+=Cg.length}Tr!==void 0&&(Tr!==\"\"&&ih(Tr),ns=1);let Zu=j();e:for(;;){switch(Zu){case 4:ns=0,Ei.push(t.getTokenText()),hn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:x.assert(ns!==2&&ns!==3,\"whitespace shouldn't come from the scanner while saving comment text\");let Cg=t.getTokenText();Dd!==void 0&&hn+Cg.length>Dd&&(Ei.push(Cg.slice(Dd-hn)),ns=2),hn+=Cg.length;break;case 19:ns=2;let ep=t.getTokenFullStart(),uD=t.getTokenEnd()-1,tw=zl(uD);tw?(hi.push(Ut(m.createJSDocText(Ei.join(\"\")),wa??gr,ep)),hi.push(tw),Ei=[],wa=t.getTokenEnd()):ih(t.getTokenText());break;case 62:ns===3?ns=2:ns=3,ih(t.getTokenText());break;case 82:ns!==3&&(ns=2),ih(t.getTokenValue());break;case 42:if(ns===0){ns=1,hn+=1;break}default:ns!==3&&(ns=2),ih(t.getTokenText());break}ns===2||ns===3?Zu=bt(ns===3):Zu=gt()}DP(Ei);let Lm=Ei.join(\"\").trimEnd();if(hi.length)return Lm.length&&hi.push(Ut(m.createJSDocText(Lm),wa??gr)),ho(hi,gr,t.getTokenEnd());if(Lm.length)return Lm}function zl(hn){let Tr=ui(p1);if(!Tr)return;gt(),Dg();let gr=mE(),Ei=[];for(;j()!==20&&j()!==4&&j()!==1;)Ei.push(t.getTokenText()),gt();let hi=Tr===\"link\"?m.createJSDocLink:Tr===\"linkcode\"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return Ut(hi(gr,Ei.join(\"\")),hn,t.getTokenEnd())}function mE(){if(Md(j())){let hn=M(),Tr=tc();for(;$i(25);)Tr=Ut(m.createQualifiedName(Tr,j()===81?ys(80,!1):ls()),hn);for(;j()===81;)ti(),gt(),Tr=Ut(m.createJSDocMemberName(Tr,ls()),hn);return Tr}}function p1(){if(jy(),j()===19&&gt()===60&&Md(gt())){let hn=t.getTokenValue();if(NP(hn))return hn}}function NP(hn){return hn===\"link\"||hn===\"linkcode\"||hn===\"linkplain\"}function Uy(hn,Tr,gr,Ei){return Ut(m.createJSDocUnknownTag(Tr,_p(hn,M(),gr,Ei)),hn)}function PP(hn){hn&&(Ma?Ma.push(hn):(Ma=[hn],lf=hn.pos),v_=hn.end)}function Un(){return jy(),j()===19?Fe():void 0}function y(){let hn=Rv(23);hn&&Dg();let Tr=Rv(62),gr=dD();return Tr&&ua(62),hn&&(Dg(),Uo(64)&&we(),_n(24)),{name:gr,isBracketed:hn}}function D(hn){switch(hn.kind){case 151:return!0;case 188:return D(hn.elementType);default:return Yp(hn)&&Me(hn.typeName)&&hn.typeName.escapedText===\"Object\"&&!hn.typeArguments}}function w(hn,Tr,gr,Ei){let hi=Un(),wa=!hi;jy();let{name:ns,isBracketed:Dd}=y(),ih=jy();wa&&!_i(p1)&&(hi=Un());let Zu=_p(hn,M(),Ei,ih),Lm=ie(hi,ns,gr,Ei);Lm&&(hi=Lm,wa=!0);let Cg=gr===1?m.createJSDocPropertyTag(Tr,ns,Dd,hi,wa,Zu):m.createJSDocParameterTag(Tr,ns,Dd,hi,wa,Zu);return Ut(Cg,hn)}function ie(hn,Tr,gr,Ei){if(hn&&D(hn.type)){let hi=M(),wa,ns;for(;wa=ui(()=>I7(gr,Ei,Tr));)wa.kind===348||wa.kind===355?ns=pn(ns,wa):wa.kind===352&&Re(wa.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ns){let Dd=Ut(m.createJSDocTypeLiteral(ns,hn.type.kind===188),hi);return Ut(m.createJSDocTypeExpression(Dd),hi)}}}function Be(hn,Tr,gr,Ei){ct(Ma,T6)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Un();return Ut(m.createJSDocReturnTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function kt(hn,Tr,gr,Ei){ct(Ma,gN)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Fe(!0),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocTypeTag(Tr,hi,wa),hn)}function ir(hn,Tr,gr,Ei){let wa=j()===23||_i(()=>gt()===60&&Md(gt())&&NP(t.getTokenValue()))?void 0:mt(),ns=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSeeTag(Tr,wa,ns),hn)}function Wi(hn,Tr,gr,Ei){let hi=Un(),wa=_p(hn,M(),gr,Ei);return Ut(m.createJSDocThrowsTag(Tr,hi,wa),hn)}function Ss(hn,Tr,gr,Ei){let hi=M(),wa=Mm(),ns=t.getTokenFullStart(),Dd=_p(hn,ns,gr,Ei);Dd||(ns=t.getTokenFullStart());let ih=typeof Dd!=\"string\"?ho(ro([Ut(wa,hi,ns)],Dd),hi):wa.text+Dd;return Ut(m.createJSDocAuthorTag(Tr,ih),hn)}function Mm(){let hn=[],Tr=!1,gr=t.getToken();for(;gr!==1&&gr!==4;){if(gr===30)Tr=!0;else{if(gr===60&&!Tr)break;if(gr===32&&Tr){hn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}hn.push(t.getTokenText()),gr=gt()}return m.createJSDocText(hn.join(\"\"))}function Hy(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocImplementsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function lm(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocAugmentsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function _E(hn,Tr,gr,Ei){let hi=Fe(!1),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSatisfiesTag(Tr,hi,wa),hn)}function R$(){let hn=$i(19),Tr=M(),gr=Tme();t.setInJSDocType(!0);let Ei=uE();t.setInJSDocType(!1);let hi=m.createExpressionWithTypeArguments(gr,Ei),wa=Ut(hi,Tr);return hn&&_n(20),wa}function Tme(){let hn=M(),Tr=gE();for(;$i(25);){let gr=gE();Tr=Ut(K(Tr,gr),hn)}return Tr}function hE(hn,Tr,gr,Ei,hi){return Ut(Tr(gr,_p(hn,M(),Ei,hi)),hn)}function T7(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocThisTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function D$(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocEnumTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function MP(hn,Tr,gr,Ei){let hi=Un();jy();let wa=A7();Dg();let ns=Sa(gr),Dd;if(!hi||D(hi.type)){let Zu,Lm,Cg,ep=!1;for(;(Zu=ui(()=>P$(gr)))&&Zu.kind!==352;)if(ep=!0,Zu.kind===351)if(Lm){let uD=Qt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);uD&&fa(uD,Ix(_e,Te,0,0,f.The_tag_was_first_specified_here));break}else Lm=Zu;else Cg=pn(Cg,Zu);if(ep){let uD=hi&&hi.type.kind===188,tw=m.createJSDocTypeLiteral(Cg,uD);hi=Lm&&Lm.typeExpression&&!D(Lm.typeExpression.type)?Lm.typeExpression:Ut(tw,hn),Dd=hi.end}}Dd=Dd||ns!==void 0?M():(wa??hi??Tr).end,ns||(ns=_p(hn,Dd,gr,Ei));let ih=m.createJSDocTypedefTag(Tr,hi,wa,ns);return Ut(ih,hn,Dd)}function A7(hn){let Tr=t.getTokenStart();if(!Md(j()))return;let gr=gE();if($i(25)){let Ei=A7(!0),hi=m.createModuleDeclaration(void 0,gr,Ei,hn?8:void 0);return Ut(hi,Tr)}return hn&&(gr.flags|=4096),gr}function C$(hn){let Tr=M(),gr,Ei;for(;gr=ui(()=>I7(4,hn));){if(gr.kind===352){Re(gr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ei=pn(Ei,gr)}return ho(Ei||[],Tr)}function N$(hn,Tr){let gr=C$(Tr),Ei=ui(()=>{if(Rv(60)){let hi=lD(Tr);if(hi&&hi.kind===349)return hi}});return Ut(m.createJSDocSignature(void 0,gr,Ei),hn)}function Ame(hn,Tr,gr,Ei){let hi=A7();Dg();let wa=Sa(gr),ns=N$(hn,gr);wa||(wa=_p(hn,M(),gr,Ei));let Dd=wa!==void 0?M():ns.end;return Ut(m.createJSDocCallbackTag(Tr,ns,hi,wa),hn,Dd)}function Ime(hn,Tr,gr,Ei){Dg();let hi=Sa(gr),wa=N$(hn,gr);hi||(hi=_p(hn,M(),gr,Ei));let ns=hi!==void 0?M():wa.end;return Ut(m.createJSDocOverloadTag(Tr,wa,hi),hn,ns)}function cD(hn,Tr){for(;!Me(hn)||!Me(Tr);)if(!Me(hn)&&!Me(Tr)&&hn.right.escapedText===Tr.right.escapedText)hn=hn.left,Tr=Tr.left;else return!1;return hn.escapedText===Tr.escapedText}function P$(hn){return I7(1,hn)}function I7(hn,Tr,gr){let Ei=!0,hi=!1;for(;;)switch(gt()){case 60:if(Ei){let wa=q0(hn,Tr);return wa&&(wa.kind===348||wa.kind===355)&&gr&&(Me(wa.name)||!cD(gr,wa.name.left))?!1:wa}hi=!1;break;case 4:Ei=!0,hi=!1;break;case 42:hi&&(Ei=!1),hi=!0;break;case 80:Ei=!1;break;case 1:return!1}}function q0(hn,Tr){x.assert(j()===60);let gr=t.getTokenFullStart();gt();let Ei=gE(),hi=jy(),wa;switch(Ei.escapedText){case\"type\":return hn===1&&kt(gr,Ei);case\"prop\":case\"property\":wa=1;break;case\"arg\":case\"argument\":case\"param\":wa=6;break;case\"template\":return Jy(gr,Ei,Tr,hi);case\"this\":return T7(gr,Ei,Tr,hi);default:return!1}return hn&wa?w(gr,Ei,hn,Tr):!1}function Yn(){let hn=M(),Tr=Rv(23);Tr&&Dg();let gr=eh(!1,!0),Ei=gE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),hi;if(Tr&&(Dg(),_n(64),hi=Ea(16777216,nm),_n(24)),!_l(Ei))return Ut(m.createTypeParameterDeclaration(gr,Ei,void 0,hi),hn)}function qy(){let hn=M(),Tr=[];do{Dg();let gr=Yn();gr!==void 0&&Tr.push(gr),jy()}while(Rv(28));return ho(Tr,hn)}function Jy(hn,Tr,gr,Ei){let hi=j()===19?Fe():void 0,wa=qy();return Ut(m.createJSDocTemplateTag(Tr,hi,wa,_p(hn,M(),gr,Ei)),hn)}function Rv(hn){return j()===hn?(gt(),!0):!1}function dD(){let hn=gE();for($i(23)&&_n(24);$i(25);){let Tr=gE();$i(23)&&_n(24),hn=Ye(hn,Tr)}return hn}function gE(hn){if(!Md(j()))return ys(80,!hn,hn||f.Identifier_expected);Vt++;let Tr=t.getTokenStart(),gr=t.getTokenEnd(),Ei=j(),hi=Pc(t.getTokenValue()),wa=Ut(C(hi,Ei),Tr,gr);return gt(),wa}}})(g_=e.JSDocParser||(e.JSDocParser={}))})(zb||(zb={})),(e=>{function t(S,A,C,R){if(R=R||x.shouldAssert(2),m(S,A,C,R),Iee(C))return S;if(S.statements.length===0)return zb.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let L=S;x.assert(!L.hasBeenIncrementallyParsed),L.hasBeenIncrementallyParsed=!0,zb.fixupParentReferences(L);let G=S.text,U=v(S),K=p(S,C);m(S,A,K,R),x.assert(K.span.start<=C.span.start),x.assert(Al(K.span)===Al(C.span)),x.assert(Al(ZD(K))===Al(ZD(C)));let F=ZD(K).length-K.span.length;d(L,K.span.start,Al(K.span),Al(ZD(K)),F,G,A,R);let oe=zb.parseSourceFile(S.fileName,A,S.languageVersion,U,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return oe.commentDirectives=r(S.commentDirectives,oe.commentDirectives,K.span.start,Al(K.span),F,G,A,R),oe.impliedNodeFormat=S.impliedNodeFormat,oe}e.updateSourceFile=t;function r(S,A,C,R,L,G,U,K){if(!S)return A;let F,oe=!1;for(let $ of S){let{range:de,type:fe}=$;if(de.end<C)F=pn(F,$);else if(de.pos>R){W();let q={range:{pos:de.pos+L,end:de.end+L},type:fe};F=pn(F,q),K&&x.assert(G.substring(de.pos,de.end)===U.substring(q.range.pos,q.range.end))}}return W(),F;function W(){oe||(oe=!0,F?A&&F.push(...A):F=A)}}function i(S,A,C,R,L,G){A?K(S):U(S);return;function U(F){let oe=\"\";if(G&&o(F)&&(oe=R.substring(F.pos,F.end)),F._children&&(F._children=void 0),F_(F,F.pos+C,F.end+C),G&&o(F)&&x.assert(oe===L.substring(F.pos,F.end)),Ao(F,U,K),ap(F))for(let W of F.jsDoc)U(W);l(F,G)}function K(F){F._children=void 0,F_(F,F.pos+C,F.end+C);for(let oe of F)U(oe)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,C,R,L){x.assert(S.end>=A,\"Adjusting an element that was entirely before the change range\"),x.assert(S.pos<=C,\"Adjusting an element that was entirely after the change range\"),x.assert(S.pos<=S.end);let G=Math.min(S.pos,R),U=S.end>=C?S.end+L:Math.min(S.end,R);x.assert(G<=U),S.parent&&(x.assertGreaterThanOrEqual(G,S.parent.pos),x.assertLessThanOrEqual(U,S.parent.end)),F_(S,G,U)}function l(S,A){if(A){let C=S.pos,R=L=>{x.assert(L.pos>=C),C=L.end};if(ap(S))for(let L of S.jsDoc)R(L);Ao(S,R),x.assert(C<=S.end)}}function d(S,A,C,R,L,G,U,K){F(S);return;function F(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!1,L,G,U,K);return}let $=W.end;if($>=A){if(W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L),Ao(W,F,oe),ap(W))for(let de of W.jsDoc)F(de);l(W,K);return}x.assert($<A)}function oe(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!0,L,G,U,K);return}let $=W.end;if($>=A){W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L);for(let de of W)F(de);return}x.assert($<A)}}function p(S,A){let R=A.span.start;for(let U=0;R>0&&U<=1;U++){let K=h(S,R);x.assert(K.pos<=R);let F=K.pos;R=Math.max(0,F-1)}let L=Gl(R,Al(A.span)),G=A.newLength+(A.span.start-R);return FM(L,G)}function h(S,A){let C=S,R;if(Ao(S,G),R){let U=L(R);U.pos>C.pos&&(C=U)}return C;function L(U){for(;;){let K=yV(U);if(K)U=K;else return U}}function G(U){if(!_l(U))if(U.pos<=A){if(U.pos>=C.pos&&(C=U),A<U.end)return Ao(U,G),!0;x.assert(U.end<=A),R=U}else return x.assert(U.pos>A),!0}}function m(S,A,C,R){let L=S.text;if(C&&(x.assert(L.length-C.span.length+C.newLength===A.length),R||x.shouldAssert(3))){let G=L.substr(0,C.span.start),U=A.substr(0,C.span.start);x.assert(G===U);let K=L.substring(Al(C.span),L.length),F=A.substring(Al(ZD(C)),A.length);x.assert(K===F)}}function v(S){let A=S.statements,C=0;x.assert(C<A.length);let R=A[C],L=-1;return{currentNode(U){return U!==L&&(R&&R.end===U&&C<A.length-1&&(C++,R=A[C]),(!R||R.pos!==U)&&G(U)),L=U,x.assert(!R||R.pos===U),R}};function G(U){A=void 0,C=-1,R=void 0,Ao(S,K,F);return;function K(oe){return U>=oe.pos&&U<oe.end?(Ao(oe,K,F),!0):!1}function F(oe){if(U>=oe.pos&&U<oe.end)for(let W=0;W<oe.length;W++){let $=oe[W];if($){if($.pos===U)return A=oe,C=W,R=$,!0;if($.pos<U&&U<$.end)return Ao($,K,F),!0}}return!1}}}e.createSyntaxCursor=v;let E;(S=>{S[S.Value=-1]=\"Value\"})(E||(E={}))})(Zj||(Zj={})),eU=new Map,wEe=/^\\/\\/\\/\\s*<(\\S+)\\s.*?\\/>/im,WEe=/^\\/\\/\\/?\\s*@([^\\s:]+)(.*)\\s*$/im}});function O6(e){let t=new Map,r=new Map;return an(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function Xx(){return E0e||(E0e=O6(Nh))}function Mie(e){return FEe(e,bl)}function FEe(e,t){let r=bo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(\", \");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function w6(e,t,r){return h0e(e,(t??\"\").trim(),r)}function Lie(e,t=\"\",r){if(t=t.trim(),Ui(t,\"-\"))return;if(e.type===\"listOrElement\"&&!t.includes(\",\"))return vI(e,t,r);if(t===\"\")return[];let i=t.split(\",\");switch(e.element.type){case\"number\":return Fi(i,o=>vI(e.element,parseInt(o),r));case\"string\":return Fi(i,o=>vI(e.element,o||\"\",r));case\"boolean\":case\"object\":return x.fail(`List of ${e.element.type} is not yet supported.`);default:return Fi(i,o=>w6(e.element,o,r))}}function zEe(e){return e.name}function kie(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return Bb(o,i,t.alternateMode.diagnostic,e);let l=VD(e,t.optionDeclarations,zEe);return l?Bb(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):Bb(o,i,t.unknownOptionDiagnostic,r||e)}function tU(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;m<h.length;){let v=h[m];if(m++,v.charCodeAt(0)===64)p(v.slice(1));else if(v.charCodeAt(0)===45){let E=v.slice(v.charCodeAt(1)===45?2:1),S=Oie(e.getOptionsNameMap,E,!0);if(S)m=BEe(h,m,e,S,i,l);else{let A=Oie(q6.getOptionsNameMap,E,!0);A?m=BEe(h,m,q6,A,o||(o={}),l):l.push(kie(E,e,v))}}else s.push(v)}}function p(h){let m=SN(h,r||(S=>Hc.readFile(S)));if(!fo(m)){l.push(m);return}let v=[],E=0;for(;;){for(;E<m.length&&m.charCodeAt(E)<=32;)E++;if(E>=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E<m.length&&m.charCodeAt(E)!==34;)E++;E<m.length?(v.push(m.substring(S+1,E)),E++):l.push(bl(f.Unterminated_quoted_string_in_response_file_0,h))}else{for(;m.charCodeAt(E)>32;)E++;v.push(m.substring(S,E))}}d(v)}}function BEe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l===\"null\"?(o[i.name]=void 0,t++):i.type===\"boolean\"?l===\"false\"?(o[i.name]=vI(i,!1,s),t++):(l===\"true\"&&t++,s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!Ui(l,\"-\")&&t++)}else if(!e[t]&&i.type!==\"boolean\"&&s.push(bl(r.optionTypeMismatchDiagnostic,i.name,oU(i))),e[t]!==\"null\")switch(i.type){case\"number\":o[i.name]=vI(i,parseInt(e[t]),s),t++;break;case\"boolean\":let l=e[t];o[i.name]=vI(i,l!==\"false\",s),(l===\"false\"||l===\"true\")&&t++;break;case\"string\":o[i.name]=vI(i,e[t]||\"\",s),t++;break;case\"list\":let d=Lie(i,e[t],s);o[i.name]=d||[],d&&t++;break;case\"listOrElement\":x.fail(\"listOrElement not supported here\");break;default:o[i.name]=w6(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function GEe(e,t){return tU(Q2,e,t)}function nU(e,t){return Oie(Xx,e,t)}function Oie(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function VEe(){return T0e||(T0e=O6(U6))}function jEe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=tU(I0e,e),s=t;return i.length===0&&i.push(\".\"),s.clean&&s.force&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"force\")),s.clean&&s.verbose&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"verbose\")),s.clean&&s.watch&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"watch\")),s.watch&&s.dry&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"watch\",\"dry\")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function UEe(e,...t){return Fo(bl(e,...t).messageText,fo)}function V2(e,t,r,i,o,s){let l=SN(e,h=>r.readFile(h));if(!fo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=G2(e,l),p=r.getCurrentDirectory();return d.path=ks(e,p,od(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,H2(d,r,Qi(Ur(e),p),t,Qi(e,p),void 0,s,i,o)}function j2(e,t){let r=SN(e,t);return fo(r)?rU(e,r):{config:{},error:r}}function rU(e,t){let r=G2(e,t);return{config:XEe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function wie(e,t){let r=SN(e,t);return fo(r)?G2(e,r):{fileName:e,parseDiagnostics:[r]}}function SN(e,t){let r;try{r=t(e)}catch(i){return bl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?bl(f.Cannot_read_file_0,e):r}function iU(e){return PE(e,zEe)}function HEe(){return x0e||(x0e=O6(Yx))}function qEe(){return R0e||(R0e=iU(Nh))}function JEe(){return D0e||(D0e=iU(Yx))}function KEe(){return C0e||(C0e=iU($2))}function R4e(){return $ie===void 0&&($ie={name:void 0,type:\"object\",elementOptions:iU([Kie,Xie,Yie,Z2,{name:\"references\",type:\"list\",element:{name:\"references\",type:\"object\"},category:f.Projects},{name:\"files\",type:\"list\",element:{name:\"files\",type:\"string\"},category:f.File_Management},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},J2])}),$ie}function XEe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(vf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,Ll(e.fileName)===\"jsconfig.json\"?\"jsconfig.json\":\"tsconfig.json\")),Bd(o)){let s=Dr(o.elements,ma);if(s)return U2(e,s,t,!0,r)}return{}}return U2(e,o,t,!0,r)}function Wie(e,t){var r;return U2(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function U2(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var v;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(vf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(vf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,\"?\")),p(S.name)||r.push(vf(e,S.name,f.String_literal_with_double_quotes_expected));let A=aL(S.name)?void 0:$1(S.name),C=A&&Ii(A),R=C?(v=m?.elementOptions)==null?void 0:v.get(C):void 0,L=d(S.initializer,R);typeof C<\"u\"&&(i&&(E[C]=L),o?.onPropertySet(C,L,S,m,R))}return E}function l(h,m){if(!i){h.forEach(v=>d(v,m));return}return Cr(h.map(v=>d(v,m)),v=>v!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(vf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(vf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,oU(m))):r.push(vf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return da(h)&&IW(h,e)}}function oU(e){return e.type===\"listOrElement\"?`${oU(e.element)} or Array`:e.type===\"list\"?\"Array\":fo(e.type)?e.type:\"string\"}function YEe(e,t){if(e){if(q2(t))return!e.disallowNullOrUndefined;if(e.type===\"list\")return oo(t);if(e.type===\"listOrElement\")return oo(t)||YEe(e.element,t);let r=fo(e.type)?e.type:\"string\";return typeof t===r}return!1}function $Ee(e,t,r){var i,o,s;let l=od(r.useCaseSensitiveFileNames),d=nn(Cr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?C4e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ug),A=>RM(Qi(t,r.getCurrentDirectory()),Qi(A,r.getCurrentDirectory()),l)),p={configFilePath:Qi(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=F6(e.options,p),m=e.watchOptions&&N4e(e.watchOptions),v={compilerOptions:{...W6(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&W6(m),references:nn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:\"\",originalPath:void 0})),files:yn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:D4e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in Ul)if(!E.has(A)&&ct(Ul[A].dependencies,C=>E.has(C))){let C=Ul[A].computeValue(e.options),R=Ul[A].computeValue({});C!==R&&(S[A]=Ul[A].computeValue(e.options))}return R1(v.compilerOptions,W6(F6(S,p))),v}function W6(e){return{...bo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function D4e(e){if(yn(e)){if(yn(e)!==1)return e;if(e[0]!==J6)return e}}function C4e(e,t,r,i){if(!t)return Ug;let o=dF(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&iy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&iy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ug}function QEe(e){switch(e.type){case\"string\":case\"number\":case\"boolean\":case\"object\":return;case\"list\":case\"listOrElement\":return QEe(e.element);default:return e.type}}function aU(e,t){return hc(t,(r,i)=>{if(r===e)return i})}function F6(e,t){return ZEe(e,Xx(),t)}function N4e(e){return ZEe(e,HEe())}function ZEe(e,{optionsNameMap:t},r){let i=new Map,o=r&&od(r.useCaseSensitiveFileNames);for(let s in e)if(rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){x.assert(d.type!==\"listOrElement\");let p=QEe(d);p?d.type===\"list\"?i.set(s,l.map(h=>aU(h,p))):i.set(s,aU(l,p)):r&&d.isFilePath?i.set(s,RM(r.configFilePath,Qi(l,Ur(r.configFilePath)),o)):i.set(s,l)}}return i}function e0e(e,t){let r=t0e(e);return o();function i(s){return Array(s+1).join(\" \")}function o(){let s=[],l=i(2);return uU.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=Uie(d);p!==h?s.push(`${l}${d.name}: ${p}`):rs(H6,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function t0e(e){let t=Xw(e,H6);return F6(t)}function n0e(e,t,r){let i=t0e(e);return l();function o(d){return Array(d+1).join(\" \")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of Nh)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:\"\"}),m.push({value:`/* ${vo(A)} */`});for(let C of S){let R;i.has(C.name)?R=`\"${C.name}\": ${JSON.stringify(i.get(C.name))}${(h+=1)===i.size?\"\":\",\"}`:R=`// \"${C.name}\": ${JSON.stringify(Uie(C))},`,m.push({value:R,description:`/* ${C.description&&vo(C.description)||C.name} */`}),p=Math.max(R.length,p)}});let v=o(2),E=[];E.push(\"{\"),E.push(`${v}\"compilerOptions\": {`),E.push(`${v}${v}/* ${vo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push(\"\");for(let S of m){let{value:A,description:C=\"\"}=S;E.push(A&&`${v}${v}${A}${C&&o(p-A.length+2)+C}`)}if(t.length){E.push(`${v}},`),E.push(`${v}\"files\": [`);for(let S=0;S<t.length;S++)E.push(`${v}${v}${JSON.stringify(t[S])}${S===t.length-1?\"\":\",\"}`);E.push(`${v}]`)}else E.push(`${v}}`);return E.push(\"}\"),E.join(r)+r}}function sU(e,t){let r={},i=Xx().optionsNameMap;for(let o in e)rs(e,o)&&(r[o]=P4e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function P4e(e,t,r){if(e&&!q2(t)){if(e.type===\"list\"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);x.assert(e.type!==\"listOrElement\")}return t}function r0e(e,t,r,i,o,s,l,d,p){return o0e(e,void 0,t,r,i,p,o,s,l,d)}function H2(e,t,r,i,o,s,l,d,p){var h,m;(h=qn)==null||h.push(qn.Phase.Parse,\"parseJsonSourceFileConfigFileContent\",{path:e.fileName});let v=o0e(void 0,e,t,r,i,p,o,s,l,d);return(m=qn)==null||m.pop(),v}function lU(e,t){t&&Object.defineProperty(e,\"configFile\",{enumerable:!1,writable:!1,value:t})}function q2(e){return e==null}function i0e(e,t){return Ur(Qi(e,t))}function o0e(e,t,r,i,o={},s,l,d=[],p=[],h){x.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let m=[],v=l0e(e,t,r,i,l,d,m,h),{raw:E}=v,S=Xw(o,v.options||{}),A=s&&v.watchOptions?Xw(s,v.watchOptions):v.watchOptions||s;S.configFilePath=l&&ad(l);let C=L();t&&(t.configFileSpecs=C),lU(S,t);let R=Yo(l?i0e(l,i):i);return{options:S,watchOptions:A,fileNames:G(R),projectReferences:U(R),typeAcquisition:v.typeAcquisition||cU(),raw:E,errors:m,wildcardDirectories:B4e(C,R,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function L(){let $=oe(\"references\",ce=>typeof ce==\"object\",\"object\"),de=K(F(\"files\"));if(de){let ce=$===\"no-prop\"||oo($)&&$.length===0,Z=rs(E,\"extends\");if(de.length===0&&ce&&!Z)if(t){let pe=l||\"tsconfig.json\",Ae=f.The_files_list_in_config_file_0_is_empty,Oe=uL(t,\"files\",be=>be.initializer),_e=Bb(t,Oe,Ae,pe);m.push(_e)}else W(f.The_files_list_in_config_file_0_is_empty,l||\"tsconfig.json\")}let fe=K(F(\"include\")),q=F(\"exclude\"),H=!1,ee=K(q);if(q===\"no-prop\"&&E.compilerOptions){let ce=E.compilerOptions.outDir,Z=E.compilerOptions.declarationDir;(ce||Z)&&(ee=[ce,Z].filter(pe=>!!pe))}de===void 0&&fe===void 0&&(fe=[J6],H=!0);let le,Ee;return fe&&(le=b0e(fe,m,!0,t,\"include\")),ee&&(Ee=b0e(ee,m,!1,t,\"exclude\")),{filesSpecs:de,includeSpecs:fe,excludeSpecs:ee,validatedFilesSpec:Cr(de,fo),validatedIncludeSpecs:le,validatedExcludeSpecs:Ee,pathPatterns:void 0,isDefaultIncludeSpec:H}}function G($){let de=AN(C,$,S,r,p);return s0e(de,TN(E),d)&&m.push(a0e(C,l)),de}function U($){let de,fe=oe(\"references\",q=>typeof q==\"object\",\"object\");if(oo(fe))for(let q of fe)typeof q.path!=\"string\"?W(f.Compiler_option_0_requires_a_value_of_type_1,\"reference.path\",\"string\"):(de||(de=[])).push({path:Qi(q.path,$),originalPath:q.path,prepend:q.prepend,circular:q.circular});return de}function K($){return oo($)?$:void 0}function F($){return oe($,fo,\"string\")}function oe($,de,fe){if(rs(E,$)&&!q2(E[$]))if(oo(E[$])){let q=E[$];return!t&&!ji(q,de)&&m.push(bl(f.Compiler_option_0_requires_a_value_of_type_1,$,fe)),q}else return W(f.Compiler_option_0_requires_a_value_of_type_1,$,\"Array\"),\"not-array\";return\"no-prop\"}function W($,...de){t||m.push(bl($,...de))}}function M4e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function a0e({includeSpecs:e,excludeSpecs:t},r){return bl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||\"tsconfig.json\",JSON.stringify(e||[]),JSON.stringify(t||[]))}function s0e(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function TN(e){return!rs(e,\"files\")&&!rs(e,\"references\")}function z6(e,t,r,i,o){let s=i.length;return s0e(e,o)?i.push(a0e(r,t)):X5(i,l=>!M4e(l)),s!==i.length}function L4e(e){return!!e.options}function l0e(e,t,r,i,o,s,l,d){var p;i=ad(i);let h=Qi(o||\"\",i);if(s.includes(h))return l.push(bl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(\" -> \"))),{raw:e||Wie(t,l)};let m=e?k4e(e,r,i,o,l):O4e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};fo(m.extendedConfigPath)?v(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>v(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=bo(E.extendedSourceFiles.keys())),m.options=R1(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?R1(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function v(E,S){let A=w4e(t,S,r,s,l,d,E);if(A&&L4e(A)){let C=A.raw,R,L=G=>{C[G]&&(E[G]=nn(C[G],U=>Ou(U)?U:wr(R||(R=KD(Ur(S),i,od(r.useCaseSensitiveFileNames))),U)))};L(\"include\"),L(\"exclude\"),L(\"files\"),C.compileOnSave!==void 0&&(E.compileOnSave=C.compileOnSave),R1(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?R1({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function k4e(e,t,r,i,o){rs(e,\"excludes\")&&o.push(bl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=m0e(e.compilerOptions,r,o,i),l=_0e(e.typeAcquisition,r,o,i),d=F4e(e.watchOptions,r,o);e.compileOnSave=W4e(e,r,o);let p=e.extends||e.extends===\"\"?c0e(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function c0e(e,t,r,i,o,s,l,d){let p,h=i?i0e(i,r):r;if(fo(e))p=d0e(e,t,h,o,l,d);else if(oo(e)){p=[];for(let m=0;m<e.length;m++){let v=e[m];fo(v)?p=pn(p,d0e(v,t,h,o,l?.elements[m],d)):eT(Z2.element,e,r,o,s,l?.elements[m],d)}}else eT(Z2,e,r,o,s,l,d);return p}function O4e(e,t,r,i,o){let s=f0e(i),l,d,p,h,m=R4e(),v=XEe(e,o,{rootOptions:m,onPropertySet:E});return l||(l=cU(i)),h&&v&&v.compilerOptions===void 0&&o.push(vf(e,h[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,$1(h[0]))),{raw:v,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p};function E(S,A,C,R,L){if(L&&L!==Z2&&(A=eT(L,A,r,o,C,C.initializer,e)),R?.name)if(L){let G;R===Kie?G=s:R===Xie?G=d??(d={}):R===Yie?G=l??(l=cU(i)):x.fail(\"Unknown option\"),G[L.name]=A}else S&&R?.extraKeyDiagnostics&&(R.elementOptions?o.push(kie(S,R.extraKeyDiagnostics,void 0,C.name,e)):o.push(vf(e,C.name,R.extraKeyDiagnostics.unknownOptionDiagnostic,S)));else R===m&&(L===Z2?p=c0e(A,t,r,i,o,C,C.initializer,e):L||(S===\"excludes\"&&o.push(vf(e,C.name,f.Unknown_option_excludes_Did_you_mean_exclude)),Dr(uU,G=>G.name===S)&&(h=pn(h,C.name))))}}function d0e(e,t,r,i,o,s){if(e=ad(e),Ou(e)||Ui(e,\"./\")||Ui(e,\"../\")){let d=Qi(e,r);if(!t.fileExists(d)&&!Zs(d,\".json\")&&(d=`${d}.json`,!t.fileExists(d))){i.push(Bb(s,o,f.File_0_not_found,e));return}return d}let l=soe(e,wr(r,\"tsconfig.json\"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===\"\"?i.push(Bb(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,\"extends\")):i.push(Bb(s,o,f.File_0_not_found,e))}function w4e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:C_(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=wie(t,v=>r.readFile(v)),h.parseDiagnostics.length||(m=l0e(void 0,h,r,Ur(t),Ll(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let v of h.extendedSourceFiles)l.extendedSourceFiles.add(v);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function W4e(e,t,r){if(!rs(e,J2.name))return!1;let i=eT(J2,e.compileOnSave,t,r);return typeof i==\"boolean\"&&i}function u0e(e,t,r){let i=[];return{options:m0e(e,t,i,r),errors:i}}function p0e(e,t,r){let i=[];return{options:_0e(e,t,i,r),errors:i}}function f0e(e){return e&&Ll(e)===\"jsconfig.json\"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function m0e(e,t,r,i){let o=f0e(i);return Fie(qEe(),e,t,o,Q2,r),i&&(o.configFilePath=ad(i)),o}function cU(e){return{enable:!!e&&Ll(e)===\"jsconfig.json\",include:[],exclude:[]}}function _0e(e,t,r,i){let o=cU(i);return Fie(KEe(),e,t,o,Jie,r),o}function F4e(e,t,r){return Fie(JEe(),e,t,void 0,q6,r)}function Fie(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=eT(d,t[l],r,s):s.push(kie(l,o))}return i}}function Bb(e,t,r,...i){return e&&t?vf(e,t,r,...i):bl(r,...i)}function eT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(Bb(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(YEe(e,t)){let d=e.type;if(d===\"list\"&&oo(t))return g0e(e,t,r,i,o,s,l);if(d===\"listOrElement\")return oo(t)?g0e(e,t,r,i,o,s,l):eT(e.element,t,r,i,o,s,l);if(!fo(e.type))return h0e(e,t,i,s,l);let p=vI(e,t,i,s,l);return q2(p)?p:z4e(e,r,p)}else i.push(Bb(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,oU(e)))}function z4e(e,t,r){return e.isFilePath&&(r=Qi(r,t),r===\"\"&&(r=\".\")),r}function vI(e,t,r,i,o){var s;if(q2(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(Bb(o,i,...l))}function h0e(e,t,r,i,o){if(q2(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return vI(e,l,r,i,o);r.push(FEe(e,(d,...p)=>Bb(o,i,d,...p)))}function g0e(e,t,r,i,o,s,l){return Cr(nn(t,(d,p)=>eT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function AN(e,t,r,i,o=je){t=Yo(t);let s=od(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,E=GC(r,o),S=YL(r,E);if(h)for(let L of h){let G=Qi(L,t);l.set(s(G),G)}let A;if(m&&m.length>0)for(let L of i.readDirectory(t,Ff(S),v,m,void 0)){if(el(L,\".json\")){if(!A){let K=m.filter(oe=>Zs(oe,\".json\")),F=nn(lF(K,t,\"files\"),oe=>`^${oe}$`);A=F?F.map(oe=>iy(oe,i.useCaseSensitiveFileNames)):je}if(Tl(A,K=>K.test(L))!==-1){let K=s(L);!l.has(K)&&!p.has(K)&&p.set(K,L)}continue}if(V4e(L,l,d,E,s))continue;j4e(L,d,E,s);let G=s(L);!l.has(G)&&!d.has(G)&&d.set(G,L)}let C=bo(l.values()),R=bo(d.values());return C.concat(R,bo(p.values()))}function zie(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!yn(l)||!yn(d))return!1;r=Yo(r);let p=od(i);if(s){for(let h of s)if(p(Qi(h,r))===e)return!1}return y0e(e,d,i,o,r)}function v0e(e){let t=Ui(e,\"**/\")?0:e.indexOf(\"/**/\");return t===-1?!1:(Zs(e,\"/..\")?e.length:e.lastIndexOf(\"/../\"))>t}function B6(e,t,r,i){return y0e(e,Cr(t,o=>!v0e(o)),r,i)}function y0e(e,t,r,i,o){let s=BC(t,wr(Yo(i),o),\"exclude\"),l=s&&iy(s,r);return l?l.test(e)?!0:!TA(e)&&l.test(_c(e)):!1}function b0e(e,t,r,i,o){return e.filter(l=>{if(!fo(l))return!1;let d=Bie(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=fW(i,o,d);return Bb(i,p,l,d)}}function Bie(e,t){if(x.assert(typeof e==\"string\"),t&&N0e.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(v0e(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B4e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=BC(t,r,\"exclude\"),s=o&&new RegExp(o,i?\"\":\"i\"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=Yo(wr(r,h));if(s&&s.test(m))continue;let v=G4e(m,i);if(v){let{key:E,path:S,flags:A}=v,C=d.get(E),R=C!==void 0?l[C]:void 0;(R===void 0||R<A)&&(l[C!==void 0?C:S]=A,C===void 0&&d.set(E,S),A===1&&p.push(E))}}for(let h in l)if(rs(l,h))for(let m of p){let v=Gie(h,i);v!==m&&Bf(m,v,r,!i)&&delete l[h]}}return l}function Gie(e,t){return t?e:C_(e)}function G4e(e,t){let r=P0e.exec(e);if(r){let i=e.indexOf(\"?\"),o=e.indexOf(\"*\"),s=e.lastIndexOf(Os);return{key:Gie(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(RV(e.substring(e.lastIndexOf(Os)+1))){let i=fb(e);return{key:Gie(i,t),path:i,flags:1}}}function V4e(e,t,r,i,o){let s=an(i,l=>$l(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(el(e,l)&&(l!==\".ts\"||!el(e,\".d.ts\")))return!1;let d=o(Nb(e,l));if(t.has(d)||r.has(d)){if(l===\".d.ts\"&&(el(e,\".js\")||el(e,\".jsx\")))continue;return!0}}return!1}function j4e(e,t,r,i){let o=an(r,s=>$l(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(el(e,l))return;let d=i(Nb(e,l));t.delete(d)}}function Vie(e){let t={};for(let r in e)if(rs(e,r)){let i=nU(r);i!==void 0&&(t[r]=jie(e[r],i))}return t}function jie(e,t){if(e===void 0)return e;switch(t.type){case\"object\":return\"\";case\"string\":return\"\";case\"number\":return typeof e==\"number\"?e:\"\";case\"boolean\":return typeof e==\"boolean\"?e:\"\";case\"listOrElement\":if(!oo(e))return jie(e,t.element);case\"list\":let r=t.element;return oo(e)?Fi(e,i=>jie(i,r)):\"\";default:return hc(t.type,(i,o)=>{if(i===e)return o})}}function Uie(e){switch(e.type){case\"number\":return 1;case\"boolean\":return!0;case\"string\":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t==\"string\"?t:\"\"}`:\"\";case\"list\":return[];case\"listOrElement\":return Uie(e.element);case\"object\":return{};default:let r=qw(e.type.keys());return r!==void 0?r:x.fail(\"Expected 'option.type' to have entries.\")}}var J2,Hie,IN,qie,K2,G6,Yx,X2,Y2,dU,uU,Nh,pU,fU,mU,V6,j6,_U,hU,gU,U6,$2,E0e,S0e,H6,Q2,T0e,A0e,I0e,Jie,x0e,q6,R0e,D0e,C0e,Z2,Kie,Xie,Yie,$ie,J6,N0e,P0e,U4e=pt({\"src/compiler/commandLineParser.ts\"(){\"use strict\";wo(),J2={name:\"compileOnSave\",type:\"boolean\",defaultValueDescription:!1},Hie=new Map(Object.entries({preserve:1,\"react-native\":3,react:2,\"react-jsx\":4,\"react-jsxdev\":5})),IN=new Map(OD(Hie.entries(),([e,t])=>[\"\"+t,e])),qie=[[\"es5\",\"lib.es5.d.ts\"],[\"es6\",\"lib.es2015.d.ts\"],[\"es2015\",\"lib.es2015.d.ts\"],[\"es7\",\"lib.es2016.d.ts\"],[\"es2016\",\"lib.es2016.d.ts\"],[\"es2017\",\"lib.es2017.d.ts\"],[\"es2018\",\"lib.es2018.d.ts\"],[\"es2019\",\"lib.es2019.d.ts\"],[\"es2020\",\"lib.es2020.d.ts\"],[\"es2021\",\"lib.es2021.d.ts\"],[\"es2022\",\"lib.es2022.d.ts\"],[\"es2023\",\"lib.es2023.d.ts\"],[\"esnext\",\"lib.esnext.d.ts\"],[\"dom\",\"lib.dom.d.ts\"],[\"dom.iterable\",\"lib.dom.iterable.d.ts\"],[\"dom.asynciterable\",\"lib.dom.asynciterable.d.ts\"],[\"webworker\",\"lib.webworker.d.ts\"],[\"webworker.importscripts\",\"lib.webworker.importscripts.d.ts\"],[\"webworker.iterable\",\"lib.webworker.iterable.d.ts\"],[\"webworker.asynciterable\",\"lib.webworker.asynciterable.d.ts\"],[\"scripthost\",\"lib.scripthost.d.ts\"],[\"es2015.core\",\"lib.es2015.core.d.ts\"],[\"es2015.collection\",\"lib.es2015.collection.d.ts\"],[\"es2015.generator\",\"lib.es2015.generator.d.ts\"],[\"es2015.iterable\",\"lib.es2015.iterable.d.ts\"],[\"es2015.promise\",\"lib.es2015.promise.d.ts\"],[\"es2015.proxy\",\"lib.es2015.proxy.d.ts\"],[\"es2015.reflect\",\"lib.es2015.reflect.d.ts\"],[\"es2015.symbol\",\"lib.es2015.symbol.d.ts\"],[\"es2015.symbol.wellknown\",\"lib.es2015.symbol.wellknown.d.ts\"],[\"es2016.array.include\",\"lib.es2016.array.include.d.ts\"],[\"es2016.intl\",\"lib.es2016.intl.d.ts\"],[\"es2017.date\",\"lib.es2017.date.d.ts\"],[\"es2017.object\",\"lib.es2017.object.d.ts\"],[\"es2017.sharedmemory\",\"lib.es2017.sharedmemory.d.ts\"],[\"es2017.string\",\"lib.es2017.string.d.ts\"],[\"es2017.intl\",\"lib.es2017.intl.d.ts\"],[\"es2017.typedarrays\",\"lib.es2017.typedarrays.d.ts\"],[\"es2018.asyncgenerator\",\"lib.es2018.asyncgenerator.d.ts\"],[\"es2018.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"es2018.intl\",\"lib.es2018.intl.d.ts\"],[\"es2018.promise\",\"lib.es2018.promise.d.ts\"],[\"es2018.regexp\",\"lib.es2018.regexp.d.ts\"],[\"es2019.array\",\"lib.es2019.array.d.ts\"],[\"es2019.object\",\"lib.es2019.object.d.ts\"],[\"es2019.string\",\"lib.es2019.string.d.ts\"],[\"es2019.symbol\",\"lib.es2019.symbol.d.ts\"],[\"es2019.intl\",\"lib.es2019.intl.d.ts\"],[\"es2020.bigint\",\"lib.es2020.bigint.d.ts\"],[\"es2020.date\",\"lib.es2020.date.d.ts\"],[\"es2020.promise\",\"lib.es2020.promise.d.ts\"],[\"es2020.sharedmemory\",\"lib.es2020.sharedmemory.d.ts\"],[\"es2020.string\",\"lib.es2020.string.d.ts\"],[\"es2020.symbol.wellknown\",\"lib.es2020.symbol.wellknown.d.ts\"],[\"es2020.intl\",\"lib.es2020.intl.d.ts\"],[\"es2020.number\",\"lib.es2020.number.d.ts\"],[\"es2021.promise\",\"lib.es2021.promise.d.ts\"],[\"es2021.string\",\"lib.es2021.string.d.ts\"],[\"es2021.weakref\",\"lib.es2021.weakref.d.ts\"],[\"es2021.intl\",\"lib.es2021.intl.d.ts\"],[\"es2022.array\",\"lib.es2022.array.d.ts\"],[\"es2022.error\",\"lib.es2022.error.d.ts\"],[\"es2022.intl\",\"lib.es2022.intl.d.ts\"],[\"es2022.object\",\"lib.es2022.object.d.ts\"],[\"es2022.sharedmemory\",\"lib.es2022.sharedmemory.d.ts\"],[\"es2022.string\",\"lib.es2022.string.d.ts\"],[\"es2022.regexp\",\"lib.es2022.regexp.d.ts\"],[\"es2023.array\",\"lib.es2023.array.d.ts\"],[\"es2023.collection\",\"lib.es2023.collection.d.ts\"],[\"esnext.array\",\"lib.es2023.array.d.ts\"],[\"esnext.collection\",\"lib.esnext.collection.d.ts\"],[\"esnext.symbol\",\"lib.es2019.symbol.d.ts\"],[\"esnext.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"esnext.intl\",\"lib.esnext.intl.d.ts\"],[\"esnext.disposable\",\"lib.esnext.disposable.d.ts\"],[\"esnext.bigint\",\"lib.es2020.bigint.d.ts\"],[\"esnext.string\",\"lib.es2022.string.d.ts\"],[\"esnext.promise\",\"lib.esnext.promise.d.ts\"],[\"esnext.weakref\",\"lib.es2021.weakref.d.ts\"],[\"esnext.decorators\",\"lib.esnext.decorators.d.ts\"],[\"esnext.object\",\"lib.esnext.object.d.ts\"],[\"decorators\",\"lib.decorators.d.ts\"],[\"decorators.legacy\",\"lib.decorators.legacy.d.ts\"]],K2=qie.map(e=>e[0]),G6=new Map(qie),Yx=[{name:\"watchFile\",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:\"watchDirectory\",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:\"fallbackPolling\",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:\"synchronousWatchDirectory\",type:\"boolean\",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:\"excludeDirectories\",type:\"list\",element:{name:\"excludeDirectory\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:\"excludeFiles\",type:\"list\",element:{name:\"excludeFile\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],X2=[{name:\"help\",shortName:\"h\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:\"help\",shortName:\"?\",type:\"boolean\",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:\"watch\",shortName:\"w\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:\"preserveWatchOutput\",type:\"boolean\",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:\"listFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:\"explainFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:\"listEmittedFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:\"pretty\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:\"traceResolution\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:\"diagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"extendedDiagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"generateCpuProfile\",type:\"string\",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:\"profile.cpuprofile\"},{name:\"generateTrace\",type:\"string\",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:\"incremental\",shortName:\"i\",type:\"boolean\",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declaration\",shortName:\"d\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declarationMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:\"emitDeclarationOnly\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"sourceMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:\"inlineSourceMap\",type:\"boolean\",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"assumeChangesOnlyAffectDirectDependencies\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:\"locale\",type:\"string\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],Y2={name:\"target\",shortName:\"t\",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set([\"es3\"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},dU={name:\"module\",shortName:\"m\",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},uU=[{name:\"all\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:\"version\",shortName:\"v\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:\"init\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:\"project\",shortName:\"p\",type:\"string\",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:\"build\",type:\"boolean\",shortName:\"b\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:\"showConfig\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:\"listFilesOnly\",type:\"boolean\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Y2,dU,{name:\"lib\",type:\"list\",element:{name:\"lib\",type:G6,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:\"allowJs\",type:\"boolean\",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:\"checkJs\",type:\"boolean\",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:\"jsx\",type:Hie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:\"outFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:\"outDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:\"rootDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"composite\",type:\"boolean\",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:\"tsBuildInfoFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:\".tsbuildinfo\",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:\"removeComments\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:\"noEmit\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"importHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:\"importsNotUsedAsValues\",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:\"downlevelIteration\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:\"isolatedModules\",type:\"boolean\",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"verbatimModuleSyntax\",type:\"boolean\",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:\"strict\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:\"noImplicitAny\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictNullChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictFunctionTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictBindCallApply\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictPropertyInitialization\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noImplicitThis\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"useUnknownInCatchVariables\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"alwaysStrict\",type:\"boolean\",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noUnusedLocals\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:\"noUnusedParameters\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:\"exactOptionalPropertyTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:\"noImplicitReturns\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:\"noFallthroughCasesInSwitch\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:\"noUncheckedIndexedAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:\"noImplicitOverride\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:\"noPropertyAccessFromIndexSignature\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:\"moduleResolution\",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set([\"node\"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:\"baseUrl\",type:\"string\",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:\"paths\",type:\"object\",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:\"rootDirs\",type:\"list\",isTSConfigOnly:!0,element:{name:\"rootDirs\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"typeRoots\",type:\"list\",element:{name:\"typeRoots\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:\"types\",type:\"list\",element:{name:\"types\",type:\"string\"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:\"allowSyntheticDefaultImports\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:\"esModuleInterop\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:\"preserveSymlinks\",type:\"boolean\",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:\"allowUmdGlobalAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:\"moduleSuffixes\",type:\"list\",element:{name:\"suffix\",type:\"string\"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:\"allowImportingTsExtensions\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:\"resolvePackageJsonExports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"resolvePackageJsonImports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"customConditions\",type:\"list\",element:{name:\"condition\",type:\"string\"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:\"sourceRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:\"mapRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:\"inlineSources\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"experimentalDecorators\",type:\"boolean\",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:\"emitDecoratorMetadata\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:\"jsxFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:\"`React.createElement`\"},{name:\"jsxFragmentFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:\"React.Fragment\"},{name:\"jsxImportSource\",type:\"string\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:\"react\"},{name:\"resolveJsonModule\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:\"allowArbitraryExtensions\",type:\"boolean\",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:\"out\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:\"reactNamespace\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:\"`React`\"},{name:\"skipDefaultLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:\"charset\",type:\"string\",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:\"utf8\"},{name:\"emitBOM\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:\"newLine\",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:\"lf\"},{name:\"noErrorTruncation\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:\"noLib\",type:\"boolean\",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"noResolve\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"stripInternal\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:\"disableSizeLimit\",type:\"boolean\",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:\"disableSourceOfProjectReferenceRedirect\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:\"disableSolutionSearching\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:\"disableReferencedProjectLoad\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:\"noImplicitUseStrict\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:\"noEmitHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:\"noEmitOnError\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:\"preserveConstEnums\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:\"declarationDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:\"skipLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:\"allowUnusedLabels\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:\"allowUnreachableCode\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:\"suppressExcessPropertyErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:\"suppressImplicitAnyIndexErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:\"forceConsistentCasingInFileNames\",type:\"boolean\",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:\"maxNodeModuleJsDepth\",type:\"number\",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:\"noStrictGenericChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:\"useDefineForClassFields\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:\"preserveValueImports\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:\"keyofStringsOnly\",type:\"boolean\",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:\"plugins\",type:\"list\",isTSConfigOnly:!0,element:{name:\"plugin\",type:\"object\"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:\"moduleDetection\",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:\"ignoreDeprecations\",type:\"string\",defaultValueDescription:void 0}],Nh=[...X2,...uU],pU=Nh.filter(e=>!!e.affectsSemanticDiagnostics),fU=Nh.filter(e=>!!e.affectsEmit),mU=Nh.filter(e=>!!e.affectsDeclarationPath),V6=Nh.filter(e=>!!e.affectsModuleResolution),j6=Nh.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),_U=Nh.filter(e=>!!e.affectsProgramStructure),hU=Nh.filter(e=>rs(e,\"transpileOptionValue\")),gU=[{name:\"verbose\",shortName:\"v\",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:\"boolean\",defaultValueDescription:!1},{name:\"dry\",shortName:\"d\",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:\"boolean\",defaultValueDescription:!1},{name:\"force\",shortName:\"f\",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:\"boolean\",defaultValueDescription:!1},{name:\"clean\",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:\"boolean\",defaultValueDescription:!1}],U6=[...X2,...gU],$2=[{name:\"enable\",type:\"boolean\",defaultValueDescription:!1},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"}},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"}},{name:\"disableFilenameBasedTypeAcquisition\",type:\"boolean\",defaultValueDescription:!1}],S0e={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:VEe},H6={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Q2={alternateMode:S0e,getOptionsNameMap:Xx,optionDeclarations:Nh,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},A0e={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Xx},I0e={alternateMode:A0e,getOptionsNameMap:VEe,optionDeclarations:U6,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Jie={optionDeclarations:$2,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},q6={getOptionsNameMap:HEe,optionDeclarations:Yx,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},Z2={name:\"extends\",type:\"listOrElement\",element:{name:\"extends\",type:\"string\"},category:f.File_Management,disallowNullOrUndefined:!0},Kie={name:\"compilerOptions\",type:\"object\",elementOptions:qEe(),extraKeyDiagnostics:Q2},Xie={name:\"watchOptions\",type:\"object\",elementOptions:JEe(),extraKeyDiagnostics:q6},Yie={name:\"typeAcquisition\",type:\"object\",elementOptions:KEe(),extraKeyDiagnostics:Jie},J6=\"**/*\",N0e=/(^|\\/)\\*\\*\\/?$/,P0e=/^[^*?]*(?=\\/[^/]*[*?])/}});function to(e,t,...r){e.trace(SV(t,...r))}function cg(e,t){return!!e.traceResolution&&t.trace!==void 0}function yI(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name==\"string\"&&typeof i.version==\"string\"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Os.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function vU(e){return yI(void 0,e)}function M0e(e){if(e)return x.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function K6(e){let t=[];return e&1&&t.push(\"TypeScript\"),e&2&&t.push(\"JavaScript\"),e&4&&t.push(\"Declaration\"),e&8&&t.push(\"JSON\"),t.join(\", \")}function H4e(e){let t=[];return e&1&&t.push(...l2),e&2&&t.push(...Px),e&4&&t.push(...s2),e&8&&t.push(\".json\"),t}function Qie(e){if(e)return x.assert(mF(e.extension)),{fileName:e.path,packageId:e.packageId}}function L0e(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Ic(e)){let{resolvedFileName:h,originalPath:m}=w0e(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return k0e(t,r,i,o,s,l.resultFromCache,d,p)}function k0e(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:Zie(s.failedLookupLocations,r),affectingLocations:Zie(s.affectingLocations,i),resolutionDiagnostics:Zie(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=$x(s.failedLookupLocations,r),s.affectingLocations=$x(s.affectingLocations,i),s.resolutionDiagnostics=$x(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:xN(r),affectingLocations:xN(i),resolutionDiagnostics:xN(o),alternateResult:d}}function xN(e){return e.length?e:void 0}function $x(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Zie(e,t){return e?.length?t.length?[...e,...t]:e.slice():xN(t)}function O0e(e,t,r,i){if(!rs(e,t)){i.traceEnabled&&to(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&to(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?\"null\":typeof o);return}return o}function yU(e,t,r,i){let o=O0e(e,t,\"string\",i);if(o===void 0)return;if(!o){i.traceEnabled&&to(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=Yo(wr(r,o));return i.traceEnabled&&to(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function q4e(e,t,r){return yU(e,\"typings\",t,r)||yU(e,\"types\",t,r)}function J4e(e,t,r){return yU(e,\"tsconfig\",t,r)}function K4e(e,t,r){return yU(e,\"main\",t,r)}function X4e(e,t){let r=O0e(e,\"typesVersions\",\"object\",t);if(r!==void 0)return t.traceEnabled&&to(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y4e(e,t){let r=X4e(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)rs(r,l)&&!hM.tryParse(l)&&to(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=X6(r);if(!i){t.traceEnabled&&to(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,jm);return}let{version:o,paths:s}=i;if(typeof s!=\"object\"){t.traceEnabled&&to(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,\"object\",typeof s);return}return i}function X6(e){foe||(foe=new zf(bp));for(let t in e){if(!rs(e,t))continue;let r=hM.tryParse(t);if(r!==void 0&&r.test(foe))return{version:t,paths:e[t]}}}function RN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=Ur(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $4e(r)}function $4e(e){let t;return Vf(Yo(e),r=>{let i=wr(r,iSe);(t??(t=[])).push(i)}),t}function Q4e(e,t,r){let i=typeof r.useCaseSensitiveFileNames==\"function\"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Xh(e,t,!i)===0}function w0e(e,t,r){let i=d3e(e,t,r),o=Q4e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function W0e(e,t,r){let i=Zs(e,\"/node_modules/@types\")||Zs(e,\"/node_modules/@types/\")?tSe(t,r):t;return wr(e,i)}function eoe(e,t,r,i,o,s,l){x.assert(typeof e==\"string\",\"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.\");let d=cg(r,i);o&&(r=o.commandLine.options);let p=t?Ur(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Ic(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(to(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),to(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),F(h)),h;let m=RN(r,i);d&&(t===void 0?m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let v=[],E=[],S=toe(r);l!==void 0&&(S|=30);let A=zd(r);l===99&&3<=A&&A<=99&&(S|=32);let C=S&8?hy(r,l):[],R=[],L={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:v,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:C,requestContainingDirectory:p,reportDiagnostic:$=>void R.push($),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},G=oe(),U=!0;G||(G=W(),U=!1);let K;if(G){let{fileName:$,packageId:de}=G,fe=$,q;r.preserveSymlinks||({resolvedFileName:fe,originalPath:q}=w0e($,i,d)),K={primary:U,resolvedFileName:fe,originalPath:q,packageId:de,isExternalLibraryImport:Gb($)}}return h={resolvedTypeReferenceDirective:K,failedLookupLocations:xN(v),affectingLocations:xN(E),resolutionDiagnostics:xN(R)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Ic(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&F(h),h;function F($){var de;(de=$.resolvedTypeReferenceDirective)!=null&&de.resolvedFileName?$.resolvedTypeReferenceDirective.packageId?to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,$.resolvedTypeReferenceDirective.resolvedFileName,Qv($.resolvedTypeReferenceDirective.packageId),$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,$.resolvedTypeReferenceDirective.resolvedFileName,$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_not_resolved,e)}function oe(){if(m&&m.length)return d&&to(i,f.Resolving_with_primary_search_path_0,m.join(\", \")),ml(m,$=>{let de=W0e($,e,L),fe=gm($,i);if(!fe&&d&&to(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,$),r.typeRoots){let q=eR(4,de,!fe,L);if(q){let H=tk(q.path),ee=H?m0(H,!1,L):void 0;return Qie(yI(ee,q))}}return Qie(coe(4,de,!fe,L))});d&&to(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function W(){let $=t&&Ur(t);if($!==void 0){let de;if(!r.typeRoots||!Zs(t,lR))if(d&&to(i,f.Looking_up_in_node_modules_folder_initial_location_0,$),Ic(e)){let{path:fe}=j0e($,e);de=AU(4,fe,!1,L,!0)}else{let fe=$0e(4,e,$,L,void 0,void 0);de=fe&&fe.value}else d&&to(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Qie(de)}else d&&to(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function toe(e){let t=0;switch(zd(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function hy(e,t){let r=zd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?[\"import\"]:[\"require\"];return e.noDtsResolution||i.push(\"types\"),r!==100&&i.push(\"node\"),ro(i,e.customConditions)}function bU(e,t,r,i,o){let s=nk(o?.getPackageJsonInfoCache(),i,r);return Vf(t,l=>{if(Ll(l)!==\"node_modules\"){let d=wr(l,\"node_modules\"),p=wr(d,e);return m0(p,!1,s)}})}function Y6(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=RN(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=Yo(s),d=wr(o,l,\"package.json\");if(!(t.fileExists(d)&&kC(d,t).typings===null)){let h=Ll(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function $6(e){return!!e?.contents}function noe(e){return!!e&&!e.contents}function roe(e){var t;if(e===null||typeof e!=\"object\")return\"\"+e;if(oo(e))return`[${(t=e.map(i=>roe(i)))==null?void 0:t.join(\",\")}]`;let r=\"{\";for(let i in e)rs(e,i)&&(r+=`${i}: ${roe(e[i])}`);return r+\"}\"}function EU(e,t){return t.map(r=>roe(iF(e,r))).join(\"|\")+`|${e.pathsBasePath}`}function SU(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(v){return v?p(v.commandLine.options,!1):o}function l(v){return v?p(v.commandLine.options,!0):o}function d(v){e!==v&&(e?o=p(v,!0):r.set(v,o),e=v)}function p(v,E){let S=r.get(v);if(S)return S;let A=m(v);if(S=i.get(A),!S){if(e){let C=m(e);C===A?S=o:i.has(C)||i.set(C,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(v,S),S}function h(){let v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function m(v){let E=t.get(v);return E||t.set(v,E=EU(v,V6)),E}}function Z4e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(ks(d,e,t))}function o(d,p){(r||(r=new Map)).set(ks(d,e,t),p)}function s(){r=void 0}function l(){return r}}function F0e(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function e3e(e,t,r,i){let o=SU(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let v=ks(h,e,t);return F0e(o,m,v,()=>bI())}function p(h,m,v,E){var S,A;let C=ks(v,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(C))==null?void 0:A.get(h,m)}}function DN(e,t){return t===void 0?e:`${t}|${e}`}function bI(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=DN(o,s);return t.set(l,[o,s]),l}}function t3e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function n3e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function r3e(e,t,r,i,o){let s=SU(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(v){s.update(v)}function p(v,E,S,A){var C,R;return x.assert(!Ic(v)),(R=(C=s.getMapOfCacheRedirects(A))==null?void 0:C.get(DN(v,E)))==null?void 0:R.get(S)}function h(v,E,S){return x.assert(!Ic(v)),F0e(s,S,DN(v,E),m)}function m(){let v=new Map;return{get:E,set:S};function E(C){return v.get(ks(C,e,t))}function S(C,R){let L=ks(C,e,t);if(v.has(L))return;v.set(L,R);let G=i(R),U=G&&A(L,G),K=L;for(;K!==U;){let F=Ur(K);if(F===K||v.has(F))break;v.set(F,R),K=F}}function A(C,R){let L=ks(Ur(R),e,t),G=0,U=Math.min(C.length,L.length);for(;G<U&&C.charCodeAt(G)===L.charCodeAt(G);)G++;if(G===C.length&&(L.length===G||L[G]===Os))return C;let K=M_(C);if(G<K)return;let F=C.lastIndexOf(Os,G-1);if(F!==-1)return C.substr(0,Math.max(F,K))}}}function z0e(e,t,r,i,o,s){s??(s=new Map);let l=e3e(e,t,r,s),d=r3e(e,t,r,o,s);return i??(i=Z4e(e,t)),{...i,...l,...d,clear:p,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(v){l.update(v),d.update(v)}}function Qx(e,t,r,i,o){let s=z0e(e,t,r,i,t3e,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function Q6(e,t,r,i,o){return z0e(e,t,r,i,n3e,o)}function TU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Z6(e,t,r,i,o){return Zx(e,t,TU(r),i,o)}function B0e(e,t,r,i){let o=Ur(t);return r.getFromDirectoryCache(e,i,o,void 0)}function Zx(e,t,r,i,o,s,l){var d,p,h;let m=cg(r,i);s&&(r=s.commandLine.options),m&&(to(i,f.Resolving_module_0_from_1,e,t),s&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let v=Ur(t),E=o?.getFromDirectoryCache(e,l,v,s);if(E)m&&to(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,v);else{let S=r.moduleResolution;switch(S===void 0?(S=zd(r),m&&to(i,f.Module_resolution_kind_is_not_specified_using_0,O1[S])):m&&to(i,f.Explicitly_specified_module_resolution_kind_Colon_0,O1[S]),(d=Pd)==null||d.logStartResolveModule(e),S){case 3:E=s3e(e,t,r,i,o,s,l);break;case 99:E=l3e(e,t,r,i,o,s,l);break;case 2:E=aoe(e,t,r,i,o,s,l?hy(r,l):void 0);break;case 1:E=uoe(e,t,r,i,o,s);break;case 100:E=ooe(e,t,r,i,o,s,l?hy(r,l):void 0);break;default:return x.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=Pd)==null||p.logInfoEvent(`Module \"${e}\" resolved to \"${E.resolvedModule.resolvedFileName}\"`)),(h=Pd)==null||h.logStopResolveModule(E&&E.resolvedModule?\"\"+E.resolvedModule.resolvedFileName:\"null\"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(v,s).set(e,l,E),Ic(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(v,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?to(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,Qv(E.resolvedModule.packageId)):to(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):to(i,f.Module_name_0_was_not_resolved,e)),E}function G0e(e,t,r,i,o){let s=i3e(e,t,i,o);return s?s.value:Ic(t)?o3e(e,t,r,i,o):a3e(e,t,i,o)}function i3e(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!op(t)){i.traceEnabled&&(s&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),to(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=zW(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=fF(l)):void 0;return doe(e,t,p,l,h,r,!1,i)}}function o3e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&to(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=Yo(wr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=Yo(p);Zs(h,Os)||(h+=Os);let m=Ui(s,h)&&(d===void 0||d.length<h.length);o.traceEnabled&&to(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,m),m&&(d=h,l=p)}if(d){o.traceEnabled&&to(o.host,f.Longest_matching_prefix_for_0_is_1,s,d);let p=s.substr(d.length);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,d,s);let h=i(e,s,!gm(r,o.host),o);if(h)return h;o.traceEnabled&&to(o.host,f.Trying_other_entries_in_rootDirs);for(let m of o.compilerOptions.rootDirs){if(m===l)continue;let v=wr(Yo(m),p);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,m,v);let E=Ur(v),S=i(e,v,!gm(E,o.host),o);if(S)return S}o.traceEnabled&&to(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function a3e(e,t,r,i){let{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);let s=Yo(wr(o,t));return i.traceEnabled&&to(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!gm(Ur(s),i.host),i)}function ioe(e,t,r){let{resolvedModule:i,failedLookupLocations:o}=c3e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(\", \")}`);return i.resolvedFileName}function s3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function l3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function V0e(e,t,r,i,o,s,l,d,p){let h=Ur(r),m=d===99?32:0,v=i.noDtsResolution?3:7;return Mb(i)&&(v|=8),ek(e|m,t,h,i,o,s,v,!1,l,p)}function c3e(e,t,r){return ek(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function ooe(e,t,r,i,o,s,l){let d=Ur(t),p=r.noDtsResolution?3:7;return Mb(r)&&(p|=8),ek(toe(r),e,d,r,i,o,p,!1,s,l)}function aoe(e,t,r,i,o,s,l,d){let p;return d?p=8:r.noDtsResolution?(p=3,Mb(r)&&(p|=8)):p=Mb(r)?15:7,ek(l?30:0,e,Ur(t),r,i,o,p,!!d,s,l)}function soe(e,t,r){return ek(30,e,Ur(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function ek(e,t,r,i,o,s,l,d,p,h){var m,v,E,S,A;let C=cg(i,o),R=[],L=[],G=zd(i);h??(h=hy(i,G===100||G===2?void 0:e&32?99:1));let U=[],K={compilerOptions:i,host:o,traceEnabled:C,failedLookupLocations:R,affectingLocations:L,packageJsonInfoCache:s,features:e,conditions:h??je,requestContainingDirectory:r,reportDiagnostic:$=>void U.push($),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};C&&HA(G)&&to(o,f.Resolving_in_0_mode_with_conditions_1,e&32?\"ESM\":\"CJS\",K.conditions.map($=>`'${$}'`).join(\", \"));let F;if(G===2){let $=l&5,de=l&-6;F=$&&W($,K)||de&&W(de,K)||void 0}else F=W(l,K);let oe;if(K.resolvedPackageDirectory&&!d&&!Ic(t)){let $=F?.value&&l&5&&!K0e(5,F.value.resolved.extension);if((m=F?.value)!=null&&m.isExternalLibraryImport&&$&&e&8&&h?.includes(\"import\")){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let de={...K,features:K.features&-9,reportDiagnostic:Ca},fe=W(l&5,de);(v=fe?.value)!=null&&v.isExternalLibraryImport&&(oe=fe.value.resolved.path)}else if((!F?.value||$)&&G===2){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let de={...K.compilerOptions,moduleResolution:100},fe={...K,compilerOptions:de,features:30,conditions:hy(de),reportDiagnostic:Ca},q=W(l&5,fe);(E=q?.value)!=null&&E.isExternalLibraryImport&&(oe=q.value.resolved.path)}}return L0e(t,(S=F?.value)==null?void 0:S.resolved,(A=F?.value)==null?void 0:A.isExternalLibraryImport,R,L,U,K,s,oe);function W($,de){let q=G0e($,t,r,(H,ee,le,Ee)=>AU(H,ee,le,Ee,!0),de);if(q)return Rp({resolved:q,isExternalLibraryImport:Gb(q.path)});if(Ic(t)){let{path:H,parts:ee}=j0e(r,t),le=AU($,H,!1,de,!0);return le&&Rp({resolved:le,isExternalLibraryImport:To(ee,\"node_modules\")})}else{let H;if(e&2&&Ui(t,\"#\")&&(H=m3e($,t,r,de,s,p)),!H&&e&4&&(H=f3e($,t,r,de,s,p)),!H){if(t.includes(\":\")){C&&to(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,K6($));return}C&&to(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,K6($)),H=$0e($,t,r,de,s,p)}return $&4&&(H??(H=rSe(t,de))),H&&{value:H.value&&{resolved:H.value,isExternalLibraryImport:!0}}}}}function j0e(e,t){let r=wr(e,t),i=mc(r),o=Ns(i);return{path:o===\".\"||o===\"..\"?_c(Yo(r)):Yo(r),parts:i}}function d3e(e,t,r){if(!t.realpath)return e;let i=Yo(t.realpath(e));return r&&to(t,f.Resolving_real_path_for_0_result_1,e,i),i}function AU(e,t,r,i,o){if(i.traceEnabled&&to(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,K6(e)),!Jg(t)){if(!r){let l=Ur(t);gm(l,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=eR(e,t,r,i);if(s){let l=o?tk(s.path):void 0,d=l?m0(l,!1,i):void 0;return yI(d,s)}}if(r||gm(t,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return coe(e,t,r,i,o)}function Gb(e){return e.includes(q_)}function tk(e,t){let r=Yo(e),i=r.lastIndexOf(q_);if(i===-1)return;let o=i+q_.length,s=U0e(r,o,t);return r.charCodeAt(o)===64&&(s=U0e(r,s,t)),r.slice(0,s)}function U0e(e,t,r){let i=e.indexOf(Os,t+1);return i===-1?r?e.length:t:i}function loe(e,t,r,i){return vU(eR(e,t,r,i))}function eR(e,t,r,i){let o=H0e(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=q0e(t,e,\"\",r,i);if(s)return s}}function H0e(e,t,r,i){if(!Ll(t).includes(\".\"))return;let s=Yd(t);s===t&&(s=t.substring(0,t.lastIndexOf(\".\")));let l=t.substring(s.length);return i.traceEnabled&&to(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),q0e(s,e,l,r,i)}function IU(e,t,r,i){return e&1&&$l(t,l2)||e&4&&$l(t,s2)?xU(t,r,i)!==void 0?{path:t,ext:JW(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&el(t,\".json\")?xU(t,r,i)!==void 0?{path:t,ext:\".json\",resolvedUsingTsExtension:void 0}:void 0:H0e(e,t,r,i)}function q0e(e,t,r,i,o){if(!i){let l=Ur(e);l&&(i=!gm(l,o.host))}switch(r){case\".mjs\":case\".mts\":case\".d.mts\":return t&1&&s(\".mts\",r===\".mts\"||r===\".d.mts\")||t&4&&s(\".d.mts\",r===\".mts\"||r===\".d.mts\")||t&2&&s(\".mjs\")||void 0;case\".cjs\":case\".cts\":case\".d.cts\":return t&1&&s(\".cts\",r===\".cts\"||r===\".d.cts\")||t&4&&s(\".d.cts\",r===\".cts\"||r===\".d.cts\")||t&2&&s(\".cjs\")||void 0;case\".json\":return t&4&&s(\".d.json.ts\")||t&8&&s(\".json\")||void 0;case\".tsx\":case\".jsx\":return t&1&&(s(\".tsx\",r===\".tsx\")||s(\".ts\",r===\".tsx\"))||t&4&&s(\".d.ts\",r===\".tsx\")||t&2&&(s(\".jsx\")||s(\".js\"))||void 0;case\".ts\":case\".d.ts\":case\".js\":case\"\":return t&1&&(s(\".ts\",r===\".ts\"||r===\".d.ts\")||s(\".tsx\",r===\".ts\"||r===\".d.ts\"))||t&4&&s(\".d.ts\",r===\".ts\"||r===\".d.ts\")||t&2&&(s(\".js\")||s(\".jsx\"))||o.isConfigLookup&&s(\".json\")||void 0;default:return t&4&&!Yc(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=xU(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function xU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return J0e(e,t,r);let o=og(e)??\"\",s=o?QL(e,o):e;return an(r.compilerOptions.moduleSuffixes,l=>J0e(s+l+o,t,r))}function J0e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&to(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&to(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function coe(e,t,r,i,o=!0){let s=o?m0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&e4(s,i);return yI(s,DU(e,t,r,i,l,d))}function RU(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=toe(t),p=nk(i?.getPackageJsonInfoCache(),r,t);p.conditions=hy(t),p.requestContainingDirectory=e.packageDirectory;let h=DU(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,e4(e,p));if(s=pn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=NE([hy(t,99),hy(t,1)],mm);for(let v of m){let E={...p,failedLookupLocations:[],conditions:v,host:r},S=u3e(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=Kh(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function u3e(e,t,r,i){let o;if(oo(t))for(let l of t)s(l);else if(typeof t==\"object\"&&t!==null&&t4(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l==\"string\"&&Ui(l,\"./\"))if(l.includes(\"*\")&&r.host.readDirectory){if(l.indexOf(\"*\")!==l.lastIndexOf(\"*\"))return!1;r.host.readDirectory(e.packageDirectory,H4e(i),void 0,[pee(KA(l,\"**/*\"),\".*\")]).forEach(h=>{o=Kh(o,{path:h,ext:w1(h),resolvedUsingTsExtension:void 0})})}else{let h=mc(l).slice(2);if(h.includes(\"..\")||h.includes(\".\")||h.includes(\"node_modules\"))return!1;let m=wr(e.packageDirectory,l),v=Qi(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=IU(i,v,!1,r);if(E)return o=Kh(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l==\"object\"&&l!==null)return an(fh(l),h=>{if(h===\"default\"||To(r.conditions,h)||ok(r.conditions,h))return s(l[h]),!0})}}function nk(e,t,r){return{host:t,compilerOptions:r,traceEnabled:cg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:je,requestContainingDirectory:void 0,reportDiagnostic:Ca,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function rk(e,t){let r=mc(e);for(r.pop();r.length>0;){let i=m0(Vv(r),!1,t);if(i)return i;r.pop()}}function e4(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y4e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,v=wr(e,\"package.json\");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(E!==void 0){if($6(E))return m&&to(h,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&to(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}let S=gm(e,h);if(S&&h.fileExists(v)){let A=kC(v,h);m&&to(h,f.Found_package_json_at_0,v);let C={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,C),(d=r.affectingLocations)==null||d.push(v),C}else S&&m&&to(h,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(v)}function DU(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=J4e(o,t,i):l=e&4&&q4e(o,t,i)||e&7&&K4e(o,t,i)||void 0);let d=(E,S,A,C)=>{let R=IU(E,S,A,C);if(R)return vU(R);let L=E===4?5:E,G=C.features,U=C.candidateIsFromPackageJsonField;C.candidateIsFromPackageJsonField=!0,o?.type!==\"module\"&&(C.features&=-33);let K=AU(L,S,A,C,!1);return C.features=G,C.candidateIsFromPackageJsonField=U,K},p=l?!gm(Ur(l),i.host):void 0,h=r||!gm(t,i.host),m=wr(t,i.isConfigLookup?\"tsconfig\":\"index\");if(s&&(!l||Bf(t,l))){let E=Gf(t,l||m,!1);i.traceEnabled&&to(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,bp,E);let S=doe(e,E,t,s.paths,void 0,d,p||h,i);if(S)return M0e(S.value)}let v=l&&M0e(d(e,l,p,i));if(v)return v;if(!(i.features&32))return eR(e,m,h,i)}function K0e(e,t){return e&2&&(t===\".js\"||t===\".jsx\"||t===\".mjs\"||t===\".cjs\")||e&1&&(t===\".ts\"||t===\".tsx\"||t===\".mts\"||t===\".cts\")||e&4&&(t===\".d.ts\"||t===\".d.mts\"||t===\".d.cts\")||e&8&&t===\".json\"||!1}function ik(e){let t=e.indexOf(Os);return e[0]===\"@\"&&(t=e.indexOf(Os,t+1)),t===-1?{packageName:e,rest:\"\"}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function t4(e){return ji(fh(e),t=>Ui(t,\".\"))}function p3e(e){return!ct(fh(e),t=>Ui(t,\".\"))}function f3e(e,t,r,i,o,s){var l,d;let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!=\"string\")return;let m=mc(t),v=mc(h.contents.packageJsonContent.name);if(!ji(v,(R,L)=>m[L]===R))return;let E=m.slice(v.length),S=yn(E)?`.${Os}${E.join(Os)}`:\".\";if(sy(i.compilerOptions)&&!Gb(r))return CU(h,e,S,i,o,s);let A=e&5,C=e&-6;return CU(h,A,S,i,o,s)||CU(h,C,S,i,o,s)}function CU(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r===\".\"){let l;if(typeof e.contents.packageJsonContent.exports==\"string\"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports==\"object\"&&p3e(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:rs(e.contents.packageJsonContent.exports,\".\")&&(l=e.contents.packageJsonContent.exports[\".\"]),l)return Y0e(t,i,o,s,r,e,!1)(l,\"\",!1,\".\")}else if(t4(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!=\"object\")return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0);let l=X0e(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0)}}function m3e(e,t,r,i,o,s){var l,d;if(t===\"#\"||Ui(t,\"#/\"))return i.traceEnabled&&to(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),Rp(void 0);let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h)return i.traceEnabled&&to(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),Rp(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&to(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),Rp(void 0);let m=X0e(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&to(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),Rp(void 0))}function NU(e,t){let r=e.indexOf(\"*\"),i=t.indexOf(\"*\"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function X0e(e,t,r,i,o,s,l,d){let p=Y0e(e,t,r,i,o,l,d);if(!Zs(o,Os)&&!o.includes(\"*\")&&rs(s,o)){let v=s[o];return p(v,\"\",!1,o)}let h=uS(Cr(fh(s),v=>v.includes(\"*\")||Zs(v,\"/\")),NU);for(let v of h)if(t.features&16&&m(v,o)){let E=s[v],S=v.indexOf(\"*\"),A=o.substring(v.substring(0,S).length,o.length-(v.length-1-S));return p(E,A,!0,v)}else if(Zs(v,\"*\")&&Ui(o,v.substring(0,v.length-1))){let E=s[v],S=o.substring(v.length-1);return p(E,S,!0,v)}else if(Ui(o,v)){let E=s[v],S=o.substring(v.length);return p(E,S,!1,v)}function m(v,E){if(Zs(v,\"*\"))return!1;let S=v.indexOf(\"*\");return S===-1?!1:Ui(E,v.substring(0,S))&&Zs(E,v.substring(S+1))}}function Y0e(e,t,r,i,o,s,l){return d;function d(p,h,m,v){if(typeof p==\"string\"){if(!m&&h.length>0&&!Zs(p,\"/\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);if(!Ui(p,\"./\")){if(l&&!Ui(p,\"../\")&&!Ui(p,\"/\")&&!Ou(p)){let F=m?p.replace(/\\*/g,h):p+h;gy(t,f.Using_0_subpath_1_with_target_2,\"imports\",v,F),gy(t,f.Resolving_module_0_from_1,F,s.packageDirectory+\"/\");let oe=ek(t.features,F,s.packageDirectory+\"/\",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return Rp(oe.resolvedModule?{path:oe.resolvedModule.resolvedFileName,extension:oe.resolvedModule.extension,packageId:oe.resolvedModule.packageId,originalPath:oe.resolvedModule.originalPath,resolvedUsingTsExtension:oe.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0)}let R=(op(p)?mc(p).slice(1):mc(p)).slice(1);if(R.includes(\"..\")||R.includes(\".\")||R.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);let L=wr(s.packageDirectory,p),G=mc(h);if(G.includes(\"..\")||G.includes(\".\")||G.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);t.traceEnabled&&to(t.host,f.Using_0_subpath_1_with_target_2,l?\"imports\":\"exports\",v,m?p.replace(/\\*/g,h):p+h);let U=E(m?L.replace(/\\*/g,h):L+h),K=A(U,h,wr(s.packageDirectory,\"package.json\"),l);return K||Rp(yI(s,IU(e,U,!1,t)))}else if(typeof p==\"object\"&&p!==null)if(Array.isArray(p)){if(!yn(p))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);for(let C of p){let R=d(C,h,m,v);if(R)return R}}else{gy(t,f.Entering_conditional_exports);for(let C of fh(p))if(C===\"default\"||t.conditions.includes(C)||ok(t.conditions,C)){gy(t,f.Matched_0_condition_1,l?\"imports\":\"exports\",C);let R=p[C],L=d(R,h,m,v);if(L)return gy(t,f.Resolved_under_condition_0,C),gy(t,f.Exiting_conditional_exports),L;gy(t,f.Failed_to_resolve_under_condition_0,C)}else gy(t,f.Saw_non_matching_condition_0,C);gy(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&to(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),Rp(void 0);return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);function E(C){var R,L;return C===void 0?C:Qi(C,(L=(R=t.host).getCurrentDirectory)==null?void 0:L.call(R))}function S(C,R){return _c(wr(C,R))}function A(C,R,L,G){var U,K,F,oe;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!C.includes(\"/node_modules/\")&&(!t.compilerOptions.configFile||Bf(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!PU(t)))){let $=ev({useCaseSensitiveFileNames:()=>PU(t)}),de=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let fe=E(VN(t.compilerOptions,()=>[],((K=(U=t.host).getCurrentDirectory)==null?void 0:K.call(U))||\"\",$));de.push(fe)}else if(t.requestContainingDirectory){let fe=E(wr(t.requestContainingDirectory,\"index.ts\")),q=E(VN(t.compilerOptions,()=>[fe,E(L)],((oe=(F=t.host).getCurrentDirectory)==null?void 0:oe.call(F))||\"\",$));de.push(q);let H=_c(q);for(;H&&H.length>1;){let ee=mc(H);ee.pop();let le=Vv(ee);de.unshift(le),H=_c(le)}}de.length>1&&t.reportDiagnostic(bl(G?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,R===\"\"?\".\":R,L));for(let fe of de){let q=W(fe);for(let H of q)if(Bf(H,C,!PU(t))){let ee=C.slice(H.length+1),le=wr(fe,ee),Ee=[\".mjs\",\".cjs\",\".js\",\".json\",\".d.mts\",\".d.cts\",\".d.ts\"];for(let ce of Ee)if(el(le,ce)){let Z=une(le);for(let pe of Z){if(!K0e(e,pe))continue;let Ae=xM(le,pe,ce,!PU(t));if(t.host.fileExists(Ae))return Rp(yI(s,IU(e,Ae,!1,t)))}}}}}return;function W($){var de,fe;let q=t.compilerOptions.configFile?((fe=(de=t.host).getCurrentDirectory)==null?void 0:fe.call(de))||\"\":$,H=[];return t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.outDir))),H}}}}function ok(e,t){if(!e.includes(\"types\")||!Ui(t,\"types@\"))return!1;let r=hM.tryParse(t.substring(6));return r?r.test(bp):!1}function $0e(e,t,r,i,o,s){return Q0e(e,t,r,i,!1,o,s)}function _3e(e,t,r){return Q0e(4,e,t,r,!0,void 0,void 0)}function Q0e(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){gy(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,K6(p));let v=m(p);if(v)return v}if(h&&!o)return gy(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,K6(h)),m(h);function m(v){return Vf(ad(r),E=>{if(Ll(E)!==\"node_modules\"){let S=nSe(s,t,d,E,l,i);return S||Rp(Z0e(v,t,E,i,o,s,l))}})}}function Z0e(e,t,r,i,o,s,l){let d=wr(r,\"node_modules\"),p=gm(d,i.host);if(!p&&i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=eSe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=wr(d,\"@types\"),m=p;return p&&!gm(h,i.host)&&(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),eSe(4,tSe(t,i),h,m,i,s,l)}}function eSe(e,t,r,i,o,s,l){var d,p;let h=Yo(wr(r,t)),{packageName:m,rest:v}=ik(t),E=wr(r,m),S,A=m0(h,!i,o);if(v!==\"\"&&A&&(!(o.features&8)||!rs(((d=S=m0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??je,\"exports\"))){let L=eR(e,h,!i,o);if(L)return vU(L);let G=DU(e,h,!i,o,A.contents.packageJsonContent,e4(A,o));return yI(A,G)}let C=(L,G,U,K)=>{let F=(v||!(K.features&32))&&eR(L,G,U,K)||DU(L,G,U,K,A&&A.contents.packageJsonContent,A&&e4(A,K));return!F&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&K.features&32&&(F=eR(L,wr(G,\"index.js\"),U,K)),yI(A,F)};if(v!==\"\"&&(A=S??m0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=CU(A,e,wr(\".\",v),o,s,l))==null?void 0:p.value;let R=v!==\"\"&&A?e4(A,o):void 0;if(R){o.traceEnabled&&to(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,R.version,bp,v);let L=i&&gm(E,o.host),G=doe(e,v,E,R.paths,void 0,C,!L,o);if(G)return G.value}return C(e,h,!i,o)}function doe(e,t,r,i,o,s,l,d){o||(o=fF(i));let p=CV(o,t);if(p){let h=fo(p)?void 0:qZ(p,t),m=fo(p)?p:HZ(p);return d.traceEnabled&&to(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:an(i[m],E=>{let S=h?KA(E,h):E,A=Yo(wr(r,S));d.traceEnabled&&to(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let C=og(E);if(C!==void 0){let R=xU(A,l,d);if(R!==void 0)return vU({path:R,ext:C,resolvedUsingTsExtension:void 0})}return s(e,A,l||!gm(Ur(A),d.host),d)})}}}function tSe(e,t){let r=tR(e);return t.traceEnabled&&r!==e&&to(t.host,f.Scoped_package_detected_looking_in_0,r),r}function n4(e){return`@types/${tR(e)}`}function tR(e){if(Ui(e,\"@\")){let t=e.replace(Os,LU);if(t!==e)return t.slice(1)}return e}function CN(e){let t=jD(e,\"@types/\");return t!==e?ak(t):e}function ak(e){return e.includes(LU)?\"@\"+e.replace(LU,Os):e}function nSe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&to(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function uoe(e,t,r,i,o,s){let l=cg(r,i),d=[],p=[],h=Ur(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return L0e(e,E&&E.value,E?.value&&Gb(E.value.path),d,p,m,v,o);function S(A){let C=G0e(A,e,h,loe,v);if(C)return{value:C};if(Ic(e)){let R=Yo(wr(h,e));return Rp(loe(A,R,!1,v))}else{let R=Vf(h,L=>{let G=nSe(o,e,void 0,L,s,v);if(G)return G;let U=Yo(wr(L,e));return Rp(loe(A,U,!1,v))});if(R)return R;if(A&5){let L=_3e(e,h,v);return A&4&&(L??(L=rSe(e,v))),L}}}}function rSe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=W0e(r,e,t),o=gm(r,t.host);!o&&t.traceEnabled&&to(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=eR(4,i,!o,t);if(s){let d=tk(s.path),p=d?m0(d,!1,t):void 0;return Rp(yI(p,s))}let l=coe(4,i,!o,t);if(l)return Rp(l)}}function nR(e,t){return!!e.allowImportingTsExtensions||t&&Yc(t)}function poe(e,t,r,i,o,s){let l=cg(r,i);l&&to(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=Z0e(4,e,o,m,!1,void 0,void 0);return k0e(v,!0,d,p,h,m.resultFromCache,void 0)}function Rp(e){return e!==void 0?{value:e}:void 0}function gy(e,t,...r){e.traceEnabled&&to(e.host,t,...r)}function PU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames==\"boolean\"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var foe,iSe,MU,q_,LU,h3e=pt({\"src/compiler/moduleNameResolver.ts\"(){\"use strict\";wo(),iSe=wr(\"node_modules\",\"@types\"),MU=(e=>(e[e.None=0]=\"None\",e[e.Imports=2]=\"Imports\",e[e.SelfName=4]=\"SelfName\",e[e.Exports=8]=\"Exports\",e[e.ExportsPatternTrailers=16]=\"ExportsPatternTrailers\",e[e.AllFeatures=30]=\"AllFeatures\",e[e.Node16Default=30]=\"Node16Default\",e[e.NodeNextDefault=30]=\"NodeNextDefault\",e[e.BundlerDefault=30]=\"BundlerDefault\",e[e.EsmMode=32]=\"EsmMode\",e))(MU||{}),q_=\"/node_modules/\",LU=\"__\"}});function dg(e,t){return e.body&&!e.body.parent&&(Aa(e.body,e),oy(e.body,!1)),e.body?moe(e.body,t):1}function moe(e,t=new Map){let r=Fa(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=g3e(e,t);return t.set(r,i),i}function g3e(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(BE(e))return 2;break;case 272:case 271:if(!Wr(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=v3e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ao(e,o=>{let s=moe(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:x.assertNever(s)}}),i}case 267:return dg(e,t);case 80:if(e.flags&4096)return 0}return 1}function v3e(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Do(i)||n_(i)||Li(i)){let o=i.statements,s;for(let l of o)if(zM(l,r)){l.parent||(Aa(l,i),oy(l,!1));let d=moe(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function EI(e){return x.attachFlowNodeDebugInfo(e),e}function _oe(e,t){var r,i;Ls(\"beforeBind\"),(r=Pd)==null||r.logStartBindFile(\"\"+e.fileName),aSe(e,t),(i=Pd)==null||i.logStopBindFile(),Ls(\"afterBind\"),Sp(\"Bind\",\"beforeBind\",\"afterBind\")}function y3e(){var e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K,F,oe=!1,W=0,$,de,fe={flags:1},q={flags:1},H=V();return le;function ee(k,ge,...Xe){return vf(Nn(k)||e,k,ge,...Xe)}function le(k,ge){var Xe,Mt;e=k,t=ge,r=Wa(t),F=Ee(e,ge),de=new Set,W=0,$=wc.getSymbolConstructor(),x.attachFlowNodeDebugInfo(fe),x.attachFlowNodeDebugInfo(q),e.locals||((Xe=qn)==null||Xe.push(qn.Phase.Bind,\"bindSourceFile\",{path:e.path},!0),xe(e),(Mt=qn)==null||Mt.pop(),e.symbolCount=W,e.classifiableNames=de,Fc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,v=void 0,E=void 0,S=void 0,A=void 0,C=void 0,R=void 0,G=void 0,U=!1,oe=!1,K=0}function Ee(k,ge){return Fd(ge,\"alwaysStrict\")&&!k.isDeclarationFile?!0:!!k.externalModuleIndicator}function ce(k,ge){return W++,new $(k,ge)}function Z(k,ge,Xe){k.flags|=Xe,ge.symbol=k,k.declarations=Kh(k.declarations,ge),Xe&1955&&!k.exports&&(k.exports=Vo()),Xe&6240&&!k.members&&(k.members=Vo()),k.constEnumOnlyModule&&k.flags&304&&(k.constEnumOnlyModule=!1),Xe&111551&&IL(k,ge)}function pe(k){if(k.kind===277)return k.isExportEquals?\"export=\":\"default\";let ge=mo(k);if(ge){if(sd(k)){let Xe=Ef(ge);return Jm(k)?\"__global\":`\"${Xe}\"`}if(ge.kind===167){let Xe=ge.expression;if(Ap(Xe))return Hs(Xe.text);if(LW(Xe))return qo(Xe.operator)+Xe.operand.text;x.fail(\"Only computed properties with literal names have declaration names\")}if(Ci(ge)){let Xe=Oc(k);if(!Xe)return;let Mt=Xe.symbol;return wL(Mt,ge.escapedText)}return Em(ge)?JA(ge):Xm(ge)?AC(ge):void 0}switch(k.kind){case 176:return\"__constructor\";case 184:case 179:case 330:return\"__call\";case 185:case 180:return\"__new\";case 181:return\"__index\";case 278:return\"__export\";case 312:return\"export=\";case 226:if(hl(k)===2)return\"export=\";x.fail(\"Unknown binary declaration kind\");break;case 324:return dx(k)?\"__new\":\"__call\";case 169:return x.assert(k.parent.kind===324,\"Impossible parameter parent kind\",()=>`parent is: ${x.formatSyntaxKind(k.parent.kind)}, expected JSDocFunctionType`),\"arg\"+k.parent.parameters.indexOf(k)}}function Ae(k){return Ld(k)?is(k.name):Ii(x.checkDefined(pe(k)))}function Oe(k,ge,Xe,Mt,Vn,jr,Or){x.assert(Or||!ty(Xe));let zi=Wr(Xe,2048)||Ed(Xe)&&Xe.name.escapedText===\"default\",_a=Or?\"__computed\":zi&&ge?\"default\":pe(Xe),ha;if(_a===void 0)ha=ce(0,\"__missing\");else if(ha=k.get(_a),Mt&2885600&&de.add(_a),!ha)k.set(_a,ha=ce(0,_a)),jr&&(ha.isReplaceableByMethod=!0);else{if(jr&&!ha.isReplaceableByMethod)return ha;if(ha.flags&Vn){if(ha.isReplaceableByMethod)k.set(_a,ha=ce(0,_a));else if(!(Mt&3&&ha.flags&67108864)){Ld(Xe)&&Aa(Xe.name,Xe);let pl=ha.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Gc=!0;(ha.flags&384||Mt&384)&&(pl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Gc=!1);let nc=!1;yn(ha.declarations)&&(zi||ha.declarations&&ha.declarations.length&&Xe.kind===277&&!Xe.isExportEquals)&&(pl=f.A_module_cannot_have_multiple_default_exports,Gc=!1,nc=!0);let Xu=[];Xf(Xe)&&_l(Xe.type)&&Wr(Xe,32)&&ha.flags&2887656&&Xu.push(ee(Xe,f.Did_you_mean_0,`export type { ${Ii(Xe.name.escapedText)} }`));let _u=mo(Xe)||Xe;an(ha.declarations,(ja,em)=>{let tm=mo(ja)||ja,Ri=Gc?ee(tm,pl,Ae(ja)):ee(tm,pl);e.bindDiagnostics.push(nc?fa(Ri,ee(_u,em===0?f.Another_export_default_is_here:f.and_here)):Ri),nc&&Xu.push(ee(tm,f.The_first_export_default_is_here))});let Ay=Gc?ee(_u,pl,Ae(Xe)):ee(_u,pl);e.bindDiagnostics.push(fa(Ay,...Xu)),ha=ce(0,_a)}}}return Z(ha,Xe,Mt),ha.parent?x.assert(ha.parent===ge,\"Existing symbol parent should match new one\"):ha.parent=ge,ha}function _e(k,ge,Xe){let Mt=!!(gb(k)&32)||be(k);if(ge&2097152)return k.kind===281||k.kind===271&&Mt?Oe(o.symbol.exports,o.symbol,k,ge,Xe):(x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe));if(bf(k)&&x.assert(Jn(k)),!sd(k)&&(Mt||o.flags&128)){if(!L_(o)||!o.locals||Wr(k,2048)&&!pe(k))return Oe(o.symbol.exports,o.symbol,k,ge,Xe);let Vn=ge&111551?1048576:0,jr=Oe(o.locals,void 0,k,Vn,Xe);return jr.exportSymbol=Oe(o.symbol.exports,o.symbol,k,ge,Xe),k.localSymbol=jr,jr}else return x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}function be(k){if(k.parent&&Il(k)&&(k=k.parent),!bf(k))return!1;if(!C2(k)&&k.fullName)return!0;let ge=mo(k);return ge?!!(UL(ge.parent)&&Nl(ge.parent)||bd(ge.parent)&&gb(ge.parent)&32):!1}function Te(k,ge){let Xe=o,Mt=s,Vn=l;if(ge&1?(k.kind!==219&&(s=o),o=l=k,ge&32&&(o.locals=Vo(),jn(o))):ge&2&&(l=k,ge&32&&(l.locals=void 0)),ge&4){let jr=m,Or=v,zi=E,_a=S,ha=R,pl=G,Gc=U,nc=ge&16&&!Wr(k,1024)&&!k.asteriskToken&&!!RS(k)||k.kind===175;nc||(m=EI({flags:2}),ge&144&&(m.node=k)),S=nc||k.kind===176||Jn(k)&&(k.kind===262||k.kind===218)?gn():void 0,R=void 0,v=void 0,E=void 0,G=void 0,U=!1,Le(k),k.flags&=-5633,!(m.flags&1)&&ge&8&&gf(k.body)&&(k.flags|=512,U&&(k.flags|=1024),k.endFlowNode=m),k.kind===312&&(k.flags|=K,k.endFlowNode=m),S&&(Wt(S,m),m=Gn(S),(k.kind===176||k.kind===175||Jn(k)&&(k.kind===262||k.kind===218))&&(k.returnFlowNode=m)),nc||(m=jr),v=Or,E=zi,S=_a,R=ha,G=pl,U=Gc}else ge&64?(h=!1,Le(k),x.assertNotNode(k,Me),k.flags=h?k.flags|256:k.flags&-257):Le(k);o=Xe,s=Mt,l=Vn}function De(k){ft(k,ge=>ge.kind===262?xe(ge):void 0),ft(k,ge=>ge.kind!==262?xe(ge):void 0)}function ft(k,ge=xe){k!==void 0&&an(k,ge)}function he(k){Ao(k,xe,ft)}function Le(k){let ge=oe;if(oe=!1,Nt(k)){he(k),dt(k),oe=ge;return}switch(k.kind>=243&&k.kind<=259&&!t.allowUnreachableCode&&(k.flowNode=m),k.kind){case 247:ki(k);break;case 246:so(k);break;case 248:Jo(k);break;case 249:case 250:Ea(k);break;case 245:ln(k);break;case 253:case 257:Tn(k);break;case 252:case 251:tt(k);break;case 258:yt(k);break;case 255:re(k);break;case 269:Ce(k);break;case 296:et(k);break;case 244:z(k);break;case 256:_t(k);break;case 224:on(k);break;case 225:Qt(k);break;case 226:if(nv(k)){oe=ge,Zt(k);return}H(k);break;case 220:Re(k);break;case 227:St(k);break;case 260:te(k);break;case 211:case 212:ti(k);break;case 213:di(k);break;case 235:Cn(k);break;case 353:case 345:case 347:Ie(k);break;case 312:{De(k.statements),xe(k.endOfFileToken);break}case 241:case 268:De(k.statements);break;case 208:j(k);break;case 169:se(k);break;case 210:case 209:case 303:case 230:oe=ge;default:he(k);break}dt(k),oe=ge}function Ke(k){switch(k.kind){case 80:case 81:case 110:case 211:case 212:return st(k);case 213:return Ge(k);case 217:if(Ux(k))return!1;case 235:return Ke(k.expression);case 226:return Vt(k);case 224:return k.operator===54&&Ke(k.operand);case 221:return Ke(k.expression)}return!1}function Dt(k){return MC(k)||(Er(k)||dI(k)||uu(k))&&Dt(k.expression)||Zn(k)&&k.operatorToken.kind===28&&Dt(k.right)||Rs(k)&&(Ap(k.argumentExpression)||gl(k.argumentExpression))&&Dt(k.expression)||lc(k)&&Dt(k.left)}function st(k){return Dt(k)||yd(k)&&st(k.expression)}function Ge(k){if(k.arguments){for(let ge of k.arguments)if(st(ge))return!0}return!!(k.expression.kind===211&&st(k.expression.expression))}function ot(k,ge){return Wx(k)&&jt(k.expression)&&Ga(ge)}function Vt(k){switch(k.operatorToken.kind){case 64:case 76:case 77:case 78:return st(k.left);case 35:case 36:case 37:case 38:return jt(k.left)||jt(k.right)||ot(k.right,k.left)||ot(k.left,k.right)||sC(k.right)&&Ke(k.left)||sC(k.left)&&Ke(k.right);case 104:return jt(k.left);case 103:return Ke(k.right);case 28:return Ke(k.right)}return!1}function jt(k){switch(k.kind){case 217:return jt(k.expression);case 226:switch(k.operatorToken.kind){case 64:return jt(k.left);case 28:return jt(k.right)}}return st(k)}function gn(){return EI({flags:4,antecedents:void 0})}function On(){return EI({flags:8,antecedents:void 0})}function en(k,ge,Xe){return EI({flags:1024,target:k,antecedents:ge,antecedent:Xe})}function zt(k){k.flags|=k.flags&2048?4096:2048}function Wt(k,ge){!(ge.flags&1)&&!To(k.antecedents,ge)&&((k.antecedents||(k.antecedents=[])).push(ge),zt(ge))}function ei(k,ge,Xe){return ge.flags&1?ge:Xe?(Xe.kind===112&&k&64||Xe.kind===97&&k&32)&&!F8(Xe)&&!jG(Xe.parent)?fe:Ke(Xe)?(zt(ge),EI({flags:k,antecedent:ge,node:Xe})):ge:k&32?ge:fe}function Ki(k,ge,Xe,Mt){return zt(k),EI({flags:128,antecedent:k,switchStatement:ge,clauseStart:Xe,clauseEnd:Mt})}function gi(k,ge,Xe){zt(ge);let Mt=EI({flags:k,antecedent:ge,node:Xe});return R&&Wt(R,Mt),Mt}function io(k,ge){return zt(k),EI({flags:512,antecedent:k,node:ge})}function Gn(k){let ge=k.antecedents;return ge?ge.length===1?ge[0]:k:fe}function Nr(k){let ge=k.parent;switch(ge.kind){case 245:case 247:case 246:return ge.expression===k;case 248:case 227:return ge.condition===k}return!1}function cr(k){for(;;)if(k.kind===217)k=k.expression;else if(k.kind===224&&k.operator===54)k=k.operand;else return jL(k)}function Jt(k){return cV(Ka(k))}function Ue(k){for(;uu(k.parent)||fy(k.parent)&&k.parent.operator===54;)k=k.parent;return!Nr(k)&&!cr(k.parent)&&!(yd(k.parent)&&k.parent.expression===k)}function Rt(k,ge,Xe,Mt){let Vn=A,jr=C;A=Xe,C=Mt,k(ge),A=Vn,C=jr}function mn(k,ge,Xe){Rt(xe,k,ge,Xe),(!k||!Jt(k)&&!cr(k)&&!(yd(k)&&nC(k)))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function qr(k,ge,Xe){let Mt=v,Vn=E;v=ge,E=Xe,xe(k),v=Mt,E=Vn}function ni(k,ge){let Xe=G;for(;Xe&&k.parent.kind===256;)Xe.continueTarget=ge,Xe=Xe.next,k=k.parent;return ge}function ki(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();Wt(ge,m),m=ge,mn(k.expression,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),Wt(ge,m),m=Gn(Mt)}function so(k){let ge=On(),Xe=ni(k,gn()),Mt=gn();Wt(ge,m),m=ge,qr(k.statement,Mt,Xe),Wt(Xe,m),m=Gn(Xe),mn(k.expression,ge,Mt),m=Gn(Mt)}function Jo(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();xe(k.initializer),Wt(ge,m),m=ge,mn(k.condition,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),xe(k.incrementor),Wt(ge,m),m=Gn(Mt)}function Ea(k){let ge=ni(k,On()),Xe=gn();xe(k.expression),Wt(ge,m),m=ge,k.kind===250&&xe(k.awaitModifier),Wt(Xe,m),xe(k.initializer),k.initializer.kind!==261&&it(k.initializer),qr(k.statement,Xe,ge),Wt(ge,m),m=Gn(Xe)}function ln(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.expression,ge,Xe),m=Gn(ge),xe(k.thenStatement),Wt(Mt,m),m=Gn(Xe),xe(k.elseStatement),Wt(Mt,m),m=Gn(Mt)}function Tn(k){xe(k.expression),k.kind===253&&(U=!0,S&&Wt(S,m)),m=fe}function ke(k){for(let ge=G;ge;ge=ge.next)if(ge.name===k)return ge}function nt(k,ge,Xe){let Mt=k.kind===252?ge:Xe;Mt&&(Wt(Mt,m),m=fe)}function tt(k){if(xe(k.label),k.label){let ge=ke(k.label.escapedText);ge&&(ge.referenced=!0,nt(k,ge.breakTarget,ge.continueTarget))}else nt(k,v,E)}function yt(k){let ge=S,Xe=R,Mt=gn(),Vn=gn(),jr=gn();if(k.finallyBlock&&(S=Vn),Wt(jr,m),R=jr,xe(k.tryBlock),Wt(Mt,m),k.catchClause&&(m=Gn(jr),jr=gn(),Wt(jr,m),R=jr,xe(k.catchClause),Wt(Mt,m)),S=ge,R=Xe,k.finallyBlock){let Or=gn();Or.antecedents=ro(ro(Mt.antecedents,jr.antecedents),Vn.antecedents),m=Or,xe(k.finallyBlock),m.flags&1?m=fe:(S&&Vn.antecedents&&Wt(S,en(Or,Vn.antecedents,m)),R&&jr.antecedents&&Wt(R,en(Or,jr.antecedents,m)),m=Mt.antecedents?en(Or,Mt.antecedents,m):fe)}else m=Gn(Mt)}function re(k){let ge=gn();xe(k.expression);let Xe=v,Mt=L;v=ge,L=m,xe(k.caseBlock),Wt(ge,m);let Vn=an(k.caseBlock.clauses,jr=>jr.kind===297);k.possiblyExhaustive=!Vn&&!ge.antecedents,Vn||Wt(ge,Ki(L,k,0,0)),v=Xe,L=Mt,m=Gn(ge)}function Ce(k){let ge=k.clauses,Xe=k.parent.expression.kind===112||Ke(k.parent.expression),Mt=fe;for(let Vn=0;Vn<ge.length;Vn++){let jr=Vn;for(;!ge[Vn].statements.length&&Vn+1<ge.length;)Mt===fe&&(m=L),xe(ge[Vn]),Vn++;let Or=gn();Wt(Or,Xe?Ki(L,k.parent,jr,Vn+1):L),Wt(Or,Mt),m=Gn(Or);let zi=ge[Vn];xe(zi),Mt=m,!(m.flags&1)&&Vn!==ge.length-1&&t.noFallthroughCasesInSwitch&&(zi.fallthroughFlowNode=m)}}function et(k){let ge=m;m=L,xe(k.expression),m=ge,ft(k.statements)}function z(k){xe(k.expression),Je(k.expression)}function Je(k){if(k.kind===213){let ge=k;ge.expression.kind!==108&&MC(ge.expression)&&(m=io(m,ge))}}function _t(k){let ge=gn();G={next:G,name:k.label.escapedText,breakTarget:ge,continueTarget:void 0,referenced:!1},xe(k.label),xe(k.statement),!G.referenced&&!t.allowUnusedLabels&&tc(Kne(t),k.label,f.Unused_label),G=G.next,Wt(ge,m),m=Gn(ge)}function ze(k){k.kind===226&&k.operatorToken.kind===64?it(k.left):it(k)}function it(k){if(Dt(k))m=gi(16,m,k);else if(k.kind===209)for(let ge of k.elements)ge.kind===230?it(ge.expression):ze(ge);else if(k.kind===210)for(let ge of k.properties)ge.kind===303?ze(ge.initializer):ge.kind===304?it(ge.name):ge.kind===305&&it(ge.expression)}function Ct(k,ge,Xe){let Mt=gn();k.operatorToken.kind===56||k.operatorToken.kind===77?mn(k.left,Mt,Xe):mn(k.left,ge,Mt),m=Gn(Mt),xe(k.operatorToken),PC(k.operatorToken.kind)?(Rt(xe,k.right,ge,Xe),it(k.left),Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k))):mn(k.right,ge,Xe)}function on(k){if(k.operator===54){let ge=A;A=C,C=ge,he(k),C=A,A=ge}else he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Qt(k){he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Zt(k){oe?(oe=!1,xe(k.operatorToken),xe(k.right),oe=!0,xe(k.left)):(oe=!0,xe(k.left),oe=!1,xe(k.operatorToken),xe(k.right)),it(k.left)}function V(){return M6(k,ge,Xe,Mt,Vn,void 0);function k(Or,zi){if(zi){zi.stackIndex++,Aa(Or,i);let ha=F;tr(Or);let pl=i;i=Or,zi.skip=!1,zi.inStrictModeStack[zi.stackIndex]=ha,zi.parentStack[zi.stackIndex]=pl}else zi={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let _a=Or.operatorToken.kind;if(VL(_a)||PC(_a)){if(Ue(Or)){let ha=gn();Ct(Or,ha,ha),m=Gn(ha)}else Ct(Or,A,C);zi.skip=!0}return zi}function ge(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Xe(Or,zi,_a){zi.skip||xe(Or)}function Mt(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Vn(Or,zi){if(!zi.skip){let pl=Or.operatorToken.kind;if(tv(pl)&&!Sh(Or)&&(it(Or.left),pl===64&&Or.left.kind===212)){let Gc=Or.left;jt(Gc.expression)&&(m=gi(256,m,Or))}}let _a=zi.inStrictModeStack[zi.stackIndex],ha=zi.parentStack[zi.stackIndex];_a!==void 0&&(F=_a),ha!==void 0&&(i=ha),zi.skip=!1,zi.stackIndex--}function jr(Or){if(Or&&Zn(Or)&&!nv(Or))return Or;xe(Or)}}function Re(k){he(k),k.expression.kind===211&&it(k.expression)}function St(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.condition,ge,Xe),m=Gn(ge),xe(k.questionToken),xe(k.whenTrue),Wt(Mt,m),m=Gn(Xe),xe(k.colonToken),xe(k.whenFalse),Wt(Mt,m),m=Gn(Mt)}function M(k){let ge=vc(k)?void 0:k.name;if(ko(ge))for(let Xe of ge.elements)M(Xe);else m=gi(16,m,k)}function te(k){he(k),(k.initializer||H1(k.parent.parent))&&M(k)}function j(k){xe(k.dotDotDotToken),xe(k.propertyName),Pe(k.initializer),xe(k.name)}function se(k){ft(k.modifiers),xe(k.dotDotDotToken),xe(k.questionToken),xe(k.type),Pe(k.initializer),xe(k.name)}function Pe(k){if(!k)return;let ge=m;if(xe(k),ge===fe||ge===m)return;let Xe=gn();Wt(Xe,ge),Wt(Xe,m),m=Gn(Xe)}function Ie(k){xe(k.tagName),k.kind!==347&&k.fullName&&(Aa(k.fullName,k),oy(k.fullName,!1)),typeof k.comment!=\"string\"&&ft(k.comment)}function gt(k){he(k);let ge=xb(k);ge&&ge.kind!==174&&Z(ge.symbol,ge,32)}function bt(k,ge,Xe){Rt(xe,k,ge,Xe),(!yd(k)||nC(k))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function Ot(k){switch(k.kind){case 211:xe(k.questionDotToken),xe(k.name);break;case 212:xe(k.questionDotToken),xe(k.argumentExpression);break;case 213:xe(k.questionDotToken),ft(k.typeArguments),ft(k.arguments);break}}function dn(k,ge,Xe){let Mt=tC(k)?gn():void 0;bt(k.expression,Mt||ge,Xe),Mt&&(m=Gn(Mt)),Rt(Ot,k,ge,Xe),nC(k)&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function An(k){if(Ue(k)){let ge=gn();dn(k,ge,ge),m=Gn(ge)}else dn(k,A,C)}function Cn(k){yd(k)?An(k):he(k)}function ti(k){yd(k)?An(k):he(k)}function di(k){if(yd(k))An(k);else{let ge=Ka(k.expression);ge.kind===218||ge.kind===219?(ft(k.typeArguments),ft(k.arguments),xe(k.expression)):(he(k),k.expression.kind===108&&(m=io(m,k)))}if(k.expression.kind===211){let ge=k.expression;Me(ge.name)&&jt(ge.expression)&&K9(ge.name)&&(m=gi(256,m,k))}}function jn(k){d&&(d.nextContainer=k),d=k}function Ar(k,ge,Xe){switch(o.kind){case 267:return _e(k,ge,Xe);case 312:return _i(k,ge,Xe);case 231:case 263:return Zi(k,ge,Xe);case 266:return Oe(o.symbol.exports,o.symbol,k,ge,Xe);case 187:case 329:case 210:case 264:case 292:return Oe(o.symbol.members,o.symbol,k,ge,Xe);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}}function Zi(k,ge,Xe){return zo(k)?Oe(o.symbol.exports,o.symbol,k,ge,Xe):Oe(o.symbol.members,o.symbol,k,ge,Xe)}function _i(k,ge,Xe){return wl(e)?_e(k,ge,Xe):Oe(e.locals,void 0,k,ge,Xe)}function ui(k){let ge=Li(k)?k:Vr(k.body,n_);return!!ge&&ge.statements.some(Xe=>xl(Xe)||dl(Xe))}function Mr(k){k.flags&33554432&&!ui(k)?k.flags|=128:k.flags&=-129}function lo(k){if(Mr(k),sd(k))if(Wr(k,32)&&ls(k,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),_9(k))_n(k);else{let ge;if(k.name.kind===11){let{text:Mt}=k.name;ge=xx(Mt),ge===void 0&&ls(k.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Mt)}let Xe=Ar(k,512,110735);e.patternAmbientModules=pn(e.patternAmbientModules,ge&&!fo(ge)?{pattern:ge,symbol:Xe}:void 0)}else{let ge=_n(k);if(ge!==0){let{symbol:Xe}=k;Xe.constEnumOnlyModule=!(Xe.flags&304)&&ge===2&&Xe.constEnumOnlyModule!==!1}}}function _n(k){let ge=dg(k),Xe=ge!==0;return Ar(k,Xe?512:1024,Xe?110735:0),ge}function ms(k){let ge=ce(131072,pe(k));Z(ge,k,131072);let Xe=ce(2048,\"__type\");Z(Xe,k,2048),Xe.members=Vo(),Xe.members.set(ge.escapedName,ge)}function Dl(k){return vs(k,4096,\"__object\")}function _o(k){return vs(k,4096,\"__jsxAttributes\")}function Va(k,ge,Xe){return Ar(k,ge,Xe)}function vs(k,ge,Xe){let Mt=ce(ge,Xe);return ge&106508&&(Mt.parent=o.symbol),Z(Mt,k,ge),Mt}function Js(k,ge,Xe){switch(l.kind){case 267:_e(k,ge,Xe);break;case 312:if(sp(o)){_e(k,ge,Xe);break}default:x.assertNode(l,L_),l.locals||(l.locals=Vo(),jn(l)),Oe(l.locals,void 0,k,ge,Xe)}}function Fc(){if(!p)return;let k=o,ge=d,Xe=l,Mt=i,Vn=m;for(let jr of p){let Or=jr.parent.parent;o=S9(Or)||e,l=w_(Or)||e,m=EI({flags:2}),i=jr,xe(jr.typeExpression);let zi=mo(jr);if((C2(jr)||!jr.fullName)&&zi&&UL(zi.parent)){let _a=Nl(zi.parent);if(_a){Ks(e.symbol,zi.parent,_a,!!Rn(zi,pl=>Er(pl)&&pl.name.escapedText===\"prototype\"),!1);let ha=o;switch(TL(zi.parent)){case 1:case 2:sp(e)?o=e:o=void 0;break;case 4:o=zi.parent.expression;break;case 3:o=zi.parent.expression.name;break;case 5:o=_0(e,zi.parent.expression)?e:Er(zi.parent.expression)?zi.parent.expression.name:zi.parent.expression;break;case 0:return x.fail(\"Shouldn't have detected typedef or enum on non-assignment declaration\")}o&&_e(jr,524288,788968),o=ha}}else C2(jr)||!jr.fullName||jr.fullName.kind===80?(i=jr.parent,Js(jr,524288,788968)):xe(jr.fullName)}o=k,d=ge,l=Xe,i=Mt,m=Vn}function $i(k){if(!e.parseDiagnostics.length&&!(k.flags&33554432)&&!(k.flags&16777216)&&!rne(k)){let ge=vb(k);if(ge===void 0)return;F&&ge>=119&&ge<=127?e.bindDiagnostics.push(ee(k,Uo(k),is(k))):ge===135?wl(e)&&hW(k)?e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,is(k))):k.flags&65536&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k))):ge===127&&k.flags&16384&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k)))}}function Uo(k){return Oc(k)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function zc(k){k.escapedText===\"#constructor\"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ee(k,f.constructor_is_a_reserved_word,is(k))))}function ts(k){F&&Tu(k.left)&&tv(k.operatorToken.kind)&&Wl(k,k.left)}function ua(k){F&&k.variableDeclaration&&Wl(k,k.variableDeclaration.name)}function Us(k){if(F&&k.expression.kind===80){let ge=IS(e,k.expression);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function tf(k){return Me(k)&&(k.escapedText===\"eval\"||k.escapedText===\"arguments\")}function Wl(k,ge){if(ge&&ge.kind===80){let Xe=ge;if(tf(Xe)){let Mt=IS(e,ge);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,il(k),ar(Xe)))}}}function il(k){return Oc(k)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function zs(k){F&&Wl(k,k.name)}function ho(k){return Oc(k)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ut(k){if(r<2&&l.kind!==312&&l.kind!==267&&!U1(l)){let ge=IS(e,k);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,ho(k)))}}function ys(k){F&&Wl(k,k.operand)}function Pc(k){F&&(k.operator===46||k.operator===47)&&Wl(k,k.operand)}function Bc(k){F&&ls(k,f.with_statements_are_not_allowed_in_strict_mode)}function Ju(k){F&&Wa(t)>=2&&(ate(k.statement)||cl(k.statement))&&ls(k.label,f.A_label_is_not_allowed_here)}function ls(k,ge,...Xe){let Mt=W_(e,k.pos);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,ge,...Xe))}function tc(k,ge,Xe){ae(k,ge,ge,Xe)}function ae(k,ge,Xe,Mt){X(k,{pos:Tb(ge,e),end:Xe.end},Mt)}function X(k,ge,Xe){let Mt=Rc(e,ge.pos,ge.end-ge.pos,Xe);k?e.bindDiagnostics.push(Mt):e.bindSuggestionDiagnostics=pn(e.bindSuggestionDiagnostics,{...Mt,category:2})}function xe(k){if(!k)return;Aa(k,i),qn&&(k.tracingPath=e.path);let ge=F;if(tr(k),k.kind>165){let Xe=i;i=k;let Mt=kU(k);Mt===0?Le(k):Te(k,Mt),i=Xe}else{let Xe=i;k.kind===1&&(i=k),dt(k),i=Xe}F=ge}function dt(k){if(ap(k))if(Jn(k))for(let ge of k.jsDoc)xe(ge);else for(let ge of k.jsDoc)Aa(ge,k),oy(ge,!1)}function $t(k){if(!F)for(let ge of k){if(!Hf(ge))return;if(sr(ge)){F=!0;return}}}function sr(k){let ge=FE(e,k.expression);return ge==='\"use strict\"'||ge===\"'use strict'\"}function tr(k){switch(k.kind){case 80:if(k.flags&4096){let Or=k.parent;for(;Or&&!bf(Or);)Or=Or.parent;Js(Or,524288,788968);break}case 110:return m&&(lt(k)||i.kind===304)&&(k.flowNode=m),$i(k);case 166:m&&EW(k)&&(k.flowNode=m);break;case 236:case 108:k.flowNode=m;break;case 81:return zc(k);case 211:case 212:let ge=k;m&&Dt(ge)&&(ge.flowNode=m),Yte(ge)&&Ln(ge),Jn(ge)&&e.commonJsModuleIndicator&&Eh(ge)&&!r4(l,\"module\")&&Oe(e.locals,void 0,ge.expression,134217729,111550);break;case 226:switch(hl(k)){case 1:Du(k);break;case 2:pc(k);break;case 3:Oo(k.left,k);break;case 6:eo(k);break;case 4:Vd(k);break;case 5:let Or=k.left.expression;if(Jn(k)&&Me(Or)){let zi=r4(l,Or.escapedText);if(gW(zi?.valueDeclaration)){Vd(k);break}}Kl(k);break;case 0:break;default:x.fail(\"Unknown binary expression special property assignment kind\")}return ts(k);case 299:return ua(k);case 220:return Us(k);case 225:return ys(k);case 224:return Pc(k);case 254:return Bc(k);case 256:return Ju(k);case 197:h=!0;return;case 182:break;case 168:return Ye(k);case 169:return mg(k);case 260:return fd(k);case 208:return k.flowNode=m,fd(k);case 172:case 171:return Ir(k);case 303:case 304:return mu(k,4,0);case 306:return mu(k,8,900095);case 179:case 180:case 181:return Ar(k,131072,0);case 174:case 173:return mu(k,8192|(k.questionToken?16777216:0),qf(k)?0:103359);case 262:return Ku(k);case 176:return Ar(k,16384,0);case 177:return mu(k,32768,46015);case 178:return mu(k,65536,78783);case 184:case 324:case 330:case 185:return ms(k);case 187:case 329:case 200:return pi(k);case 339:return gt(k);case 210:return Dl(k);case 218:case 219:return Lh(k);case 213:switch(hl(k)){case 7:return Cl(k);case 8:return Ec(k);case 9:return Po(k);case 0:break;default:return x.fail(\"Unknown call expression assignment declaration kind\")}Jn(k)&&u_(k);break;case 231:case 263:return F=!0,X_(k);case 264:return Js(k,64,788872);case 265:return Js(k,524288,788968);case 266:return fg(k);case 267:return lo(k);case 292:return _o(k);case 291:return Va(k,4,0);case 271:case 274:case 276:case 281:return Ar(k,2097152,2097152);case 270:return bc(k);case 273:return Jl(k);case 278:return bs(k);case 277:return Qs(k);case 312:return $t(k.statements),hr();case 241:if(!U1(k.parent))return;case 268:return $t(k.statements);case 348:if(k.parent.kind===330)return mg(k);if(k.parent.kind!==329)break;case 355:let Vn=k,jr=Vn.isBracketed||Vn.typeExpression&&Vn.typeExpression.type.kind===323?16777220:4;return Ar(Vn,jr,0);case 353:case 345:case 347:return(p||(p=[])).push(k);case 346:return xe(k.typeExpression)}}function Ir(k){let ge=su(k),Xe=ge?98304:4,Mt=ge?13247:0;return mu(k,Xe|(k.questionToken?16777216:0),Mt)}function pi(k){return vs(k,2048,\"__type\")}function hr(){if(Mr(e),wl(e))No();else if(yf(e)){No();let k=e.symbol;Oe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=k}}function No(){vs(e,512,`\"${Yd(e.fileName)}\"`)}function Qs(k){if(!o.symbol||!o.symbol.exports)vs(k,111551,pe(k));else{let ge=px(k)?2097152:4,Xe=Oe(o.symbol.exports,o.symbol,k,ge,-1);k.isExportEquals&&IL(Xe,k)}}function bc(k){ct(k.modifiers)&&e.bindDiagnostics.push(ee(k,f.Modifiers_cannot_appear_here));let ge=Li(k.parent)?wl(k.parent)?k.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;ge?e.bindDiagnostics.push(ee(k,ge)):(e.symbol.globalExports=e.symbol.globalExports||Vo(),Oe(e.symbol.globalExports,e.symbol,k,2097152,2097152))}function bs(k){!o.symbol||!o.symbol.exports?vs(k,8388608,pe(k)):k.exportClause?j_(k.exportClause)&&(Aa(k.exportClause,k),Oe(o.symbol.exports,o.symbol,k.exportClause,2097152,2097152)):Oe(o.symbol.exports,o.symbol,k,8388608,0)}function Jl(k){k.name&&Ar(k,2097152,2097152)}function Za(k){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=k,e.externalModuleIndicator||No()),!0)}function Ec(k){if(!Za(k))return;let ge=nf(k.arguments[0],void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));ge&&Oe(ge.exports,ge,k,1048580,0)}function Du(k){if(!Za(k))return;let ge=nf(k.left.expression,void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));if(ge){let Mt=kL(k.right)&&(DS(k.left.expression)||Eh(k.left.expression))?2097152:1048580;Aa(k.left,k),Oe(ge.exports,ge,k.left,Mt,0)}}function pc(k){if(!Za(k))return;let ge=bL(k.right);if(fV(ge)||o===e&&_0(e,ge))return;if(ma(ge)&&ji(ge.properties,xu)){an(ge.properties,Nf);return}let Xe=px(k)?2097152:1049092,Mt=Oe(e.symbol.exports,e.symbol,k,Xe|67108864,0);IL(Mt,k)}function Nf(k){Oe(e.symbol.exports,e.symbol,k,69206016,0)}function Vd(k){if(x.assert(Jn(k)),Zn(k)&&Er(k.left)&&Ci(k.left.name)||Er(k)&&Ci(k.name))return;let Xe=lu(k,!1,!1);switch(Xe.kind){case 262:case 218:let Mt=Xe.symbol;if(Zn(Xe.parent)&&Xe.parent.operatorToken.kind===64){let Or=Xe.parent.left;UE(Or)&&ry(Or.expression)&&(Mt=tu(Or.expression.expression,s))}Mt&&Mt.valueDeclaration&&(Mt.members=Mt.members||Vo(),ty(k)?Se(k,Mt,Mt.members):Oe(Mt.members,Mt,k,67108868,0),Z(Mt,Mt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Vn=Xe.parent,jr=zo(Xe)?Vn.symbol.exports:Vn.symbol.members;ty(k)?Se(k,Vn.symbol,jr):Oe(jr,Vn.symbol,k,67108868,0,!0);break;case 312:if(ty(k))break;Xe.commonJsModuleIndicator?Oe(Xe.symbol.exports,Xe.symbol,k,1048580,0):Ar(k,1,111550);break;case 267:break;default:x.failBadSyntaxKind(Xe)}}function Se(k,ge,Xe){Oe(Xe,ge,k,4,0,!0,!0),At(k,ge)}function At(k,ge){ge&&(ge.assignmentDeclarationMembers||(ge.assignmentDeclarationMembers=new Map)).set(Fa(k),k)}function Ln(k){k.expression.kind===110?Vd(k):UE(k)&&k.parent.parent.kind===312&&(ry(k.expression)?Oo(k,k.parent):Bs(k))}function eo(k){Aa(k.left,k),Aa(k.right,k),Sc(k.left.expression,k.left,!1,!0)}function Po(k){let ge=tu(k.arguments[0].expression);ge&&ge.valueDeclaration&&Z(ge,ge.valueDeclaration,32),vl(k,ge,!0)}function Oo(k,ge){let Xe=k.expression,Mt=Xe.expression;Aa(Mt,Xe),Aa(Xe,k),Aa(k,ge),Sc(Mt,k,!0,!0)}function Cl(k){let ge=tu(k.arguments[0]),Xe=k.parent.parent.kind===312;ge=Ks(ge,k.arguments[0],Xe,!1,!1),vl(k,ge,!1)}function Kl(k){var ge;let Xe=tu(k.left.expression,l)||tu(k.left.expression,o);if(!Jn(k)&&!$te(Xe))return;let Mt=Tx(k.left);if(!(Me(Mt)&&((ge=r4(o,Mt.escapedText))==null?void 0:ge.flags)&2097152))if(Aa(k.left,k),Aa(k.right,k),Me(k.left.expression)&&o===e&&_0(e,k.left.expression))Du(k);else if(ty(k)){vs(k,67108868,\"__computed\");let Vn=Ks(Xe,k.left.expression,Nl(k.left),!1,!1);At(k,Vn)}else Bs(Fo(k.left,NS))}function Bs(k){x.assert(!Me(k)),Aa(k.expression,k),Sc(k.expression,k,!1,!1)}function Ks(k,ge,Xe,Mt,Vn){return k?.flags&2097152||(Xe&&!Mt&&(k=nf(ge,k,(zi,_a,ha)=>{if(_a)return Z(_a,zi,67110400),_a;{let pl=ha?ha.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Vo());return Oe(pl,ha,zi,67110400,110735)}})),Vn&&k&&k.valueDeclaration&&Z(k,k.valueDeclaration,32)),k}function vl(k,ge,Xe){if(!ge||!kp(ge))return;let Mt=Xe?ge.members||(ge.members=Vo()):ge.exports||(ge.exports=Vo()),Vn=0,jr=0;hs(LA(k))?(Vn=8192,jr=103359):Bo(k)&&CS(k)&&(ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"set\"})&&(Vn|=65540,jr|=78783),ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"get\"})&&(Vn|=32772,jr|=46015)),Vn===0&&(Vn=4,jr=0),Oe(Mt,ge,k,Vn|67108864,jr&-67108865)}function Nl(k){return Zn(k.parent)?fu(k.parent).parent.kind===312:k.parent.parent.kind===312}function Sc(k,ge,Xe,Mt){let Vn=tu(k,l)||tu(k,o),jr=Nl(ge);Vn=Ks(Vn,ge.expression,jr,Xe,Mt),vl(ge,Vn,Xe)}function kp(k){if(k.flags&1072)return!0;let ge=k.valueDeclaration;if(ge&&Bo(ge))return!!LA(ge);let Xe=ge?yi(ge)?ge.initializer:Zn(ge)?ge.right:Er(ge)&&Zn(ge.parent)?ge.parent.right:void 0:void 0;if(Xe=Xe&&bL(Xe),Xe){let Mt=ry(yi(ge)?ge.name:Zn(ge)?ge.left:ge);return!!Ib(Zn(Xe)&&(Xe.operatorToken.kind===57||Xe.operatorToken.kind===61)?Xe.right:Xe,Mt)}return!1}function fu(k){for(;Zn(k.parent);)k=k.parent;return k.parent}function tu(k,ge=o){if(Me(k))return r4(ge,k.escapedText);{let Xe=tu(k.expression);return Xe&&Xe.exports&&Xe.exports.get(tg(k))}}function nf(k,ge,Xe){if(_0(e,k))return e.symbol;if(Me(k))return Xe(k,tu(k),ge);{let Mt=nf(k.expression,ge,Xe),Vn=SL(k);return Ci(Vn)&&x.fail(\"unexpected PrivateIdentifier\"),Xe(Vn,Mt&&Mt.exports&&Mt.exports.get(tg(k)),Mt)}}function u_(k){!e.commonJsModuleIndicator&&Xd(k,!1)&&Za(k)}function X_(k){if(k.kind===263)Js(k,32,899503);else{let Vn=k.name?k.name.escapedText:\"__class\";vs(k,32,Vn),k.name&&de.add(k.name.escapedText)}let{symbol:ge}=k,Xe=ce(4194308,\"prototype\"),Mt=ge.exports.get(Xe.escapedName);Mt&&(k.name&&Aa(k.name,k),e.bindDiagnostics.push(ee(Mt.declarations[0],f.Duplicate_identifier_0,$s(Xe)))),ge.exports.set(Xe.escapedName,Xe),Xe.parent=ge}function fg(k){return BE(k)?Js(k,128,899967):Js(k,256,899327)}function fd(k){if(F&&Wl(k,k.name),!ko(k.name)){let ge=k.kind===260?k:k.parent.parent;Jn(k)&&jE(ge)&&!yb(k)&&!(gb(k)&32)?Ar(k,2097152,2097152):p9(k)?Js(k,2,111551):JE(k)?Ar(k,1,111551):Ar(k,1,111550)}}function mg(k){if(!(k.kind===348&&o.kind!==330)&&(F&&!(k.flags&33554432)&&Wl(k,k.name),ko(k.name)?vs(k,1,\"__\"+k.parent.parameters.indexOf(k)):Ar(k,1,111551),wu(k,k.parent))){let ge=k.parent.parent;Oe(ge.symbol.members,ge.symbol,k,4|(k.questionToken?16777216:0),0)}}function Ku(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),zs(k),F?(Ut(k),Js(k,16,110991)):Ar(k,16,110991)}function Lh(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&(k.flowNode=m),zs(k);let ge=k.name?k.name.escapedText:\"__function\";return vs(k,16,ge)}function mu(k,ge,Xe){return!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&pW(k)&&(k.flowNode=m),ty(k)?vs(k,ge,\"__computed\"):Ar(k,ge,Xe)}function Y(k){let ge=Rn(k,Xe=>Xe.parent&&lI(Xe.parent)&&Xe.parent.extendsType===Xe);return ge&&ge.parent}function Ye(k){if(Df(k.parent)){let ge=NW(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):Ar(k,262144,526824)}else if(k.parent.kind===195){let ge=Y(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):vs(k,262144,pe(k))}else Ar(k,262144,526824)}function xt(k){let ge=dg(k);return ge===1||ge===2&&n0(t)}function Nt(k){if(!(m.flags&1))return!1;if(m===fe&&(QM(k)&&k.kind!==242||k.kind===263||k.kind===267&&xt(k))&&(m=q,!t.allowUnreachableCode)){let Xe=Jne(t)&&!(k.flags&33554432)&&(!cl(k)||!!(Xg(k.declarationList)&7)||k.declarationList.declarations.some(Mt=>!!Mt.initializer));b3e(k,(Mt,Vn)=>ae(Xe,Mt,Vn,f.Unreachable_code_detected))}return!0}}function b3e(e,t){if(Di(e)&&oSe(e)&&Do(e.parent)){let{statements:r}=e.parent,i=NV(r,e);Z5(i,oSe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function oSe(e){return!Ql(e)&&!E3e(e)&&!kb(e)&&!(cl(e)&&!(Xg(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function E3e(e){switch(e.kind){case 264:case 265:return!0;case 267:return dg(e)!==1;case 266:return Wr(e,4096);default:return!1}}function _0(e,t){let r=0,i=mM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),DS(t)||Eh(t))return!0;if(Me(t)){let o=r4(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),lc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function kU(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(pW(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Lo(e.parent)||nl(e.parent)?0:34}return 0}function r4(e,t){var r,i,o,s;let l=(i=(r=Vr(e,L_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(qm(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var OU,wU,aSe,S3e=pt({\"src/compiler/binder.ts\"(){\"use strict\";wo(),mS(),OU=(e=>(e[e.NonInstantiated=0]=\"NonInstantiated\",e[e.Instantiated=1]=\"Instantiated\",e[e.ConstEnumOnly=2]=\"ConstEnumOnly\",e))(OU||{}),wU=(e=>(e[e.None=0]=\"None\",e[e.IsContainer=1]=\"IsContainer\",e[e.IsBlockScopedContainer=2]=\"IsBlockScopedContainer\",e[e.IsControlFlowContainer=4]=\"IsControlFlowContainer\",e[e.IsFunctionLike=8]=\"IsFunctionLike\",e[e.IsFunctionExpression=16]=\"IsFunctionExpression\",e[e.HasLocals=32]=\"HasLocals\",e[e.IsInterface=64]=\"IsInterface\",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]=\"IsObjectLiteralOrClassExpressionMethodOrAccessor\",e))(wU||{}),aSe=y3e()}});function hoe(e,t,r,i,o,s,l,d,p,h){return m;function m(v=()=>!0){let E=[],S=[];return{walkType:de=>{try{return A(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}},walkSymbol:de=>{try{return $(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}}};function A(de){if(!(!de||E[de.id]||(E[de.id]=de,$(de.symbol)))){if(de.flags&524288){let q=de,H=q.objectFlags;H&4&&C(de),H&32&&K(de),H&3&&oe(de),H&24&&W(q)}de.flags&262144&&R(de),de.flags&3145728&&L(de),de.flags&4194304&&G(de),de.flags&8388608&&U(de)}}function C(de){A(de.target),an(h(de),A)}function R(de){A(d(de))}function L(de){an(de.types,A)}function G(de){A(de.type)}function U(de){A(de.objectType),A(de.indexType),A(de.constraint)}function K(de){A(de.typeParameter),A(de.constraintType),A(de.templateType),A(de.modifiersType)}function F(de){let fe=t(de);fe&&A(fe.type),an(de.typeParameters,A);for(let q of de.parameters)$(q);A(e(de)),A(r(de))}function oe(de){W(de),an(de.typeParameters,A),an(i(de),A),A(de.thisType)}function W(de){let fe=o(de);for(let q of fe.indexInfos)A(q.keyType),A(q.type);for(let q of fe.callSignatures)F(q);for(let q of fe.constructSignatures)F(q);for(let q of fe.properties)$(q)}function $(de){if(!de)return!1;let fe=na(de);if(S[fe])return!1;if(S[fe]=de,!v(de))return!0;let q=s(de);return A(q),de.exports&&de.exports.forEach($),an(de.declarations,H=>{if(H.type&&H.type.kind===186){let ee=H.type,le=l(p(ee.exprName));$(le)}}),!1}}}var T3e=pt({\"src/compiler/symbolWalker.ts\"(){\"use strict\";wo()}});function sk({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Ic(o)?0:1:e===\"relative\"?0:e===\"non-relative\"?1:e===\"project-relative\"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return nR(r,i.fileName)?[3,2]:[2];if(zd(r)===1)return p===2?[2,1]:[1,2];let h=nR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:x.assertNever(p)}}};function l(d){if(o!==void 0){if(QE(o))return 2;if(Zs(o,\"/index\"))return 1}return nre(t,d??i.impliedNodeFormat,r,i)}}function A3e(e,t,r,i,o,s,l={}){let d=sSe(e,t,r,i,o,sk({},e,t,s),{},l);if(d!==s)return d}function i4(e,t,r,i,o,s={}){return sSe(e,t,r,i,o,sk({},e,t),{},s)}function I3e(e,t,r,i,o,s={}){let l=WU(t.fileName,i),d=mSe(l,r,i,o,s);return ml(d,p=>voe(p,l,t,i,e,o,!0,s.overrideImportMode))}function sSe(e,t,r,i,o,s,l,d={}){let p=WU(r,o),h=mSe(p,i,o,l,d);return ml(h,m=>voe(m,p,t,o,e,l,void 0,d.overrideImportMode))||uSe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function x3e(e,t,r,i,o={}){return lSe(e,t,r,i,o)[0]}function lSe(e,t,r,i,o={}){var s;let l=eW(e);if(!l)return je;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function cSe(e,t,r,i,o,s,l={}){return dSe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function dSe(e,t,r,i,o,s,l={},d){let p=!1,h=C3e(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,v,E,S]=lSe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!v)return{moduleSpecifiers:je,computedWithoutCache:p};p=!0,E||(E=_Se(WU(i.fileName,o),v.originalFileName,o));let A=R3e(E,r,i,o,s,l,d);return S?.set(i.path,v.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function R3e(e,t,r,i,o,s={},l){let d=WU(r.fileName,i),p=sk(o,t,r),h=an(e,C=>an(i.getFileIncludeReasons().get(ks(C.path,i.getCurrentDirectory(),d.getCanonicalFileName)),R=>{if(R.kind!==3||R.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Dae(r,R.index,t))return;let L=Ak(r,R.index).text;return p.relativePreference!==1||!op(L)?L:void 0}));if(h)return[h];let m=ct(e,C=>C.isInNodeModules),v,E,S,A;for(let C of e){let R=C.isInNodeModules?voe(C,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(v=pn(v,R),R&&C.isRedirect)return v;if(!R){let L=uSe(C.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,C.isRedirect);if(!L)continue;C.isRedirect?S=pn(S,L):RG(L)?Gb(L)?A=pn(A,L):E=pn(E,L):(l||!m||C.isInNodeModules)&&(A=pn(A,L))}}return E?.length?E:S?.length?S:v?.length?v:x.checkDefined(A)}function WU(e,t){e=Qi(e,t.getCurrentDirectory());let r=od(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Ur(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function uSe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:v,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),C=m&&M3e(m,e,v,S,A,r)||lk(ME(Gf(v,e,S)),A,r);if(!p&&!h&&!DF(r)||l===0)return d?void 0:C;let R=Qi(zW(r,i)||p,i.getCurrentDirectory()),L=ySe(e,R,S);if(!L)return d?void 0:C;let G=d?void 0:P3e(e,v,r,i,o),U=d||G===void 0?h&&hSe(L,h,A,i,r):void 0;if(d)return U;let K=G??(U===void 0&&p!==void 0?lk(L,A,r):U);if(!K)return C;if(l===1&&!op(K))return K;if(l===3&&!op(K)){let F=r.configFilePath?ks(Ur(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),oe=ks(e,F,S),W=Ui(E,F),$=Ui(oe,F);if(W&&!$||!W&&$)return K;let de=goe(i,Ur(oe)),fe=goe(i,v),q=!yx(i);return D3e(de,fe,q)?C:K}return bSe(K)||o4(C)<o4(K)?C:K}function D3e(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Xh(e,t,r)===0}function o4(e){let t=0;for(let r=Ui(e,\"./\")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function pSe(e,t){return zv(t.isRedirect,e.isRedirect)||$L(e.path,t.path)}function goe(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Vf(t,r=>e.fileExists(wr(r,\"package.json\"))?r:void 0)}function fSe(e,t,r,i,o){var s;let l=ev(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=ks(t,d,l),m=r.redirectTargetsMap.get(h)||je,E=[...p?[p]:je,t,...m].map(L=>Qi(L,d)),S=!ji(E,KC);if(!i){let L=an(E,G=>!(S&&KC(G))&&o(G,p===G));if(L)return L}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),C=Qi(t,d);return A&&Vf(Ur(C),L=>{let G=A.get(_c(ks(L,d,l)));if(G)return CG(e,L,l)?!1:an(E,U=>{if(!CG(U,L,l))return;let K=Gf(L,U,l);for(let F of G){let oe=jv(F,K),W=o(oe,U===p);if(S=!0,W)return W}})})||(i?an(E,L=>S&&KC(L)?void 0:o(L,L===p)):void 0)}function mSe(e,t,r,i,o={}){var s;let l=ks(e.importingSourceFileName,r.getCurrentDirectory(),ev(r)),d=ks(t,r.getCurrentDirectory(),ev(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=_Se(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function _Se(e,t,r){let i=new Map,o=!1;fSe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=Gb(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=_c(l),p;i.forEach(({path:m,isRedirect:v,isInNodeModules:E},S)=>{Ui(m,d)&&((p||(p=[])).push({path:S,isRedirect:v,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(pSe),s.push(...p));let h=Ur(l);if(h===l)break;l=h}if(i.size){let l=bo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(pSe),s.push(...l)}return s}function C3e(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>m9(l)&&(!zE(l)||!Ic(Ef(l.name))));if(i)return i.name.text;let s=Fi(e.declarations,l=>{var d,p,h,m;if(!Il(l))return;let v=C(l);if(!((d=v?.parent)!=null&&d.parent&&n_(v.parent)&&sd(v.parent.parent)&&Li(v.parent.parent.parent)))return;let E=(m=(h=(p=v.parent.parent.symbol.exports)==null?void 0:p.get(\"export=\"))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return v.parent.parent;function C(R){for(;R.flags&8;)R=R.parent;return R}})[0];if(s)return s.name.text}function hSe(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=Yo(d),h=p.indexOf(\"*\"),m=r.map(v=>({ending:v,value:lk(e,[v],o)}));if(og(p)&&m.push({ending:void 0,value:e}),h!==-1){let v=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=v.length+E.length&&Ui(A,v)&&Zs(A,E)&&s({ending:S,value:A})){let C=A.substring(v.length,A.length-E.length);if(!op(C))return KA(l,C)}}else if(ct(m,v=>v.ending!==0&&p===v.value)||ct(m,v=>v.ending===0&&p===v.value&&s(v)))return l}function s({ending:l,value:d}){return l!==0||d===lk(e,[l],o,i)}}function a4(e,t,r,i,o,s,l,d,p){if(typeof s==\"string\"){let h=!yx(t),m=()=>t.getCommonSourceDirectory(),v=p&&fH(r,e,h,m),E=p&&pH(r,e,h,m),S=Qi(wr(i,s),void 0),A=qA(r)?Yd(r)+boe(r,e):void 0;switch(d){case 0:if(A&&Xh(A,S,h)===0||Xh(r,S,h)===0||v&&Xh(v,S,h)===0||E&&Xh(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&Bf(S,A,h)){let G=Gf(S,A,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(Bf(S,r,h)){let G=Gf(S,r,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(v&&Bf(S,v,h)){let G=Gf(S,v,!1);return{moduleFileToTry:wr(o,G)}}if(E&&Bf(S,E,h)){let G=Gf(S,E,!1);return{moduleFileToTry:wr(o,G)}}break;case 2:let C=S.indexOf(\"*\"),R=S.slice(0,C),L=S.slice(C+1);if(A&&Ui(A,R,h)&&Zs(A,L,h)){let G=A.slice(R.length,A.length-L.length);return{moduleFileToTry:KA(o,G)}}if(Ui(r,R,h)&&Zs(r,L,h)){let G=r.slice(R.length,r.length-L.length);return{moduleFileToTry:KA(o,G)}}if(v&&Ui(v,R,h)&&Zs(v,L,h)){let G=v.slice(R.length,v.length-L.length);return{moduleFileToTry:KA(o,G)}}if(E&&Ui(E,R,h)&&Zs(E,L,h)){let G=E.slice(R.length,E.length-L.length);return{moduleFileToTry:KA(o,G)}}break}}else{if(Array.isArray(s))return an(s,h=>a4(e,t,r,i,o,h,l,d,p));if(typeof s==\"object\"&&s!==null){for(let h of fh(s))if(h===\"default\"||l.indexOf(h)>=0||ok(l,h)){let m=s[h],v=a4(e,t,r,i,o,m,l,d,p);if(v)return v}}}}function N3e(e,t,r,i,o,s,l){return typeof s==\"object\"&&s!==null&&!Array.isArray(s)&&t4(s)?an(fh(s),d=>{let p=Qi(wr(o,d),void 0),h=Zs(d,\"/\")?1:d.includes(\"*\")?2:0;return a4(e,t,r,i,p,s[d],l,h,!1)}):a4(e,t,r,i,o,s,l,0,!1)}function P3e(e,t,r,i,o){var s,l,d;if(!i.readFile||!DF(r))return;let p=goe(i,t);if(!p)return;let h=wr(p,\"package.json\"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(noe(m)||!i.fileExists(h))return;let v=m?.contents.packageJsonContent||KW(i.readFile(h)),E=v?.imports;if(!E)return;let S=hy(r,o);return(d=an(fh(E),A=>{if(!Ui(A,\"#\")||A===\"#\"||Ui(A,\"#/\"))return;let C=Zs(A,\"/\")?1:A.includes(\"*\")?2:0;return a4(r,i,e,p,A,E[A],S,C,!0)}))==null?void 0:d.moduleFileToTry}function M3e(e,t,r,i,o,s){let l=gSe(t,e,i);if(l===void 0)return;let d=gSe(r,e,i),p=ta(d,m=>nn(l,v=>ME(Gf(m,v,i)))),h=cB(p,$L);if(h)return lk(h,o,s)}function voe({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=yF(e);if(!m)return;let E=sk(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let K=m.packageRootIndex,F;for(;;){let{moduleFileToTry:oe,packageRootPath:W,blockedByExports:$,verbatimFromExports:de}=U(K);if(zd(l)!==1){if($)return;if(de)return oe}if(W){S=W,A=!0;break}if(F||(F=oe),K=e.indexOf(Os,K+1),K===-1){S=lk(F,E,l,s);break}}}if(t&&!A)return;let C=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),R=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(Ui(i,R)||C&&Ui(r(C),R)))return;let L=S.substring(m.topLevelPackageNameIndex+1),G=CN(L);return zd(l)===1&&G===L?void 0:G;function U(K){var F,oe;let W=e.substring(0,K),$=wr(W,\"package.json\"),de=e,fe=!1,q=(oe=(F=s.getPackageJsonInfoCache)==null?void 0:F.call(s))==null?void 0:oe.getPackageJsonInfo($);if($6(q)||q===void 0&&s.fileExists($)){let H=q?.contents.packageJsonContent||KW(s.readFile($)),ee=h||o.impliedNodeFormat;if(RF(l)){let ce=W.substring(m.topLevelPackageNameIndex+1),Z=CN(ce),pe=hy(l,ee),Ae=H?.exports?N3e(l,s,e,W,Z,H.exports,pe):void 0;if(Ae)return{...Ae,verbatimFromExports:!0};if(H?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let le=H?.typesVersions?X6(H.typesVersions):void 0;if(le){let ce=e.slice(W.length+1),Z=hSe(ce,le.paths,E,s,l);Z===void 0?fe=!0:de=wr(W,Z)}let Ee=H?.typings||H?.types||H?.main||\"index.js\";if(fo(Ee)&&!(fe&&CV(fF(le.paths),Ee))){let ce=ks(Ee,W,r),Z=r(de);if(Yd(ce)===Yd(Z))return{packageRootPath:W,moduleFileToTry:de};if(H?.type!==\"module\"&&!$l(Z,c2)&&Ui(Z,ce)&&Ur(Z)===fb(ce)&&Yd(Ll(Z))===\"index\")return{packageRootPath:W,moduleFileToTry:de}}}else{let H=r(de.substring(m.packageRootIndex+1));if(H===\"index.d.ts\"||H===\"index.js\"||H===\"index.ts\"||H===\"index.tsx\")return{moduleFileToTry:de,packageRootPath:W}}return{moduleFileToTry:de}}}function L3e(e,t){if(!e.fileExists)return;let r=Ff(GC({allowJs:!0},[{extension:\"node\",isMixedContent:!1},{extension:\"json\",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function gSe(e,t,r){return Fi(t,i=>{let o=ySe(e,i,r);return o!==void 0&&bSe(o)?void 0:o})}function lk(e,t,r,i){if($l(e,[\".json\",\".mjs\",\".cjs\"]))return e;let o=Yd(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if($l(e,[\".mts\",\".cts\"])&&l!==-1&&l<s)return e;if($l(e,[\".d.mts\",\".mts\",\".d.cts\",\".cts\"]))return o+yoe(e,r);if(!$l(e,[\".d.ts\"])&&$l(e,[\".ts\"])&&e.includes(\".d.\"))return vSe(e);switch(t[0]){case 0:let d=C1(o,\"/index\");return i&&d!==o&&L3e(i,d)?o:d;case 1:return o;case 2:return o+yoe(e,r);case 3:if(Yc(e)){let p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+yoe(e,r)}return e;default:return x.assertNever(t[0])}}function vSe(e){let t=Ll(e);if(!Zs(e,\".ts\")||!t.includes(\".d.\")||$l(t,[\".d.ts\"]))return;let r=QL(e,\".ts\"),i=r.substring(r.lastIndexOf(\".\"));return r.substring(0,r.indexOf(\".d.\"))+i}function yoe(e,t){return boe(e,t)??x.fail(`Extension ${jC(e)} is unsupported:: FileName:: ${e}`)}function boe(e,t){let r=og(e);switch(r){case\".ts\":case\".d.ts\":return\".js\";case\".tsx\":return t.jsx===1?\".jsx\":\".js\";case\".js\":case\".jsx\":case\".json\":return r;case\".d.mts\":case\".mts\":case\".mjs\":return\".mjs\";case\".d.cts\":case\".cts\":case\".cjs\":return\".cjs\";default:return}}function ySe(e,t,r){let i=AA(t,e,t,r,!1);return Ou(i)?void 0:i}function bSe(e){return Ui(e,\"..\")}var Eoe,Soe=pt({\"src/compiler/moduleSpecifiers.ts\"(){\"use strict\";wo(),Eoe=(e=>(e[e.Relative=0]=\"Relative\",e[e.NonRelative=1]=\"NonRelative\",e[e.Shortest=2]=\"Shortest\",e[e.ExternalNonRelative=3]=\"ExternalNonRelative\",e))(Eoe||{})}}),h0={};la(h0,{RelativePreference:()=>Eoe,countPathComponents:()=>o4,forEachFileNameOfModule:()=>fSe,getModuleSpecifier:()=>i4,getModuleSpecifierPreferences:()=>sk,getModuleSpecifiers:()=>cSe,getModuleSpecifiersWithCacheInfo:()=>dSe,getNodeModulesPackageName:()=>I3e,tryGetJSExtensionForFile:()=>boe,tryGetModuleSpecifiersFromCache:()=>x3e,tryGetRealFileNameForNonJsDeclarationFileName:()=>vSe,updateModuleSpecifier:()=>A3e});var Toe=pt({\"src/compiler/_namespaces/ts.moduleSpecifiers.ts\"(){\"use strict\";Soe()}});function k3e(){this.flags=0}function Fa(e){return e.id||(e.id=xoe,xoe++),e.id}function na(e){return e.id||(e.id=Ioe,Ioe++),e.id}function FU(e,t){let r=dg(e);return r===1||t&&r===2}function Aoe(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=wc.getSymbolConstructor(),p=wc.getTypeConstructor(),h=wc.getSignatureConstructor(),m=0,v=0,E=0,S=0,A=0,C=0,R,L,G=!1,U=Vo(),K=[1],F=e.getCompilerOptions(),oe=Wa(F),W=ld(F),$=!!F.experimentalDecorators,de=nN(F),fe=Xne(F),q=zS(F),H=Fd(F,\"strictNullChecks\"),ee=Fd(F,\"strictFunctionTypes\"),le=Fd(F,\"strictBindCallApply\"),Ee=Fd(F,\"strictPropertyInitialization\"),ce=Fd(F,\"noImplicitAny\"),Z=Fd(F,\"noImplicitThis\"),pe=Fd(F,\"useUnknownInCatchVariables\"),Ae=!!F.keyofStringsOnly,Oe=Ae?1:0,_e=F.suppressExcessPropertyErrors?0:8192,be=F.exactOptionalPropertyTypes,Te=plt(),De=Hut(),ft=h_(),he=Vo(),Le=Ra(4,\"undefined\");Le.declarations=[];var Ke=Ra(1536,\"globalThis\",8);Ke.exports=he,Ke.declarations=[],he.set(Ke.escapedName,Ke);var Dt=Ra(4,\"arguments\"),st=Ra(4,\"require\"),Ge=F.verbatimModuleSyntax?\"verbatimModuleSyntax\":\"isolatedModules\",ot=!F.verbatimModuleSyntax||!!F.importsNotUsedAsValues,Vt,jt,gn=0,On,en=0;let zt={getNodeCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,v),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:hu.size,identity:Cu.size,subtype:Y_.size,strictSubtype:rf.size}),isUndefinedSymbol:n=>n===Le,isArgumentsSymbol:n=>n===Dt,isUnknownSymbol:n=>n===tt,getMergedSymbol:Oa,getDiagnostics:V8e,getGlobalDiagnostics:sut,getRecursionIdentity:dQ,getUnmatchedProperties:ehe,getTypeOfSymbolAtLocation:(n,a)=>{let c=uo(a);return c?eot(n,c):it},getTypeOfSymbol:Yn,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=uo(n,ao);return c===void 0?x.fail(\"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.\"):(x.assert(wu(c,c.parent)),TP(c,Hs(a)))},getDeclaredTypeOfSymbol:Cs,getPropertiesOfType:Xa,getPropertyOfType:(n,a)=>Qo(n,Hs(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=uo(c);if(!u)return;let _=Hs(a),g=GQ(_,u);return g?zhe(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Fe(n,Hs(a)),getIndexInfoOfType:(n,a)=>Uh(n,a===0?Ie:gt),getIndexInfosOfType:Ud,getIndexInfosOfIndexSymbol:Kme,getSignaturesOfType:Co,getIndexTypeOfType:(n,a)=>yE(n,a===0?Ie:gt),getIndexType:n=>y_(n),getBaseTypes:ep,getBaseTypeOfLiteralType:wg,getWidenedType:gp,getTypeFromTypeNode:n=>{let a=uo(n,xi);return a?si(a):it},getParameterType:zm,getParameterIdentifierInfoAtPosition:Nst,getPromisedTypeOfPromise:kw,getAwaitedType:n=>pA(n),getReturnTypeOfSignature:Ha,isNullableType:h5,getNullableType:e5,getNonNullableType:Wg,getNonOptionalType:mQ,getTypeArguments:Ts,typeToTypeNode:ft.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ft.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ft.signatureToSignatureDeclaration,symbolToEntityName:ft.symbolToEntityName,symbolToExpression:ft.symbolToExpression,symbolToNode:ft.symbolToNode,symbolToTypeParameterDeclarations:ft.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ft.symbolToParameterDeclaration,typeParameterToDeclaration:ft.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=uo(n);return c?lut(c,a):[]},getSymbolAtLocation:n=>{let a=uo(n);return a?um(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=uo(n);return a?hut(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=uo(n);return a?gut(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=uo(n,Ed);return a?vut(a):void 0},getExportSymbolOfSymbol(n){return Oa(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=uo(n);return a?S1(a):it},getTypeOfAssignmentPattern:n=>{let a=uo(n,lC);return a&&gZ(a)||it},getPropertySymbolOfDestructuringAssignment:n=>{let a=uo(n,Me);return a?yut(a):void 0},signatureToString:(n,a,c,u)=>th(n,uo(a),c,u),typeToString:(n,a,c)=>Pn(n,uo(a),c),symbolToString:(n,a,c,u)=>ai(n,uo(a),c,u),typePredicateToString:(n,a,c)=>nh(n,uo(a),c),writeSignature:(n,a,c,u,_)=>th(n,uo(a),c,u,_),writeType:(n,a,c,u)=>Pn(n,uo(a),c,u),writeSymbol:(n,a,c,u,_)=>ai(n,uo(a),c,u,_),writeTypePredicate:(n,a,c,u)=>nh(n,uo(a),c,u),getAugmentedPropertiesOfType:Bge,getRootSymbols:Y8e,getSymbolOfExpando:YQ,getContextualType:(n,a)=>{let c=uo(n,lt);if(c)return a&4?Ki(c,()=>bu(c,a)):bu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=uo(n,Zh);return a?Ihe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=uo(n,WE);return c&&Ahe(c,a)},getContextualTypeForJsxAttribute:n=>{let a=uo(n,H8);return a&&dOe(a,void 0)},isContextSensitive:uf,getTypeOfPropertyOfContextualType:DE,getFullyQualifiedName:mp,getResolvedSignature:(n,a,c)=>gi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Wt,getResolvedSignatureForSignatureHelp:(n,a,c)=>ei(n,()=>gi(n,a,c,16)),getExpandedParameters:uLe,hasEffectiveRestParameter:dh,containsArgumentsReference:Hme,getConstantValue:n=>{let a=uo(n,tWe);return a?Gge(a):void 0},isValidPropertyAccess:(n,a)=>{let c=uo(n,$ee);return!!c&&zat(c,Hs(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=uo(n,Er);return!!u&&BOe(u,a,c)},getSignatureFromDeclaration:n=>{let a=uo(n,Lo);return a?kf(a):void 0},isImplementationOfOverload:n=>{let a=uo(n,Lo);return a?Z8e(a):void 0},getImmediateAliasedSymbol:Nhe,getAliasedSymbol:fc,getEmitResolver:Ev,getExportsOfModule:wT,getExportsAndPropertiesOfModule:eD,forEachExportAndPropertyOfModule:tD,getSymbolWalker:hoe(Stt,df,Ha,ep,Om,Yn,cm,iu,dp,Ts),getAmbientModules:kpt,getJsxIntrinsicTagNamesAt:vat,isOptionalParameter:n=>{let a=uo(n,ao);return a?ow(a):!1},tryGetMemberInModuleExports:(n,a)=>WT(Hs(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>nD(Hs(n),a),tryFindAmbientModule:n=>w$(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>w$(n,!1),getApparentType:ou,getUnionType:Br,isTypeAssignableTo:ea,createAnonymousType:cs,createSignature:jh,createSymbol:Ra,createIndexInfo:sh,getAnyType:()=>z,getStringType:()=>Ie,getStringLiteralType:yu,getNumberType:()=>gt,getNumberLiteralType:Wm,getBigIntType:()=>bt,createPromiseType:R5,createArrayType:_d,getElementTypeOfArrayType:Z7,getBooleanType:()=>ti,getFalseType:n=>n?Ot:dn,getTrueType:n=>n?An:Cn,getVoidType:()=>jn,getUndefinedType:()=>Re,getNullType:()=>se,getESSymbolType:()=>di,getNeverType:()=>Ar,getOptionalType:()=>j,getPromiseType:()=>W7(!1),getPromiseLikeType:()=>QLe(!1),getAsyncIterableType:()=>{let n=q$(!1);if(n!==ho)return n},isSymbolAccessible:vi,isArrayType:ff,isTupleType:ga,isArrayLikeType:Lv,isEmptyAnonymousObjectType:ch,isTypeInvalidDueToUnionDiscriminant:rtt,getExactOptionalProperties:Nrt,getAllPossiblePropertiesOfTypes:itt,getSuggestedSymbolForNonexistentProperty:Vhe,getSuggestionForNonexistentProperty:jhe,getSuggestedSymbolForNonexistentJSXAttribute:FOe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Uhe(n,Hs(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Oat(n,Hs(a),c),getSuggestedSymbolForNonexistentModule:jQ,getSuggestionForNonexistentExport:wat,getSuggestedSymbolForNonexistentClassMember:WOe,getBaseConstraintOfType:md,getDefaultFromTypeParameter:n=>n&&n.flags&262144?KT(n):void 0,resolveName(n,a,c,u){return Xs(a,Hs(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Ii(tE(n)),getJsxFragmentFactory:n=>{let a=jge(n);return a&&Ii(dp(a).escapedText)},getAccessibleSymbolChain:Wy,getTypePredicateOfSignature:df,resolveExternalModuleName:n=>{let a=uo(n,lt);return a&&jd(a,a,!0)},resolveExternalModuleSymbol:$u,tryGetThisTypeAt:(n,a,c)=>{let u=uo(n);return u&&bhe(u,a,c)},getTypeArgumentConstraint:n=>{let a=uo(n,xi);return a&&Ult(a)},getSuggestionDiagnostics:(n,a)=>{let c=uo(n,Li)||x.fail(\"Could not determine parsed source file.\");if(UC(c,F,e))return je;let u;try{return i=a,Fge(c),x.assert(!!(Fr(c).flags&1)),u=Pr(u,yT.getDiagnostics(c.fileName)),i8e(G8e(c),(_,g,T)=>{!X1(_)&&!B8e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||je}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(zt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:gr,isDeclarationVisible:Pm,isPropertyAccessible:qhe,getTypeOnlyAliasDeclaration:of,getMemberOverrideModifierStatus:Sdt,isTypeParameterPossiblyReferenced:U7,typeHasCallOrConstructSignatures:vZ};function Wt(n,a){let c=new Set,u=[];Ki(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,ei(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);return bo(c)}function ei(n,a){if(n=Rn(n,ZG),n){let c=[],u=[];for(;n;){let g=Fr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,e0(n)){let T=Pi(dr(n)),N=T.type;u.push([T,N]),T.type=void 0}n=Rn(n.parent,ZG)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function Ki(n,a){let c=Rn(n,WE);if(c){let _=n;do Fr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}G=!0;let u=ei(n,a);if(G=!1,c){let _=n;do Fr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function gi(n,a,c,u){let _=uo(n,WE);Vt=c;let g=_?xD(_,a,u):void 0;return Vt=void 0,g}var io=new Map,Gn=new Map,Nr=new Map,cr=new Map,Jt=new Map,Ue=new Map,Rt=new Map,mn=new Map,qr=new Map,ni=new Map,ki=new Map,so=new Map,Jo=new Map,Ea=new Map,ln=new Map,Tn=[],ke=new Map,nt=new Set,tt=Ra(4,\"unknown\"),yt=Ra(0,\"__resolving__\"),re=new Map,Ce=new Map,et=new Set,z=Fl(1,\"any\"),Je=Fl(1,\"any\",262144,\"auto\"),_t=Fl(1,\"any\",void 0,\"wildcard\"),ze=Fl(1,\"any\",void 0,\"blocked string\"),it=Fl(1,\"error\"),Ct=Fl(1,\"unresolved\"),on=Fl(1,\"any\",65536,\"non-inferrable\"),Qt=Fl(1,\"intrinsic\"),Zt=Fl(2,\"unknown\"),V=Fl(2,\"unknown\",void 0,\"non-null\"),Re=Fl(32768,\"undefined\"),St=H?Re:Fl(32768,\"undefined\",65536,\"widening\"),M=Fl(32768,\"undefined\",void 0,\"missing\"),te=be?M:Re,j=Fl(32768,\"undefined\",void 0,\"optional\"),se=Fl(65536,\"null\"),Pe=H?se:Fl(65536,\"null\",65536,\"widening\"),Ie=Fl(4,\"string\"),gt=Fl(8,\"number\"),bt=Fl(64,\"bigint\"),Ot=Fl(512,\"false\",void 0,\"fresh\"),dn=Fl(512,\"false\"),An=Fl(512,\"true\",void 0,\"fresh\"),Cn=Fl(512,\"true\");An.regularType=Cn,An.freshType=An,Cn.regularType=Cn,Cn.freshType=An,Ot.regularType=dn,Ot.freshType=Ot,dn.regularType=dn,dn.freshType=Ot;var ti=Br([dn,Cn]),di=Fl(4096,\"symbol\"),jn=Fl(16384,\"void\"),Ar=Fl(131072,\"never\"),Zi=Fl(131072,\"never\",262144,\"silent\"),_i=Fl(131072,\"never\",void 0,\"implicit\"),ui=Fl(131072,\"never\",void 0,\"unreachable\"),Mr=Fl(67108864,\"object\"),lo=Br([Ie,gt]),_n=Br([Ie,gt,di]),ms=Ae?Ie:_n,Dl=Br([gt,bt]),_o=Br([Ie,gt,ti,bt,se,Re]),Va=YT([\"\",\"\"],[gt]),vs=j7(n=>n.flags&262144?rrt(n):n,()=>\"(restrictive mapper)\"),Js=j7(n=>n.flags&262144?_t:n,()=>\"(permissive mapper)\"),Fc=Fl(131072,\"never\",void 0,\"unique literal\"),$i=j7(n=>n.flags&262144?Fc:n,()=>\"(unique literal mapper)\"),Uo,zc=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!0),n),()=>\"(unmeasurable reporter)\"),ts=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!1),n),()=>\"(unreliable reporter)\"),ua=cs(void 0,U,je,je,je),Us=cs(void 0,U,je,je,je);Us.objectFlags|=2048;var tf=Ra(2048,\"__type\");tf.members=Vo();var Wl=cs(tf,U,je,je,je),il=cs(void 0,U,je,je,je),zs=H?Br([Re,se,il]):Zt,ho=cs(void 0,U,je,je,je);ho.instantiations=new Map;var Ut=cs(void 0,U,je,je,je);Ut.objectFlags|=262144;var ys=cs(void 0,U,je,je,je),Pc=cs(void 0,U,je,je,je),Bc=cs(void 0,U,je,je,je),Ju=Bp(),ls=Bp();ls.constraint=Ju;var tc=Bp(),ae=Bp(),X=Bp();X.constraint=ae;var xe=O7(1,\"<<unresolved>>\",0,z),dt=jh(void 0,void 0,void 0,je,z,void 0,0,0),$t=jh(void 0,void 0,void 0,je,it,void 0,0,0),sr=jh(void 0,void 0,void 0,je,z,void 0,0,0),tr=jh(void 0,void 0,void 0,je,Zi,void 0,0,0),Ir=sh(gt,Ie,!0),pi=new Map,hr={get yieldType(){return x.fail(\"Not supported\")},get returnType(){return x.fail(\"Not supported\")},get nextType(){return x.fail(\"Not supported\")}},No=wv(z,z,z),Qs=wv(z,z,Zt),bc=wv(Ar,z,Re),bs={iterableCacheKey:\"iterationTypesOfAsyncIterable\",iteratorCacheKey:\"iterationTypesOfAsyncIterator\",iteratorSymbolName:\"asyncIterator\",getGlobalIteratorType:Wtt,getGlobalIterableType:q$,getGlobalIterableIteratorType:Ftt,getGlobalGeneratorType:ztt,resolveIterationType:(n,a)=>pA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Jl={iterableCacheKey:\"iterationTypesOfIterable\",iteratorCacheKey:\"iterationTypesOfIterator\",iteratorSymbolName:\"iterator\",getGlobalIteratorType:Btt,getGlobalIterableType:a_e,getGlobalIterableIteratorType:Gtt,getGlobalGeneratorType:Vtt,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Za,Ec=new Map,Du=[],pc,Nf,Vd,Se,At,Ln,eo,Po,Oo,Cl,Kl,Bs,Ks,vl,Nl,Sc,kp,fu,tu,nf,u_,X_,fg,fd,mg,Ku,Lh,mu,Y,Ye,xt,Nt,k,ge,Xe,Mt,Vn,jr,Or,zi,_a,ha,pl,Gc,nc,Xu,_u,Ay,ja,em,tm,Ri,_g,yv,nm,D0,C0,Op=new Map,p_=0,wp=0,hg=0,Ne=!1,Ve=0,Tt,Pt,rn,wn=[],tn=[],Wn=[],Qr=0,Kn=[],Gr=[],Qn=0,Mo=yu(\"\"),xa=Wm(0),xd=$$({negative:!1,base10Value:\"0\"}),Vc=[],gg=[],$b=[],UI=0,Qb=!1,GR=0,VR=10,jR=[],gT=[],N0=[],HI=[],UR=[],qI=[],JI=[],KI=[],XI=[],vT=[],YI=[],P0=[],M0=[],Iy=[],xy=[],kh=[],Zb=[],La=hx(),yT=hx(),HR=eh(),eE,vg,Y_=new Map,rf=new Map,hu=new Map,Yu=new Map,Cu=new Map,bv=new Map,bT=Vo();bT.set(Le.escapedName,Le);var qR=[[\".mts\",\".mjs\"],[\".ts\",\".js\"],[\".cts\",\".cjs\"],[\".mjs\",\".mjs\"],[\".js\",\".js\"],[\".cjs\",\".cjs\"],[\".tsx\",F.jsx===1?\".jsx\":\".js\"],[\".jsx\",\".jsx\"],[\".json\",\".json\"]];return qut(),zt;function $I(n){return n?ln.get(n):void 0}function Ry(n,a){return n&&ln.set(n,a),a}function tE(n){if(n){let a=Nn(n);if(a)if(fI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get(\"jsxfrag\");if(c){let _=oo(c)?c[0]:c;if(a.localJsxFragmentFactory=gI(_.arguments.factory,oe),He(a.localJsxFragmentFactory,Xl,Su),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=dp(a.localJsxFragmentFactory).escapedText}let u=jge(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=dp(u).escapedText}else{let c=QI(a);if(c)return a.localJsxNamespace=c}}return eE||(eE=\"React\",F.jsxFactory?(vg=gI(F.jsxFactory,oe),He(vg,Xl),vg&&(eE=dp(vg).escapedText)):F.reactNamespace&&(eE=Hs(F.reactNamespace))),vg||(vg=P.createQualifiedName(P.createIdentifier(Ii(eE)),\"createElement\")),eE}function QI(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get(\"jsx\");if(a){let c=oo(a)?a[0]:a;if(n.localJsxFactory=gI(c.arguments.factory,oe),He(n.localJsxFactory,Xl,Su),n.localJsxFactory)return n.localJsxNamespace=dp(n.localJsxFactory).escapedText}}function Xl(n){return F_(n,-1,-1),un(n,Xl,void 0)}function Ev(n,a){return V8e(n,a),De}function ZI(n,a,...c){let u=n?vr(n,a,...c):bl(a,...c),_=La.lookup(u);return _||(La.add(u),u)}function xm(n,a,c,...u){let _=we(a,c,...u);return _.skippedOn=n,_}function ET(n,a,...c){return n?vr(n,a,...c):bl(a,...c)}function we(n,a,...c){let u=ET(n,a,...c);return La.add(u),u}function Rm(n,a){n?La.add(a):yT.add({...a,category:2})}function jc(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Nn(a);Rm(n,\"message\"in c?Rc(_,0,0,c,...u):T9(_,c));return}Rm(n,\"message\"in c?vr(a,c,...u):eg(Nn(a),a,c))}function nE(n,a,c,...u){let _=we(n,c,...u);if(a){let g=vr(n,f.Did_you_forget_to_use_await);fa(_,g)}return _}function e1(n,a){let c=Array.isArray(n)?an(n,zG):zG(n);return c&&fa(a,vr(c,f.The_declaration_was_marked_as_deprecated_here)),yT.add(a),a}function Dy(n){let a=nu(n);return a&&yn(n.declarations)>1?a.flags&64?ct(n.declarations,Sv):ji(n.declarations,Sv):!!n.valueDeclaration&&Sv(n.valueDeclaration)||yn(n.declarations)&&ji(n.declarations,Sv)}function Sv(n){return!!(lS(n)&536870912)}function Tv(n,a,c){let u=vr(n,f._0_is_deprecated,c);return e1(a,u)}function SP(n,a,c,u){let _=c?vr(n,f.The_signature_0_of_1_is_deprecated,u,c):vr(n,f._0_is_deprecated,u);return e1(a,_)}function Ra(n,a,c){v++;let u=new d(n|33554432,a);return u.links=new Coe,u.links.checkFlags=c||0,u}function Dm(n,a){let c=Ra(1,n);return c.links.type=a,c}function ST(n,a){let c=Ra(4,n);return c.links.type=a,c}function TT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function rE(n,a){a.mergeId||(a.mergeId=Roe,Roe++),jR[a.mergeId]=n}function AT(n){let a=Ra(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),rE(a,n),a}function Pf(n,a,c=!1){if(!(n.flags&TT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=yl(n);if(_===tt)return a;n=AT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&IL(n,a.valueDeclaration),Pr(n.declarations,a.declarations),a.members&&(n.members||(n.members=Vo()),Cm(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=Vo()),Cm(n.exports,a.exports,c)),c||rE(n,a)}else if(n.flags&1024)n!==Ke&&we(a.declarations&&mo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ai(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,N=a.declarations&&Nn(a.declarations[0]),O=n.declarations&&Nn(n.declarations[0]),B=nL(N,F.checkJs),Q=nL(O,F.checkJs),me=ai(a);if(N&&O&&Za&&!_&&N!==O){let ue=Xh(N.path,O.path)===-1?N:O,We=ue===N?O:N,at=FD(Za,`${ue.path}|${We.path}`,()=>({firstFile:ue,secondFile:We,conflictingSymbols:new Map})),ht=FD(at.conflictingSymbols,me,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));B||u(ht.firstFileLocations,a),Q||u(ht.secondFileLocations,n)}else B||Mf(a,T,me,n),Q||Mf(n,T,me,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)jp(_,T)}}function Mf(n,a,c,u){an(n.declarations,_=>{yg(_,a,c,u.declarations)})}function yg(n,a,c,u){let _=(Ib(n,!1)?L9(n):mo(n))||n,g=ZI(_,a,c);for(let T of u||je){let N=(Ib(T,!1)?L9(T):mo(T))||T;if(N===_)continue;g.relatedInformation=g.relatedInformation||[];let O=vr(N,f._0_was_also_declared_here,c),B=vr(N,f.and_here);yn(g.relatedInformation)>=5||ct(g.relatedInformation,Q=>zC(Q,B)===0||zC(Q,O)===0)||fa(g,yn(g.relatedInformation)?B:O)}}function t1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=Vo();return Cm(c,n),Cm(c,a),c}function Cm(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?Pf(g,u,c):Oa(u))})}function JR(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){x.assert(_.symbol.declarations.length>1);return}if(Jm(_))Cm(he,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=Tg(n,n,g,!0);if(!T)return;if(T=$u(T),T.flags&1920)if(ct(Nf,N=>T===N.symbol)){let N=Pf(_.symbol,T,!0);Vd||(Vd=new Map),Vd.set(n.text,N)}else{if((c=T.exports)!=null&&c.get(\"__export\")&&((u=_.symbol.exports)!=null&&u.size)){let N=Dme(T,\"resolvedExports\");for(let[O,B]of bo(_.symbol.exports.entries()))N.has(O)&&!T.exports.has(O)&&Pf(N.get(O),B)}Pf(T,_.symbol)}else we(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function L0(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?an(T.declarations,u(Ii(g),c)):n.set(g,_)});function u(_,g){return T=>La.add(vr(T,g,_))}}function Pi(n){if(n.flags&33554432)return n.links;let a=na(n);return gT[a]??(gT[a]=new Coe)}function Fr(n){let a=Fa(n);return N0[a]||(N0[a]=new k3e)}function $_(n){return n.kind===312&&!sp(n)}function gu(n,a,c){if(c){let u=Oa(n.get(a));if(u&&(x.assert((tl(u)&1)===0,\"Should never get an instantiated symbol here.\"),u.flags&c||u.flags&2097152&&Qc(u)&c))return u}}function TP(n,a){let c=n.parent,u=n.parent.parent,_=gu(c.locals,a,111551),g=gu(Ky(u.symbol),a,111551);return _&&g?[_,g]:x.fail(\"There should exist two symbols, one as property declaration and one as parameter declaration\")}function bg(n,a){let c=Nn(n),u=Nn(a),_=w_(n);if(c!==u){if(W&&(c.externalModuleIndicator||u.externalModuleIndicator)||!ss(F)||OS(a)||n.flags&33554432||T(a,n))return!0;let O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(u)}if(a.flags&16777216||OS(a)||she(a))return!0;if(n.pos<=a.pos&&!(xo(n)&&fL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let O=Db(a,208);return O?Rn(O,Na)!==Rn(n,Na)||n.pos<O.pos:bg(Db(n,260),a)}else{if(n.kind===260)return!g(n,a);if(Kr(n))return!Rn(a,O=>Pa(O)&&O.parent.parent===n);if(xo(n))return!N(n,a,!1);if(wu(n,n.parent))return!(fe&&Oc(n)===Oc(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return fe&&Oc(n)&&(xo(n)||wu(n,n.parent))?!N(n,a,!0):!0;return!1;function g(O,B){switch(O.parent.parent.kind){case 243:case 248:case 250:if(O0(B,O,_))return!0;break}let Q=O.parent.parent;return H1(Q)&&O0(B,Q.expression,_)}function T(O,B){return!!Rn(O,Q=>{if(Q===_)return\"quit\";if(Lo(Q))return!0;if(nl(Q))return B.pos<O.pos;let me=Vr(Q.parent,xo);if(me&&me.initializer===Q){if(zo(Q.parent)){if(B.kind===174)return!0;if(xo(B)&&Oc(O)===Oc(B)){let We=B.name;if(Me(We)||Ci(We)){let at=Yn(dr(B)),ht=Cr(B.parent.members,nl);if(Ddt(We,at,ht,B.parent.pos,Q.pos))return!0}}}else if(!(B.kind===172&&!zo(B))||Oc(O)!==Oc(B))return!0}return!1})}function N(O,B,Q){return B.end>O.end?!1:Rn(B,ue=>{if(ue===O)return\"quit\";switch(ue.kind){case 219:return!0;case 172:return Q&&(xo(O)&&ue.parent===O.parent||wu(O,O.parent)&&ue.parent===O.parent.parent)?\"quit\":!0;case 241:switch(ue.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function AP(n,a,c){let u=Wa(F),_=a;if(ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let N=Fr(_);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=an(_.parameters,g)||!1),!N.declarationRequiresScopeChange}return!1;function g(N){return T(N.name)||!!N.initializer&&T(N.initializer)}function T(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(N.name);case 172:return jl(N)?!fe:T(N.name);default:return jG(N)||yd(N)?u<7:Na(N)&&N.dotDotDotToken&&Rf(N.parent)?u<4:xi(N)?!1:Ao(N,T)||!1}}}function Cy(n){return ES(n)&&Qh(n.type)||gN(n)&&Qh(n.typeExpression)}function Xs(n,a,c,u,_,g,T=!1,N=!0){return pp(n,a,c,u,_,g,T,N,gu)}function pp(n,a,c,u,_,g,T,N,O){var B,Q,me;let ue=n,We,at,ht,qt,Xt,Hn=!1,En=n,Kt,In=!1;e:for(;n;){if(a===\"const\"&&Cy(n))return;if($M(n)&&at&&n.name===at&&(at=n,n=n.parent),L_(n)&&n.locals&&!$_(n)&&(We=O(n.locals,a,c))){let zn=!0;if(Lo(n)&&at&&at!==n.body?(c&We.flags&788968&&at.kind!==327&&(zn=We.flags&262144?at===n.type||at.kind===169||at.kind===348||at.kind===349||at.kind===168:!1),c&We.flags&3&&(AP(We,n,at)?zn=!1:We.flags&1&&(zn=at.kind===169||at===n.type&&!!Rn(We.valueDeclaration,ao)))):n.kind===194&&(zn=at===n.trueType),zn)break e;We=void 0}switch(Hn=Hn||Lf(n,at),n.kind){case 312:if(!sp(n))break;In=!0;case 267:let zn=((B=dr(n))==null?void 0:B.exports)||U;if(n.kind===312||Il(n)&&n.flags&33554432&&!Jm(n)){if(We=zn.get(\"default\")){let co=Ex(We);if(co&&We.flags&c&&co.escapedName===a)break e;We=void 0}let Bn=zn.get(a);if(Bn&&Bn.flags===2097152&&(Vs(Bn,281)||Vs(Bn,280)))break}if(a!==\"default\"&&(We=O(zn,a,c&2623475)))if(Li(n)&&n.commonJsModuleIndicator&&!((Q=We.declarations)!=null&&Q.some(bf)))We=void 0;else break e;break;case 266:if(We=O(((me=dr(n))==null?void 0:me.exports)||U,a,c&8)){u&&xf(F)&&!(n.flags&33554432)&&Nn(n)!==Nn(We.valueDeclaration)&&we(En,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ii(a),Ge,`${Ii(Fp(n).escapedName)}.${Ii(a)}`);break e}break;case 172:if(!zo(n)){let Bn=Ag(n.parent);Bn&&Bn.locals&&O(Bn.locals,a,c&111551)&&(x.assertNode(n,xo),qt=n)}break;case 263:case 231:case 264:if(We=O(dr(n).members||U,a,c&788968)){if(!Eg(We,n)){We=void 0;break}if(at&&zo(at)){u&&we(En,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Dc(n)&&c&32){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 233:if(at===n.expression&&n.parent.token===96){let Bn=n.parent.parent;if(Kr(Bn)&&(We=O(dr(Bn).members,a,c&788968))){u&&we(En,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Kt=n.parent.parent,(Kr(Kt)||Kt.kind===264)&&(We=O(dr(Kt).members,a,c&788968))){u&&we(En,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Wa(F)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a===\"arguments\"){We=Dt;break e}break;case 218:if(c&3&&a===\"arguments\"){We=Dt;break e}if(c&16){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(xc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let Mn=ux(n);Mn&&(n=Mn.parent);break;case 169:at&&(at===n.initializer||at===n.name&&ko(at))&&(Xt||(Xt=n));break;case 208:at&&(at===n.initializer||at===n.name&&ko(at))&&JE(n)&&!Xt&&(Xt=n);break;case 195:if(c&262144){let Bn=n.typeParameter.name;if(Bn&&a===Bn.escapedText){We=n.typeParameter.symbol;break e}}break;case 281:at&&at===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Ny(n)&&(ht=n),at=n,n=Df(n)?NW(n)||n.parent:(Tm(n)||T6(n))&&xb(n)||n.parent}if(g&&We&&(!ht||We!==ht.symbol)&&(We.isReferenced|=c),!We){if(at&&(x.assertNode(at,Li),at.commonJsModuleIndicator&&a===\"exports\"&&c&at.symbol.flags))return at.symbol;T||(We=O(he,a,c))}if(!We&&ue&&Jn(ue)&&ue.parent&&Xd(ue.parent,!1))return st;function Sn(){return qt&&!fe?(we(En,En&&qt.type&&wM(qt.type,En.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,is(qt.name),rm(_)),!0):!1}if(We){if(u&&Sn())return}else{u&&r(()=>{if(!En||En.parent.kind!==331&&!k0(En,a,_)&&!Sn()&&!IT(En)&&!n1(En,a,c)&&!Av(En,a)&&!xT(En,a,c)&&!KR(En,a,c)&&!Wh(En,a,c)){let zn,Mn;if(_&&(Mn=Lat(_),Mn&&we(En,u,rm(_),Mn)),!Mn&&N&&GR<VR&&(zn=Uhe(ue,a,c),zn?.valueDeclaration&&sd(zn.valueDeclaration)&&Jm(zn.valueDeclaration)&&(zn=void 0),zn)){let co=ai(zn),no=Ghe(ue,zn,!1),Eo=c===1920||_&&typeof _!=\"string\"&&xs(_)?f.Cannot_find_namespace_0_Did_you_mean_1:no?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,Yi=ET(En,Eo,rm(_),co);Rm(!no,Yi),zn.valueDeclaration&&fa(Yi,vr(zn.valueDeclaration,f._0_is_declared_here,co))}!zn&&!Mn&&_&&we(En,u,rm(_)),GR++}});return}return u&&r(()=>{var zn;if(En&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Mn=zp(We);(Mn.flags&2||Mn.flags&32||Mn.flags&384)&&Ds(Mn,En)}if(We&&In&&(c&111551)===111551&&!(ue.flags&16777216)){let Mn=Oa(We);yn(Mn.declarations)&&ji(Mn.declarations,Bn=>D2(Bn)||Li(Bn)&&!!Bn.symbol.globalExports)&&jc(!F.allowUmdGlobalAccess,En,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ii(a))}if(We&&Xt&&!Hn&&(c&111551)===111551){let Mn=Oa(L$(We)),Bn=Ym(Xt);Mn===dr(Xt)?we(En,f.Parameter_0_cannot_reference_itself,is(Xt.name)):Mn.valueDeclaration&&Mn.valueDeclaration.pos>Xt.pos&&Bn.parent.locals&&O(Bn.parent.locals,Mn.escapedName,c)===Mn&&we(En,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,is(Xt.name),is(En))}if(We&&En&&c&111551&&We.flags&2097152&&!(We.flags&111551)&&!Pb(En)){let Mn=of(We,111551);if(Mn){let Bn=Mn.kind===281||Mn.kind===278||Mn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,co=Ii(a);Oh(we(En,Bn,co),Mn,co)}}if(F.isolatedModules&&We&&In&&(c&111551)===111551){let Bn=O(he,a,c)===We&&Li(at)&&at.locals&&O(at.locals,a,-111552);if(Bn){let co=(zn=Bn.declarations)==null?void 0:zn.find(no=>no.kind===276||no.kind===273||no.kind===274||no.kind===271);co&&!UM(co)&&we(co,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ii(a))}}}),We}function Oh(n,a,c){return a?fa(n,vr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function Lf(n,a){return n.kind!==219&&n.kind!==218?oI(n)||(hs(n)||n.kind===172&&!zo(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Wr(n,1024)?!0:!RS(n)}function Ny(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function rm(n){return fo(n)?Ii(n):is(n)}function Eg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(Df(c.parent)?PS(c.parent):c.parent)===a)return!(Df(c.parent)&&Dr(c.parent.parent.tags,bf))}return!1}function k0(n,a,c){if(!Me(n)||n.escapedText!==a||j8e(n)||OS(n))return!1;let u=lu(n,!1,!1),_=u;for(;_;){if(Kr(_.parent)){let g=dr(_.parent);if(!g)break;let T=Yn(g);if(Qo(T,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,rm(c),ai(g)),!0;if(_===u&&!zo(_)){let N=Cs(g).thisType;if(Qo(N,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,rm(c)),!0}}_=_.parent}return!1}function IT(n){let a=wh(n);return a&&Es(a,64,!0)?(we(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Vl(a)),!0):!1}function wh(n){switch(n.kind){case 80:case 211:return n.parent?wh(n.parent):void 0;case 233:if(gl(n.expression))return n.expression;default:return}}function n1(n,a,c){let u=1920|(Jn(n)?111551:0);if(c===u){let _=yl(Xs(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if($d(g)){x.assert(g.left===n,\"Should only be resolving left side of qualified name as a namespace\");let T=g.right.escapedText;if(Qo(Cs(_),T))return we(g,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ii(a),Ii(T)),!0}return we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ii(a)),!0}}return!1}function Wh(n,a,c){if(c&788584){let u=yl(Xs(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return we(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ii(a)),!0}return!1}function f_(n){return n===\"any\"||n===\"string\"||n===\"number\"||n===\"boolean\"||n===\"never\"||n===\"unknown\"}function Av(n,a){return f_(a)&&n.parent.kind===281?(we(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function KR(n,a,c){if(c&111551){if(f_(a)){let g=n.parent.parent;if(g&&g.parent&&xp(g)){let T=g.token,N=g.parent.kind;N===264&&T===96?we(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ii(a)):N===263&&T===96?we(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ii(a)):N===263&&T===119&&we(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ii(a))}else we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ii(a));return!0}let u=yl(Xs(n,a,788544,void 0,void 0,!1)),_=u&&Qc(u);if(u&&_!==void 0&&!(_&111551)){let g=Ii(a);return YR(a)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):XR(n,u)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g===\"K\"?\"P\":\"K\"):we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function XR(n,a){let c=Rn(n.parent,u=>Pa(u)||Gu(u)?!1:ju(u)||\"quit\");if(c&&c.members.length===1){let u=Cs(a);return!!(u.flags&1048576)&&N5(u,384,!0)}return!1}function YR(n){switch(n){case\"Promise\":case\"Symbol\":case\"Map\":case\"WeakMap\":case\"Set\":case\"WeakSet\":return!0}return!1}function xT(n,a,c){if(c&111127){if(yl(Xs(n,a,1024,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_value,Ii(a)),!0}else if(c&788544&&yl(Xs(n,a,1536,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_type,Ii(a)),!0;return!1}function Ds(n,a){var c;if(x.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>p9(_)||Kr(_)||_.kind===266);if(u===void 0)return x.fail(\"checkResolvedBlockScopedVariable could not find block-scoped declaration\");if(!(u.flags&33554432)&&!bg(u,a)){let _,g=is(mo(u));n.flags&2?_=we(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=we(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=we(a,f.Enum_0_used_before_its_declaration,g):(x.assert(!!(n.flags&128)),xf(F)&&(_=we(a,f.Enum_0_used_before_its_declaration,g))),_&&fa(_,vr(u,f._0_is_declared_here,g))}}function O0(n,a,c){return!!a&&!!Rn(n,u=>u===a||(u===c||Lo(u)&&(!RS(u)||gc(u)&3)?\"quit\":!1))}function RT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function im(n){return n.declarations&&hA(n.declarations,Py)}function Py(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&px(n)||Zn(n)&&hl(n)===2&&px(n)||us(n)&&Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&$R(n.parent.right)||n.kind===304||n.kind===303&&$R(n.initializer)||n.kind===260&&jE(n)||n.kind===208&&jE(n.parent.parent)}function $R(n){return kL(n)||ps(n)&&T_(n)}function DT(n,a){let c=Ly(n);if(c){let _=Tx(c.expression).arguments[0];return Me(c.name)?yl(Qo(PLe(_),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===283){let _=jd(n,N9(n)||gC(n)),g=$u(_);return Nu(n,_,g,!1),g}let u=i1(n.moduleReference,a);return IP(n,u),u}function IP(n,a){if(Nu(n,void 0,a,!1)&&!n.isTypeOnly){let c=of(dr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?\"*\":Ii(c.name.escapedText);fa(we(n.moduleReference,_),vr(c,g,T))}}function nr(n,a,c,u){let _=n.exports.get(\"export=\"),g=_?Qo(Yn(_),a,!0):n.exports.get(a),T=yl(g,u);return Nu(c,g,T,!1),T}function Mc(n){return dl(n)&&!n.isExportEquals||Wr(n,2048)||Ed(n)||j_(n)}function Oi(n){return Ga(n)?e.getModeForUsageLocation(Nn(n),n):void 0}function Wp(n,a){return n===99&&a===1}function Iv(n){return Oi(n)===99&&Zs(n.text,\".json\")}function m_(n,a,c,u){let _=n&&Oi(u);if(n&&_!==void 0&&100<=W&&W<=199){let g=Wp(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=nr(a,\"default\",void 0,!0);return!(g&&ct(g.declarations,Mc)||nr(a,Hs(\"__esModule\"),void 0,c))}return wd(n)?typeof n.externalModuleIndicator!=\"object\"&&!nr(a,Hs(\"__esModule\"),void 0,c):xv(a)}function Xn(n,a){let c=jd(n,n.parent.moduleSpecifier);if(c)return CT(c,n,a)}function CT(n,a,c){var u;let _;pC(n)?_=n:_=nr(n,\"default\",a,c);let g=(u=n.declarations)==null?void 0:u.find(Li),T=iE(a);if(!T)return _;let N=Iv(T),O=m_(g,n,c,T);if(!_&&!O&&!N)if(xv(n)&&!q){let B=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\",me=n.exports.get(\"export=\").valueDeclaration,ue=we(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,ai(n),B);me&&fa(ue,vr(me,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,B))}else V_(a)?Tc(n,a):NT(n,n,a,RA(a)&&a.propertyName||a.name);else if(O||N){let B=$u(n,c)||yl(n,c);return Nu(a,n,B,!1),B}return Nu(a,_,void 0,!1),_}function iE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return U_(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return x.assertNever(n)}}function Tc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))we(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ai(n),ai(a.symbol));else{let g=we(a.name,f.Module_0_has_no_default_export,ai(n)),T=(u=n.exports)==null?void 0:u.get(\"__export\");if(T){let N=(_=T.declarations)==null?void 0:_.find(O=>{var B,Q;return!!(xl(O)&&O.moduleSpecifier&&((Q=(B=jd(O,O.moduleSpecifier))==null?void 0:B.exports)!=null&&Q.has(\"default\")))});N&&fa(g,vr(N,f.export_Asterisk_does_not_re_export_a_default))}}}function Q_(n,a){let c=n.parent.parent.moduleSpecifier,u=jd(n,c),_=Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function om(n,a){let c=n.parent.moduleSpecifier,u=c&&jd(n,c),_=c&&Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function w0(n,a){if(n===tt&&a===tt)return tt;if(n.flags&790504)return n;let c=Ra(n.flags|a.flags,n.escapedName);return x.assert(n.declarations||a.declarations),c.declarations=NE(ro(n.declarations,a.declarations),Hg),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function W0(n,a,c,u){var _;if(n.flags&1536){let g=Qu(n).get(a.escapedText),T=yl(g,u),N=(_=Pi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return Nu(c,g,T,!1,N,a.escapedText),T}}function My(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return yl(Qo(si(c),a))}}function Sg(n,a,c=!1){var u;let _=N9(n)||n.moduleSpecifier,g=jd(n,_),T=!Er(a)&&a.propertyName||a.name;if(!Me(T))return;let N=T.escapedText===\"default\"&&q,O=Pu(g,_,!1,N);if(O&&T.escapedText){if(pC(g))return g;let B;g&&g.exports&&g.exports.get(\"export=\")?B=Qo(Yn(O),T.escapedText,!0):B=My(O,T.escapedText),B=yl(B,c);let Q=W0(O,T,a,c);if(Q===void 0&&T.escapedText===\"default\"){let ue=(u=g.declarations)==null?void 0:u.find(Li);(Iv(_)||m_(ue,g,c,_))&&(Q=$u(g,c)||yl(g,c))}let me=Q&&B&&Q!==B?w0(B,Q):Q||B;return me||NT(g,O,n,T),me}}function NT(n,a,c,u){var _;let g=mp(n,c),T=is(u),N=jQ(u,a);if(N!==void 0){let O=ai(N),B=we(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,O);N.valueDeclaration&&fa(B,vr(N.valueDeclaration,f._0_is_declared_here,O))}else(_=n.exports)!=null&&_.has(\"default\")?we(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):am(c,u,T,n,g)}function am(n,a,c,u,_){var g,T;let N=(T=(g=Vr(u.valueDeclaration,L_))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),O=u.exports;if(N){let B=O?.get(\"export=\");if(B)Nm(B,N)?oE(n,a,c,_):we(a,f.Module_0_has_no_exported_member_1,_,c);else{let Q=O?Dr(Ume(O),ue=>!!Nm(ue,N)):void 0,me=Q?we(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,ai(Q)):we(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);N.declarations&&fa(me,...nn(N.declarations,(ue,We)=>vr(ue,We===0?f._0_is_declared_here:f.and_here,c)))}}else we(a,f.Module_0_has_no_exported_member_1,_,c)}function oE(n,a,c,u){if(W>=5){let _=z_(F)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else if(Jn(n)){let _=z_(F)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else{let _=z_(F)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c,c,u)}}function Fh(n,a){if(Iu(n)&&ar(n.propertyName||n.name)===\"default\"){let T=iE(n),N=T&&jd(n,T);if(N)return CT(N,n,a)}let c=Na(n)?Ym(n):n.parent.parent.parent,u=Ly(c),_=Sg(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Me(g)?yl(Qo(Yn(_),g.escapedText),a):(Nu(n,void 0,_,!1),_)}function Ly(n){if(yi(n)&&n.initializer&&Er(n.initializer))return n.initializer}function r1(n,a){if(qm(n.parent)){let c=$u(n.parent.symbol,a);return Nu(n,void 0,c,!1),c}}function aE(n,a,c){if(ar(n.propertyName||n.name)===\"default\"){let _=iE(n),g=_&&jd(n,_);if(g)return CT(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?Sg(n.parent.parent,n,c):Es(n.propertyName||n.name,a,!1,c);return Nu(n,void 0,u,!1),u}function QR(n,a){let c=dl(n)?n.expression:n.right,u=F0(c,a);return Nu(n,void 0,u,!1),u}function F0(n,a){if(Dc(n))return Ml(n).symbol;if(!Su(n)&&!gl(n))return;let c=Es(n,901119,!0,a);return c||(Ml(n),Fr(n).resolvedSymbol)}function PT(n,a){if(Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return F0(n.parent.right,a)}function fp(n,a=!1){switch(n.kind){case 271:case 260:return DT(n,a);case 273:return Xn(n,a);case 274:return Q_(n,a);case 280:return om(n,a);case 276:case 208:return Fh(n,a);case 281:return aE(n,901119,a);case 277:case 226:return QR(n,a);case 270:return r1(n,a);case 304:return Es(n.name,901119,!0,a);case 303:return F0(n.initializer,a);case 212:case 211:return PT(n,a);default:return x.fail()}}function MT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function yl(n,a){return!a&&MT(n)?fc(n):n}function fc(n){x.assert((n.flags&2097152)!==0,\"Should only get Alias here.\");let a=Pi(n);if(a.aliasTarget)a.aliasTarget===yt&&(a.aliasTarget=tt);else{a.aliasTarget=yt;let c=im(n);if(!c)return x.fail();let u=fp(c);a.aliasTarget===yt?a.aliasTarget=u||tt:we(c,f.Circular_definition_of_import_alias_0,ai(n))}return a.aliasTarget}function LT(n){if(Pi(n).aliasTarget!==yt)return fc(n)}function Qc(n,a,c){let u=a&&of(n),_=u&&xl(u),g=u&&(_?jd(u.moduleSpecifier,u.moduleSpecifier,!0):fc(u.symbol)),T=_&&g?Z_(g):void 0,N=c?0:n.flags,O;for(;n.flags&2097152;){let B=zp(fc(n));if(!_&&B===g||T?.get(B.escapedName)===B)break;if(B===tt)return-1;if(B===n||O?.has(B))break;B.flags&2097152&&(O?O.add(B):O=new Set([n,B])),N|=B.flags,n=B}return N}function Nu(n,a,c,u,_,g){if(!n||Er(n))return!1;let T=dr(n);if(Sb(n)){let O=Pi(T);return O.typeOnlyDeclaration=n,!0}if(_){let O=Pi(T);return O.typeOnlyDeclaration=_,T.escapedName!==g&&(O.typeOnlyExportStarName=g),!0}let N=Pi(T);return sE(N,a,u)||sE(N,c,u)}function sE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get(\"export=\"))??a,g=_.declarations&&Dr(_.declarations,Sb);n.typeOnlyDeclaration=g??Pi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function of(n,a){if(!(n.flags&2097152))return;let c=Pi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?yl(Z_(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):fc(c.typeOnlyDeclaration.symbol);return Qc(u)&a?c.typeOnlyDeclaration:void 0}}function ky(n){if(!ot)return;let a=dr(n),c=fc(a);c&&(c===tt||Qc(a,!0)&111551&&!Bw(c))&&Oy(a)}function Oy(n){x.assert(ot);let a=Pi(n);if(!a.referenced){a.referenced=!0;let c=im(n);if(!c)return x.fail();ox(c)&&Qc(yl(n))&111551&&Ml(c.moduleReference)}}function Lc(n){let a=Pi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function i1(n,a){return n.kind===80&&LC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Es(n,1920,!1,a):(x.assert(n.parent.kind===271),Es(n,901119,!1,a))}function mp(n,a){return n.parent?mp(n.parent,a)+\".\"+ai(n):ai(n,a,void 0,36)}function kT(n){for(;$d(n.parent);)n=n.parent;return n}function OT(n){let a=dp(n),c=Xs(a,a.escapedText,111551,void 0,a,!0);if(c){for(;$d(a.parent);){let u=Yn(c);if(c=Qo(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Es(n,a,c,u,_){if(_l(n))return;let g=1920|(Jn(n)?a&111551:0),T;if(n.kind===80){let N=a===g||xs(n)?f.Cannot_find_namespace_0:Ake(dp(n)),O=Jn(n)&&!xs(n)?ZR(n,a):void 0;if(T=Oa(Xs(_||n,n.escapedText,a,c||O?void 0:N,n,!0,!1)),!T)return Oa(O)}else if(n.kind===166||n.kind===211){let N=n.kind===166?n.left:n.expression,O=n.kind===166?n.right:n.name,B=Es(N,g,c,!1,_);if(!B||_l(O))return;if(B===tt)return B;if(B.valueDeclaration&&Jn(B.valueDeclaration)&&zd(F)!==100&&yi(B.valueDeclaration)&&B.valueDeclaration.initializer&&lwe(B.valueDeclaration.initializer)){let Q=B.valueDeclaration.initializer.arguments[0],me=jd(Q,Q);if(me){let ue=$u(me);ue&&(B=ue)}}if(T=Oa(gu(Qu(B),O.escapedText,a)),!T&&B.flags&2097152&&(T=Oa(gu(Qu(fc(B)),O.escapedText,a))),!T){if(!c){let Q=mp(B),me=is(O),ue=jQ(O,B);if(ue){we(O,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,me,ai(ue));return}let We=$d(n)&&kT(n);if(Se&&a&788968&&We&&!Wx(We.parent)&&OT(We)){we(We,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Wu(We));return}if(a&1920&&$d(n.parent)){let ht=Oa(gu(Qu(B),O.escapedText,788968));if(ht){we(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ai(ht),Ii(n.parent.right.escapedText));return}}we(O,f.Namespace_0_has_no_exported_member_1,Q,me)}return}}else x.assertNever(n,\"Unknown entity name kind.\");return x.assert((tl(T)&1)===0,\"Should never get an instantiated symbol here.\"),!xs(n)&&Su(n)&&(T.flags&2097152||n.parent.kind===277)&&Nu(V9(n),T,void 0,!0),T.flags&a||u?T:fc(T)}function ZR(n,a){if(U$(n.parent)){let c=lE(n.parent);if(c)return Xs(c,n.escapedText,a,void 0,n,!0)}}function lE(n){if(Rn(n,_=>q1(_)||_.flags&16777216?bf(_):\"quit\"))return;let c=PS(n);if(c&&Cc(c)&&AL(c.expression)){let _=dr(c.expression.left);if(_)return z0(_)}if(c&&ps(c)&&AL(c.parent)&&Cc(c.parent.parent)){let _=dr(c.parent.left);if(_)return z0(_)}if(c&&(qf(c)||Hl(c))&&Zn(c.parent.parent)&&hl(c.parent.parent)===6){let _=dr(c.parent.parent.left);if(_)return z0(_)}let u=Rb(n);if(u&&Lo(u)){let _=dr(u);return _&&_.valueDeclaration}}function z0(n){let a=n.parent.valueDeclaration;return a?(vC(a)?LA(a):SS(a)?yL(a):void 0)||a:void 0}function xP(n){let a=n.valueDeclaration;if(!a||!Jn(a)||n.flags&524288||Ib(a,!1))return;let c=yi(a)?yL(a):LA(a);if(c){let u=Fp(c);if(u)return Zhe(u,n)}}function jd(n,a,c){let _=zd(F)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return Tg(n,a,c?void 0:_)}function Tg(n,a,c,u=!1){return Ga(a)?__(n,a.text,c,a,u):void 0}function __(n,a,c,u,_=!1){var g,T,N,O,B,Q,me,ue,We,at,ht;if(Ui(a,\"@types/\")){let Bn=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,co=jD(a,\"@types/\");we(u,Bn,co,a)}let qt=w$(a,!0);if(qt)return qt;let Xt=Nn(n),Hn=Ga(n)?n:((g=Il(n)?n:n.parent&&Il(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=ey(n)?n:void 0)==null?void 0:T.argument.literal)||(yi(n)&&n.initializer&&Xd(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((N=Rn(n,lp))==null?void 0:N.arguments[0])||((O=Rn(n,cc))==null?void 0:O.moduleSpecifier)||((B=Rn(n,Ab))==null?void 0:B.moduleReference.expression)||((Q=Rn(n,xl))==null?void 0:Q.moduleSpecifier),En=Hn&&Ga(Hn)?e.getModeForUsageLocation(Xt,Hn):Xt.impliedNodeFormat,Kt=zd(F),In=(me=e.getResolvedModule(Xt,a,En))==null?void 0:me.resolvedModule,Sn=In&&FH(F,In,Xt),zn=In&&(!Sn||Sn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(In.resolvedFileName);if(zn){if(Sn&&we(u,Sn,a,In.resolvedFileName),In.resolvedUsingTsExtension&&Yc(a)){let Bn=((ue=Rn(n,cc))==null?void 0:ue.importClause)||Rn(n,hm(Nc,xl));(Bn&&!Bn.isTypeOnly||Rn(n,lp))&&we(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Mn(x.checkDefined(JW(a))))}else if(In.resolvedUsingTsExtension&&!nR(F,Xt.fileName)){let Bn=((We=Rn(n,cc))==null?void 0:We.importClause)||Rn(n,hm(Nc,xl));if(!(Bn?.isTypeOnly||Rn(n,Dh))){let co=x.checkDefined(JW(a));we(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,co)}}if(zn.symbol){if(In.isExternalLibraryImport&&!VC(In.extension)&&o1(!1,u,Xt,En,In,a),Kt===3||Kt===99){let Bn=Xt.impliedNodeFormat===1&&!Rn(n,lp)||!!Rn(n,Nc),co=Rn(n,no=>Dh(no)||xl(no)||cc(no));if(Bn&&zn.impliedNodeFormat===99&&!hre(co))if(Rn(n,Nc))we(u,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let no,Eo=og(Xt.fileName);if(Eo===\".ts\"||Eo===\".js\"||Eo===\".tsx\"||Eo===\".jsx\"){let Yi=Xt.packageJsonScope,ic=Eo===\".ts\"?\".mts\":Eo===\".js\"?\".mjs\":void 0;Yi&&!Yi.contents.packageJsonContent.type?ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,ic,wr(Yi.packageDirectory,\"package.json\")):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,wr(Yi.packageDirectory,\"package.json\")):ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,ic):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}La.add(eg(Nn(u),u,So(no,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return Oa(zn.symbol)}c&&we(u,f.File_0_is_not_a_module,zn.fileName);return}if(Nf){let Bn=pB(Nf,co=>co.pattern,a);if(Bn){let co=Vd&&Vd.get(a);return Oa(co||Bn.symbol)}}if(In&&!VC(In.extension)&&Sn===void 0||Sn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let Bn=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;we(u,Bn,a,In.resolvedFileName)}else o1(ce&&!!c,u,Xt,En,In,a);return}if(c){if(In){let Bn=e.getProjectReferenceRedirect(In.resolvedFileName);if(Bn){we(u,f.Output_file_0_has_not_been_built_from_source_file_1,Bn,In.resolvedFileName);return}}if(Sn)we(u,Sn,a,In.resolvedFileName);else{let Bn=op(a)&&!TA(a),co=Kt===3||Kt===99;if(!Mb(F)&&el(a,\".json\")&&Kt!==1&&rF(F))we(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(En===99&&co&&Bn){let no=Qi(a,Ur(Xt.path)),Eo=(at=qR.find(([Yi,ic])=>e.fileExists(no+Yi)))==null?void 0:at[1];Eo?we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Eo):we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((ht=e.getResolvedModule(Xt,a,En))!=null&&ht.alternateResult){let no=Q8(Xt,e,a,En,a);jc(!0,u,So(no,c,a))}else we(u,c,a)}}return;function Mn(Bn){let co=QL(a,Bn);if(nF(W)||En===99){let no=Yc(a)&&nR(F);return co+(Bn===\".mts\"||Bn===\".d.mts\"?no?\".mts\":\".mjs\":Bn===\".cts\"||Bn===\".d.mts\"?no?\".cts\":\".cjs\":no?\".ts\":\".js\")}return co}}function o1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let N;!Ic(T)&&_&&(N=Q8(c,e,T,u,_.name)),jc(n,a,So(N,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function $u(n,a){if(n?.exports){let c=yl(n.exports.get(\"export=\"),a),u=a1(Oa(c),Oa(n));return Oa(u)||n}}function a1(n,a){if(!n||n===tt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=Pi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:AT(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=Vo()),a.exports.forEach((_,g)=>{g!==\"export=\"&&u.exports.set(g,u.exports.has(g)?Pf(u.exports.get(g),_):_)}),u===n&&(Pi(u).resolvedExports=void 0,Pi(u).resolvedMembers=void 0),Pi(u).cjsExportMerged=u,c.cjsExportMerged=u}function Pu(n,a,c,u){var _;let g=$u(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!Vs(g,312)){let N=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\";return we(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),g}let T=a.parent;if(cc(T)&&cx(T)||lp(T)){let N=lp(T)?T.arguments[0]:T.moduleSpecifier,O=Yn(g),B=awe(O,g,n,N);if(B)return s1(g,B,T);let Q=(_=n?.declarations)==null?void 0:_.find(Li),me=Q&&Wp(Oi(N),Q.impliedNodeFormat);if(z_(F)||me){let ue=k7(O,0);if((!ue||!ue.length)&&(ue=k7(O,1)),ue&&ue.length||Qo(O,\"default\",!0)||me){let We=O.flags&3670016?swe(O,g,n,N):ege(g,g.parent);return s1(g,We,T)}}}}return g}function s1(n,a,c){let u=Ra(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=Om(a);return u.links.type=cs(u,_.members,je,je,_.indexInfos),u}function xv(n){return n.exports.get(\"export=\")!==void 0}function wT(n){return Ume(Z_(n))}function eD(n){let a=wT(n),c=$u(n);if(c!==n){let u=Yn(c);wy(u)&&Pr(a,Xa(u))}return a}function tD(n,a){Z_(n).forEach((_,g)=>{V0(g)||a(_,g)});let u=$u(n);if(u!==n){let _=Yn(u);wy(_)&&ntt(_,(g,T)=>{a(g,T)})}}function WT(n,a){let c=Z_(a);if(c)return c.get(n)}function nD(n,a){let c=WT(n,a);if(c)return c;let u=$u(a);if(u===a)return;let _=Yn(u);return wy(_)?Qo(_,n):void 0}function wy(n){return!(n.flags&402784252||br(n)&1||ff(n)||ga(n))}function Qu(n){return n.flags&6256?Dme(n,\"resolvedExports\"):n.flags&1536?Z_(n):n.exports||U}function Z_(n){let a=Pi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=FT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function rD(n,a,c,u){a&&a.forEach((_,g)=>{if(g===\"default\")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:Vl(u.moduleSpecifier)});else if(c&&u&&T&&yl(T)!==yl(_)){let N=c.get(g);N.exportsWithDuplicate?N.exportsWithDuplicate.push(u):N.exportsWithDuplicate=[u]}})}function FT(n){let a=[],c,u=new Set;n=$u(n);let _=g(n)||U;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,N,O){if(!O&&T?.exports&&T.exports.forEach((me,ue)=>u.add(ue)),!(T&&T.exports&&jp(a,T)))return;let B=new Map(T.exports),Q=T.exports.get(\"__export\");if(Q){let me=Vo(),ue=new Map;if(Q.declarations)for(let We of Q.declarations){let at=jd(We,We.moduleSpecifier),ht=g(at,We,O||We.isTypeOnly);rD(me,ht,ue,We)}ue.forEach(({exportsWithDuplicate:We},at)=>{if(!(at===\"export=\"||!(We&&We.length)||B.has(at)))for(let ht of We)La.add(vr(ht,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ue.get(at).specifierText,Ii(at)))}),rD(B,me)}return N?.isTypeOnly&&(c??(c=new Map),B.forEach((me,ue)=>c.set(ue,N))),B}}function Oa(n){let a;return n&&n.mergeId&&(a=jR[n.mergeId])?a:n}function dr(n){return Oa(n.symbol&&L$(n.symbol))}function Fp(n){return qm(n)?dr(n):void 0}function nu(n){return Oa(n.parent&&L$(n.parent))}function B0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&Fp(n.valueDeclaration.parent)||n}function iD(n,a){let c=Nn(a),u=Fa(c),_=Pi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let N of c.imports){if(xs(N))continue;let O=jd(a,N,!0);!O||!zh(O,n)||(g=pn(g,O))}if(yn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let N of T){if(!wl(N))continue;let O=dr(N);zh(O,n)&&(g=pn(g,O))}return _.extendedContainers=g||je}function cE(n,a,c){let u=nu(n);if(u&&!(n.flags&262144))return O(u);let _=Fi(n.declarations,Q=>{if(!sd(Q)&&Q.parent){if(Rd(Q.parent))return dr(Q.parent);if(n_(Q.parent)&&Q.parent.parent&&$u(dr(Q.parent.parent))===n)return dr(Q.parent.parent)}if(Dc(Q)&&Zn(Q.parent)&&Q.parent.operatorToken.kind===64&&us(Q.parent.left)&&gl(Q.parent.left.expression))return Eh(Q.parent.left)||DS(Q.parent.left.expression)?dr(Nn(Q)):(Ml(Q.parent.left.expression),Fr(Q.parent.left.expression).resolvedSymbol)});if(!yn(_))return;let g=Fi(_,Q=>zh(Q,n)?Q:void 0),T=[],N=[];for(let Q of g){let[me,...ue]=O(Q);T=pn(T,me),N=Pr(N,ue)}return ro(T,N);function O(Q){let me=Fi(Q.declarations,B),ue=a&&iD(n,a),We=G0(Q,c);if(a&&Q.flags&Ig(c)&&Wy(Q,a,1920,!1))return pn(ro(ro([Q],me),ue),We);let at=!(Q.flags&Ig(c))&&Q.flags&788968&&Cs(Q).flags&524288&&c===111551?U0(a,qt=>hc(qt,Xt=>{if(Xt.flags&Ig(c)&&Yn(Xt)===Cs(Q))return Xt})):void 0,ht=at?[at,...me,Q]:[...me,Q];return ht=pn(ht,We),ht=Pr(ht,ue),ht}function B(Q){return u&&zT(Q,u)}}function G0(n,a){let c=!!yn(n.declarations)&&Ta(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(ma(c)&&c===c.parent.initializer||ju(c)&&c===c.parent.type))return dr(c.parent)}function zT(n,a){let c=wi(n),u=c&&c.exports&&c.exports.get(\"export=\");return u&&Nm(u,a)?c:void 0}function zh(n,a){if(n===nu(a))return a;let c=n.exports&&n.exports.get(\"export=\");if(c&&Nm(c,a))return n;let u=Qu(n),_=u.get(a.escapedName);return _&&Nm(_,a)?_:hc(u,g=>{if(Nm(g,a))return g})}function Nm(n,a){if(Oa(yl(Oa(n)))===Oa(yl(Oa(a))))return n}function zp(n){return Oa(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function sm(n,a){return!!(n.flags&111551||n.flags&2097152&&Qc(n,!a)&111551)}function Ag(n){let a=n.members;for(let c of a)if(c.kind===176&&gf(c.body))return c}function Bh(n){var a;let c=new p(zt,n);return m++,c.id=m,(a=qn)==null||a.recordType(c),c}function Gh(n,a){let c=Bh(n);return c.symbol=a,c}function l1(n){return new p(zt,n)}function Fl(n,a,c=0,u){oD(a,u);let _=Bh(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function oD(n,a){let c=`${n},${a??\"\"}`;et.has(c)&&x.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:\"\"}; you may need to pass a name to createIntrinsicType.`),et.add(c)}function af(n,a){let c=Gh(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function eh(){return Br(bo(GU.keys(),yu))}function Bp(n){return Gh(262144,n)}function V0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function dE(n){let a;return n.forEach((c,u)=>{c1(c,u)&&(a||(a=[])).push(c)}),a||je}function c1(n,a){return!V0(a)&&sm(n)}function BT(n){let a=dE(n),c=z$(n);return c?ro(a,[c]):a}function Gp(n,a,c,u,_){let g=n;return g.members=a,g.properties=je,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==U&&(g.properties=dE(a)),g}function cs(n,a,c,u,_){return Gp(af(16,n),a,c,u,_)}function j0(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Cr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=cs(n.symbol,n.members,n.callSignatures,ct(a)?a:je,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function U0(n,a){let c;for(let u=n;u;u=u.parent){if(L_(u)&&u.locals&&!$_(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!sp(u))break;case 267:let _=dr(u);if(c=a(_?.exports||U,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((dr(u).members||U).forEach((T,N)=>{T.flags&788968&&(g||(g=Vo())).set(N,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(he,void 0,!0)}function Ig(n){return n===111551?111551:1920}function Wy(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=Pi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),N=U0(a,(Xt,Hn,En,Kt)=>Kt),O=`${u?0:1}|${N&&Fa(N)}|${c}`;if(T.has(O))return T.get(O);let B=na(n),Q=_.get(B);Q||_.set(B,Q=[]);let me=U0(a,ue);return T.set(O,me),me;function ue(Xt,Hn,En){if(!jp(Q,Xt))return;let Kt=ht(Xt,Hn,En);return Q.pop(),Kt}function We(Xt,Hn){return!uE(Xt,a,Hn)||!!Wy(Xt.parent,a,Ig(Hn),u,_)}function at(Xt,Hn,En){return(n===(Hn||Xt)||Oa(n)===Oa(Hn||Xt))&&!ct(Xt.declarations,Rd)&&(En||We(Oa(Xt),c))}function ht(Xt,Hn,En){return at(Xt.get(n.escapedName),void 0,Hn)?[n]:hc(Xt,In=>{if(In.flags&2097152&&In.escapedName!==\"export=\"&&In.escapedName!==\"default\"&&!(QW(In)&&a&&wl(Nn(a)))&&(!u||ct(In.declarations,Ab))&&(!En||!ct(In.declarations,Jte))&&(Hn||!Vs(In,281))){let Sn=fc(In),zn=qt(In,Sn,Hn);if(zn)return zn}if(In.escapedName===n.escapedName&&In.exportSymbol&&at(Oa(In.exportSymbol),void 0,Hn))return[n]})||(Xt===he?qt(Ke,Ke,Hn):void 0)}function qt(Xt,Hn,En){if(at(Xt,Hn,En))return[Xt];let Kt=Qu(Hn),In=Kt&&ue(Kt,!0);if(In&&We(Xt,Ig(c)))return[Xt].concat(In)}}function uE(n,a,c){let u=!1;return U0(a,_=>{let g=Oa(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!Vs(g,281);return g=T?fc(g):g,(T?Qc(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ne(n,a){return ri(n,a,788968,!1,!0).accessibility===0}function rt(n,a){return ri(n,a,111551,!1,!0).accessibility===0}function Ht(n,a,c){return ri(n,a,c,!1,!1).accessibility===0}function yr(n,a,c,u,_,g){if(!yn(n))return;let T,N=!1;for(let O of n){let B=Wy(O,a,u,!1);if(B){T=O;let ue=ru(B[0],_);if(ue)return ue}if(g&&ct(O.declarations,Rd)){if(_){N=!0;continue}return{accessibility:0}}let Q=cE(O,a,u),me=yr(Q,a,c,c===O?Ig(u):u,_,g);if(me)return me}if(N)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ai(c,a,u),errorModuleName:T!==c?ai(T,a,1920):void 0}}function vi(n,a,c,u){return ri(n,a,c,u,!0)}function ri(n,a,c,u,_){if(n&&a){let g=yr([n],a,n,c,u,_);if(g)return g;let T=an(n.declarations,wi);if(T){let N=wi(a);if(T!==N)return{accessibility:2,errorSymbolName:ai(n,a,c),errorModuleName:ai(T),errorNode:Jn(a)?a:void 0}}return{accessibility:1,errorSymbolName:ai(n,a,c)}}return{accessibility:0}}function wi(n){let a=Rn(n,$o);return a&&dr(a)}function $o(n){return sd(n)||n.kind===312&&sp(n)}function Rd(n){return iW(n)||n.kind===312&&sp(n)}function ru(n,a){let c;if(!ji(Cr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,N;if(!Pm(g)){let O=RT(g);if(O&&!Wr(O,32)&&Pm(O.parent))return _(g,O);if(yi(g)&&cl(g.parent.parent)&&!Wr(g.parent.parent,32)&&Pm(g.parent.parent.parent))return _(g,g.parent.parent);if(oW(g)&&!Wr(g,32)&&Pm(g.parent))return _(g,g);if(Na(g)){if(n.flags&2097152&&Jn(g)&&((T=g.parent)!=null&&T.parent)&&yi(g.parent.parent)&&((N=g.parent.parent.parent)!=null&&N.parent)&&cl(g.parent.parent.parent.parent)&&!Wr(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&Pm(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let B=Rn(g,cl);return Wr(B,32)?!0:Pm(B.parent)?_(g,B):!1}}return!1}return!0}function _(g,T){return a&&(Fr(g).isVisible=!0,c=Kh(c,T)),!0}}function sf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!yh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Fy(n,a){let c=sf(n),u=dp(n),_=Xs(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&YE(u)&&vi(dr(lu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&ru(_,!0)||{accessibility:1,errorSymbolName:Vl(u),errorNode:u}}function ai(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?ft.symbolToNode:ft.symbolToEntityName;return _?N(_).getText():dC(N);function N(O){let B=T(n,c,a,g),Q=a?.kind===312?hH():y0(),me=a&&Nn(a);return Q.writeNode(4,B,me,O),O}}function th(n,a,c=0,u,_){return _?g(_).getText():dC(g);function g(T){let N;c&262144?N=u===1?185:184:N=u===1?180:179;let O=ft.signatureToSignatureDeclaration(n,N,a,GT(c)|70221824|512),B=hk(),Q=a&&Nn(a);return B.writeNode(4,O,Q,nV(T)),T}}function Pn(n,a,c=1064960,u=GL(\"\")){let _=F.noErrorTruncation||c&1,g=ft.typeToTypeNode(n,a,GT(c)|70221824|(_?1:0));if(g===void 0)return x.fail(\"should always get typenode\");let T=n!==Ct?y0():_H(),N=a&&Nn(a);T.writeNode(4,g,N,u);let O=u.getText(),B=_?AF*2:i2*2;return B&&O&&O.length>=B?O.substr(0,B-3)+\"...\":O}function d1(n,a){let c=By(n.symbol)?Pn(n,n.symbol.valueDeclaration):Pn(n),u=By(a.symbol)?Pn(a,a.symbol.valueDeclaration):Pn(a);return c===u&&(c=zy(n),u=zy(a)),[c,u]}function zy(n){return Pn(n,void 0,64)}function By(n){return n&&!!n.valueDeclaration&&lt(n.valueDeclaration)&&!uf(n.valueDeclaration)}function GT(n=0){return n&848330095}function H0(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===cf(n.symbol)||!!(n.flags&524288)&&!!(br(n)&16777216))}function h_(){return{typeToTypeNode:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>u(Qe,Xr)),indexInfoToIndexSignatureDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>Q(Qe,Xr,void 0)),signatureToSignatureDeclaration:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>me(Qe,ve,li)),symbolToEntityName:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>Yi(Qe,li,ve,!1)),symbolToExpression:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>ic(Qe,li,ve)),symbolToTypeParameterDeclarations:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>In(Qe,Xr)),symbolToParameterDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>qt(Qe,Xr)),typeParameterToDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>at(Qe,Xr)),symbolTableToDeclarationStatements:(Qe,ve,vn,_r,Xr)=>a(ve,vn,_r,li=>Ys(Qe,li,Xr)),symbolToNode:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>n(Qe,li,ve))};function n(Qe,ve,vn){if(ve.flags&1073741824){if(Qe.valueDeclaration){let Xr=mo(Qe.valueDeclaration);if(Xr&&Pa(Xr))return Xr}let _r=Pi(Qe).nameType;if(_r&&_r.flags&9216)return ve.enclosingDeclaration=_r.symbol.valueDeclaration,P.createComputedPropertyName(ic(_r.symbol,ve,vn))}return ic(Qe,ve,vn)}function a(Qe,ve,vn,_r){x.assert(Qe===void 0||(Qe.flags&16)===0);let Xr=vn?.trackSymbol?vn.moduleResolverHost:ve&134217728?w3e(e):void 0,li={enclosingDeclaration:Qe,flags:ve||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};li.tracker=new VU(li,vn,Xr);let ci=_r(li);return li.truncating&&li.flags&1&&li.tracker.reportTruncationError(),li.encounteredError?void 0:ci}function c(Qe){return Qe.truncating?Qe.truncating:Qe.truncating=Qe.approximateLength>(Qe.flags&1?AF:i2)}function u(Qe,ve){let vn=ve.flags,_r=_(Qe,ve);return ve.flags=vn,_r}function _(Qe,ve){var vn,_r;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xr=ve.flags&8388608;if(ve.flags&=-8388609,!Qe){if(!(ve.flags&262144)){ve.encounteredError=!0;return}return ve.approximateLength+=3,P.createKeywordTypeNode(133)}if(ve.flags&536870912||(Qe=wm(Qe)),Qe.flags&1)return Qe.aliasSymbol?P.createTypeReferenceNode(Bn(Qe.aliasSymbol),O(Qe.aliasTypeArguments,ve)):Qe===Ct?iN(P.createKeywordTypeNode(133),3,\"unresolved\"):(ve.approximateLength+=3,P.createKeywordTypeNode(Qe===Qt?141:133));if(Qe.flags&2)return P.createKeywordTypeNode(159);if(Qe.flags&4)return ve.approximateLength+=6,P.createKeywordTypeNode(154);if(Qe.flags&8)return ve.approximateLength+=6,P.createKeywordTypeNode(150);if(Qe.flags&64)return ve.approximateLength+=6,P.createKeywordTypeNode(163);if(Qe.flags&16&&!Qe.aliasSymbol)return ve.approximateLength+=7,P.createKeywordTypeNode(136);if(Qe.flags&1056){if(Qe.symbol.flags&8){let fn=nu(Qe.symbol),zr=co(fn,ve,788968);if(Cs(fn)===Qe)return zr;let Ai=$s(Qe.symbol);return Tp(Ai,0)?ii(zr,P.createTypeReferenceNode(Ai,void 0)):Dh(zr)?(zr.isTypeOf=!0,P.createIndexedAccessTypeNode(zr,P.createLiteralTypeNode(P.createStringLiteral(Ai)))):Yp(zr)?P.createIndexedAccessTypeNode(P.createTypeQueryNode(zr.typeName),P.createLiteralTypeNode(P.createStringLiteral(Ai))):x.fail(\"Unhandled type node kind returned from `symbolToTypeNode`.\")}return co(Qe.symbol,ve,788968)}if(Qe.flags&128)return ve.approximateLength+=Qe.value.length+2,P.createLiteralTypeNode($n(P.createStringLiteral(Qe.value,!!(ve.flags&268435456)),16777216));if(Qe.flags&256){let fn=Qe.value;return ve.approximateLength+=(\"\"+fn).length,P.createLiteralTypeNode(fn<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-fn)):P.createNumericLiteral(fn))}if(Qe.flags&2048)return ve.approximateLength+=ZE(Qe.value).length+1,P.createLiteralTypeNode(P.createBigIntLiteral(Qe.value));if(Qe.flags&512)return ve.approximateLength+=Qe.intrinsicName.length,P.createLiteralTypeNode(Qe.intrinsicName===\"true\"?P.createTrue():P.createFalse());if(Qe.flags&8192){if(!(ve.flags&1048576)){if(rt(Qe.symbol,ve.enclosingDeclaration))return ve.approximateLength+=6,co(Qe.symbol,ve,111551);ve.tracker.reportInaccessibleUniqueSymbolError&&ve.tracker.reportInaccessibleUniqueSymbolError()}return ve.approximateLength+=13,P.createTypeOperatorNode(158,P.createKeywordTypeNode(155))}if(Qe.flags&16384)return ve.approximateLength+=4,P.createKeywordTypeNode(116);if(Qe.flags&32768)return ve.approximateLength+=9,P.createKeywordTypeNode(157);if(Qe.flags&65536)return ve.approximateLength+=4,P.createLiteralTypeNode(P.createNull());if(Qe.flags&131072)return ve.approximateLength+=5,P.createKeywordTypeNode(146);if(Qe.flags&4096)return ve.approximateLength+=6,P.createKeywordTypeNode(155);if(Qe.flags&67108864)return ve.approximateLength+=6,P.createKeywordTypeNode(151);if(YC(Qe))return ve.flags&4194304&&(!ve.encounteredError&&!(ve.flags&32768)&&(ve.encounteredError=!0),(_r=(vn=ve.tracker).reportInaccessibleThisError)==null||_r.call(vn)),ve.approximateLength+=4,P.createThisTypeNode();if(!Xr&&Qe.aliasSymbol&&(ve.flags&16384||ne(Qe.aliasSymbol,ve.enclosingDeclaration))){let fn=O(Qe.aliasTypeArguments,ve);return V0(Qe.aliasSymbol.escapedName)&&!(Qe.aliasSymbol.flags&32)?P.createTypeReferenceNode(P.createIdentifier(\"\"),fn):yn(fn)===1&&Qe.aliasSymbol===Po.symbol?P.createArrayTypeNode(fn[0]):co(Qe.aliasSymbol,ve,788968,fn)}let li=br(Qe);if(li&4)return x.assert(!!(Qe.flags&524288)),Qe.node?Ft(Qe,xn):xn(Qe);if(Qe.flags&262144||li&3){if(Qe.flags&262144&&To(ve.inferTypeParameters,Qe)){ve.approximateLength+=$s(Qe.symbol).length+6;let zr,Ai=iu(Qe);if(Ai){let Ji=OLe(Qe,!0);Ji&&kg(Ai,Ji)||(ve.approximateLength+=9,zr=Ai&&u(Ai,ve))}return P.createInferTypeNode(We(Qe,ve,zr))}if(ve.flags&4&&Qe.flags&262144){let zr=Eo(Qe,ve);return ve.approximateLength+=ar(zr).length,P.createTypeReferenceNode(P.createIdentifier(ar(zr)),void 0)}if(Qe.symbol)return co(Qe.symbol,ve,788968);let fn=(Qe===ae||Qe===X)&&L&&L.symbol?(Qe===X?\"sub-\":\"super-\")+$s(L.symbol):\"?\";return P.createTypeReferenceNode(P.createIdentifier(fn),void 0)}if(Qe.flags&1048576&&Qe.origin&&(Qe=Qe.origin),Qe.flags&3145728){let fn=Qe.flags&1048576?aD(Qe.types):Qe.types;if(yn(fn)===1)return u(fn[0],ve);let zr=O(fn,ve,!0);if(zr&&zr.length>0)return Qe.flags&1048576?P.createUnionTypeNode(zr):P.createIntersectionTypeNode(zr);!ve.encounteredError&&!(ve.flags&262144)&&(ve.encounteredError=!0);return}if(li&48)return x.assert(!!(Qe.flags&524288)),Gt(Qe);if(Qe.flags&4194304){let fn=Qe.type;ve.approximateLength+=6;let zr=u(fn,ve);return P.createTypeOperatorNode(143,zr)}if(Qe.flags&134217728){let fn=Qe.texts,zr=Qe.types,Ai=P.createTemplateHead(fn[0]),Ji=P.createNodeArray(nn(zr,(Ho,Yl)=>P.createTemplateLiteralTypeSpan(u(Ho,ve),(Yl<zr.length-1?P.createTemplateMiddle:P.createTemplateTail)(fn[Yl+1]))));return ve.approximateLength+=2,P.createTemplateLiteralType(Ai,Ji)}if(Qe.flags&268435456){let fn=u(Qe.type,ve);return co(Qe.symbol,ve,788968,[fn])}if(Qe.flags&8388608){let fn=u(Qe.objectType,ve),zr=u(Qe.indexType,ve);return ve.approximateLength+=2,P.createIndexedAccessTypeNode(fn,zr)}if(Qe.flags&16777216)return Ft(Qe,fn=>ci(fn));if(Qe.flags&33554432){let fn=u(Qe.baseType,ve),zr=wP(Qe)&&r_e(\"NoInfer\",!1);return zr?co(zr,ve,788968,[fn]):fn}return x.fail(\"Should be unreachable.\");function ci(fn){let zr=u(fn.checkType,ve);if(ve.approximateLength+=15,ve.flags&4&&fn.root.isDistributive&&!(fn.checkType.flags&262144)){let al=Bp(Ra(262144,\"T\")),Ba=Eo(al,ve),oc=P.createTypeReferenceNode(Ba);ve.approximateLength+=37;let As=eA(fn.root.checkType,al,fn.mapper),Gm=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let qe=u(Gi(fn.root.extendsType,As),ve);ve.inferTypeParameters=Gm;let ut=xr(Gi(si(fn.root.node.trueType),As)),Bt=xr(Gi(si(fn.root.node.falseType),As));return P.createConditionalTypeNode(zr,P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(oc.typeName))),P.createConditionalTypeNode(P.createTypeReferenceNode(P.cloneNode(Ba)),u(fn.checkType,ve),P.createConditionalTypeNode(oc,qe,ut,Bt),P.createKeywordTypeNode(146)),P.createKeywordTypeNode(146))}let Ai=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let Ji=u(fn.extendsType,ve);ve.inferTypeParameters=Ai;let Ho=xr(EE(fn)),Yl=xr(SE(fn));return P.createConditionalTypeNode(zr,Ji,Ho,Yl)}function xr(fn){var zr,Ai,Ji;return fn.flags&1048576?(zr=ve.visitedTypes)!=null&&zr.has(Hd(fn))?(ve.flags&131072||(ve.encounteredError=!0,(Ji=(Ai=ve.tracker)==null?void 0:Ai.reportCyclicStructureError)==null||Ji.call(Ai)),g(ve)):Ft(fn,Ho=>u(Ho,ve)):u(fn,ve)}function ur(fn){return!!fw(fn)}function $e(fn){return!!fn.target&&ur(fn.target)&&!ur(fn)}function It(fn){var zr;x.assert(!!(fn.flags&524288));let Ai=fn.declaration.readonlyToken?P.createToken(fn.declaration.readonlyToken.kind):void 0,Ji=fn.declaration.questionToken?P.createToken(fn.declaration.questionToken.kind):void 0,Ho,Yl,al=!fD(fn)&&!(HT(fn).flags&2)&&ve.flags&4&&!(Vp(fn).flags&262144&&((zr=iu(Vp(fn)))==null?void 0:zr.flags)&4194304);if(fD(fn)){if($e(fn)&&ve.flags&4){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt)}Ho=P.createTypeOperatorNode(143,Yl||u(HT(fn),ve))}else if(al){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt),Ho=Yl}else Ho=u(Vp(fn),ve);let Ba=We(km(fn),ve,Ho),oc=fn.declaration.nameType?u(Dv(fn),ve):void 0,As=u(ob(Ng(fn),!!(oh(fn)&4)),ve),Gm=P.createMappedTypeNode(Ai,Ba,oc,Ji,As,void 0);ve.approximateLength+=10;let qe=$n(Gm,1);if($e(fn)&&ve.flags&4){let ut=Gi(iu(si(fn.declaration.typeParameter.constraint.type))||Zt,fn.mapper);return P.createConditionalTypeNode(u(HT(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),ut.flags&2?void 0:u(ut,ve))),qe,P.createKeywordTypeNode(146))}else if(al)return P.createConditionalTypeNode(u(Vp(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),P.createTypeOperatorNode(143,u(HT(fn),ve)))),qe,P.createKeywordTypeNode(146));return qe}function Gt(fn){var zr,Ai;let Ji=fn.id,Ho=fn.symbol;if(Ho){if(!!(br(fn)&8388608)){let As=fn.node;if(oI(As)&&si(As)===fn){let Gm=fl(ve,As);if(Gm)return Gm}return(zr=ve.visitedTypes)!=null&&zr.has(Ji)?g(ve):Ft(fn,Yt)}let Ba=H0(fn)?788968:111551;if(T_(Ho.valueDeclaration))return co(Ho,ve,Ba);if(Ho.flags&32&&!D$(Ho)&&!(Ho.valueDeclaration&&Kr(Ho.valueDeclaration)&&ve.flags&2048&&(!Zl(Ho.valueDeclaration)||vi(Ho,ve.enclosingDeclaration,Ba,!1).accessibility!==0))||Ho.flags&896||Yl())return co(Ho,ve,Ba);if((Ai=ve.visitedTypes)!=null&&Ai.has(Ji)){let oc=S7(fn);return oc?co(oc,ve,788968):g(ve)}else return Ft(fn,Yt)}else return Yt(fn);function Yl(){var al;let Ba=!!(Ho.flags&8192)&&ct(Ho.declarations,As=>zo(As)),oc=!!(Ho.flags&16)&&(Ho.parent||an(Ho.declarations,As=>As.parent.kind===312||As.parent.kind===268));if(Ba||oc)return(!!(ve.flags&4096)||((al=ve.visitedTypes)==null?void 0:al.has(Ji)))&&(!(ve.flags&8)||rt(Ho,ve.enclosingDeclaration))}}function Ft(fn,zr){var Ai,Ji,Ho;let Yl=fn.id,al=br(fn)&16&&fn.symbol&&fn.symbol.flags&32,Ba=br(fn)&4&&fn.node?\"N\"+Fa(fn.node):fn.flags&16777216?\"N\"+Fa(fn.root.node):fn.symbol?(al?\"+\":\"\")+na(fn.symbol):void 0;ve.visitedTypes||(ve.visitedTypes=new Set),Ba&&!ve.symbolDepth&&(ve.symbolDepth=new Map);let oc=ve.enclosingDeclaration&&Fr(ve.enclosingDeclaration),As=`${Hd(fn)}|${ve.flags}`;oc&&(oc.serializedTypes||(oc.serializedTypes=new Map));let Gm=(Ai=oc?.serializedTypes)==null?void 0:Ai.get(As);if(Gm)return(Ji=Gm.trackedSymbols)==null||Ji.forEach(([Rr,Si,yo])=>ve.tracker.trackSymbol(Rr,Si,yo)),Gm.truncating&&(ve.truncating=!0),ve.approximateLength+=Gm.addedLength,cn(Gm.node);let qe;if(Ba){if(qe=ve.symbolDepth.get(Ba)||0,qe>10)return g(ve);ve.symbolDepth.set(Ba,qe+1)}ve.visitedTypes.add(Yl);let ut=ve.trackedSymbols;ve.trackedSymbols=void 0;let Bt=ve.approximateLength,kn=zr(fn),pr=ve.approximateLength-Bt;return!ve.reportedDiagnostic&&!ve.encounteredError&&((Ho=oc?.serializedTypes)==null||Ho.set(As,{node:kn,truncating:ve.truncating,addedLength:pr,trackedSymbols:ve.trackedSymbols})),ve.visitedTypes.delete(Yl),Ba&&ve.symbolDepth.set(Ba,qe),ve.trackedSymbols=ut,kn;function cn(Rr){return!xs(Rr)&&uo(Rr)===Rr?Rr:Ze(P.cloneNode(un(Rr,cn,void 0,rr)),Rr)}function rr(Rr,Si,yo,Ko,Xo){return Rr&&Rr.length===0?Ze(P.createNodeArray(void 0,Rr.hasTrailingComma),Rr):Dn(Rr,Si,yo,Ko,Xo)}}function Yt(fn){if(vu(fn)||fn.containsError)return It(fn);let zr=Om(fn);if(!zr.properties.length&&!zr.indexInfos.length){if(!zr.callSignatures.length&&!zr.constructSignatures.length)return ve.approximateLength+=2,$n(P.createTypeLiteralNode(void 0),1);if(zr.callSignatures.length===1&&!zr.constructSignatures.length){let al=zr.callSignatures[0];return me(al,184,ve)}if(zr.constructSignatures.length===1&&!zr.callSignatures.length){let al=zr.constructSignatures[0];return me(al,185,ve)}}let Ai=Cr(zr.constructSignatures,al=>!!(al.flags&4));if(ct(Ai)){let al=nn(Ai,XT);return zr.callSignatures.length+(zr.constructSignatures.length-Ai.length)+zr.indexInfos.length+(ve.flags&2048?Wv(zr.properties,oc=>!(oc.flags&4194304)):yn(zr.properties))&&al.push(j0(zr)),u(Zo(al),ve)}let Ji=ve.flags;ve.flags|=4194304;let Ho=qi(zr);ve.flags=Ji;let Yl=P.createTypeLiteralNode(Ho);return ve.approximateLength+=2,$n(Yl,ve.flags&1024?0:1),Yl}function xn(fn){let zr=Ts(fn);if(fn.target===Po||fn.target===Oo){if(ve.flags&2){let Ho=u(zr[0],ve);return P.createTypeReferenceNode(fn.target===Po?\"Array\":\"ReadonlyArray\",[Ho])}let Ai=u(zr[0],ve),Ji=P.createArrayTypeNode(Ai);return fn.target===Po?Ji:P.createTypeOperatorNode(148,Ji)}else if(fn.target.objectFlags&8){if(zr=sc(zr,(Ai,Ji)=>ob(Ai,!!(fn.target.elementFlags[Ji]&2))),zr.length>0){let Ai=Nv(fn),Ji=O(zr.slice(0,Ai),ve);if(Ji){let{labeledElementDeclarations:Ho}=fn.target;for(let al=0;al<Ji.length;al++){let Ba=fn.target.elementFlags[al],oc=Ho?.[al];oc?Ji[al]=P.createNamedTupleMember(Ba&12?P.createToken(26):void 0,P.createIdentifier(Ii(ige(oc))),Ba&2?P.createToken(58):void 0,Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ji[al]=Ba&12?P.createRestTypeNode(Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ba&2?P.createOptionalTypeNode(Ji[al]):Ji[al]}let Yl=$n(P.createTupleTypeNode(Ji),1);return fn.target.readonly?P.createTypeOperatorNode(148,Yl):Yl}}if(ve.encounteredError||ve.flags&524288){let Ai=$n(P.createTupleTypeNode([]),1);return fn.target.readonly?P.createTypeOperatorNode(148,Ai):Ai}ve.encounteredError=!0;return}else{if(ve.flags&2048&&fn.symbol.valueDeclaration&&Kr(fn.symbol.valueDeclaration)&&!rt(fn.symbol,ve.enclosingDeclaration))return Gt(fn);{let Ai=fn.target.outerTypeParameters,Ji=0,Ho;if(Ai){let oc=Ai.length;for(;Ji<oc;){let As=Ji,Gm=wLe(Ai[Ji]);do Ji++;while(Ji<oc&&wLe(Ai[Ji])===Gm);if(!nB(Ai,zr,As,Ji)){let qe=O(zr.slice(As,Ji),ve),ut=ve.flags;ve.flags|=16;let Bt=co(Gm,ve,788968,qe);ve.flags=ut,Ho=Ho?ii(Ho,Bt):Bt}}}let Yl;if(zr.length>0){let oc=(fn.target.typeParameters||je).length;Yl=O(zr.slice(Ji,oc),ve)}let al=ve.flags;ve.flags|=16;let Ba=co(fn.symbol,ve,788968,Yl);return ve.flags=al,Ho?ii(Ho,Ba):Ba}}}function ii(fn,zr){if(Dh(fn)){let Ai=fn.typeArguments,Ji=fn.qualifier;Ji&&(Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai)))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=Ji?P.createQualifiedName(Ji,Yl):Yl;return P.updateImportTypeNode(fn,fn.argument,fn.attributes,Ji,Ai,fn.isTypeOf)}else{let Ai=fn.typeArguments,Ji=fn.typeName;Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=P.createQualifiedName(Ji,Yl);return P.updateTypeReferenceNode(fn,Ji,Ai)}}function Yr(fn){let zr=fn.typeName,Ai=[];for(;!Me(zr);)Ai.unshift(zr.right),zr=zr.left;return Ai.unshift(zr),Ai}function qi(fn){if(c(ve))return[P.createPropertySignature(void 0,\"...\",void 0,void 0)];let zr=[];for(let Ho of fn.callSignatures)zr.push(me(Ho,179,ve));for(let Ho of fn.constructSignatures)Ho.flags&4||zr.push(me(Ho,180,ve));for(let Ho of fn.indexInfos)zr.push(Q(Ho,ve,fn.objectFlags&1024?g(ve):void 0));let Ai=fn.properties;if(!Ai)return zr;let Ji=0;for(let Ho of Ai){if(Ji++,ve.flags&2048){if(Ho.flags&4194304)continue;Kp(Ho)&6&&ve.tracker.reportPrivateInBaseOfClassExpression&&ve.tracker.reportPrivateInBaseOfClassExpression(Ii(Ho.escapedName))}if(c(ve)&&Ji+2<Ai.length-1){zr.push(P.createPropertySignature(void 0,`... ${Ai.length-Ji} more ...`,void 0,void 0)),N(Ai[Ai.length-1],ve,zr);break}N(Ho,ve,zr)}return zr.length?zr:void 0}}function g(Qe){return Qe.approximateLength+=3,Qe.flags&1?P.createKeywordTypeNode(133):P.createTypeReferenceNode(P.createIdentifier(\"...\"),void 0)}function T(Qe,ve){var vn;return!!(tl(Qe)&8192)&&(To(ve.reverseMappedStack,Qe)||((vn=ve.reverseMappedStack)==null?void 0:vn[0])&&!(br(Da(ve.reverseMappedStack).links.propertyType)&16))}function N(Qe,ve,vn){var _r;let Xr=!!(tl(Qe)&8192),li=T(Qe,ve)?z:qy(Qe),ci=ve.enclosingDeclaration;if(ve.enclosingDeclaration=void 0,ve.tracker.canTrackSymbol&&nw(Qe.escapedName))if(Qe.declarations){let Yt=Ta(Qe.declarations);if(D7(Yt))if(Zn(Yt)){let xn=mo(Yt);xn&&Rs(xn)&&UL(xn.argumentExpression)&&Hn(xn.argumentExpression,ci,ve)}else Hn(Yt.name.expression,ci,ve)}else ve.tracker.reportNonSerializableProperty(ai(Qe));ve.enclosingDeclaration=Qe.valueDeclaration||((_r=Qe.declarations)==null?void 0:_r[0])||ci;let xr=bn(Qe,ve);if(ve.enclosingDeclaration=ci,ve.approximateLength+=$s(Qe).length+1,Qe.flags&98304){let Yt=q0(Qe);if(li!==Yt&&!Lt(li)&&!Lt(Yt)){let xn=Vs(Qe,177),ii=kf(xn);vn.push(Ol(me(ii,177,ve,{name:xr}),xn));let Yr=Vs(Qe,178),qi=kf(Yr);vn.push(Ol(me(qi,178,ve,{name:xr}),Yr));return}}let ur=Qe.flags&16777216?P.createToken(58):void 0;if(Qe.flags&8208&&!Xy(li).length&&!Bm(Qe)){let Yt=Co(Bl(li,xn=>!(xn.flags&32768)),0);for(let xn of Yt){let ii=me(xn,173,ve,{name:xr,questionToken:ur});vn.push(Ft(ii))}if(Yt.length||!ur)return}let $e;T(Qe,ve)?$e=g(ve):(Xr&&(ve.reverseMappedStack||(ve.reverseMappedStack=[]),ve.reverseMappedStack.push(Qe)),$e=li?es(ve,li,Qe,ci):P.createKeywordTypeNode(133),Xr&&ve.reverseMappedStack.pop());let It=Bm(Qe)?[P.createToken(148)]:void 0;It&&(ve.approximateLength+=9);let Gt=P.createPropertySignature(It,xr,ur,$e);vn.push(Ft(Gt));function Ft(Yt){var xn;let ii=(xn=Qe.declarations)==null?void 0:xn.find(Yr=>Yr.kind===355);if(ii){let Yr=VM(ii.comment);Yr&&Lb(Yt,[{kind:3,text:`*","vulnerability":{}},{"path":"dify-agent-runtime/internal/server/config.go","start_line":31,"end_line":31,"snippet":"\tDefaultAuthTokenEnv                  = \"SHELLCTL_AUTH_TOKEN\"","vulnerability":{"severity":"HIGH"}},{"path":"api/clients/agent_backend/factory.py","start_line":44,"end_line":51,"snippet":"    return DifyAgentBackendRunClient(\n        create_agent_backend_client(\n            base_url=base_url,\n            api_token=api_token,\n            stream_timeout=stream_read_timeout_seconds,\n        ),\n        stream_max_reconnects=stream_max_reconnects,\n    )","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":32,"end_line":32,"snippet":"        valid_password(new_password)","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":37,"end_line":37,"snippet":"    application_services().accounts.lifecycle.reset_password(account.id, new_password, email=normalized_email)","vulnerability":{"severity":"WARNING"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0003","rule_version":"1.3.0","rule_name":"Runtime Command Injection via Process Execution","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"medium","rationale":"The dify-agent / dify-agent-runtime component's declared purpose is to run arbitrary user-submitted shell scripts/commands as a sandboxed agent tool (shellctl), so argv-based exec is within its declared contract rather than an injection bug. Tracing the sinks: (1) dify-agent-runtime/cmd/runner/main.go uses exec.Command(self, childArgs...) / syscall.Exec(binary, argv, ...) with a fixed, hardcoded self-reexec argv (binary + '--exec' + script_path + cwd) -- the actual user-supplied SCRIPT CONTENT is never concatenated into a shell string for this sink; it is written as file content at scriptPath and only the fixed path string is passed as an argv element, with shebang/`sh <path>` dispatch (buildExecArgv) -- the semgrep LOW-confidence 'non-static command' flags are the exec of the controller's OWN re-exec'd binary, not attacker-constructed shell text. (2) dify-agent-runtime/internal/server/tmux.go wraps user script execution via tmux using shellJoin/shellQuote helpers that quote each argument before composing the wrapper script, and the user's script itself runs inside a Landlock-restricted (default SHELLCTL_ENABLE_PATH_ISOLATION=true, envvar.go:34-40) sandboxed process tree that confines filesystem access -- i.e. arbitrary command execution is the TOOL'S DECLARED JOB, with sandboxing as the mitigating control, not a hidden injection flaw. api/libs/helper.py:127-128 run(script) (subprocess.getstatusoutput('source /root/.bashrc && '+script), a real shell-injection-shaped sink) has NO callers anywhere in the api/ runtime tree (grep confirms only this definition, zero call sites) -- dead code, not reachable from any HTTP/tool-call path, so it does not establish execution_reachability for a VULNERABLE verdict.","vulnerability_details":null,"fix_guidance":"Remove the unreferenced api/libs/helper.py:run() dead code to eliminate future-reachability risk; keep SHELLCTL_ENABLE_PATH_ISOLATION defaulted to true and do not allow it to be disabled in multi-tenant deployments.","why_this_matters":"Unsanitized command construction in shipped runtime code can give a remote attacker arbitrary code execution with the application's privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":108,"end_line":117,"snippet":"\tself, _ := os.Executable()\n\tchildArgs := []string{\"--exec\", scriptPath, cwd}\n\tif enableIsolation {\n\t\tchildArgs = append([]string{\"--exec\", \"--landlock\"}, childArgs[1:]...)\n\t}\n\n\tcmd := exec.Command(self, childArgs...)\n\tcmd.Env = env\n\tcmd.Dir = cwd"},{"path":"dify-agent-runtime/internal/envvar/envvar.go","start_line":33,"end_line":40,"snippet":"// PathIsolationEnabled returns whether Landlock filesystem isolation is active.\nfunc PathIsolationEnabled() bool {\n\tv, ok := os.LookupEnv(EnvEnablePathIsolation)\n\tif !ok {\n\t\treturn true\n\t}\n\treturn v == \"true\"\n}"},{"path":"api/libs/helper.py","start_line":127,"end_line":128,"snippet":"def run(script):\n    return subprocess.getstatusoutput(\"source /root/.bashrc && \" + script)"},{"path":"dify-agent-runtime/internal/server/tmux.go","start_line":246,"end_line":246,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":320,"end_line":320,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":115,"end_line":115,"snippet":null,"vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0004","rule_version":"1.2.0","rule_name":"DoS Protections: Timeouts, Concurrency, Streaming Limits","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The codebase implements layered DoS protections: (1) a generic rate-limit decorator/library (api/libs/rate_limit.py) with per-IP/session/account/email/token sliding-window limits applied to auth-sensitive endpoints (device code, SSO initiate, bearer token validation, etc.); (2) the outbound SSRF-protected HTTP client enforces connect/read/write/total timeouts by default (SSRF_DEFAULT_TIME_OUT family) and a bounded buffer_response() that raises ResponseTooLargeError once decoded bytes exceed a configured cap, preventing unbounded streaming responses from exhausting memory; (3) upload size limits are enforced per content type (UPLOAD_FILE_SIZE_LIMIT, UPLOAD_IMAGE_FILE_SIZE_LIMIT, UPLOAD_VIDEO_FILE_SIZE_LIMIT, UPLOAD_AUDIO_FILE_SIZE_LIMIT, UPLOAD_SKILL_FILE_SIZE_LIMIT) in api/configs/feature/__init__.py and enforced in FileService.is_file_size_within_limit before any save() call.","vulnerability_details":null,"fix_guidance":"Continue to audit newly added external-facing endpoints to ensure they are decorated with an appropriate RateLimit spec; consider a global default body-size limit at the WSGI/reverse-proxy layer as defense in depth.","why_this_matters":"Resource exhaustion can crash or stall MCP.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/helper/ssrf_proxy.py","start_line":287,"end_line":300,"snippet":"def buffer_response(response: httpx.Response, *, max_response_bytes: int) -> httpx.Response:\n    \"\"\"Consume one open identity response under a decoded byte limit and close its stream.\"\"\"\n    if max_response_bytes <= 0:\n        raise ValueError(\"max_response_bytes must be positive\")\n    try:\n        content_encoding = response.headers.get(\"content-encoding\", \"identity\").strip().lower()\n        if content_encoding not in {\"\", \"identity\"}:\n            raise UnsupportedResponseEncodingError(...)\n        content = bytearray()\n        for chunk in response.iter_bytes():\n            if len(content) + len(chunk) > max_response_bytes:\n                raise ResponseTooLargeError(f\"response exceeded {max_response_bytes} bytes\")\n            content.extend(chunk)"},{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_DEVICE_FLOW_APPROVE = RateLimit(...)\nLIMIT_LOOKUP_PUBLIC = RateLimit(60, timedelta(minutes=5), (RateLimitScope.IP,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/configs/feature/__init__.py","start_line":458,"end_line":488,"snippet":"    UPLOAD_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    KNOWLEDGE_UPLOAD_FILE_SIZE_LIMIT_FOR_PAID_PLAN: NonNegativeInt = Field(...)\n    UPLOAD_IMAGE_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_VIDEO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_AUDIO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_SKILL_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0005","rule_version":"1.2.0","rule_name":"Logging Hygiene (No Secrets/PII/Tokens) & Audit Trail","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"api/libs/helper.py's TokenManager.get_token_data() logs the FULL raw token value at WARNING level (enabled by default under LOG_LEVEL=INFO) whenever a lookup misses. TokenManager mints these tokens for password-reset and other auth flows, so a reset-password token lands in application logs verbatim, with no central redaction filter in place.","vulnerability_details":"api/libs/helper.py line 549: `logger.warning(\"%s token %s not found with key %s\", token_type, token, key)` logs the raw `token` argument (a UUID minted by TokenManager.generate_token for sensitive flows including password reset, api/services/account/login_adapters.py:328) at WARNING level, enabled under the default LOG_LEVEL=INFO. Anyone with read access to application logs (log-aggregation/SIEM access, a separate log-exposure bug, or an insider) can harvest live password-reset tokens straight from this log line and use them to take over the corresponding account before the token's TTL expires -- turning a routine 'token not found' debug log into an account-takeover credential leak.","fix_guidance":"Change helper.py:549 to log only a hash/prefix of the token (e.g. token[:8]+'...') or omit it entirely and log the Redis key alone; add a logging filter/formatter that redacts known credential-shaped fields project-wide as defense in depth.","why_this_matters":"Prevents sensitive data leakage; enables forensics.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0005 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"api/libs/helper.py","start_line":544,"end_line":551,"snippet":"    @classmethod\n    def get_token_data(cls, token: str, token_type: str) -> dict[str, Any] | None:\n        key = cls._get_token_key(token, token_type)\n        token_data_json = redis_client.get(key)\n        if token_data_json is None:\n            logger.warning(\"%s token %s not found with key %s\", token_type, token, key)\n            return None\n        return dict(_token_data_adapter.validate_json(token_data_json))"},{"path":"api/services/account/login_adapters.py","start_line":325,"end_line":330,"snippet":"            token = TokenManager.generate_token(\n                account_id=account_id,\n                email=email,"},{"path":"api/configs/feature/__init__.py","start_line":804,"end_line":807,"snippet":"    LOG_LEVEL: str = Field(\n        description=\"Logging level, default to INFO. Set to ERROR for production environments.\",\n        default=\"INFO\",\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0006","rule_version":"1.2.0","rule_name":"Container/Runtime Hardening","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"Trivy config scan identifies concrete hardening gaps: docker/couchbase-server/Dockerfile uses the floating ':latest' tag (DS-0001) and never sets a non-root USER (DS-0002, HIGH) -- confirmed by manual read, no USER directive exists so the container runs as root by inheritance from the base image. .devcontainer/Dockerfile also runs as root (DS-0002) and misses --no-install-recommends on apt-get install (DS-0029, HIGH). All Dockerfiles lack HEALTHCHECK (DS-0026, LOW). The two internet-facing production images (api/Dockerfile, web/Dockerfile) DO create and switch to a non-root 'dify' user, so the primary attack surface is hardened; the finding is scoped to the auxiliary Couchbase and dev-container images.","vulnerability_details":"docker/couchbase-server/Dockerfile runs its vector-DB backing service container as root (no USER directive) with an unpinned FROM couchbase/server:latest base. If an attacker achieves any code-execution foothold inside that container (e.g. via a future Couchbase CVE pulled in silently by the floating tag, or a vulnerability in init-cbserver.sh), running as root removes the standard UID-separation barrier, giving the attacker root-equivalent privileges inside the container and a larger blast radius for container-breakout primitives (e.g. abusing any mounted docker.sock, writable host paths, or kernel-level capabilities available to root but not to an unprivileged UID). The floating :latest tag means a rebuild can silently pull a newer and differently-vulnerable image without the change being reviewed.","fix_guidance":"Pin docker/couchbase-server/Dockerfile to a specific Couchbase version tag (not :latest) and add a non-root USER switch after setup; add USER directives to .devcontainer/Dockerfile and use --no-install-recommends there; add HEALTHCHECK instructions to all shipped Dockerfiles.","why_this_matters":"Reduces blast radius of exploits.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0006 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM couchbase/server:latest AS stage_base\n# FROM couchbase:latest AS stage_base\nCOPY init-cbserver.sh /opt/couchbase/init/\nRUN chmod +x /opt/couchbase/init/init-cbserver.sh"},{"path":".devcontainer/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM mcr.microsoft.com/devcontainers/python:3.13-bookworm\n\nRUN apt-get update && export DEBIAN_FRONTEND=noninteractive \\\n     && apt-get -y install libgmp-dev libmpfr-dev libmpc-dev"},{"path":"api/Dockerfile","start_line":125,"end_line":125,"snippet":"USER dify"},{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":1,"snippet":"FROM couchbase/server:latest AS stage_base"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0007","rule_version":"1.2.0","rule_name":"Dependency Risk & Supply Chain","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"Trivy's scan of the committed lockfiles (api/uv.lock, dify-agent/uv.lock, pnpm-lock.yaml, dify-agent-runtime/go.mod) found 23 known CVEs in pinned, locked dependency versions, including chromadb==0.5.20 (pinned in api/uv.lock as the Chroma vector-store provider's declared runtime dependency) mapped to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH), and CVE-2026-45831 (HIGH) with no fixed version yet published, alongside other HIGH/MEDIUM findings (e.g. pydantic-ai-slim, golang.org/x/mod, socket.io-parser) that do have published fixed versions the project has not yet adopted. The presence of these scanner-confirmed, unpatched CVEs in exact pinned dependency versions constitutes a supply-chain risk on its own; this finding does not assert a specific demonstrated remote-exploit path through the Chroma vector-store API, only that the vulnerable versions are locked and declared as runtime dependencies.","vulnerability_details":"api/uv.lock pins chromadb to exact version 0.5.20, which Trivy's vulnerability database maps to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH) and CVE-2026-45831 (HIGH) with no fixed version yet published. chromadb is Dify's vector-database client, used by the RAG/knowledge-base subsystem that ingests and queries attacker-influenceable document content; a deployment that enables the Chroma vector-store provider runs this vulnerable client code against untrusted document/query content, exposing whatever remote-code-execution/data-exposure primitive CVE-2026-45833 represents to any user who can trigger a knowledge-base query or ingest a document into a Chroma-backed dataset.","fix_guidance":"Upgrade or replace chromadb beyond 0.5.20 once a patched release addressing CVE-2026-45833/45830/45831 is available (or pin to a patched fork / disable the Chroma vector-store provider until then); separately upgrade pydantic-ai-slim to >=2.53.0, bump the vulnerable golang.org/x/mod dependency, and update socket.io-parser to a fixed release; add a scheduled dependency CVE scan to CI to catch newly disclosed CVEs in already-pinned packages.","why_this_matters":"Prevents typosquat and malicious update compromise.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0007 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The scan reported mitigation_present but the independent adjudication did not corroborate it; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/uv.lock","start_line":880,"end_line":883,"snippet":"name = \"chromadb\"\nversion = \"0.5.20\"\nsource = { registry = \"https://pypi.org/simple\" }\ndependencies = ["},{"path":"Makefile","start_line":170,"end_line":1,"snippet":"(go.mod pins golang.org/x/mod to a version affected by CVE-2026-56864 HIGH / CVE-2026-56865 HIGH, per trivy-fs.json Results[] for Target=='dify-agent-runtime/go.mod')"},{"path":"web/package.json","start_line":29,"end_line":29,"snippet":"\"preinstall\": \"npx only-allow pnpm\","},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45833","pkg_name":"chromadb","severity":"CRITICAL","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45830","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45831","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107286","pkg_name":"pydantic-ai-slim","severity":"HIGH","installed_version":"2.31.0","fixed_version":"2.53.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-69185","pkg_name":"socket.io-parser","severity":"HIGH","installed_version":"4.2.6","fixed_version":"4.2.7, 3.4.5, 3.3.6"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-102991","pkg_name":"mako","severity":"MEDIUM","installed_version":"1.3.12","fixed_version":"1.4.2"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-104874","pkg_name":"multidict","severity":"MEDIUM","installed_version":"6.7.0","fixed_version":"6.9.1"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49264","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49265","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107287","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.7, 2.52.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107289","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107290","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107291","pkg_name":"pydantic-ai-slim","severity":"LOW","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-103923","pkg_name":"katex","severity":"LOW","installed_version":"0.16.47","fixed_version":"0.18.2"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0008","rule_version":"1.2.0","rule_name":"Missing or Inadequate Input Validation","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Dify's console/service/web API controllers consistently validate request bodies against typed schemas before use: console endpoints use flask-restx `@console_ns.expect(...)` model bindings plus a `model_validate(SomeModel)` decorator pattern (e.g. api/controllers/console/auth/login.py `@console_ns.expect(console_ns.models[EmailPayload.__name__])` + `@model_validate(EmailPayload)`) backed by Pydantic models, and service-api / inner-api endpoints use Pydantic `TypeAdapter`/`BaseModel.model_validate_json` for structured payload validation (e.g. api/services/data_source/notion_oauth_gateway.py uses `_NOTION_SOURCE_INFO_ADAPTER`/`_NOTION_PAGE_SUMMARY_ADAPTER` TypeAdapters to validate even third-party OAuth provider responses before use). File-upload input is explicitly constrained (extension blacklist, size limits, filename character blacklist) in FileService before any filesystem write. This is the rule's documented negative-indicator pattern (strict schema validation; type/length checks) applied broadly across the controller surface.","vulnerability_details":null,"fix_guidance":"Keep enforcing Pydantic/TypeAdapter schema validation for all new endpoints and third-party response parsing; add `.strict()`/reject-unknown-fields where the framework supports it.","why_this_matters":"Frontline control to prevent multiple classes of vulns.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/services/file_service.py","start_line":100,"end_line":113,"snippet":"        extension = os.path.splitext(filename)[1].lstrip(\".\").lower()\n        if any(c in filename for c in [\"/\", \"\\\\\"]):\n            raise ValueError(\"Filename contains invalid characters\")\n        if len(filename) > 200:\n            filename = filename.split(\".\")[0][:200] + \".\" + extension\n        if extension and extension in dify_config.UPLOAD_FILE_EXTENSION_BLACKLIST:\n            raise BlockedFileExtensionError(f\"File extension '.{extension}' is not allowed for security reasons\")\n        if source == \"datasets\" and extension not in DOCUMENT_EXTENSIONS:\n            raise UnsupportedFileTypeError()"},{"path":"api/services/data_source/notion_oauth_gateway.py","start_line":25,"end_line":34,"snippet":"class _NotionSourceInfo(TypedDict):\n    workspace_name: str | None\n    workspace_icon: str | None\n    workspace_id: str | None\n    pages: list[_NotionPageSummary]\n    total: int\n\n_NOTION_SOURCE_INFO_ADAPTER = TypeAdapter(_NotionSourceInfo)\n_NOTION_PAGE_SUMMARY_ADAPTER = TypeAdapter(_NotionPageSummary)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0009","rule_version":"1.2.0","rule_name":"Insecure Deserialization","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"pickle is used to serialize/deserialize RAG embedding vectors (api/models/dataset.py:744-747, api/core/rag/embedding/cached_embedding.py:115,198), but tracing the write path shows embedding bytes are produced exclusively by CacheEmbedding, which pickles the FLOAT LIST returned directly from the configured embedding model's own invoke_text_embedding()/invoke_multimodal_embedding() output -- there is no code path where externally-supplied bytes (an uploaded file, an HTTP body, a tool argument) are passed to pickle.loads. Reaching the sink with attacker-chosen bytes would require an independent primitive (e.g. direct DB write access or a different injection bug) that is not present in this codebase, so the required attacker_controlled_source and continuous source_to_sink_flow this rule demands cannot be established from the cited code; the evaluation_rubric's 'Deserialization of constants only' false_positive_guard class applies by analogy (model-generated, not request-controlled). Separately, api/services/agent/roster_package_reader.py:352-379 deserializes untrusted Roster Agent package YAML using a hardened yaml.SafeLoader subclass (_PackageYamlLoader) that explicitly rejects YAML aliases and non-string mapping keys -- the one YAML-deserialization sink that DOES take externally-supplied (uploaded package) content uses the safe loader, which is the rule's documented negative indicator.","vulnerability_details":null,"fix_guidance":"Defense-in-depth: replace pickle with numpy .tobytes()/np.frombuffer (fixed dtype) or a JSON float array for the Embedding.embedding column so this stored blob can never become a code-execution primitive even if a future bug (SQLi, bulk-import, compromised worker) lets an attacker write to that column directly.","why_this_matters":"Can lead to arbitrary code execution.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/rag/embedding/cached_embedding.py","start_line":107,"end_line":119,"snippet":"                cache_embeddings = []\n                try:\n                    for i, n_embedding in zip(embedding_queue_indices, embedding_queue_embeddings):\n                        text_embeddings[i] = n_embedding\n                        hash = helper.generate_text_hash(texts[i])\n                        if hash not in cache_embeddings:\n                            embedding_cache = Embedding(\n                                model_name=self._model_instance.model_name,\n                                hash=hash,\n                                provider_name=self._model_instance.provider,\n                                embedding=pickle.dumps(n_embedding, protocol=pickle.HIGHEST_PROTOCOL),\n                            )"},{"path":"api/models/dataset.py","start_line":743,"end_line":747,"snippet":"    def set_embedding(self, embedding_data: list[float]):\n        self.embedding = pickle.dumps(embedding_data, protocol=pickle.HIGHEST_PROTOCOL)\n\n    def get_embedding(self) -> list[float]:\n        return cast(list[float], pickle.loads(self.embedding))  # noqa: S301"},{"path":"api/services/agent/roster_package_reader.py","start_line":352,"end_line":379,"snippet":"            return yaml.load(payload, Loader=_PackageYamlLoader), size  # noqa: S506\n        except (UnicodeDecodeError, yaml.YAMLError, ValueError, RecursionError) as exc:\n            raise InvalidRosterAgentPackageError(...)\n                f\"Roster Agent package {path.removesuffix('.yaml')} is invalid\"\n            ) from exc\n\n\nclass _PackageYamlLoader(yaml.SafeLoader):\n    \"\"\"Reject ambiguous mappings and aliases in untrusted package documents.\"\"\"\n\n    @override"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0010","rule_version":"1.2.0","rule_name":"Lack of Output Encoding/Sanitization","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The semgrep XSS-shaped hits (python.flask.security.audit.xss.make-response-with-unknown-content, 8 occurrences across login.py, agent_config_inspector.py, recommended_app.py, tool_providers.py, trigger_providers.py) all resolve on inspection to `make_response(dump_response(SomeTypedModel, {...}))` calls -- i.e. a structured, schema-typed JSON-shaped payload serialized through a typed response-dump helper, not raw/unescaped user input written into an HTML content-type response. The project's web frontend (React/Next.js in web/) uses JSX's default auto-escaping for rendered text and the two `render-template-string` hits (api/libs/email_template_renderer.py, api/tasks/mail_inner_task.py) go through a Jinja2 `ImmutableSandboxedEnvironment` in SANDBOX mode by default (MAIL_TEMPLATING_MODE default = SANDBOX), which blocks template-level code/attribute-traversal exploitation even if the template string itself were attacker-influenced.","vulnerability_details":null,"fix_guidance":"Keep MAIL_TEMPLATING_MODE defaulted to SANDBOX (never UNSAFE) in production configuration guidance; continue returning typed/serialized model objects from make_response rather than raw string concatenation.","why_this_matters":"Prevents UI-level injection and operator compromise.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/controllers/console/auth/login.py","start_line":173,"end_line":177,"snippet":"        response = make_response(dump_response(SimpleResultResponse, {\"result\": \"success\"}))\n        clear_access_token_from_cookie(response)\n        clear_refresh_token_from_cookie(response)\n        clear_csrf_token_from_cookie(response)\n        return response"},{"path":"api/libs/email_template_renderer.py","start_line":17,"end_line":28,"snippet":"class SandboxedEnvironment(ImmutableSandboxedEnvironment):\n    \"\"\"Sandboxed environment with execution timeout.\"\"\"\n    def __init__(self, timeout: int, *args: Any, **kwargs: Any):\n        self._deadline = time.time() + timeout if timeout else None\n        super().__init__(*args, **kwargs)\n    @override\n    def call(self, context: Context, obj: Any, *args: Any, **kwargs: Any) -> Any:\n        if self._deadline is not None and time.time() > self._deadline:\n            raise TimeoutError(\"Template rendering timeout\")\n        return super().call(context, obj, *args, **kwargs)"},{"path":"api/configs/feature/__init__.py","start_line":1155,"end_line":1158,"snippet":"    MAIL_TEMPLATING_MODE: TemplateMode = Field(\n        description=\"Template mode for email services\",\n        default=TemplateMode.SANDBOX,\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0011","rule_version":"1.4.0","rule_name":"Path Traversal & Symlink Bypass (Filesystem Tools)","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The agent CLI's skill-pull flow (dify-agent-runtime/internal/agentcli/config.go) builds the download archive path and extraction directory directly from a skill name supplied via CLI argument or a downloaded manifest, using filepath.Join(targetDir, name+\".zip\") and a matching skillDir, without checking for path separators, absolute paths, or containment within targetDir. filepath.Join normalizes '../' segments, so a name such as '../../outside' causes the resulting path to escape targetDir, and the subsequent MkdirAll/os.WriteFile calls can then create or overwrite files outside the intended skills directory. The earlier SECURE verdict considered only the UUID-keyed API upload path (which is safely indirected) and did not examine this separate CLI/manifest-driven skill-pull flow, which has no equivalent indirection or validation before the filesystem sink.","vulnerability_details":null,"fix_guidance":"Validate the skill name before it is used to build any filesystem path in config.go's skill-pull flow: reject names containing path separators or '..' segments, or that resolve (after filepath.Clean/filepath.Abs) outside targetDir, before calling filepath.Join/MkdirAll/os.WriteFile.","why_this_matters":"Traversal exposes arbitrary host files; can lead to code execution.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":56,"end_line":63,"snippet":"// RunConfigSkillsPull executes the `config skills pull` command.\nfunc RunConfigSkillsPull(env *Environment, names []string, localDir string, jsonOutput bool) error {\n\tclient, err := NewStubClient(env)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer func() { _ = client.Close() }()\n"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":76,"end_line":83,"snippet":"\t\t\t\t} `json:\"items\"`\n\t\t\t} `json:\"skills\"`\n\t\t}\n\t\tif err := json.Unmarshal(body, &manifest); err != nil {\n\t\t\treturn fmt.Errorf(\"parse manifest: %w\", err)\n\t\t}\n\t\tfor _, item := range manifest.Skills.Items {\n\t\t\tnames = append(names, item.Name)"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":104,"end_line":123,"snippet":"\t}\n\n\terr = runConfigPulls(len(names), func(index int) error {\n\t\tname := names[index]\n\t\tdownload, err := client.CreateConfigDownloadURL(ctx, \"skill\", name)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"request config skill %q download URL: %w\", name, err)\n\t\t}\n\t\tarchiveBytes, err := client.DownloadFromURL(download.DownloadURL)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"download config skill %q: %w\", name, err)\n\t\t}\n\n\t\tarchivePath := filepath.Join(targetDir, name+\".zip\")\n\t\tskillDir := filepath.Join(targetDir, name)\n\t\tif err := os.MkdirAll(skillDir, 0o755); err != nil {\n\t\t\treturn fmt.Errorf(\"create skill directory: %w\", err)\n\t\t}\n\t\tif err := os.WriteFile(archivePath, archiveBytes, 0o644); err != nil {\n\t\t\treturn fmt.Errorf(\"write archive: %w\", err)"},{"path":"dify-agent-runtime/internal/snapshot/save.go","start_line":83,"end_line":83,"snippet":"\t\t\tf, err := os.Open(p)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":763,"end_line":763,"snippet":"\tendedAtRaw, err := os.ReadFile(endedAtPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":759,"end_line":759,"snippet":"\texitCodeRaw, err := os.ReadFile(exitCodePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":106,"end_line":106,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":38,"end_line":38,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/sanitize/sanitize.go","start_line":155,"end_line":155,"snippet":"\t\tf, err := os.Create(readyFile)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/httpclient.go","start_line":72,"end_line":72,"snippet":"\treturn os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":548,"end_line":548,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":471,"end_line":471,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":133,"end_line":133,"snippet":"\t\tif data, err := os.ReadFile(skillMDPath); err == nil {","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":120,"end_line":120,"snippet":"\t\toutFile, err := os.Create(destPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":71,"end_line":71,"snippet":"\t\tfile, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":15,"end_line":15,"snippet":"\toutFile, err := os.Create(archivePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":343,"end_line":343,"snippet":"\tdata, err := os.ReadFile(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":325,"end_line":325,"snippet":"\tf, err := os.Open(scriptPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":254,"end_line":254,"snippet":"\tfile, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0600)","vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0012","rule_version":"1.2.0","rule_name":"Denial of Wallet / Cost Controls","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"Model/tool invocation paths are protected by multiple quota/budget layers: api/libs/rate_limit.py provides per-IP/account/session/email/token sliding-window rate limits applied to auth and API-bearer-token validation; FeatureService (api/services/feature_service.py referenced throughout controllers, e.g. human_input_delivery_test_service.py's `features.human_input_email_delivery_enabled` gate) enforces plan-based feature/quota gating before billable operations execute; and dataset/knowledge upload size limits (UPLOAD_FILE_SIZE_LIMIT family) bound the cost of ingestion-triggered embedding calls. The SSRF-protected HTTP client additionally bounds retries (SSRF_DEFAULT_MAX_RETRIES) and response size (buffer_response max_response_bytes), preventing unbounded retry storms or oversized-response costs on outbound calls to paid third-party APIs/model providers.","vulnerability_details":null,"fix_guidance":"Continue enforcing plan-based quotas (FeatureService) on any newly added billable/model-invocation endpoint; ensure per-tenant model-call quotas are consistently checked before each LLM/tool invocation.","why_this_matters":"Prevents cost-based disruption.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/core/helper/ssrf_proxy.py","start_line":226,"end_line":284,"snippet":"    retries = 0\n    while retries <= max_retries:\n        ...\n        retries += 1\n        if retries <= max_retries:\n            time.sleep(BACKOFF_FACTOR * (2 ** (retries - 1)))\n    raise MaxRetriesExceededError(f\"Reached maximum retries ({max_retries}) for URL {url}\")"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0013","rule_version":"1.1.0","rule_name":"Tool Output Sanitization & Injection Containment","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"low","rationale":"Dify's CoT agent runner assigns tool invocation results verbatim to scratchpad.observation and then interpolates that value verbatim into the 'Observation:' section of model-visible assistant history (api/core/agent/cot_agent_runner.py), with no sanitization, escaping, role-marker stripping, or untrusted-return annotation applied anywhere between the tool-output assignment and the point it re-enters the model's context. This allows tool-sourced content (e.g. a malicious web page or API response surfaced through a fetch/scrape-style tool) to inject text that the model treats as part of its own reasoning history, with no host-enforced trust boundary on that path.","vulnerability_details":null,"fix_guidance":"Add a sanitization/escaping layer for tool outputs before they are concatenated into the agent scratchpad: strip or neutralize control characters and fake role/system markers, and wrap tool output in an explicit untrusted-content envelope before it is interpolated into the Observation: section in cot_agent_runner.py and fc_agent_runner.py.","why_this_matters":"Tool outputs are a primary prompt-injection vector. Third-party content (web pages, files, API responses) may contain text crafted to override instructions or impersonate system/tool messages. Without a host-enforced envelope, sanitization, and an explicit untrusted-return signal, the model can be coerced into executing attacker-controlled directives, leaking secrets, or chaining further tool calls on behalf of the adversary.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0013 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/agent/cot_agent_runner.py","start_line":244,"end_line":252,"snippet":"                    tool_invoke_response, tool_invoke_meta = self._handle_invoke_action(\n                        session=session,\n                        action=scratchpad.action,\n                        tool_instances=tool_instances,\n                        message_file_ids=message_file_ids,\n                        trace_manager=trace_manager,\n                    )\n                    scratchpad.observation = tool_invoke_response\n                    scratchpad.agent_response = tool_invoke_response"},{"path":"api/core/agent/cot_agent_runner.py","start_line":400,"end_line":413,"snippet":"    def _format_assistant_message(self, agent_scratchpad: list[AgentScratchpadUnit]) -> str:\n        \"\"\"\n        format assistant message\n        \"\"\"\n        message = \"\"\n        for scratchpad in agent_scratchpad:\n            if scratchpad.is_final():\n                message += f\"Final Answer: {scratchpad.agent_response}\"\n            else:\n                message += f\"Thought: {scratchpad.thought}\\n\\n\"\n                if scratchpad.action_str:\n                    message += f\"Action: {scratchpad.action_str}\\n\\n\"\n                if scratchpad.observation:\n                    message += f\"Observation: {scratchpad.observation}\\n\\n\""}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0014","rule_version":"1.2.0","rule_name":"CI/CD Workflow Script Injection","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Reviewed all workflows using dangerous triggers (workflow_run, repository_dispatch, workflow_dispatch) for attacker-controlled interpolation into shell run blocks. The i18n translation pipeline (trigger-i18n-sync.yml -> translate-i18n-claude.yml) passes attacker-influenceable data (PR/commit content) only through typed client_payload fields consumed as quoted shell variables (BASE_SHA=\"...\"), and the PR-coverage-comment workflows (pyrefly-diff-comment.yml, pyrefly-type-coverage-comment.yml) using workflow_run only check out the DEFAULT branch (trusted code) and fetch data via the GitHub API/artifacts rather than interpolating untrusted strings directly into a run: block. The 12 semgrep yaml.github-actions.security.run-shell-injection hits (accessibility-e2e.yml, cli-e2e.yml, pyrefly-diff.yml, pyrefly-type-coverage.yml, style.yml, translate-i18n-claude.yml) all resolve to either workflow_dispatch 'choice' inputs enforced by a fixed options list, maintainer-only manual dispatch, values interpolated only within an already-double-quoted shell string consumed as data (not re-parsed/eval'd), or SHA values resolved via git/GitHub Actions context rather than free-form attacker text. No case shows a continuous source-to-sink path from an untrusted field to an unguarded shell execution with secrets/write-token exposure.","vulnerability_details":null,"fix_guidance":"Continue pinning actions by SHA (already done); keep workflow_dispatch choice-type inputs server-enforced; avoid ever switching the i18n pipeline to pull_request_target without validating client_payload fields against a strict allowlist/regex before use.","why_this_matters":"CI/CD script injection can execute attacker-controlled commands with workflow tokens, repository secrets, trusted-runner access, artifact or cache authority, and release or deployment privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":".github/workflows/translate-i18n-claude.yml","start_line":75,"end_line":95,"snippet":"if [ \"${{ github.event_name }}\" = \"repository_dispatch\" ]; then\n  BASE_SHA=\"${{ github.event.client_payload.base_sha }}\"\n  HEAD_SHA=\"${{ github.event.client_payload.head_sha }}\"\n  CHANGED_FILES=\"${{ github.event.client_payload.changed_files }}\"\n  ...\n  if [ -n \"${{ github.event.client_payload.changes_base64 }}\" ]; then\n    printf '%s' '${{ github.event.client_payload.changes_base64 }}' | base64 -d > /tmp/i18n-changes.json"},{"path":".github/workflows/pyrefly-type-coverage-comment.yml","start_line":20,"end_line":29,"snippet":"if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.pull_requests[0].head.repo.full_name != github.repository }}\nsteps:\n  - name: Checkout default branch (trusted code)\n    uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-R0001","rule_version":"1.3.0","rule_name":"Weaponization: Malicious-Purpose Artifact (Offensive Capability by Design)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Investigated all 3 YARA matches flagged repo-wide. (1) api/configs/remote_settings_sources/apollo/utils.py:46-47 'Zeus_Malware_Reverse_Shell' -- this is a UDP connect()-to-8.8.8.8 trick used purely to discover the machine's outbound-facing local IP address for Apollo remote-config client registration; there is no socket-to-shell wiring, no subprocess/exec, no network listener -- a benign, extremely common Python idiom misidentified by the socket+connect co-occurrence heuristic. (2) dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py:57-61 -- a pytest fixture that spawns a throwaway, loopback-bound (127.0.0.1) redis-server subprocess for an integration test and tears it down in a finally block; it is test infrastructure, not an operational reverse shell (no socket piped to a shell, no attacker-facing listener). (3) e2e/AGENTS.md:26-56 'tool_poisoning secondary-objective wide-span' match itself carries confidence 25 and is explicitly annotated by the scanner as 'likely ordinary prose, not a poisoned tool description' -- reading the cited span confirms it is contributor-facing documentation about E2E test runner architecture (tags, seeds, cleanup) with zero instructions directing model/agent behavior, no injected directives, and no secondary objective. Dify's overall product is a LLM app-development/agent-orchestration platform (not an offensive-security tool), and none of its shipped code, skills, or agent instructions direct generation of malware/exploits/credential theft or mass-abuse tooling.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact whose purpose is to weaponize the agent -- to produce malware, steal credentials, evade defenses, or run attacks at scale -- is dangerous regardless of how securely it is built; posture controls (auth, input validation, least privilege) cannot make a weapon safe, which is why a confirmed weaponization finding caps the trust verdict to `blocked` rather than being averaged against a good posture score. Catching malicious PURPOSE is a distinct safety control, and it must be conservative because offensive capability is dual-use: legitimate pentest, CTF, defensive, and research work must abstain (UNKNOWN), never block -- unless the artifact itself hides from the people who install, run or audit it.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"api/configs/remote_settings_sources/apollo/utils.py","start_line":42,"end_line":52,"snippet":"def init_ip() -> str:\n    ip = \"\"\n    s = None\n    try:\n        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n        s.connect((\"8.8.8.8\", 53))\n        ip = s.getsockname()[0]\n    finally:\n        if s:\n            s.close()\n    return ip","vulnerability":{}},{"path":"dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py","start_line":50,"end_line":76,"snippet":"@pytest.fixture\ndef redis_url() -> Iterator[str]:\n    \"\"\"Start an isolated Redis when the binary is available locally.\"\"\"\n    redis_server = shutil.which(\"redis-server\")\n    if redis_server is None:\n        pytest.skip(\"redis-server is required for run terminal integration tests\")\n    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as probe:\n        probe.bind((\"127.0.0.1\", 0))\n        port = probe.getsockname()[1]\n    process = subprocess.Popen(  # noqa: S603\n        [redis_server, \"--bind\", \"127.0.0.1\", \"--port\", str(port), \"--save\", \"\", \"--appendonly\", \"no\"],\n        stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT,\n    )","vulnerability":{}},{"path":"e2e/AGENTS.md","start_line":26,"end_line":56,"snippet":"- Generate disposable resource names through `support/naming.ts` with an `E2E` prefix.\n- Keep deterministic upload material in `fixtures/test-materials/`...\n- Seed scripts own shared long-lived fixtures; scenarios own disposable resources...\n- Use typed `DifyWorld` cleanup fields... Registered callbacks run LIFO after typed cleanup queues.\n- Remove child and referencing resources before owners. Attach cleanup failures to the report instead of swallowing them.\n(contributor-facing E2E test architecture doc; no agent-directed secondary objective)","vulnerability":{}}],"affected_tools":null,"component_name":null}],"component_tools":[],"summary":{"high_level_risks":["Known CVEs in pinned dependency versions, notably chromadb==0.5.20 (CVE-2026-45833 CRITICAL, plus two HIGH CVEs) with no fix currently available, and additional HIGH CVEs in pydantic-ai-slim, golang.org/x/mod, and socket.io-parser (ATR-C0007, HIGH).","Hardcoded default secrets shipped in docker-compose.yaml/docker-compose-template.yaml (PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY, DIFY_AGENT_SERVER_SECRET_KEY, MINIO_SECRET_KEY) take effect on any deployment that does not override them, giving a publicly-known static credential for internal plugin-daemon/inner-API/object-storage channels (ATR-C0002, HIGH).","Dify's app-as-MCP-server feature (api/controllers/mcp/mcp.py, api/core/mcp/server/streamable_http.py) exposes a remote streamable-HTTP MCP endpoint gated solely by a 16-char CSPRNG 'server_code' embedded in the URL path -- there is no standard Authorization/Bearer check, no OAuth 2.1/PKCE flow, and no rate limiting on the server_code lookup, making it a bearer-URL style credential with brute-force risk and typical URL-secret leakage via proxy/access logs and Referer headers.","The `mcp` Flask blueprint is the only blueprint registered in extensions/ext_blueprints.py with NO CORS/Origin policy applied, leaving no Origin/Host validation in front of a host-side-effectful endpoint that invokes full Dify app generation.","A password-reset / sensitive auth token is logged in full at WARNING level in api/libs/helper.py TokenManager.get_token_data, exposing a usable account-takeover credential to anyone with log access (ATR-C0005, MEDIUM).","The reference deployment ships insecure-by-default transport settings: the API container's gunicorn process binds 0.0.0.0 with no TLS, and NGINX_HTTPS_ENABLED defaults to false in docker/docker-compose.yaml / docker/.env.example, making TLS opt-in rather than mandatory.","Insecure deserialization (pickle) used for the RAG embedding cache column; the stored BLOB has no integrity binding, so any future write primitive against that column becomes an RCE vector (ATR-C0009).","Auxiliary/dev container images (docker/couchbase-server/Dockerfile, .devcontainer/Dockerfile) run as root and/or use a floating ':latest' base tag, unlike the hardened production api/Dockerfile and web/Dockerfile (ATR-C0006, MEDIUM).","Tool-output-to-LLM-context sanitization (ATR-C0013) could not be fully verified across the plugin-daemon boundary; the agent scratchpad/Observation concatenation path and plugin-daemon tool-result boundary lack confirmed control-character/injection-marker stripping.","skills/difyctl destructive operations (remove/revoke) have no enforced confirmation prompt, relying on the model volunteering confirmation rather than enforcing it in the agent harness."],"top_remediations":["Upgrade or disable the chromadb vector-store provider pending a fix for CVE-2026-45833/45830/45831; upgrade pydantic-ai-slim, golang.org/x/mod, and socket.io-parser to patched versions.","Remove hardcoded fallback secret values from docker-compose*.yaml; fail-fast or auto-generate random secrets on first run instead.","Add OAuth 2.1 (with PKCE) as the primary authorization mechanism for the inbound MCP server endpoint, or at minimum require a standard Authorization header bearer token in addition to server_code, plus rate limiting/lockout on failed server_code lookups.","Apply an explicit CORS/Origin allowlist (or host-based validation) to the `mcp` Flask blueprint consistent with the other blueprints in extensions/ext_blueprints.py.","Stop logging raw token values in api/libs/helper.py TokenManager.get_token_data; log only a hash/prefix or the Redis key.","Make TLS mandatory (NGINX_HTTPS_ENABLED default true) for any deployment exposing MCP/API endpoints beyond localhost, and default DIFY_BIND_ADDRESS to loopback for standalone (non-compose) runs.","Replace pickle-based embedding serialization with a safe format (numpy tobytes/JSON) as defense-in-depth against any future write-path compromise.","Add non-root USER directives and pin a specific (non-'latest') base image tag for docker/couchbase-server/Dockerfile and .devcontainer/Dockerfile; add HEALTHCHECK to all shipped Dockerfiles.","Conduct a focused audit of the tool-output-to-context concatenation path (agent scratchpad Observation field) and the plugin-daemon boundary for control-character/prompt-injection-marker sanitization.","Harden skills/difyctl's destructive-operation guidance into an enforced confirmation gate in the surrounding agent harness."]},"rollup":{"component_findings_count":{"vulnerable":0,"secure":6,"not_applicable":2},"repo_findings_inherited_count":{"vulnerable":7,"secure":8,"not_applicable":0},"component_tools_count":{},"worst_case_severity":"HIGH"},"trust_scores":{"repo_level":{"score":25,"tier":"critical","capability_band":"extreme","score_confidence":"low","score_interval":{"low":8,"high":42},"factors":["ATR-M0003 HIGH","ATR-M0009 HIGH","ATR-C0001 HIGH","ATR-C0002 HIGH","ATR-C0005 MEDIUM","ATR-C0006 MEDIUM","ATR-C0007 HIGH","ATR-C0011 HIGH","ATR-C0013 HIGH"]},"component_level":{"score":100,"tier":"high","capability_band":"minimal","score_confidence":"high","score_interval":{"low":96,"high":100},"factors":[]}}},{"artifact_version":"2.0","component":{"component_type":"skill","component_name":"skills-plugins/.agents/skills/e2e-cucumber-playwright","component_path":".agents/skills/e2e-cucumber-playwright","metadata":{"manifest":"SKILL.md"}},"scan_provenance":{"scanned_at":"2026-10-14T23:52:06.135Z","resolved_ref":"f77facfe6520ed379d723288aed0b4806ad76143","resolved_ver":null},"repo_context":{"repo_url":"https://github.com/langgenius/dify","languages":["Python","TypeScript","JavaScript","Go","Dockerfile"],"transports_detected":["stdio","sse","streamable_http"],"deployment_artifacts":["docker/docker-compose.yaml","docker/Dockerfile","api/Dockerfile","web/Dockerfile","docker/docker-compose.middleware.yaml"],"provenance":{"publisher":"langgenius","publisher_verified":true,"signed_build":false,"dependency_cve_count":34,"maintenance_active":true,"declared_policy":false}},"component_findings":[{"rule_id":"ATR-P0001","rule_version":"1.0.0","rule_name":"Capability Transparency: Declared Purpose vs. Actual Behavior (Shadow Features)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Declared purpose (authoring/reviewing Cucumber+Playwright E2E tests under e2e/) matches the full body content and referenced docs (cucumber/playwright best practices). No hidden network calls, credential handling, or undeclared capability beyond documentation/routing guidance.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Install-time trust is granted from the artifact's self-description, so any bundled capability the description does not disclose -- network egress, credential reads, or subprocess execution -- runs as an unconsented backdoor with the host agent's full privileges.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/e2e-cucumber-playwright/SKILL.md","start_line":1,"end_line":10,"snippet":"---\nname: e2e-cucumber-playwright\ndescription: Use when writing, changing, or reviewing Cucumber and Playwright tests under `e2e/`, including feature files, step definitions, support code, scenario tags, locators, and assertions. Do not use for Vitest, React Testing Library, backend tests, or generic browser automation outside the E2E suite.\n---\n\n# E2E Cucumber And Playwright\n\n`e2e/AGENTS.md` owns the suite architecture, lifecycle, commands, tags, generated-client boundaries, fixtures, and cleanup contracts."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/e2e-cucumber-playwright"},{"rule_id":"ATR-P0002","rule_version":"1.0.0","rule_name":"Consent Suppression and Guardrail / Human-in-the-Loop Subversion via Trusted Instructions","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"No instruction to bypass confirmations, hide failures, or disable validation/guardrails anywhere in the skill manifest itself.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Because a skill/plugin instruction body is ingested as trusted first-party context, consent- or oversight-suppressing prose inherits the host's full authority and turns a passive package into a self-authorizing backdoor that strips the human-in-the-loop control from every action it can reach.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/e2e-cucumber-playwright/SKILL.md","start_line":21,"end_line":30,"snippet":"## Workflow\n\n1. Add E2E coverage only for a critical user journey with a cross-boundary outcome that cheaper owner-level tests do not already prove.\n2. Identify the user-visible behavior and its feature owner. Start from real product defaults and actor roles; setup may establish preconditions but must not manufacture the opposite state to make the scenario meaningful.\n3. Read the target scenario, matching step definitions, and lifecycle files only when session or shared state matters.\n4. Reuse an existing step when wording and behavior match; add one coherent scenario or step when they do not.\n5. Keep browser actions and assertions at the public user boundary; keep setup, seed, polling, and cleanup at their package-defined owners.\n6. For changes, run the narrowest tagged scenario and package checks documented in `e2e/AGENTS.md`; broaden only for shared hooks, tags, or support changes.\n\nFor review requests, lead with reproducible correctness failures, flake sources, or demonstrated architecture drift. Report the behavior verified and any external-runtime, browser, or environment gap."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/e2e-cucumber-playwright"},{"rule_id":"ATR-P0003","rule_version":"1.2.0","rule_name":"Host-Credential and Conversation-Context Harvesting and Exfiltration","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"The component performs no credential-store or conversation/memory read, so the harvest half of this rule's required pair is absent; the rule explicitly assigns NOT_APPLICABLE when no such mechanism exists in the architecture.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin that couples a host-credential or live-conversation read with an outbound channel turns an ostensibly benign helper into an autonomous exfiltration agent, leaking long-lived secrets, session tokens, and confidential prompt context to an attacker on every invocation across every tool the artifact serves.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/e2e-cucumber-playwright/SKILL.md","start_line":12,"end_line":19,"snippet":"## Topic Routing\n\nRead only the bundled reference required by the change:\n\n- Locator, assertion, isolation, or waiting decisions: [`references/playwright-best-practices.md`][playwright]\n- Scenario wording, step granularity, expressions, World state, hook visibility, or tag design: [`references/cucumber-best-practices.md`][cucumber]\n\nCheck current official Playwright or Cucumber documentation before introducing a framework pattern that local code and references do not already establish."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/e2e-cucumber-playwright"},{"rule_id":"ATR-P0004","rule_version":"1.1.0","rule_name":"Format-Native Out-of-Band Execution and Host Control-Plane Persistence","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"The component ships only markdown and a display/default-prompt YAML file, with no bundled script, lifecycle hook, entry code, host configuration write, or exec/endpoint-substitution primitive, so the subject of this rule is absent.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Format-native execution and control-plane writes bypass the model's reasoning loop, converting a single install approval into durable, self-reinjecting code execution that can MITM the host agent's own model endpoint and silently subvert every subsequent tool call.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/e2e-cucumber-playwright/SKILL.md","start_line":1,"end_line":10,"snippet":"---\nname: e2e-cucumber-playwright\ndescription: Use when writing, changing, or reviewing Cucumber and Playwright tests under `e2e/`, including feature files, step definitions, support code, scenario tags, locators, and assertions. Do not use for Vitest, React Testing Library, backend tests, or generic browser automation outside the E2E suite.\n---\n\n# E2E Cucumber And Playwright\n\n`e2e/AGENTS.md` owns the suite architecture, lifecycle, commands, tags, generated-client boundaries, fixtures, and cleanup contracts."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/e2e-cucumber-playwright"},{"rule_id":"ATR-P0005","rule_version":"1.0.0","rule_name":"Over-Declared / Over-Privileged Artifact Manifest Scope","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"Scope restricted to e2e/ Cucumber/Playwright test authoring and review; no broader capability requested.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact that self-declares host privilege far beyond its stated function -- or hides executable reach inside a passive-looking package -- gives a single install a blast radius the operator never scoped, so any later mistake, compromise, or misconfiguration detonates across resources the artifact never needed.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/e2e-cucumber-playwright/SKILL.md","start_line":3,"end_line":3,"snippet":"description: Use when writing, changing, or reviewing Cucumber and Playwright tests under `e2e/`, including feature files, step definitions, support code, scenario tags, locators, and assertions. Do not use for Vitest, React Testing Library, backend tests, or generic browser automation outside the E2E suite."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/e2e-cucumber-playwright"},{"rule_id":"ATR-P0006","rule_version":"1.1.0","rule_name":"Injection and Concealed Directives in Skill/Plugin Manifest and Instruction Text","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"low","rationale":"No concealed/injected directives found in SKILL.md or its two references (cucumber/playwright best practices); plain prose with external doc links only.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin's always-loaded manifest and instruction carriers (frontmatter/body, `description_for_model`, Gemini `FunctionDeclaration.description` / Vertex AI extension `manifest` / ADK agent `instruction`, tool docstrings, JSON-Schema descriptions) are concatenated into the host agent prompt at operator privilege, so a directive that is hidden with non-printing codepoints, disguised with a homoglyph, forged with role-control tokens, or masked from the rendered view silently commandeers model behavior toward attacker-chosen actions across every tool the artifact serves -- with no code execution required and nothing visible to a reviewer reading the rendered text.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/e2e-cucumber-playwright/SKILL.md","start_line":1,"end_line":34,"snippet":"(full file reviewed; plain markdown prose, no hidden/zero-width characters or concealed directives found)"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/e2e-cucumber-playwright"},{"rule_id":"ATR-P0007","rule_version":"1.0.0","rule_name":"Skill/Plugin Package Provenance, Integrity, and Post-Approval Mutation (Rug-Pull)","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"In-tree skill versioned with the repo; no separate distribution/update channel that could mutate after approval independent of normal code review.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill/plugin reviewed once and then trusted indefinitely becomes a rug-pull vector when its OWN model-facing instruction body, declared scope, or manifest can be live-swapped or silently mutated after approval -- without an approval-time digest that is re-compared on load and re-consent on any change, a publisher (or an attacker who compromises the distribution channel) can rewrite the artifact's trusted instructions or widen its tool scope under authority the host already granted, turning an approved package into an exfiltration or unauthorized-action backdoor.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/e2e-cucumber-playwright/SKILL.md","start_line":1,"end_line":4,"snippet":"---\nname: e2e-cucumber-playwright\ndescription: Use when writing, changing, or reviewing Cucumber and Playwright tests under `e2e/`, including feature files, step definitions, support code, scenario tags, locators, and assertions. Do not use for Vitest, React Testing Library, backend tests, or generic browser automation outside the E2E suite.\n---"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/e2e-cucumber-playwright"},{"rule_id":"ATR-P0008","rule_version":"1.0.0","rule_name":"Skill/Plugin Impersonation, Typosquatting & Publisher Spoofing","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"First-party, in-tree skill; descriptive name referencing the Cucumber/Playwright frameworks it uses, not impersonating or spoofing the Cucumber/Playwright projects themselves (it is a usage guide, not a package claiming to BE one of those tools).","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Impersonation is the entry point of the agentic supply chain (OWASP LLM ASI04 / MITRE ATT&CK T1195): a skill or plugin installed on the strength of a familiar name inherits the host agent's execution context before any payload runs. The deception front-runs trust, so catching the identity lie breaks the chain at the cheapest point -- and it is independent of whether the current code is benign, because the same trusted-looking name can ship a payload in the next version.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/e2e-cucumber-playwright/SKILL.md","start_line":2,"end_line":2,"snippet":"name: e2e-cucumber-playwright"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/e2e-cucumber-playwright"}],"repo_findings_inherited":[{"rule_id":"ATR-C0001","rule_version":"1.2.0","rule_name":"Unrestricted Network Fetch / SSRF","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The outbound HTTP client used for custom tool invocations and HTTP Request nodes falls back to a direct httpx client whenever SSRF_PROXY_HTTP_URL/SSRF_PROXY_HTTPS_URL are unset (they default to None in api/core/helper/ssrf_proxy.py), meaning the SSRF-blocking Squid proxy is an opt-in deployment choice rather than a code-enforced control. The custom-tool invocation path (api/core/tools/custom_tool/tool.py) dispatches the tool's configured server URL through this client with no in-code destination gate (no check against private/loopback/link-local ranges) before the request is sent. A deployment that does not explicitly configure the SSRF proxy environment variables -- which is possible under the project's supported configuration surface, not just the shipped Compose example -- allows a custom tool's configured URL to reach internal or private network destinations unguarded.","vulnerability_details":null,"fix_guidance":"Enforce SSRF protection in code rather than relying solely on an external proxy default: add a destination-validation check (reject private/loopback/link-local IP ranges) directly in the HTTP client construction path in api/core/helper/ssrf_proxy.py so protection applies even when SSRF_PROXY_HTTP_URL/HTTPS_URL are unset, and add an explicit gate in the custom-tool dispatch path in api/core/tools/custom_tool/tool.py before the configured server URL is fetched.","why_this_matters":"Enables internal pivoting and data exfiltration.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/tools/custom_tool/tool.py","start_line":65,"end_line":76,"snippet":"        self, credentials: dict[str, Any], parameters: dict[str, Any], format_only: bool = False\n    ) -> str:\n        \"\"\"\n        validate the credentials for Api tool\n        \"\"\"\n        # assemble validate request and request parameters\n        headers = self.assembling_request(parameters)\n\n        if format_only:\n            return \"\"\n\n        response = self.do_http_request(self.api_bundle.server_url, self.api_bundle.method, headers, parameters)"},{"path":"api/configs/feature/__init__.py","start_line":725,"end_line":738,"snippet":"    SSRF_PROXY_ALL_URL: str | None = Field(\n        description=\"Proxy URL for HTTP or HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTP_URL: str | None = Field(\n        description=\"Proxy URL for HTTP requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTPS_URL: str | None = Field(\n        description=\"Proxy URL for HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )"},{"path":"api/core/helper/ssrf_proxy.py","start_line":86,"end_line":101,"snippet":"def _build_ssrf_client(verify: bool) -> httpx.Client:\n    if dify_config.SSRF_PROXY_ALL_URL:\n        return httpx.Client(\n            proxy=dify_config.SSRF_PROXY_ALL_URL,\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    if dify_config.SSRF_PROXY_HTTP_URL and dify_config.SSRF_PROXY_HTTPS_URL:\n        return httpx.Client(\n            mounts=_create_proxy_mounts(verify=verify),\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    return httpx.Client(verify=verify, limits=_SSRF_CLIENT_LIMITS)"},{"path":"api/core/tools/custom_tool/tool.py","start_line":292,"end_line":306,"snippet":"            raise ValueError(f\"Invalid http method {method}\")\n        response: httpx.Response = _METHOD_MAP[\n            method_lc\n        ](  # https://discuss.python.org/t/type-inference-for-function-return-types/42926\n            url,\n            max_retries=0,\n            params=params,\n            headers=headers,\n            cookies=cookies,\n            data=body,\n            files=files,\n            timeout=API_TOOL_DEFAULT_TIMEOUT,\n            follow_redirects=True,\n        )\n        return response"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0002","rule_version":"1.3.2","rule_name":"Static Secrets","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"docker-compose.yaml and docker-compose-template.yaml ship REAL-LOOKING hardcoded default secret VALUES for inter-service authentication that take effect the moment an operator runs `docker compose up` without overriding the env vars: PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY default to the fixed base64-looking string 'lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi' / 'QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1' (identical across every public clone of the repo), DIFY_AGENT_SERVER_SECRET_KEY defaults to the fixed hex string '0123456789abcdef0123456789abcdef', and MINIO_SECRET_KEY defaults to 'minioadmin'. These are not placeholder/empty values in a .env.example (which would be the negative case) -- they are live fallback defaults baked directly into the shipped docker-compose YAML that is the project's documented one-command quick-start path, so any internet-reachable deployment that forgets to override them authenticates its internal plugin-daemon/inner-API channel and MinIO object storage with a publicly known static secret. This matches the rule's positive_indicator 'default changeme-style value' and its CWE-798/312 class directly.","vulnerability_details":"docker/docker-compose.yaml uses shell-style `${VAR:-default}` substitution where `default` is a concrete, realistic-looking secret baked into the committed YAML (not a placeholder like 'changeme' or empty string), for PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY/INNER_API_KEY_FOR_PLUGIN, DIFY_AGENT_SERVER_SECRET_KEY, and MINIO_SECRET_KEY. Any deployment that does not explicitly set these environment variables before `docker compose up` will run with these known-to-the-public credentials protecting the plugin-daemon <-> API inner channel and the MinIO backing store, letting anyone with network access to those internal ports (e.g. via SSRF, container escape, or a misconfigured network) authenticate as a trusted internal service.","fix_guidance":"Remove hardcoded fallback values from docker-compose for PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY/DIFY_AGENT_SERVER_SECRET_KEY/MINIO_SECRET_KEY; instead fail fast (or auto-generate a random secret at first-run via an init script) when the operator has not supplied a value, so no installation ever runs with a secret value that is identical and publicly known across every Dify deployment.","why_this_matters":"Plaintext secrets are easily exfiltrated.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0002 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/docker-compose.yaml","start_line":600,"end_line":604,"snippet":"      SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}\n      ...\n      DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":688,"end_line":688,"snippet":"      DIFY_AGENT_SERVER_SECRET_KEY: ${DIFY_AGENT_SERVER_SECRET_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":1104,"end_line":1104,"snippet":"      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}"},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":16,"end_line":17,"snippet":"PLUGIN_DAEMON_KEY=[REDACTED]\nPLUGIN_DIFY_INNER_API_KEY=[REDACTED]"},{"path":"api/Dockerfile","start_line":57,"end_line":57,"snippet":"ARG NODESOURCE_KEY_FPR=6F71F525282841EEDAF851B42F59B5F99B1BE0B4","vulnerability":{}},{"path":"api/.env.example","start_line":239,"end_line":239,"snippet":"# Prefix used to create collection name in vector database","vulnerability":{}},{"path":"api/.env.example","start_line":701,"end_line":701,"snippet":"POSITION_TOOL_EXCLUDES=","vulnerability":{}},{"path":"api/.env.example","start_line":715,"end_line":715,"snippet":"PLUGIN_MODEL_PROVIDERS_CACHE_TTL=86400","vulnerability":{}},{"path":"api/knowledge-fs-contract.lock.json","start_line":3,"end_line":3,"snippet":"  \"openapiSha256\": \"f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb\",","vulnerability":{}},{"path":"api/providers/vdb/vdb-alibabacloud-mysql/pyproject.toml","start_line":10,"end_line":10,"snippet":"alibabacloud_mysql = \"dify_vdb_alibabacloud_mysql.alibabacloud_mysql_vector:AlibabaCloudMySQLVectorFactory\"","vulnerability":{}},{"path":"api/services/agent/package_resource_exporter.py","start_line":257,"end_line":257,"snippet":"                    try:","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":30,"end_line":30,"snippet":"DIFY_AGENT_PLUGIN_DAEMON_API_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":36,"end_line":36,"snippet":"DIFY_AGENT_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":91,"end_line":91,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"dify-agent/docs/dify-agent/guide/index.md","start_line":151,"end_line":151,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/worker.env.example","start_line":10,"end_line":10,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/api.env.example","start_line":13,"end_line":13,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":165,"end_line":165,"snippet":"WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":174,"end_line":174,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":224,"end_line":224,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/.env.example","start_line":234,"end_line":234,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":280,"end_line":280,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":17,"end_line":17,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/dify-agent.env.example","start_line":118,"end_line":118,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/security.env.example","start_line":28,"end_line":29,"snippet":"OTLP_API_KEY=\nBAIDU_VECTOR_DB_API_KEY=dify","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":133,"end_line":133,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":166,"end_line":166,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":179,"end_line":179,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/vectorstores/weaviate.env.example","start_line":11,"end_line":11,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":204,"end_line":205,"snippet":"SENDGRID_API_KEY=\nINVITE_EXPIRY_HOURS=72","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":495,"end_line":495,"snippet":"VECTOR_STORE=weaviate","vulnerability":{}},{"path":"docker/docker-compose.yaml","start_line":1273,"end_line":1273,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"docker/docker-compose-template.yaml","start_line":1267,"end_line":1267,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"packages/contracts/generated/knowledge-fs/metadata.gen.ts","start_line":4,"end_line":5,"snippet":"export const knowledgeFsSourceOpenapiSha256 =\n  'f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb'","vulnerability":{}},{"path":"web/public/vs/editor/editor.main.js","start_line":631,"end_line":631,"snippet":"`))}}e.Trace=t}),define(ne[689],se([1,0,8,247,140]),function(oe,e,d,k,I){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.BaseResolvedKeybinding=void 0;class E extends I.ResolvedKeybinding{constructor(m,_){if(super(),_.length===0)throw(0,d.illegalArgument)(\"chords\");this._os=m,this._chords=_}getLabel(){return k.UILabelProvider.toLabel(this._os,this._chords,m=>this._getLabel(m))}getAriaLabel(){return k.AriaLabelProvider.toLabel(this._os,this._chords,m=>this._getAriaLabel(m))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:k.ElectronAcceleratorLabelProvider.toLabel(this._os,this._chords,m=>this._getElectronAccelerator(m))}getUserSettingsLabel(){return k.UserSettingsLabelProvider.toLabel(this._os,this._chords,m=>this._getUserSettingsLabel(m))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(m=>this._getChord(m))}_getChord(m){return new I.ResolvedChord(m.ctrlKey,m.shiftKey,m.altKey,m.metaKey,this._getLabel(m),this._getAriaLabel(m))}getDispatchChords(){return this._chords.map(m=>this._getChordDispatch(m))}getSingleModifierDispatchChords(){return this._chords.map(m=>this._getSingleModifierChordDispatch(m))}}e.BaseResolvedKeybinding=E}),define(ne[31],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,d.createDecorator)(\"keybindingService\")}),define(ne[391],se([1,0,5,174,2,31]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorHoverStatusBar=void 0;const y=d.$;let m=class extends I.Disposable{get hasContent(){return this._hasContent}constructor(b){super(),this._keybindingService=b,this.actions=[],this._hasContent=!1,this.hoverElement=y(\"div.hover-row.status-bar\"),this.hoverElement.tabIndex=0,this.actionsElement=d.append(this.hoverElement,y(\"div.actions\"))}addAction(b){const p=this._keybindingService.lookupKeybinding(b.commandId),n=p?p.getLabel():null;this._hasContent=!0;const o=this._register(k.HoverAction.render(this.actionsElement,b,n));return this.actions.push(o),o}append(b){const p=d.append(this.actionsElement,b);return this._hasContent=!0,p}};e.EditorHoverStatusBar=m,e.EditorHoverStatusBar=m=ke([ce(0,E.IKeybindingService)],m)}),define(ne[690],se([1,0,5,31,670,12,28,61,20,174,6]),function(oe,e,d,k,I,E,y,m,_,b,p){\"use strict\";var n;Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContentHoverWidget=void 0;const o=30,t=6;let i=class extends I.ResizableContentWidget{static{n=this}static{this.ID=\"editor.contrib.resizableContentHoverWidget\"}static{this._lastDimensions=new d.Dimension(0,0)}get isVisibleFromKeyboard(){return this._renderedHover?.source===1}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(c,l,a,r,u){const C=c.getOption(67)+8,f=150,h=new d.Dimension(f,C);super(c,h),this._configurationService=a,this._accessibilityService=r,this._keybindingService=u,this._hover=this._register(new b.HoverWidget),this._onDidResize=this._register(new p.Emitter),this.onDidResize=this._onDidResize.event,this._minimumSize=h,this._hoverVisibleKey=_.EditorContextKeys.hoverVisible.bindTo(l),this._hoverFocusedKey=_.EditorContextKeys.hoverFocused.bindTo(l),d.append(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex=\"50\",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(w=>{w.hasChanged(50)&&this._updateFont()}));const v=this._register(d.trackFocus(this._resizableNode.domNode));this._register(v.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(v.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return n.ID}static _applyDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.width=r,c.style.height=u}_setContentsDomNodeDimensions(c,l){const a=this._hover.contentsDomNode;return n._applyDimensions(a,c,l)}_setContainerDomNodeDimensions(c,l){const a=this._hover.containerDomNode;return n._applyDimensions(a,c,l)}_setHoverWidgetDimensions(c,l){this._setContentsDomNodeDimensions(c,l),this._setContainerDomNodeDimensions(c,l),this._layoutContentWidget()}static _applyMaxDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.maxWidth=r,c.style.maxHeight=u}_setHoverWidgetMaxDimensions(c,l){n._applyMaxDimensions(this._hover.contentsDomNode,c,l),n._applyMaxDimensions(this._hover.containerDomNode,c,l),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-maxWidth\",typeof c==\"number\"?`${c}px`:c),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(c){this._setHoverWidgetMaxDimensions(\"none\",\"none\");const l=c.width,a=c.height;this._setHoverWidgetDimensions(l,a)}_updateResizableNodeMaxDimensions(){const c=this._findMaximumRenderingWidth()??1/0,l=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new d.Dimension(c,l),this._setHoverWidgetMaxDimensions(c,l)}_resize(c){n._lastDimensions=new d.Dimension(c.width,c.height),this._setAdjustedHoverWidgetDimensions(c),this._resizableNode.layout(c.height,c.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const c=this._renderedHover?.showAtPosition;if(c)return this._positionPreference===1?this._availableVerticalSpaceAbove(c):this._availableVerticalSpaceBelow(c)}_findMaximumRenderingHeight(){const c=this._findAvailableSpaceVertically();if(!c)return;let l=t;return Array.from(this._hover.contentsDomNode.children).forEach(a=>{l+=a.clientHeight}),Math.min(c,l)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty(\"--vscode-hover-whiteSpace\",\"nowrap\"),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-sourceWhiteSpace\",\"nowrap\");const c=Array.from(this._hover.contentsDomNode.children).some(l=>l.scrollWidth>l.clientWidth);return this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-whiteSpace\"),this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-sourceWhiteSpace\"),c}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const c=this._isHoverTextOverflowing(),l=typeof this._contentWidth>\"u\"?0:this._contentWidth-2;return c||this._hover.containerDomNode.clientWidth<l?d.getClientArea(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(c,l){if(!this._renderedHover)return!1;if(this._renderedHover.initialMousePosX===void 0||this._renderedHover.initialMousePosY===void 0)return this._renderedHover.initialMousePosX=c,this._renderedHover.initialMousePosY=l,!1;const a=d.getDomNodePagePosition(this.getDomNode());this._renderedHover.closestMouseDistance===void 0&&(this._renderedHover.closestMouseDistance=s(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,a.left,a.top,a.width,a.height));const r=s(c,l,a.left,a.top,a.width,a.height);return r>this._renderedHover.closestMouseDistance+4?!1:(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,r),!0)}_setRenderedHover(c){this._renderedHover?.dispose(),this._renderedHover=c,this._hoverVisibleKey.set(!!c),this._hover.containerDomNode.classList.toggle(\"hidden\",!c)}_updateFont(){const{fontSize:c,lineHeight:l}=this._editor.getOption(50),a=this._hover.contentsDomNode;a.style.fontSize=`${c}px`,a.style.lineHeight=`${l/c}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName(\"code\")).forEach(u=>this._editor.applyFontInfo(u))}_updateContent(c){const l=this._hover.contentsDomNode;l.style.paddingBottom=\"\",l.textContent=\"\",l.appendChild(c)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const c=Math.max(this._editor.getLayoutInfo().height/4,250,n._lastDimensions.height),l=Math.max(this._editor.getLayoutInfo().width*.66,500,n._lastDimensions.width);this._setHoverWidgetMaxDimensions(l,c)}_render(c){this._setRenderedHover(c),this._updateFont(),this._updateContent(c.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(c){if(!this._editor||!this._editor.hasModel())return;this._render(c);const l=d.getTotalHeight(this._hover.containerDomNode),a=c.showAtPosition;this._positionPreference=this._findPositionPreference(l,a)??1,this.onContentsChanged(),c.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const u=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,b.getHoverAccessibleViewHint)(this._configurationService.getValue(\"accessibility.verbosity.hover\")===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding(\"editor.action.accessibleView\")?.getAriaLabel()??\"\");u&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+\", \"+u)}hide(){if(!this._renderedHover)return;const c=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new d.Dimension(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),c&&this._editor.focus()}_removeConstraintsRenderNormally(){const c=this._editor.getLayoutInfo();this._resizableNode.layout(c.height,c.width),this._setHoverWidgetDimensions(\"auto\",\"auto\")}setMinimumDimensions(c){this._minimumSize=new d.Dimension(Math.max(this._minimumSize.width,c.width),Math.max(this._minimumSize.height,c.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const c=typeof this._contentWidth>\"u\"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new d.Dimension(c,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const c=this._hover.containerDomNode;let l=d.getTotalHeight(c),a=d.getTotalWidth(c);if(this._resizableNode.layout(l,a),this._setHoverWidgetDimensions(a,l),l=d.getTotalHeight(c),a=d.getTotalWidth(c),this._contentWidth=a,this._updateMinimumWidth(),this._resizableNode.layout(l,a),this._renderedHover?.showAtPosition){const r=d.getTotalHeight(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(r,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c-l.lineHeight})}scrollDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c+l.lineHeight})}scrollLeft(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c-o})}scrollRight(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c+o})}pageUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c-l})}pageDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c+l})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};e.ContentHoverWidget=i,e.ContentHoverWidget=i=n=ke([ce(1,E.IContextKeyService),ce(2,y.IConfigurationService),ce(3,m.IAccessibilityService),ce(4,k.IKeybindingService)],i);function s(g,c,l,a,r,u){const C=l+r/2,f=a+u/2,h=Math.max(Math.abs(g-C)-r/2,0),v=Math.max(Math.abs(c-f)-u/2,0);return Math.sqrt(h*h+v*v)}}),define(ne[392],se([1,0,12]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.KeybindingResolver=e.NoMatchingKb=void 0,e.NoMatchingKb={kind:0};const k={kind:1};function I(_,b,p){return{kind:2,commandId:_,commandArgs:b,isBubble:p}}class E{constructor(b,p,n){this._log=n,this._defaultKeybindings=b,this._defaultBoundCommands=new Map;for(const o of b){const t=o.command;t&&t.charAt(0)!==\"-\"&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=E.handleRemovals([].concat(b).concat(p));for(let o=0,t=this._keybindings.length;o<t;o++){const i=this._keybindings[o];if(i.chords.length===0)continue;const s=i.when?.substituteConstants();s&&s.type===0||this._addKeyPress(i.chords[0],i)}}static _isTargetedForRemoval(b,p,n){if(p){for(let o=0;o<p.length;o++)if(p[o]!==b.chords[o])return!1}return!(n&&n.type!==1&&(!b.when||!(0,d.expressionsAreEqualWithConstantSubstitution)(n,b.when)))}static handleRemovals(b){const p=new Map;for(let o=0,t=b.length;o<t;o++){const i=b[o];if(i.command&&i.command.charAt(0)===\"-\"){const s=i.command.substring(1);p.has(s)?p.get(s).push(i):p.set(s,[i])}}if(p.size===0)return b;const n=[];for(let o=0,t=b.length;o<t;o++){const i=b[o];if(!i.command||i.command.length===0){n.push(i);continue}if(i.command.charAt(0)===\"-\")continue;const s=p.get(i.command);if(!s||!i.isDefault){n.push(i);continue}let g=!1;for(const c of s){const l=c.when;if(this._isTargetedForRemoval(i,c.chords,l)){g=!0;break}}if(!g){n.push(i);continue}}return n}_addKeyPress(b,p){const n=this._map.get(b);if(typeof n>\"u\"){this._map.set(b,[p]),this._addToLookupMap(p);return}for(let o=n.length-1;o>=0;o--){const t=n[o];if(t.command===p.command)continue;let i=!0;for(let s=1;s<t.chords.length&&s<p.chords.length;s++)if(t.chords[s]!==p.chords[s]){i=!1;break}i&&E.whenIsEntirelyIncluded(t.when,p.when)&&this._removeFromLookupMap(t)}n.push(p),this._addToLookupMap(p)}_addToLookupMap(b){if(!b.command)return;let p=this._lookupMap.get(b.command);typeof p>\"u\"?(p=[b],this._lookupMap.set(b.command,p)):p.push(b)}_removeFromLookupMap(b){if(!b.command)return;const p=this._lookupMap.get(b.command);if(!(typeof p>\"u\")){for(let n=0,o=p.length;n<o;n++)if(p[n]===b){p.splice(n,1);return}}}static whenIsEntirelyIncluded(b,p){return!p||p.type===1?!0:!b||b.type===1?!1:(0,d.implies)(b,p)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(b,p){const n=this._lookupMap.get(b);if(typeof n>\"u\"||n.length===0)return null;if(n.length===1)return n[0];for(let o=n.length-1;o>=0;o--){const t=n[o];if(p.contextMatchesRules(t.when))return t}return n[n.length-1]}resolve(b,p,n){const o=[...p,n];this._log(`| Resolving ${o}`);const t=this._map.get(o[0]);if(t===void 0)return this._log(\"\\\\ No keybinding entries.\"),e.NoMatchingKb;let i=null;if(o.length<2)i=t;else{i=[];for(let g=0,c=t.length;g<c;g++){const l=t[g];if(o.length>l.chords.length)continue;let a=!0;for(let r=1;r<o.length;r++)if(l.chords[r]!==o[r]){a=!1;break}a&&i.push(l)}}const s=this._findCommand(b,i);return s?o.length<s.chords.length?(this._log(`\\\\ From ${i.length} keybinding entries, awaiting ${s.chords.length-o.length} more chord(s), when: ${y(s.when)}, source: ${m(s)}.`),k):(this._log(`\\\\ From ${i.length} keybinding entries, matched ${s.command}, when: ${y(s.when)}, source: ${m(s)}.`),I(s.command,s.commandArgs,s.bubble)):(this._log(`\\\\ From ${i.length} keybinding entries, no when clauses matched the context.`),e.NoMatchingKb)}_findCommand(b,p){for(let n=p.length-1;n>=0;n--){const o=p[n];if(E._contextMatchesRules(b,o.when))return o}return null}static _contextMatchesRules(b,p){return p?p.evaluate(b):!0}}e.KeybindingResolver=E;function y(_){return _?`${_.serialize()}`:\"no when condition\"}function m(_){return _.extensionId?_.isBuiltinExtension?`built-in extension ${_.extensionId}`:`user extension ${_.extensionId}`:_.isDefault?\"built-in\":\"user\"}}),define(ne[691],se([1,0,14,8,6,300,2,3,392]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractKeybindingService=void 0;const b=/^(cursor|delete|undo|redo|tab|editor\\.action\\.clipboard)/;class p extends y.Disposable{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:I.Event.None}get inChordMode(){return this._currentChords.length>0}constructor(t,i,s,g,c){super(),this._contextKeyService=t,this._commandService=i,this._telemetryService=s,this._notificationService=g,this._logService=c,this._onDidUpdateKeybindings=this._register(new I.Emitter),this._currentChords=[],this._currentChordChecker=new d.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new d.TimeoutTimer,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(t){this._logging&&this._logService.info(`[KeybindingService]: ${t}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(t,i){const s=this._getResolver().lookupPrimaryKeybinding(t,i||this._contextKeyService);if(s)return s.resolvedKeybinding}dispatchEvent(t,i){return this._dispatch(t,i)}softDispatch(t,i){this._log(\"/ Soft dispatching keyboard event\");const s=this.resolveKeyboardEvent(t);if(s.hasMultipleChords())return console.warn(\"keyboard event should not be mapped to multiple chords\"),_.NoMatchingKb;const[g]=s.getDispatchChords();if(g===null)return this._log(\"\\\\ Keyboard event cannot be dispatched\"),_.NoMatchingKb;const c=this._contextKeyService.getContext(i),l=this._currentChords.map(({keypress:a})=>a);return this._getResolver().resolve(c,l,g)}_scheduleLeaveChordMode(){const t=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-t>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(t,i){switch(this._currentChords.push({keypress:t,label:i}),this._currentChords.length){case 0:throw(0,k.illegalState)(\"impossible\");case 1:this._currentChordStatusMessage=this._notificationService.status(m.localize(1538,\"({0}) was pressed. Waiting for second key of chord...\",i));break;default:{const s=this._currentChords.map(({label:g})=>g).join(\", \");this._currentChordStatusMessage=this._notificationService.status(m.localize(1539,\"({0}) was pressed. Waiting for next key of chord...\",s))}}this._scheduleLeaveChordMode(),E.IME.enabled&&E.IME.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],E.IME.enable()}_dispatch(t,i){return this._doDispatch(this.resolveKeyboardEvent(t),i,!1)}_singleModifierDispatch(t,i){const s=this.resolveKeyboardEvent(t),[g]=s.getSingleModifierDispatchChords();if(g)return this._ignoreSingleModifiers.has(g)?(this._log(`+ Ignoring single modifier ${g} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${g}.`),this._currentSingleModifier=g,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log(\"+ Clearing single modifier due to 300ms elapsed.\"),this._currentSingleModifier=null},300),!1):g===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${g} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(s,i,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[c]=s.getChords();return this._ignoreSingleModifiers=new n(c),this._currentSingleModifier!==null&&this._log(\"+ Clearing single modifier due to other key up.\"),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(t,i,s=!1){let g=!1;if(t.hasMultipleChords())return console.warn(\"Unexpected keyboard event mapped to multiple chords\"),!1;let c=null,l=null;if(s){const[C]=t.getSingleModifierDispatchChords();c=C,l=C?[C]:[]}else[c]=t.getDispatchChords(),l=this._currentChords.map(({keypress:C})=>C);if(c===null)return this._log(\"\\\\ Keyboard event cannot be dispatched in keydown phase.\"),g;const a=this._contextKeyService.getContext(i),r=t.getLabel(),u=this._getResolver().resolve(a,l,c);switch(u.kind){case 0:{if(this._logService.trace(\"KeybindingService#dispatch\",r,\"[ No matching keybinding ]\"),this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving multi-chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1540,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}return g}case 1:return this._logService.trace(\"KeybindingService#dispatch\",r,\"[ Several keybindings match - more chords needed ]\"),g=!0,this._expectAnotherChord(c,r),this._log(this._currentChords.length===1?\"+ Entering multi-chord mode...\":\"+ Continuing multi-chord mode...\"),g;case 2:{if(this._logService.trace(\"KeybindingService#dispatch\",r,`[ Will dispatch command ${u.commandId} ]`),u.commandId===null||u.commandId===\"\"){if(this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1541,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}}else{this.inChordMode&&this._leaveChordMode(),u.isBubble||(g=!0),this._log(`+ Invoking command ${u.commandId}.`),this._currentlyDispatchingCommandId=u.commandId;try{typeof u.commandArgs>\"u\"?this._commandService.executeCommand(u.commandId).then(void 0,C=>this._notificationService.warn(C)):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,C=>this._notificationService.warn(C))}finally{this._currentlyDispatchingCommandId=null}b.test(u.commandId)||this._telemetryService.publicLog2(\"workbenchActionExecuted\",{id:u.commandId,from:\"keybinding\",detail:t.getUserSettingsLabel()??void 0})}return g}}}mightProducePrintableCharacter(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30}}e.AbstractKeybindingService=p;class n{static{this.EMPTY=new n(null)}constructor(t){this._ctrlKey=t?t.ctrlKey:!1,this._shiftKey=t?t.shiftKey:!1,this._altKey=t?t.altKey:!1,this._metaKey=t?t.metaKey:!1}has(t){switch(t){case\"ctrl\":return this._ctrlKey;case\"shift\":return this._shiftKey;case\"alt\":return this._altKey;case\"meta\":return this._metaKey}}}}),define(ne[393],se([1,0]),function(oe,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ResolvedKeybindingItem=void 0,e.toEmptyArrayIfContainsNull=k;class d{constructor(E,y,m,_,b,p,n){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=E,this.chords=E?k(E.getDispatchChords()):[],E&&this.chords.length===0&&(this.chords=k(E.getSingleModifierDispatchChords())),this.bubble=y?y.charCodeAt(0)===94:!1,this.command=this.bubble?y.substr(1):y,this.commandArgs=m,this.when=_,this.isDefault=b,this.extensionId=p,this.isBuiltinExtension=n}}e.ResolvedKeybindingItem=d;function k(I){const E=[];for(let y=0,m=I.length;y<m;y++){const _=I[y];if(!_)return[];E.push(_)}return E}}),define(ne[692],se([1,0,72,140,689,393]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.USLayoutResolvedKeybinding=void 0;class y extends I.BaseResolvedKeybinding{constructor(_,b){super(b,_)}_keyCodeToUILabel(_){if(this._os===2)switch(_){case 15:return\"\\u2190\";case 16:return\"\\u2191\";case 17:return\"\\u2192\";case 18:return\"\\u2193\"}return d.KeyCodeUtils.toString(_)}_getLabel(_){return _.isDuplicateModifierCase()?\"\":this._keyCodeToUILabel(_.keyCode)}_getAriaLabel(_){return _.isDuplicateModifierCase()?\"\":d.KeyCodeUtils.toString(_.keyCode)}_getElectronAccelerator(_){return d.KeyCodeUtils.toElectronAccelerator(_.keyCode)}_getUserSettingsLabel(_){if(_.isDuplicateModifierCase())return\"\";const b=d.KeyCodeUtils.toUserSettingsUS(_.keyCode);return b&&b.toLowerCase()}_getChordDispatch(_){return y.getDispatchStr(_)}static getDispatchStr(_){if(_.isModifierKey())return null;let b=\"\";return _.ctrlKey&&(b+=\"ctrl+\"),_.shiftKey&&(b+=\"shift+\"),_.altKey&&(b+=\"alt+\"),_.metaKey&&(b+=\"meta+\"),b+=d.KeyCodeUtils.toString(_.keyCode),b}_getSingleModifierChordDispatch(_){return _.keyCode===5&&!_.shiftKey&&!_.altKey&&!_.metaKey?\"ctrl\":_.keyCode===4&&!_.ctrlKey&&!_.altKey&&!_.metaKey?\"shift\":_.keyCode===6&&!_.ctrlKey&&!_.shiftKey&&!_.metaKey?\"alt\":_.keyCode===57&&!_.ctrlKey&&!_.shiftKey&&!_.altKey?\"meta\":null}static _scanCodeToKeyCode(_){const b=d.IMMUTABLE_CODE_TO_KEY_CODE[_];if(b!==-1)return b;switch(_){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(_){if(!_)return null;if(_ instanceof k.KeyCodeChord)return _;const b=this._scanCodeToKeyCode(_.scanCode);return b===0?null:new k.KeyCodeChord(_.ctrlKey,_.shiftKey,_.altKey,_.metaKey,b)}static resolveKeybinding(_,b){const p=(0,E.toEmptyArrayIfContainsNull)(_.chords.map(n=>this._toKeyCodeChord(n)));return p.length>0?[new y(p,b)]:[]}}e.USLayoutResolvedKeybinding=y}),define(ne[181],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,d.createDecorator)(\"labelService\")}),define(ne[119],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILayoutService=void 0,e.ILayoutService=(0,d.createDecorator)(\"layoutService\")}),define(ne[394],se([1,0,5,52,13,6,34,49,119]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorScopedLayoutService=void 0;let b=class{get mainContainer(){return(0,I.firstOrDefault)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??k.mainWindow.document.body}get activeContainer(){return(this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor())?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return d.getClientArea(this.mainContainer)}get activeContainerDimension(){return d.getClientArea(this.activeContainer)}get containers(){return(0,I.coalesce)(this._codeEditorService.listCodeEditors().map(o=>o.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(o){this._codeEditorService=o,this.onDidLayoutMainContainer=E.Event.None,this.onDidLayoutActiveContainer=E.Event.None,this.onDidLayoutContainer=E.Event.None,this.onDidChangeActiveContainer=E.Event.None,this.onDidAddContainer=E.Event.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};b=ke([ce(0,y.ICodeEditorService)],b);let p=class extends b{get mainContainer(){return this._container}constructor(o,t){super(t),this._container=o}};e.EditorScopedLayoutService=p,e.EditorScopedLayoutService=p=ke([ce(1,y.ICodeEditorService)],p),(0,m.registerSingleton)(_.ILayoutService,b,1)}),define(ne[693],se([1,0,5,52,6,2,61,28,12,119]),function(oe,e,d,k,I,E,y,m,_,b){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AccessibilityService=void 0;let p=class extends E.Disposable{constructor(o,t,i){super(),this._contextKeyService=o,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new I.Emitter,this._onDidChangeReducedMotion=new I.Emitter,this._onDidChangeLinkUnderline=new I.Emitter,this._accessibilityModeEnabledContext=y.CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration(\"editor.accessibilitySupport\")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),c.affectsConfiguration(\"workbench.reduceMotion\")&&(this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._onDidChangeReducedMotion.fire())})),s(),this._register(this.onDidChangeScreenReaderOptimized(()=>s()));const g=k.mainWindow.matchMedia(\"(prefers-reduced-motion: reduce)\");this._systemMotionReduced=g.matches,this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._linkUnderlinesEnabled=this._configurationService.getValue(\"accessibility.underlineLinks\"),this.initReducedMotionListeners(g),this.initLinkUnderlineListeners()}initReducedMotionListeners(o){this._register((0,d.addDisposableListener)(o,\"change\",()=>{this._systemMotionReduced=o.matches,this._configMotionReduced===\"auto\"&&this._onDidChangeReducedMotion.fire()}));const t=()=>{const i=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle(\"reduce-motion\",i),this._layoutService.mainContainer.classList.toggle(\"enable-motion\",!i)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration(t=>{if(t.affectsConfiguration(\"accessibility.underlineLinks\")){const i=this._configurationService.getValue(\"accessibility.underlineLinks\");this._linkUnderlinesEnabled=i,this._onDidChangeLinkUnderline.fire()}}));const o=()=>{const t=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle(\"underline-links\",t)};o(),this._register(this.onDidChangeLinkUnderlines(()=>o()))}onDidChangeLinkUnderlines(o){return this._onDidChangeLinkUnderline.event(o)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const o=this._configurationService.getValue(\"editor.accessibilitySupport\");return o===\"on\"||o===\"auto\"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const o=this._configMotionReduced;return o===\"on\"||o===\"auto\"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};e.AccessibilityService=p,e.AccessibilityService=p=ke([ce(0,_.IContextKeyService),ce(1,b.ILayoutService),ce(2,m.IConfigurationService)],p)}),define(ne[395],se([1,0,353,2,119,5]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContextViewService=e.ContextViewHandler=void 0;let y=class extends k.Disposable{constructor(b){super(),this.layoutService=b,this.contextView=this._register(new d.ContextView(this.layoutService.mainContainer,1)),this.layout(),this._register(b.onDidLayoutContainer(()=>this.layout()))}showContextView(b,p,n){let o;p?p===this.layoutService.getContainer((0,E.getWindow)(p))?o=1:n?o=3:o=2:o=1,this.contextView.setContainer(p??this.layoutService.activeContainer,o),this.contextView.show(b);const t={close:()=>{this.openContextView===t&&this.hideContextView()}};return this.openContextView=t,t}layout(){this.contextView.layout()}hideContextView(b){this.contextView.hide(b),this.openContextView=void 0}};e.ContextViewHandler=y,e.ContextViewHandler=y=ke([ce(0,I.ILayoutService)],y);class m extends y{getContextViewElement(){return this.contextView.getViewElement()}}e.ContextViewService=m}),define(ne[62],se([1,0,6,2,12,7]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.CONTEXT_LOG_LEVEL=e.MultiplexLogger=e.ConsoleLogger=e.AbstractLogger=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILogService=void 0,e.LogLevelToString=p,e.ILogService=(0,E.createDecorator)(\"logService\");var y;(function(n){n[n.Off=0]=\"Off\",n[n.Trace=1]=\"Trace\",n[n.Debug=2]=\"Debug\",n[n.Info=3]=\"Info\",n[n.Warning=4]=\"Warning\",n[n.Error=5]=\"Error\"})(y||(e.LogLevel=y={})),e.DEFAULT_LOG_LEVEL=y.Info;class m extends k.Disposable{constructor(){super(...arguments),this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new d.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(o){this.level!==o&&(this.level=o,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(o){return this.level!==y.Off&&this.level<=o}}e.AbstractLogger=m;class _ extends m{constructor(o=e.DEFAULT_LOG_LEVEL,t=!0){super(),this.useColors=t,this.setLevel(o)}trace(o,...t){this.checkLogLevel(y.Trace)&&(this.useColors?console.log(\"%cTRACE\",\"color: #888\",o,...t):console.log(o,...t))}debug(o,...t){this.checkLogLevel(y.Debug)&&(this.useColors?console.log(\"%cDEBUG\",\"background: #eee; color: #888\",o,...t):console.log(o,...t))}info(o,...t){this.checkLogLevel(y.Info)&&(this.useColors?console.log(\"%c INFO\",\"color: #33f\",o,...t):console.log(o,...t))}warn(o,...t){this.checkLogLevel(y.Warning)&&(this.useColors?console.log(\"%c WARN\",\"color: #993\",o,...t):console.log(o,...t))}error(o,...t){this.checkLogLevel(y.Error)&&(this.useColors?console.log(\"%c  ERR\",\"color: #f33\",o,...t):console.error(o,...t))}}e.ConsoleLogger=_;class b extends m{constructor(o){super(),this.loggers=o,o.length&&this.setLevel(o[0].getLevel())}setLevel(o){for(const t of this.loggers)t.setLevel(o);super.setLevel(o)}trace(o,...t){for(const i of this.loggers)i.trace(o,...t)}debug(o,...t){for(const i of this.loggers)i.debug(o,...t)}info(o,...t){for(const i of this.loggers)i.info(o,...t)}warn(o,...t){for(const i of this.loggers)i.warn(o,...t)}error(o,...t){for(const i of this.loggers)i.error(o,...t)}dispose(){for(const o of this.loggers)o.dispose();super.dispose()}}e.MultiplexLogger=b;function p(n){switch(n){case y.Trace:return\"trace\";case y.Debug:return\"debug\";case y.Info:return\"info\";case y.Warning:return\"warn\";case y.Error:return\"error\";case y.Off:return\"off\"}}e.CONTEXT_LOG_LEVEL=new I.RawContextKey(\"logLevel\",p(y.Info))}),define(ne[212],se([1,0,64,5,93,47,296,14,6,2,128,11,310,23,61,62]),function(oe,e,d,k,I,E,y,m,_,b,p,n,o,t,i,s){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.TextAreaWrapper=e.ClipboardEventUtils=e.TextAreaInput=e.InMemoryClipboardMetadataManager=e.CopyOptions=e.TextAreaSyntethicEvents=void 0;var g;(function(u){u.Tap=\"-monaco-textarea-synthetic-tap\"})(g||(e.TextAreaSyntethicEvents=g={})),e.CopyOptions={forceCopyWithSyntaxHighlighting:!1};class c{static{this.INSTANCE=new c}constructor(){this._lastState=null}set(C,f){this._lastState={lastCopiedValue:C,data:f}}get(C){return this._lastState&&this._lastState.lastCopiedValue===C?this._lastState.data:(this._lastState=null,null)}}e.InMemoryClipboardMetadataManager=c;class l{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(C){C=C||\"\";const f={text:C,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=C.length,f}}let a=class extends b.Disposable{get textAreaState(){return this._textAreaState}constructor(C,f,h,v,w,S){super(),this._host=C,this._textArea=f,this._OS=h,this._browser=v,this._accessibilityService=w,this._logService=S,this._onFocus=this._register(new _.Emitter),this.onFocus=this._onFocus.event,this._onBlur=this._register(new _.Emitter),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new _.Emitter),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new _.Emitter),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new _.Emitter),this.onCut=this._onCut.event,this._onPaste=this._register(new _.Emitter),this.onPaste=this._onPaste.event,this._onType=this._register(new _.Emitter),this.onType=this._onType.event,this._onCompositionStart=this._register(new _.Emitter),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new _.Emitter),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new _.Emitter),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new _.Emitter),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new b.MutableDisposable),this._asyncTriggerCut=this._register(new m.RunOnceScheduler(()=>this._onCut.fire(),0)),this._textAreaState=o.TextAreaState.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent(\"ctor\"),this._register(_.Event.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let L=null;this._register(this._textArea.onKeyDown(D=>{const T=new E.StandardKeyboardEvent(D);(T.keyCode===114||this._currentComposition&&T.keyCode===1)&&T.stopPropagation(),T.equals(9)&&T.preventDefault(),L=T,this._onKeyDown.fire(T)})),this._register(this._textArea.onKeyUp(D=>{const T=new E.StandardKeyboardEvent(D);this._onKeyUp.fire(T)})),this._register(this._textArea.onCompositionStart(D=>{o._debugComposition&&console.log(\"[compositionstart]\",D);const T=new l;if(this._currentComposition){this._currentComposition=T;return}if(this._currentComposition=T,this._OS===2&&L&&L.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===D.data&&(L.code===\"ArrowRight\"||L.code===\"ArrowLeft\")){o._debugComposition&&console.log(\"[compositionstart] Handling long press case on macOS + arrow key\",D),T.handleCompositionUpdate(\"x\"),this._onCompositionStart.fire({data:D.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:D.data});return}this._onCompositionStart.fire({data:D.data})})),this._register(this._textArea.onCompositionUpdate(D=>{o._debugComposition&&console.log(\"[compositionupdate]\",D);const T=this._currentComposition;if(!T)return;if(this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionUpdate.fire(D);return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionUpdate.fire(D)})),this._register(this._textArea.onCompositionEnd(D=>{o._debugComposition&&console.log(\"[compositionend]\",D);const T=this._currentComposition;if(!T)return;if(this._currentComposition=null,this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionEnd.fire();return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(D=>{if(o._debugComposition&&console.log(\"[input]\",D),this._textArea.setIgnoreSelectionChangeTime(\"received input event\"),this._currentComposition)return;const T=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),M=o.TextAreaState.deduceInput(this._textAreaState,T,this._OS===2);M.replacePrevCharCnt===0&&M.text.length===1&&(n.isHighSurrogate(M.text.charCodeAt(0))||M.text.charCodeAt(0)===127)||(this._textAreaState=T,(M.text!==\"\"||M.replacePrevCharCnt!==0||M.replaceNextCharCnt!==0||M.positionDelta!==0)&&this._onType.fire(M))})),this._register(this._textArea.onCut(D=>{this._textArea.setIgnoreSelectionChangeTime(\"received cut event\"),this._ensureClipboardGetsEditorSelection(D),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(D=>{this._ensureClipboardGetsEditorSelection(D)})),this._register(this._textArea.onPaste(D=>{if(this._textArea.setIgnoreSelectionChangeTime(\"received paste event\"),D.preventDefault(),!D.clipboardData)return;let[T,M]=e.ClipboardEventUtils.getTextData(D.clipboardData);T&&(M=M||c.INSTANCE.get(T),this._onPaste.fire({text:T,metadata:M}))})),this._register(this._textArea.onFocus(()=>{const D=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!D&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"blurWithoutCompositionEnd\"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"tapWithoutCompositionEnd\"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let C=0;return k.addDisposableListener(this._textArea.ownerDocument,\"selectionchange\",f=>{if(y.inputLatency.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const h=Date.now(),v=h-C;if(C=h,v<5)return;const w=h-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),w<100||!this._textAreaState.selection)return;const S=this._textArea.getValue();if(this._textAreaState.value!==S)return;const L=this._textArea.getSelectionStart(),D=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===L&&this._textAreaState.selectionEnd===D)return;const T=this._textAreaState.deduceEditorPosition(L),M=this._host.deduceModelPosition(T[0],T[1],T[2]),A=this._textAreaState.deduceEditorPosition(D),P=this._host.deduceModelPosition(A[0],A[1],A[2]),N=new t.Selection(M.lineNumber,M.column,P.lineNumber,P.column);this._onSelectionChangeRequest.fire(N)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(C){this._hasFocus!==C&&(this._hasFocus=C,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent(\"focusgain\"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(C,f){this._hasFocus||(f=f.collapseSelection()),f.writeToTextArea(C,this._textArea,this._hasFocus),this._textAreaState=f}writeNativeTextAreaContent(C){!this._accessibilityService.isScreenReaderOptimized()&&C===\"render\"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${C})`),this._setAndWriteTextAreaState(C,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(C){const f=this._host.getDataToCopy(),h={version:1,isFromEmptySelection:f.isFromEmptySelection,multicursorText:f.multicursorText,mode:f.mode};c.INSTANCE.set(this._browser.isFirefox?f.text.replace(/\\r\\n/g,`","vulnerability":{}},{"path":"web/public/vs/language/typescript/tsWorker.js","start_line":320,"end_line":320,"snippet":"`||hn[0]===\"\\r\");)hn.shift()}function CP(hn){for(;hn.length;){let Tr=hn[hn.length-1].trimEnd();if(Tr===\"\")hn.pop();else if(Tr.length<hn[hn.length-1].length){hn[hn.length-1]=Tr;break}else break}}function fE(){for(;;){if(gt(),j()===1)return!0;if(!(j()===5||j()===4))return!1}}function Dg(){if(!((j()===5||j()===4)&&_i(fE)))for(;j()===5||j()===4;)gt()}function jy(){if((j()===5||j()===4)&&_i(fE))return\"\";let hn=t.hasPrecedingLineBreak(),Tr=!1,gr=\"\";for(;hn&&j()===42||j()===5||j()===4;)gr+=t.getTokenText(),j()===4?(hn=!0,Tr=!0,gr=\"\"):j()===42&&(hn=!1),gt();return Tr?gr:\"\"}function lD(hn){x.assert(j()===60);let Tr=t.getTokenStart();gt();let gr=gE(void 0),Ei=jy(),hi;switch(gr.escapedText){case\"author\":hi=Ss(Tr,gr,hn,Ei);break;case\"implements\":hi=Hy(Tr,gr,hn,Ei);break;case\"augments\":case\"extends\":hi=lm(Tr,gr,hn,Ei);break;case\"class\":case\"constructor\":hi=hE(Tr,m.createJSDocClassTag,gr,hn,Ei);break;case\"public\":hi=hE(Tr,m.createJSDocPublicTag,gr,hn,Ei);break;case\"private\":hi=hE(Tr,m.createJSDocPrivateTag,gr,hn,Ei);break;case\"protected\":hi=hE(Tr,m.createJSDocProtectedTag,gr,hn,Ei);break;case\"readonly\":hi=hE(Tr,m.createJSDocReadonlyTag,gr,hn,Ei);break;case\"override\":hi=hE(Tr,m.createJSDocOverrideTag,gr,hn,Ei);break;case\"deprecated\":Nr=!0,hi=hE(Tr,m.createJSDocDeprecatedTag,gr,hn,Ei);break;case\"this\":hi=T7(Tr,gr,hn,Ei);break;case\"enum\":hi=D$(Tr,gr,hn,Ei);break;case\"arg\":case\"argument\":case\"param\":return w(Tr,gr,2,hn);case\"return\":case\"returns\":hi=Be(Tr,gr,hn,Ei);break;case\"template\":hi=Jy(Tr,gr,hn,Ei);break;case\"type\":hi=kt(Tr,gr,hn,Ei);break;case\"typedef\":hi=MP(Tr,gr,hn,Ei);break;case\"callback\":hi=Ame(Tr,gr,hn,Ei);break;case\"overload\":hi=Ime(Tr,gr,hn,Ei);break;case\"satisfies\":hi=_E(Tr,gr,hn,Ei);break;case\"see\":hi=ir(Tr,gr,hn,Ei);break;case\"exception\":case\"throws\":hi=Wi(Tr,gr,hn,Ei);break;default:hi=Uy(Tr,gr,hn,Ei);break}return hi}function _p(hn,Tr,gr,Ei){return Ei||(gr+=Tr-hn),Sa(gr,Ei.slice(gr))}function Sa(hn,Tr){let gr=M(),Ei=[],hi=[],wa,ns=0,Dd;function ih(Cg){Dd||(Dd=hn),Ei.push(Cg),hn+=Cg.length}Tr!==void 0&&(Tr!==\"\"&&ih(Tr),ns=1);let Zu=j();e:for(;;){switch(Zu){case 4:ns=0,Ei.push(t.getTokenText()),hn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:x.assert(ns!==2&&ns!==3,\"whitespace shouldn't come from the scanner while saving comment text\");let Cg=t.getTokenText();Dd!==void 0&&hn+Cg.length>Dd&&(Ei.push(Cg.slice(Dd-hn)),ns=2),hn+=Cg.length;break;case 19:ns=2;let ep=t.getTokenFullStart(),uD=t.getTokenEnd()-1,tw=zl(uD);tw?(hi.push(Ut(m.createJSDocText(Ei.join(\"\")),wa??gr,ep)),hi.push(tw),Ei=[],wa=t.getTokenEnd()):ih(t.getTokenText());break;case 62:ns===3?ns=2:ns=3,ih(t.getTokenText());break;case 82:ns!==3&&(ns=2),ih(t.getTokenValue());break;case 42:if(ns===0){ns=1,hn+=1;break}default:ns!==3&&(ns=2),ih(t.getTokenText());break}ns===2||ns===3?Zu=bt(ns===3):Zu=gt()}DP(Ei);let Lm=Ei.join(\"\").trimEnd();if(hi.length)return Lm.length&&hi.push(Ut(m.createJSDocText(Lm),wa??gr)),ho(hi,gr,t.getTokenEnd());if(Lm.length)return Lm}function zl(hn){let Tr=ui(p1);if(!Tr)return;gt(),Dg();let gr=mE(),Ei=[];for(;j()!==20&&j()!==4&&j()!==1;)Ei.push(t.getTokenText()),gt();let hi=Tr===\"link\"?m.createJSDocLink:Tr===\"linkcode\"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return Ut(hi(gr,Ei.join(\"\")),hn,t.getTokenEnd())}function mE(){if(Md(j())){let hn=M(),Tr=tc();for(;$i(25);)Tr=Ut(m.createQualifiedName(Tr,j()===81?ys(80,!1):ls()),hn);for(;j()===81;)ti(),gt(),Tr=Ut(m.createJSDocMemberName(Tr,ls()),hn);return Tr}}function p1(){if(jy(),j()===19&&gt()===60&&Md(gt())){let hn=t.getTokenValue();if(NP(hn))return hn}}function NP(hn){return hn===\"link\"||hn===\"linkcode\"||hn===\"linkplain\"}function Uy(hn,Tr,gr,Ei){return Ut(m.createJSDocUnknownTag(Tr,_p(hn,M(),gr,Ei)),hn)}function PP(hn){hn&&(Ma?Ma.push(hn):(Ma=[hn],lf=hn.pos),v_=hn.end)}function Un(){return jy(),j()===19?Fe():void 0}function y(){let hn=Rv(23);hn&&Dg();let Tr=Rv(62),gr=dD();return Tr&&ua(62),hn&&(Dg(),Uo(64)&&we(),_n(24)),{name:gr,isBracketed:hn}}function D(hn){switch(hn.kind){case 151:return!0;case 188:return D(hn.elementType);default:return Yp(hn)&&Me(hn.typeName)&&hn.typeName.escapedText===\"Object\"&&!hn.typeArguments}}function w(hn,Tr,gr,Ei){let hi=Un(),wa=!hi;jy();let{name:ns,isBracketed:Dd}=y(),ih=jy();wa&&!_i(p1)&&(hi=Un());let Zu=_p(hn,M(),Ei,ih),Lm=ie(hi,ns,gr,Ei);Lm&&(hi=Lm,wa=!0);let Cg=gr===1?m.createJSDocPropertyTag(Tr,ns,Dd,hi,wa,Zu):m.createJSDocParameterTag(Tr,ns,Dd,hi,wa,Zu);return Ut(Cg,hn)}function ie(hn,Tr,gr,Ei){if(hn&&D(hn.type)){let hi=M(),wa,ns;for(;wa=ui(()=>I7(gr,Ei,Tr));)wa.kind===348||wa.kind===355?ns=pn(ns,wa):wa.kind===352&&Re(wa.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ns){let Dd=Ut(m.createJSDocTypeLiteral(ns,hn.type.kind===188),hi);return Ut(m.createJSDocTypeExpression(Dd),hi)}}}function Be(hn,Tr,gr,Ei){ct(Ma,T6)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Un();return Ut(m.createJSDocReturnTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function kt(hn,Tr,gr,Ei){ct(Ma,gN)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Fe(!0),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocTypeTag(Tr,hi,wa),hn)}function ir(hn,Tr,gr,Ei){let wa=j()===23||_i(()=>gt()===60&&Md(gt())&&NP(t.getTokenValue()))?void 0:mt(),ns=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSeeTag(Tr,wa,ns),hn)}function Wi(hn,Tr,gr,Ei){let hi=Un(),wa=_p(hn,M(),gr,Ei);return Ut(m.createJSDocThrowsTag(Tr,hi,wa),hn)}function Ss(hn,Tr,gr,Ei){let hi=M(),wa=Mm(),ns=t.getTokenFullStart(),Dd=_p(hn,ns,gr,Ei);Dd||(ns=t.getTokenFullStart());let ih=typeof Dd!=\"string\"?ho(ro([Ut(wa,hi,ns)],Dd),hi):wa.text+Dd;return Ut(m.createJSDocAuthorTag(Tr,ih),hn)}function Mm(){let hn=[],Tr=!1,gr=t.getToken();for(;gr!==1&&gr!==4;){if(gr===30)Tr=!0;else{if(gr===60&&!Tr)break;if(gr===32&&Tr){hn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}hn.push(t.getTokenText()),gr=gt()}return m.createJSDocText(hn.join(\"\"))}function Hy(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocImplementsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function lm(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocAugmentsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function _E(hn,Tr,gr,Ei){let hi=Fe(!1),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSatisfiesTag(Tr,hi,wa),hn)}function R$(){let hn=$i(19),Tr=M(),gr=Tme();t.setInJSDocType(!0);let Ei=uE();t.setInJSDocType(!1);let hi=m.createExpressionWithTypeArguments(gr,Ei),wa=Ut(hi,Tr);return hn&&_n(20),wa}function Tme(){let hn=M(),Tr=gE();for(;$i(25);){let gr=gE();Tr=Ut(K(Tr,gr),hn)}return Tr}function hE(hn,Tr,gr,Ei,hi){return Ut(Tr(gr,_p(hn,M(),Ei,hi)),hn)}function T7(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocThisTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function D$(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocEnumTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function MP(hn,Tr,gr,Ei){let hi=Un();jy();let wa=A7();Dg();let ns=Sa(gr),Dd;if(!hi||D(hi.type)){let Zu,Lm,Cg,ep=!1;for(;(Zu=ui(()=>P$(gr)))&&Zu.kind!==352;)if(ep=!0,Zu.kind===351)if(Lm){let uD=Qt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);uD&&fa(uD,Ix(_e,Te,0,0,f.The_tag_was_first_specified_here));break}else Lm=Zu;else Cg=pn(Cg,Zu);if(ep){let uD=hi&&hi.type.kind===188,tw=m.createJSDocTypeLiteral(Cg,uD);hi=Lm&&Lm.typeExpression&&!D(Lm.typeExpression.type)?Lm.typeExpression:Ut(tw,hn),Dd=hi.end}}Dd=Dd||ns!==void 0?M():(wa??hi??Tr).end,ns||(ns=_p(hn,Dd,gr,Ei));let ih=m.createJSDocTypedefTag(Tr,hi,wa,ns);return Ut(ih,hn,Dd)}function A7(hn){let Tr=t.getTokenStart();if(!Md(j()))return;let gr=gE();if($i(25)){let Ei=A7(!0),hi=m.createModuleDeclaration(void 0,gr,Ei,hn?8:void 0);return Ut(hi,Tr)}return hn&&(gr.flags|=4096),gr}function C$(hn){let Tr=M(),gr,Ei;for(;gr=ui(()=>I7(4,hn));){if(gr.kind===352){Re(gr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ei=pn(Ei,gr)}return ho(Ei||[],Tr)}function N$(hn,Tr){let gr=C$(Tr),Ei=ui(()=>{if(Rv(60)){let hi=lD(Tr);if(hi&&hi.kind===349)return hi}});return Ut(m.createJSDocSignature(void 0,gr,Ei),hn)}function Ame(hn,Tr,gr,Ei){let hi=A7();Dg();let wa=Sa(gr),ns=N$(hn,gr);wa||(wa=_p(hn,M(),gr,Ei));let Dd=wa!==void 0?M():ns.end;return Ut(m.createJSDocCallbackTag(Tr,ns,hi,wa),hn,Dd)}function Ime(hn,Tr,gr,Ei){Dg();let hi=Sa(gr),wa=N$(hn,gr);hi||(hi=_p(hn,M(),gr,Ei));let ns=hi!==void 0?M():wa.end;return Ut(m.createJSDocOverloadTag(Tr,wa,hi),hn,ns)}function cD(hn,Tr){for(;!Me(hn)||!Me(Tr);)if(!Me(hn)&&!Me(Tr)&&hn.right.escapedText===Tr.right.escapedText)hn=hn.left,Tr=Tr.left;else return!1;return hn.escapedText===Tr.escapedText}function P$(hn){return I7(1,hn)}function I7(hn,Tr,gr){let Ei=!0,hi=!1;for(;;)switch(gt()){case 60:if(Ei){let wa=q0(hn,Tr);return wa&&(wa.kind===348||wa.kind===355)&&gr&&(Me(wa.name)||!cD(gr,wa.name.left))?!1:wa}hi=!1;break;case 4:Ei=!0,hi=!1;break;case 42:hi&&(Ei=!1),hi=!0;break;case 80:Ei=!1;break;case 1:return!1}}function q0(hn,Tr){x.assert(j()===60);let gr=t.getTokenFullStart();gt();let Ei=gE(),hi=jy(),wa;switch(Ei.escapedText){case\"type\":return hn===1&&kt(gr,Ei);case\"prop\":case\"property\":wa=1;break;case\"arg\":case\"argument\":case\"param\":wa=6;break;case\"template\":return Jy(gr,Ei,Tr,hi);case\"this\":return T7(gr,Ei,Tr,hi);default:return!1}return hn&wa?w(gr,Ei,hn,Tr):!1}function Yn(){let hn=M(),Tr=Rv(23);Tr&&Dg();let gr=eh(!1,!0),Ei=gE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),hi;if(Tr&&(Dg(),_n(64),hi=Ea(16777216,nm),_n(24)),!_l(Ei))return Ut(m.createTypeParameterDeclaration(gr,Ei,void 0,hi),hn)}function qy(){let hn=M(),Tr=[];do{Dg();let gr=Yn();gr!==void 0&&Tr.push(gr),jy()}while(Rv(28));return ho(Tr,hn)}function Jy(hn,Tr,gr,Ei){let hi=j()===19?Fe():void 0,wa=qy();return Ut(m.createJSDocTemplateTag(Tr,hi,wa,_p(hn,M(),gr,Ei)),hn)}function Rv(hn){return j()===hn?(gt(),!0):!1}function dD(){let hn=gE();for($i(23)&&_n(24);$i(25);){let Tr=gE();$i(23)&&_n(24),hn=Ye(hn,Tr)}return hn}function gE(hn){if(!Md(j()))return ys(80,!hn,hn||f.Identifier_expected);Vt++;let Tr=t.getTokenStart(),gr=t.getTokenEnd(),Ei=j(),hi=Pc(t.getTokenValue()),wa=Ut(C(hi,Ei),Tr,gr);return gt(),wa}}})(g_=e.JSDocParser||(e.JSDocParser={}))})(zb||(zb={})),(e=>{function t(S,A,C,R){if(R=R||x.shouldAssert(2),m(S,A,C,R),Iee(C))return S;if(S.statements.length===0)return zb.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let L=S;x.assert(!L.hasBeenIncrementallyParsed),L.hasBeenIncrementallyParsed=!0,zb.fixupParentReferences(L);let G=S.text,U=v(S),K=p(S,C);m(S,A,K,R),x.assert(K.span.start<=C.span.start),x.assert(Al(K.span)===Al(C.span)),x.assert(Al(ZD(K))===Al(ZD(C)));let F=ZD(K).length-K.span.length;d(L,K.span.start,Al(K.span),Al(ZD(K)),F,G,A,R);let oe=zb.parseSourceFile(S.fileName,A,S.languageVersion,U,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return oe.commentDirectives=r(S.commentDirectives,oe.commentDirectives,K.span.start,Al(K.span),F,G,A,R),oe.impliedNodeFormat=S.impliedNodeFormat,oe}e.updateSourceFile=t;function r(S,A,C,R,L,G,U,K){if(!S)return A;let F,oe=!1;for(let $ of S){let{range:de,type:fe}=$;if(de.end<C)F=pn(F,$);else if(de.pos>R){W();let q={range:{pos:de.pos+L,end:de.end+L},type:fe};F=pn(F,q),K&&x.assert(G.substring(de.pos,de.end)===U.substring(q.range.pos,q.range.end))}}return W(),F;function W(){oe||(oe=!0,F?A&&F.push(...A):F=A)}}function i(S,A,C,R,L,G){A?K(S):U(S);return;function U(F){let oe=\"\";if(G&&o(F)&&(oe=R.substring(F.pos,F.end)),F._children&&(F._children=void 0),F_(F,F.pos+C,F.end+C),G&&o(F)&&x.assert(oe===L.substring(F.pos,F.end)),Ao(F,U,K),ap(F))for(let W of F.jsDoc)U(W);l(F,G)}function K(F){F._children=void 0,F_(F,F.pos+C,F.end+C);for(let oe of F)U(oe)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,C,R,L){x.assert(S.end>=A,\"Adjusting an element that was entirely before the change range\"),x.assert(S.pos<=C,\"Adjusting an element that was entirely after the change range\"),x.assert(S.pos<=S.end);let G=Math.min(S.pos,R),U=S.end>=C?S.end+L:Math.min(S.end,R);x.assert(G<=U),S.parent&&(x.assertGreaterThanOrEqual(G,S.parent.pos),x.assertLessThanOrEqual(U,S.parent.end)),F_(S,G,U)}function l(S,A){if(A){let C=S.pos,R=L=>{x.assert(L.pos>=C),C=L.end};if(ap(S))for(let L of S.jsDoc)R(L);Ao(S,R),x.assert(C<=S.end)}}function d(S,A,C,R,L,G,U,K){F(S);return;function F(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!1,L,G,U,K);return}let $=W.end;if($>=A){if(W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L),Ao(W,F,oe),ap(W))for(let de of W.jsDoc)F(de);l(W,K);return}x.assert($<A)}function oe(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!0,L,G,U,K);return}let $=W.end;if($>=A){W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L);for(let de of W)F(de);return}x.assert($<A)}}function p(S,A){let R=A.span.start;for(let U=0;R>0&&U<=1;U++){let K=h(S,R);x.assert(K.pos<=R);let F=K.pos;R=Math.max(0,F-1)}let L=Gl(R,Al(A.span)),G=A.newLength+(A.span.start-R);return FM(L,G)}function h(S,A){let C=S,R;if(Ao(S,G),R){let U=L(R);U.pos>C.pos&&(C=U)}return C;function L(U){for(;;){let K=yV(U);if(K)U=K;else return U}}function G(U){if(!_l(U))if(U.pos<=A){if(U.pos>=C.pos&&(C=U),A<U.end)return Ao(U,G),!0;x.assert(U.end<=A),R=U}else return x.assert(U.pos>A),!0}}function m(S,A,C,R){let L=S.text;if(C&&(x.assert(L.length-C.span.length+C.newLength===A.length),R||x.shouldAssert(3))){let G=L.substr(0,C.span.start),U=A.substr(0,C.span.start);x.assert(G===U);let K=L.substring(Al(C.span),L.length),F=A.substring(Al(ZD(C)),A.length);x.assert(K===F)}}function v(S){let A=S.statements,C=0;x.assert(C<A.length);let R=A[C],L=-1;return{currentNode(U){return U!==L&&(R&&R.end===U&&C<A.length-1&&(C++,R=A[C]),(!R||R.pos!==U)&&G(U)),L=U,x.assert(!R||R.pos===U),R}};function G(U){A=void 0,C=-1,R=void 0,Ao(S,K,F);return;function K(oe){return U>=oe.pos&&U<oe.end?(Ao(oe,K,F),!0):!1}function F(oe){if(U>=oe.pos&&U<oe.end)for(let W=0;W<oe.length;W++){let $=oe[W];if($){if($.pos===U)return A=oe,C=W,R=$,!0;if($.pos<U&&U<$.end)return Ao($,K,F),!0}}return!1}}}e.createSyntaxCursor=v;let E;(S=>{S[S.Value=-1]=\"Value\"})(E||(E={}))})(Zj||(Zj={})),eU=new Map,wEe=/^\\/\\/\\/\\s*<(\\S+)\\s.*?\\/>/im,WEe=/^\\/\\/\\/?\\s*@([^\\s:]+)(.*)\\s*$/im}});function O6(e){let t=new Map,r=new Map;return an(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function Xx(){return E0e||(E0e=O6(Nh))}function Mie(e){return FEe(e,bl)}function FEe(e,t){let r=bo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(\", \");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function w6(e,t,r){return h0e(e,(t??\"\").trim(),r)}function Lie(e,t=\"\",r){if(t=t.trim(),Ui(t,\"-\"))return;if(e.type===\"listOrElement\"&&!t.includes(\",\"))return vI(e,t,r);if(t===\"\")return[];let i=t.split(\",\");switch(e.element.type){case\"number\":return Fi(i,o=>vI(e.element,parseInt(o),r));case\"string\":return Fi(i,o=>vI(e.element,o||\"\",r));case\"boolean\":case\"object\":return x.fail(`List of ${e.element.type} is not yet supported.`);default:return Fi(i,o=>w6(e.element,o,r))}}function zEe(e){return e.name}function kie(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return Bb(o,i,t.alternateMode.diagnostic,e);let l=VD(e,t.optionDeclarations,zEe);return l?Bb(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):Bb(o,i,t.unknownOptionDiagnostic,r||e)}function tU(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;m<h.length;){let v=h[m];if(m++,v.charCodeAt(0)===64)p(v.slice(1));else if(v.charCodeAt(0)===45){let E=v.slice(v.charCodeAt(1)===45?2:1),S=Oie(e.getOptionsNameMap,E,!0);if(S)m=BEe(h,m,e,S,i,l);else{let A=Oie(q6.getOptionsNameMap,E,!0);A?m=BEe(h,m,q6,A,o||(o={}),l):l.push(kie(E,e,v))}}else s.push(v)}}function p(h){let m=SN(h,r||(S=>Hc.readFile(S)));if(!fo(m)){l.push(m);return}let v=[],E=0;for(;;){for(;E<m.length&&m.charCodeAt(E)<=32;)E++;if(E>=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E<m.length&&m.charCodeAt(E)!==34;)E++;E<m.length?(v.push(m.substring(S+1,E)),E++):l.push(bl(f.Unterminated_quoted_string_in_response_file_0,h))}else{for(;m.charCodeAt(E)>32;)E++;v.push(m.substring(S,E))}}d(v)}}function BEe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l===\"null\"?(o[i.name]=void 0,t++):i.type===\"boolean\"?l===\"false\"?(o[i.name]=vI(i,!1,s),t++):(l===\"true\"&&t++,s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!Ui(l,\"-\")&&t++)}else if(!e[t]&&i.type!==\"boolean\"&&s.push(bl(r.optionTypeMismatchDiagnostic,i.name,oU(i))),e[t]!==\"null\")switch(i.type){case\"number\":o[i.name]=vI(i,parseInt(e[t]),s),t++;break;case\"boolean\":let l=e[t];o[i.name]=vI(i,l!==\"false\",s),(l===\"false\"||l===\"true\")&&t++;break;case\"string\":o[i.name]=vI(i,e[t]||\"\",s),t++;break;case\"list\":let d=Lie(i,e[t],s);o[i.name]=d||[],d&&t++;break;case\"listOrElement\":x.fail(\"listOrElement not supported here\");break;default:o[i.name]=w6(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function GEe(e,t){return tU(Q2,e,t)}function nU(e,t){return Oie(Xx,e,t)}function Oie(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function VEe(){return T0e||(T0e=O6(U6))}function jEe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=tU(I0e,e),s=t;return i.length===0&&i.push(\".\"),s.clean&&s.force&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"force\")),s.clean&&s.verbose&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"verbose\")),s.clean&&s.watch&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"watch\")),s.watch&&s.dry&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"watch\",\"dry\")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function UEe(e,...t){return Fo(bl(e,...t).messageText,fo)}function V2(e,t,r,i,o,s){let l=SN(e,h=>r.readFile(h));if(!fo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=G2(e,l),p=r.getCurrentDirectory();return d.path=ks(e,p,od(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,H2(d,r,Qi(Ur(e),p),t,Qi(e,p),void 0,s,i,o)}function j2(e,t){let r=SN(e,t);return fo(r)?rU(e,r):{config:{},error:r}}function rU(e,t){let r=G2(e,t);return{config:XEe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function wie(e,t){let r=SN(e,t);return fo(r)?G2(e,r):{fileName:e,parseDiagnostics:[r]}}function SN(e,t){let r;try{r=t(e)}catch(i){return bl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?bl(f.Cannot_read_file_0,e):r}function iU(e){return PE(e,zEe)}function HEe(){return x0e||(x0e=O6(Yx))}function qEe(){return R0e||(R0e=iU(Nh))}function JEe(){return D0e||(D0e=iU(Yx))}function KEe(){return C0e||(C0e=iU($2))}function R4e(){return $ie===void 0&&($ie={name:void 0,type:\"object\",elementOptions:iU([Kie,Xie,Yie,Z2,{name:\"references\",type:\"list\",element:{name:\"references\",type:\"object\"},category:f.Projects},{name:\"files\",type:\"list\",element:{name:\"files\",type:\"string\"},category:f.File_Management},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},J2])}),$ie}function XEe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(vf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,Ll(e.fileName)===\"jsconfig.json\"?\"jsconfig.json\":\"tsconfig.json\")),Bd(o)){let s=Dr(o.elements,ma);if(s)return U2(e,s,t,!0,r)}return{}}return U2(e,o,t,!0,r)}function Wie(e,t){var r;return U2(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function U2(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var v;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(vf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(vf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,\"?\")),p(S.name)||r.push(vf(e,S.name,f.String_literal_with_double_quotes_expected));let A=aL(S.name)?void 0:$1(S.name),C=A&&Ii(A),R=C?(v=m?.elementOptions)==null?void 0:v.get(C):void 0,L=d(S.initializer,R);typeof C<\"u\"&&(i&&(E[C]=L),o?.onPropertySet(C,L,S,m,R))}return E}function l(h,m){if(!i){h.forEach(v=>d(v,m));return}return Cr(h.map(v=>d(v,m)),v=>v!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(vf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(vf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,oU(m))):r.push(vf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return da(h)&&IW(h,e)}}function oU(e){return e.type===\"listOrElement\"?`${oU(e.element)} or Array`:e.type===\"list\"?\"Array\":fo(e.type)?e.type:\"string\"}function YEe(e,t){if(e){if(q2(t))return!e.disallowNullOrUndefined;if(e.type===\"list\")return oo(t);if(e.type===\"listOrElement\")return oo(t)||YEe(e.element,t);let r=fo(e.type)?e.type:\"string\";return typeof t===r}return!1}function $Ee(e,t,r){var i,o,s;let l=od(r.useCaseSensitiveFileNames),d=nn(Cr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?C4e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ug),A=>RM(Qi(t,r.getCurrentDirectory()),Qi(A,r.getCurrentDirectory()),l)),p={configFilePath:Qi(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=F6(e.options,p),m=e.watchOptions&&N4e(e.watchOptions),v={compilerOptions:{...W6(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&W6(m),references:nn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:\"\",originalPath:void 0})),files:yn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:D4e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in Ul)if(!E.has(A)&&ct(Ul[A].dependencies,C=>E.has(C))){let C=Ul[A].computeValue(e.options),R=Ul[A].computeValue({});C!==R&&(S[A]=Ul[A].computeValue(e.options))}return R1(v.compilerOptions,W6(F6(S,p))),v}function W6(e){return{...bo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function D4e(e){if(yn(e)){if(yn(e)!==1)return e;if(e[0]!==J6)return e}}function C4e(e,t,r,i){if(!t)return Ug;let o=dF(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&iy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&iy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ug}function QEe(e){switch(e.type){case\"string\":case\"number\":case\"boolean\":case\"object\":return;case\"list\":case\"listOrElement\":return QEe(e.element);default:return e.type}}function aU(e,t){return hc(t,(r,i)=>{if(r===e)return i})}function F6(e,t){return ZEe(e,Xx(),t)}function N4e(e){return ZEe(e,HEe())}function ZEe(e,{optionsNameMap:t},r){let i=new Map,o=r&&od(r.useCaseSensitiveFileNames);for(let s in e)if(rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){x.assert(d.type!==\"listOrElement\");let p=QEe(d);p?d.type===\"list\"?i.set(s,l.map(h=>aU(h,p))):i.set(s,aU(l,p)):r&&d.isFilePath?i.set(s,RM(r.configFilePath,Qi(l,Ur(r.configFilePath)),o)):i.set(s,l)}}return i}function e0e(e,t){let r=t0e(e);return o();function i(s){return Array(s+1).join(\" \")}function o(){let s=[],l=i(2);return uU.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=Uie(d);p!==h?s.push(`${l}${d.name}: ${p}`):rs(H6,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function t0e(e){let t=Xw(e,H6);return F6(t)}function n0e(e,t,r){let i=t0e(e);return l();function o(d){return Array(d+1).join(\" \")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of Nh)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:\"\"}),m.push({value:`/* ${vo(A)} */`});for(let C of S){let R;i.has(C.name)?R=`\"${C.name}\": ${JSON.stringify(i.get(C.name))}${(h+=1)===i.size?\"\":\",\"}`:R=`// \"${C.name}\": ${JSON.stringify(Uie(C))},`,m.push({value:R,description:`/* ${C.description&&vo(C.description)||C.name} */`}),p=Math.max(R.length,p)}});let v=o(2),E=[];E.push(\"{\"),E.push(`${v}\"compilerOptions\": {`),E.push(`${v}${v}/* ${vo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push(\"\");for(let S of m){let{value:A,description:C=\"\"}=S;E.push(A&&`${v}${v}${A}${C&&o(p-A.length+2)+C}`)}if(t.length){E.push(`${v}},`),E.push(`${v}\"files\": [`);for(let S=0;S<t.length;S++)E.push(`${v}${v}${JSON.stringify(t[S])}${S===t.length-1?\"\":\",\"}`);E.push(`${v}]`)}else E.push(`${v}}`);return E.push(\"}\"),E.join(r)+r}}function sU(e,t){let r={},i=Xx().optionsNameMap;for(let o in e)rs(e,o)&&(r[o]=P4e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function P4e(e,t,r){if(e&&!q2(t)){if(e.type===\"list\"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);x.assert(e.type!==\"listOrElement\")}return t}function r0e(e,t,r,i,o,s,l,d,p){return o0e(e,void 0,t,r,i,p,o,s,l,d)}function H2(e,t,r,i,o,s,l,d,p){var h,m;(h=qn)==null||h.push(qn.Phase.Parse,\"parseJsonSourceFileConfigFileContent\",{path:e.fileName});let v=o0e(void 0,e,t,r,i,p,o,s,l,d);return(m=qn)==null||m.pop(),v}function lU(e,t){t&&Object.defineProperty(e,\"configFile\",{enumerable:!1,writable:!1,value:t})}function q2(e){return e==null}function i0e(e,t){return Ur(Qi(e,t))}function o0e(e,t,r,i,o={},s,l,d=[],p=[],h){x.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let m=[],v=l0e(e,t,r,i,l,d,m,h),{raw:E}=v,S=Xw(o,v.options||{}),A=s&&v.watchOptions?Xw(s,v.watchOptions):v.watchOptions||s;S.configFilePath=l&&ad(l);let C=L();t&&(t.configFileSpecs=C),lU(S,t);let R=Yo(l?i0e(l,i):i);return{options:S,watchOptions:A,fileNames:G(R),projectReferences:U(R),typeAcquisition:v.typeAcquisition||cU(),raw:E,errors:m,wildcardDirectories:B4e(C,R,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function L(){let $=oe(\"references\",ce=>typeof ce==\"object\",\"object\"),de=K(F(\"files\"));if(de){let ce=$===\"no-prop\"||oo($)&&$.length===0,Z=rs(E,\"extends\");if(de.length===0&&ce&&!Z)if(t){let pe=l||\"tsconfig.json\",Ae=f.The_files_list_in_config_file_0_is_empty,Oe=uL(t,\"files\",be=>be.initializer),_e=Bb(t,Oe,Ae,pe);m.push(_e)}else W(f.The_files_list_in_config_file_0_is_empty,l||\"tsconfig.json\")}let fe=K(F(\"include\")),q=F(\"exclude\"),H=!1,ee=K(q);if(q===\"no-prop\"&&E.compilerOptions){let ce=E.compilerOptions.outDir,Z=E.compilerOptions.declarationDir;(ce||Z)&&(ee=[ce,Z].filter(pe=>!!pe))}de===void 0&&fe===void 0&&(fe=[J6],H=!0);let le,Ee;return fe&&(le=b0e(fe,m,!0,t,\"include\")),ee&&(Ee=b0e(ee,m,!1,t,\"exclude\")),{filesSpecs:de,includeSpecs:fe,excludeSpecs:ee,validatedFilesSpec:Cr(de,fo),validatedIncludeSpecs:le,validatedExcludeSpecs:Ee,pathPatterns:void 0,isDefaultIncludeSpec:H}}function G($){let de=AN(C,$,S,r,p);return s0e(de,TN(E),d)&&m.push(a0e(C,l)),de}function U($){let de,fe=oe(\"references\",q=>typeof q==\"object\",\"object\");if(oo(fe))for(let q of fe)typeof q.path!=\"string\"?W(f.Compiler_option_0_requires_a_value_of_type_1,\"reference.path\",\"string\"):(de||(de=[])).push({path:Qi(q.path,$),originalPath:q.path,prepend:q.prepend,circular:q.circular});return de}function K($){return oo($)?$:void 0}function F($){return oe($,fo,\"string\")}function oe($,de,fe){if(rs(E,$)&&!q2(E[$]))if(oo(E[$])){let q=E[$];return!t&&!ji(q,de)&&m.push(bl(f.Compiler_option_0_requires_a_value_of_type_1,$,fe)),q}else return W(f.Compiler_option_0_requires_a_value_of_type_1,$,\"Array\"),\"not-array\";return\"no-prop\"}function W($,...de){t||m.push(bl($,...de))}}function M4e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function a0e({includeSpecs:e,excludeSpecs:t},r){return bl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||\"tsconfig.json\",JSON.stringify(e||[]),JSON.stringify(t||[]))}function s0e(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function TN(e){return!rs(e,\"files\")&&!rs(e,\"references\")}function z6(e,t,r,i,o){let s=i.length;return s0e(e,o)?i.push(a0e(r,t)):X5(i,l=>!M4e(l)),s!==i.length}function L4e(e){return!!e.options}function l0e(e,t,r,i,o,s,l,d){var p;i=ad(i);let h=Qi(o||\"\",i);if(s.includes(h))return l.push(bl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(\" -> \"))),{raw:e||Wie(t,l)};let m=e?k4e(e,r,i,o,l):O4e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};fo(m.extendedConfigPath)?v(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>v(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=bo(E.extendedSourceFiles.keys())),m.options=R1(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?R1(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function v(E,S){let A=w4e(t,S,r,s,l,d,E);if(A&&L4e(A)){let C=A.raw,R,L=G=>{C[G]&&(E[G]=nn(C[G],U=>Ou(U)?U:wr(R||(R=KD(Ur(S),i,od(r.useCaseSensitiveFileNames))),U)))};L(\"include\"),L(\"exclude\"),L(\"files\"),C.compileOnSave!==void 0&&(E.compileOnSave=C.compileOnSave),R1(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?R1({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function k4e(e,t,r,i,o){rs(e,\"excludes\")&&o.push(bl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=m0e(e.compilerOptions,r,o,i),l=_0e(e.typeAcquisition,r,o,i),d=F4e(e.watchOptions,r,o);e.compileOnSave=W4e(e,r,o);let p=e.extends||e.extends===\"\"?c0e(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function c0e(e,t,r,i,o,s,l,d){let p,h=i?i0e(i,r):r;if(fo(e))p=d0e(e,t,h,o,l,d);else if(oo(e)){p=[];for(let m=0;m<e.length;m++){let v=e[m];fo(v)?p=pn(p,d0e(v,t,h,o,l?.elements[m],d)):eT(Z2.element,e,r,o,s,l?.elements[m],d)}}else eT(Z2,e,r,o,s,l,d);return p}function O4e(e,t,r,i,o){let s=f0e(i),l,d,p,h,m=R4e(),v=XEe(e,o,{rootOptions:m,onPropertySet:E});return l||(l=cU(i)),h&&v&&v.compilerOptions===void 0&&o.push(vf(e,h[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,$1(h[0]))),{raw:v,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p};function E(S,A,C,R,L){if(L&&L!==Z2&&(A=eT(L,A,r,o,C,C.initializer,e)),R?.name)if(L){let G;R===Kie?G=s:R===Xie?G=d??(d={}):R===Yie?G=l??(l=cU(i)):x.fail(\"Unknown option\"),G[L.name]=A}else S&&R?.extraKeyDiagnostics&&(R.elementOptions?o.push(kie(S,R.extraKeyDiagnostics,void 0,C.name,e)):o.push(vf(e,C.name,R.extraKeyDiagnostics.unknownOptionDiagnostic,S)));else R===m&&(L===Z2?p=c0e(A,t,r,i,o,C,C.initializer,e):L||(S===\"excludes\"&&o.push(vf(e,C.name,f.Unknown_option_excludes_Did_you_mean_exclude)),Dr(uU,G=>G.name===S)&&(h=pn(h,C.name))))}}function d0e(e,t,r,i,o,s){if(e=ad(e),Ou(e)||Ui(e,\"./\")||Ui(e,\"../\")){let d=Qi(e,r);if(!t.fileExists(d)&&!Zs(d,\".json\")&&(d=`${d}.json`,!t.fileExists(d))){i.push(Bb(s,o,f.File_0_not_found,e));return}return d}let l=soe(e,wr(r,\"tsconfig.json\"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===\"\"?i.push(Bb(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,\"extends\")):i.push(Bb(s,o,f.File_0_not_found,e))}function w4e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:C_(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=wie(t,v=>r.readFile(v)),h.parseDiagnostics.length||(m=l0e(void 0,h,r,Ur(t),Ll(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let v of h.extendedSourceFiles)l.extendedSourceFiles.add(v);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function W4e(e,t,r){if(!rs(e,J2.name))return!1;let i=eT(J2,e.compileOnSave,t,r);return typeof i==\"boolean\"&&i}function u0e(e,t,r){let i=[];return{options:m0e(e,t,i,r),errors:i}}function p0e(e,t,r){let i=[];return{options:_0e(e,t,i,r),errors:i}}function f0e(e){return e&&Ll(e)===\"jsconfig.json\"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function m0e(e,t,r,i){let o=f0e(i);return Fie(qEe(),e,t,o,Q2,r),i&&(o.configFilePath=ad(i)),o}function cU(e){return{enable:!!e&&Ll(e)===\"jsconfig.json\",include:[],exclude:[]}}function _0e(e,t,r,i){let o=cU(i);return Fie(KEe(),e,t,o,Jie,r),o}function F4e(e,t,r){return Fie(JEe(),e,t,void 0,q6,r)}function Fie(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=eT(d,t[l],r,s):s.push(kie(l,o))}return i}}function Bb(e,t,r,...i){return e&&t?vf(e,t,r,...i):bl(r,...i)}function eT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(Bb(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(YEe(e,t)){let d=e.type;if(d===\"list\"&&oo(t))return g0e(e,t,r,i,o,s,l);if(d===\"listOrElement\")return oo(t)?g0e(e,t,r,i,o,s,l):eT(e.element,t,r,i,o,s,l);if(!fo(e.type))return h0e(e,t,i,s,l);let p=vI(e,t,i,s,l);return q2(p)?p:z4e(e,r,p)}else i.push(Bb(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,oU(e)))}function z4e(e,t,r){return e.isFilePath&&(r=Qi(r,t),r===\"\"&&(r=\".\")),r}function vI(e,t,r,i,o){var s;if(q2(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(Bb(o,i,...l))}function h0e(e,t,r,i,o){if(q2(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return vI(e,l,r,i,o);r.push(FEe(e,(d,...p)=>Bb(o,i,d,...p)))}function g0e(e,t,r,i,o,s,l){return Cr(nn(t,(d,p)=>eT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function AN(e,t,r,i,o=je){t=Yo(t);let s=od(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,E=GC(r,o),S=YL(r,E);if(h)for(let L of h){let G=Qi(L,t);l.set(s(G),G)}let A;if(m&&m.length>0)for(let L of i.readDirectory(t,Ff(S),v,m,void 0)){if(el(L,\".json\")){if(!A){let K=m.filter(oe=>Zs(oe,\".json\")),F=nn(lF(K,t,\"files\"),oe=>`^${oe}$`);A=F?F.map(oe=>iy(oe,i.useCaseSensitiveFileNames)):je}if(Tl(A,K=>K.test(L))!==-1){let K=s(L);!l.has(K)&&!p.has(K)&&p.set(K,L)}continue}if(V4e(L,l,d,E,s))continue;j4e(L,d,E,s);let G=s(L);!l.has(G)&&!d.has(G)&&d.set(G,L)}let C=bo(l.values()),R=bo(d.values());return C.concat(R,bo(p.values()))}function zie(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!yn(l)||!yn(d))return!1;r=Yo(r);let p=od(i);if(s){for(let h of s)if(p(Qi(h,r))===e)return!1}return y0e(e,d,i,o,r)}function v0e(e){let t=Ui(e,\"**/\")?0:e.indexOf(\"/**/\");return t===-1?!1:(Zs(e,\"/..\")?e.length:e.lastIndexOf(\"/../\"))>t}function B6(e,t,r,i){return y0e(e,Cr(t,o=>!v0e(o)),r,i)}function y0e(e,t,r,i,o){let s=BC(t,wr(Yo(i),o),\"exclude\"),l=s&&iy(s,r);return l?l.test(e)?!0:!TA(e)&&l.test(_c(e)):!1}function b0e(e,t,r,i,o){return e.filter(l=>{if(!fo(l))return!1;let d=Bie(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=fW(i,o,d);return Bb(i,p,l,d)}}function Bie(e,t){if(x.assert(typeof e==\"string\"),t&&N0e.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(v0e(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B4e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=BC(t,r,\"exclude\"),s=o&&new RegExp(o,i?\"\":\"i\"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=Yo(wr(r,h));if(s&&s.test(m))continue;let v=G4e(m,i);if(v){let{key:E,path:S,flags:A}=v,C=d.get(E),R=C!==void 0?l[C]:void 0;(R===void 0||R<A)&&(l[C!==void 0?C:S]=A,C===void 0&&d.set(E,S),A===1&&p.push(E))}}for(let h in l)if(rs(l,h))for(let m of p){let v=Gie(h,i);v!==m&&Bf(m,v,r,!i)&&delete l[h]}}return l}function Gie(e,t){return t?e:C_(e)}function G4e(e,t){let r=P0e.exec(e);if(r){let i=e.indexOf(\"?\"),o=e.indexOf(\"*\"),s=e.lastIndexOf(Os);return{key:Gie(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(RV(e.substring(e.lastIndexOf(Os)+1))){let i=fb(e);return{key:Gie(i,t),path:i,flags:1}}}function V4e(e,t,r,i,o){let s=an(i,l=>$l(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(el(e,l)&&(l!==\".ts\"||!el(e,\".d.ts\")))return!1;let d=o(Nb(e,l));if(t.has(d)||r.has(d)){if(l===\".d.ts\"&&(el(e,\".js\")||el(e,\".jsx\")))continue;return!0}}return!1}function j4e(e,t,r,i){let o=an(r,s=>$l(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(el(e,l))return;let d=i(Nb(e,l));t.delete(d)}}function Vie(e){let t={};for(let r in e)if(rs(e,r)){let i=nU(r);i!==void 0&&(t[r]=jie(e[r],i))}return t}function jie(e,t){if(e===void 0)return e;switch(t.type){case\"object\":return\"\";case\"string\":return\"\";case\"number\":return typeof e==\"number\"?e:\"\";case\"boolean\":return typeof e==\"boolean\"?e:\"\";case\"listOrElement\":if(!oo(e))return jie(e,t.element);case\"list\":let r=t.element;return oo(e)?Fi(e,i=>jie(i,r)):\"\";default:return hc(t.type,(i,o)=>{if(i===e)return o})}}function Uie(e){switch(e.type){case\"number\":return 1;case\"boolean\":return!0;case\"string\":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t==\"string\"?t:\"\"}`:\"\";case\"list\":return[];case\"listOrElement\":return Uie(e.element);case\"object\":return{};default:let r=qw(e.type.keys());return r!==void 0?r:x.fail(\"Expected 'option.type' to have entries.\")}}var J2,Hie,IN,qie,K2,G6,Yx,X2,Y2,dU,uU,Nh,pU,fU,mU,V6,j6,_U,hU,gU,U6,$2,E0e,S0e,H6,Q2,T0e,A0e,I0e,Jie,x0e,q6,R0e,D0e,C0e,Z2,Kie,Xie,Yie,$ie,J6,N0e,P0e,U4e=pt({\"src/compiler/commandLineParser.ts\"(){\"use strict\";wo(),J2={name:\"compileOnSave\",type:\"boolean\",defaultValueDescription:!1},Hie=new Map(Object.entries({preserve:1,\"react-native\":3,react:2,\"react-jsx\":4,\"react-jsxdev\":5})),IN=new Map(OD(Hie.entries(),([e,t])=>[\"\"+t,e])),qie=[[\"es5\",\"lib.es5.d.ts\"],[\"es6\",\"lib.es2015.d.ts\"],[\"es2015\",\"lib.es2015.d.ts\"],[\"es7\",\"lib.es2016.d.ts\"],[\"es2016\",\"lib.es2016.d.ts\"],[\"es2017\",\"lib.es2017.d.ts\"],[\"es2018\",\"lib.es2018.d.ts\"],[\"es2019\",\"lib.es2019.d.ts\"],[\"es2020\",\"lib.es2020.d.ts\"],[\"es2021\",\"lib.es2021.d.ts\"],[\"es2022\",\"lib.es2022.d.ts\"],[\"es2023\",\"lib.es2023.d.ts\"],[\"esnext\",\"lib.esnext.d.ts\"],[\"dom\",\"lib.dom.d.ts\"],[\"dom.iterable\",\"lib.dom.iterable.d.ts\"],[\"dom.asynciterable\",\"lib.dom.asynciterable.d.ts\"],[\"webworker\",\"lib.webworker.d.ts\"],[\"webworker.importscripts\",\"lib.webworker.importscripts.d.ts\"],[\"webworker.iterable\",\"lib.webworker.iterable.d.ts\"],[\"webworker.asynciterable\",\"lib.webworker.asynciterable.d.ts\"],[\"scripthost\",\"lib.scripthost.d.ts\"],[\"es2015.core\",\"lib.es2015.core.d.ts\"],[\"es2015.collection\",\"lib.es2015.collection.d.ts\"],[\"es2015.generator\",\"lib.es2015.generator.d.ts\"],[\"es2015.iterable\",\"lib.es2015.iterable.d.ts\"],[\"es2015.promise\",\"lib.es2015.promise.d.ts\"],[\"es2015.proxy\",\"lib.es2015.proxy.d.ts\"],[\"es2015.reflect\",\"lib.es2015.reflect.d.ts\"],[\"es2015.symbol\",\"lib.es2015.symbol.d.ts\"],[\"es2015.symbol.wellknown\",\"lib.es2015.symbol.wellknown.d.ts\"],[\"es2016.array.include\",\"lib.es2016.array.include.d.ts\"],[\"es2016.intl\",\"lib.es2016.intl.d.ts\"],[\"es2017.date\",\"lib.es2017.date.d.ts\"],[\"es2017.object\",\"lib.es2017.object.d.ts\"],[\"es2017.sharedmemory\",\"lib.es2017.sharedmemory.d.ts\"],[\"es2017.string\",\"lib.es2017.string.d.ts\"],[\"es2017.intl\",\"lib.es2017.intl.d.ts\"],[\"es2017.typedarrays\",\"lib.es2017.typedarrays.d.ts\"],[\"es2018.asyncgenerator\",\"lib.es2018.asyncgenerator.d.ts\"],[\"es2018.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"es2018.intl\",\"lib.es2018.intl.d.ts\"],[\"es2018.promise\",\"lib.es2018.promise.d.ts\"],[\"es2018.regexp\",\"lib.es2018.regexp.d.ts\"],[\"es2019.array\",\"lib.es2019.array.d.ts\"],[\"es2019.object\",\"lib.es2019.object.d.ts\"],[\"es2019.string\",\"lib.es2019.string.d.ts\"],[\"es2019.symbol\",\"lib.es2019.symbol.d.ts\"],[\"es2019.intl\",\"lib.es2019.intl.d.ts\"],[\"es2020.bigint\",\"lib.es2020.bigint.d.ts\"],[\"es2020.date\",\"lib.es2020.date.d.ts\"],[\"es2020.promise\",\"lib.es2020.promise.d.ts\"],[\"es2020.sharedmemory\",\"lib.es2020.sharedmemory.d.ts\"],[\"es2020.string\",\"lib.es2020.string.d.ts\"],[\"es2020.symbol.wellknown\",\"lib.es2020.symbol.wellknown.d.ts\"],[\"es2020.intl\",\"lib.es2020.intl.d.ts\"],[\"es2020.number\",\"lib.es2020.number.d.ts\"],[\"es2021.promise\",\"lib.es2021.promise.d.ts\"],[\"es2021.string\",\"lib.es2021.string.d.ts\"],[\"es2021.weakref\",\"lib.es2021.weakref.d.ts\"],[\"es2021.intl\",\"lib.es2021.intl.d.ts\"],[\"es2022.array\",\"lib.es2022.array.d.ts\"],[\"es2022.error\",\"lib.es2022.error.d.ts\"],[\"es2022.intl\",\"lib.es2022.intl.d.ts\"],[\"es2022.object\",\"lib.es2022.object.d.ts\"],[\"es2022.sharedmemory\",\"lib.es2022.sharedmemory.d.ts\"],[\"es2022.string\",\"lib.es2022.string.d.ts\"],[\"es2022.regexp\",\"lib.es2022.regexp.d.ts\"],[\"es2023.array\",\"lib.es2023.array.d.ts\"],[\"es2023.collection\",\"lib.es2023.collection.d.ts\"],[\"esnext.array\",\"lib.es2023.array.d.ts\"],[\"esnext.collection\",\"lib.esnext.collection.d.ts\"],[\"esnext.symbol\",\"lib.es2019.symbol.d.ts\"],[\"esnext.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"esnext.intl\",\"lib.esnext.intl.d.ts\"],[\"esnext.disposable\",\"lib.esnext.disposable.d.ts\"],[\"esnext.bigint\",\"lib.es2020.bigint.d.ts\"],[\"esnext.string\",\"lib.es2022.string.d.ts\"],[\"esnext.promise\",\"lib.esnext.promise.d.ts\"],[\"esnext.weakref\",\"lib.es2021.weakref.d.ts\"],[\"esnext.decorators\",\"lib.esnext.decorators.d.ts\"],[\"esnext.object\",\"lib.esnext.object.d.ts\"],[\"decorators\",\"lib.decorators.d.ts\"],[\"decorators.legacy\",\"lib.decorators.legacy.d.ts\"]],K2=qie.map(e=>e[0]),G6=new Map(qie),Yx=[{name:\"watchFile\",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:\"watchDirectory\",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:\"fallbackPolling\",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:\"synchronousWatchDirectory\",type:\"boolean\",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:\"excludeDirectories\",type:\"list\",element:{name:\"excludeDirectory\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:\"excludeFiles\",type:\"list\",element:{name:\"excludeFile\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],X2=[{name:\"help\",shortName:\"h\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:\"help\",shortName:\"?\",type:\"boolean\",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:\"watch\",shortName:\"w\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:\"preserveWatchOutput\",type:\"boolean\",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:\"listFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:\"explainFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:\"listEmittedFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:\"pretty\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:\"traceResolution\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:\"diagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"extendedDiagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"generateCpuProfile\",type:\"string\",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:\"profile.cpuprofile\"},{name:\"generateTrace\",type:\"string\",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:\"incremental\",shortName:\"i\",type:\"boolean\",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declaration\",shortName:\"d\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declarationMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:\"emitDeclarationOnly\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"sourceMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:\"inlineSourceMap\",type:\"boolean\",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"assumeChangesOnlyAffectDirectDependencies\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:\"locale\",type:\"string\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],Y2={name:\"target\",shortName:\"t\",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set([\"es3\"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},dU={name:\"module\",shortName:\"m\",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},uU=[{name:\"all\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:\"version\",shortName:\"v\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:\"init\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:\"project\",shortName:\"p\",type:\"string\",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:\"build\",type:\"boolean\",shortName:\"b\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:\"showConfig\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:\"listFilesOnly\",type:\"boolean\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Y2,dU,{name:\"lib\",type:\"list\",element:{name:\"lib\",type:G6,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:\"allowJs\",type:\"boolean\",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:\"checkJs\",type:\"boolean\",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:\"jsx\",type:Hie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:\"outFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:\"outDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:\"rootDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"composite\",type:\"boolean\",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:\"tsBuildInfoFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:\".tsbuildinfo\",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:\"removeComments\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:\"noEmit\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"importHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:\"importsNotUsedAsValues\",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:\"downlevelIteration\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:\"isolatedModules\",type:\"boolean\",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"verbatimModuleSyntax\",type:\"boolean\",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:\"strict\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:\"noImplicitAny\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictNullChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictFunctionTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictBindCallApply\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictPropertyInitialization\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noImplicitThis\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"useUnknownInCatchVariables\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"alwaysStrict\",type:\"boolean\",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noUnusedLocals\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:\"noUnusedParameters\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:\"exactOptionalPropertyTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:\"noImplicitReturns\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:\"noFallthroughCasesInSwitch\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:\"noUncheckedIndexedAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:\"noImplicitOverride\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:\"noPropertyAccessFromIndexSignature\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:\"moduleResolution\",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set([\"node\"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:\"baseUrl\",type:\"string\",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:\"paths\",type:\"object\",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:\"rootDirs\",type:\"list\",isTSConfigOnly:!0,element:{name:\"rootDirs\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"typeRoots\",type:\"list\",element:{name:\"typeRoots\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:\"types\",type:\"list\",element:{name:\"types\",type:\"string\"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:\"allowSyntheticDefaultImports\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:\"esModuleInterop\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:\"preserveSymlinks\",type:\"boolean\",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:\"allowUmdGlobalAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:\"moduleSuffixes\",type:\"list\",element:{name:\"suffix\",type:\"string\"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:\"allowImportingTsExtensions\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:\"resolvePackageJsonExports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"resolvePackageJsonImports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"customConditions\",type:\"list\",element:{name:\"condition\",type:\"string\"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:\"sourceRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:\"mapRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:\"inlineSources\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"experimentalDecorators\",type:\"boolean\",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:\"emitDecoratorMetadata\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:\"jsxFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:\"`React.createElement`\"},{name:\"jsxFragmentFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:\"React.Fragment\"},{name:\"jsxImportSource\",type:\"string\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:\"react\"},{name:\"resolveJsonModule\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:\"allowArbitraryExtensions\",type:\"boolean\",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:\"out\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:\"reactNamespace\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:\"`React`\"},{name:\"skipDefaultLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:\"charset\",type:\"string\",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:\"utf8\"},{name:\"emitBOM\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:\"newLine\",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:\"lf\"},{name:\"noErrorTruncation\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:\"noLib\",type:\"boolean\",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"noResolve\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"stripInternal\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:\"disableSizeLimit\",type:\"boolean\",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:\"disableSourceOfProjectReferenceRedirect\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:\"disableSolutionSearching\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:\"disableReferencedProjectLoad\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:\"noImplicitUseStrict\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:\"noEmitHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:\"noEmitOnError\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:\"preserveConstEnums\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:\"declarationDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:\"skipLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:\"allowUnusedLabels\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:\"allowUnreachableCode\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:\"suppressExcessPropertyErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:\"suppressImplicitAnyIndexErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:\"forceConsistentCasingInFileNames\",type:\"boolean\",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:\"maxNodeModuleJsDepth\",type:\"number\",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:\"noStrictGenericChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:\"useDefineForClassFields\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:\"preserveValueImports\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:\"keyofStringsOnly\",type:\"boolean\",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:\"plugins\",type:\"list\",isTSConfigOnly:!0,element:{name:\"plugin\",type:\"object\"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:\"moduleDetection\",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:\"ignoreDeprecations\",type:\"string\",defaultValueDescription:void 0}],Nh=[...X2,...uU],pU=Nh.filter(e=>!!e.affectsSemanticDiagnostics),fU=Nh.filter(e=>!!e.affectsEmit),mU=Nh.filter(e=>!!e.affectsDeclarationPath),V6=Nh.filter(e=>!!e.affectsModuleResolution),j6=Nh.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),_U=Nh.filter(e=>!!e.affectsProgramStructure),hU=Nh.filter(e=>rs(e,\"transpileOptionValue\")),gU=[{name:\"verbose\",shortName:\"v\",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:\"boolean\",defaultValueDescription:!1},{name:\"dry\",shortName:\"d\",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:\"boolean\",defaultValueDescription:!1},{name:\"force\",shortName:\"f\",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:\"boolean\",defaultValueDescription:!1},{name:\"clean\",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:\"boolean\",defaultValueDescription:!1}],U6=[...X2,...gU],$2=[{name:\"enable\",type:\"boolean\",defaultValueDescription:!1},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"}},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"}},{name:\"disableFilenameBasedTypeAcquisition\",type:\"boolean\",defaultValueDescription:!1}],S0e={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:VEe},H6={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Q2={alternateMode:S0e,getOptionsNameMap:Xx,optionDeclarations:Nh,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},A0e={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Xx},I0e={alternateMode:A0e,getOptionsNameMap:VEe,optionDeclarations:U6,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Jie={optionDeclarations:$2,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},q6={getOptionsNameMap:HEe,optionDeclarations:Yx,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},Z2={name:\"extends\",type:\"listOrElement\",element:{name:\"extends\",type:\"string\"},category:f.File_Management,disallowNullOrUndefined:!0},Kie={name:\"compilerOptions\",type:\"object\",elementOptions:qEe(),extraKeyDiagnostics:Q2},Xie={name:\"watchOptions\",type:\"object\",elementOptions:JEe(),extraKeyDiagnostics:q6},Yie={name:\"typeAcquisition\",type:\"object\",elementOptions:KEe(),extraKeyDiagnostics:Jie},J6=\"**/*\",N0e=/(^|\\/)\\*\\*\\/?$/,P0e=/^[^*?]*(?=\\/[^/]*[*?])/}});function to(e,t,...r){e.trace(SV(t,...r))}function cg(e,t){return!!e.traceResolution&&t.trace!==void 0}function yI(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name==\"string\"&&typeof i.version==\"string\"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Os.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function vU(e){return yI(void 0,e)}function M0e(e){if(e)return x.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function K6(e){let t=[];return e&1&&t.push(\"TypeScript\"),e&2&&t.push(\"JavaScript\"),e&4&&t.push(\"Declaration\"),e&8&&t.push(\"JSON\"),t.join(\", \")}function H4e(e){let t=[];return e&1&&t.push(...l2),e&2&&t.push(...Px),e&4&&t.push(...s2),e&8&&t.push(\".json\"),t}function Qie(e){if(e)return x.assert(mF(e.extension)),{fileName:e.path,packageId:e.packageId}}function L0e(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Ic(e)){let{resolvedFileName:h,originalPath:m}=w0e(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return k0e(t,r,i,o,s,l.resultFromCache,d,p)}function k0e(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:Zie(s.failedLookupLocations,r),affectingLocations:Zie(s.affectingLocations,i),resolutionDiagnostics:Zie(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=$x(s.failedLookupLocations,r),s.affectingLocations=$x(s.affectingLocations,i),s.resolutionDiagnostics=$x(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:xN(r),affectingLocations:xN(i),resolutionDiagnostics:xN(o),alternateResult:d}}function xN(e){return e.length?e:void 0}function $x(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Zie(e,t){return e?.length?t.length?[...e,...t]:e.slice():xN(t)}function O0e(e,t,r,i){if(!rs(e,t)){i.traceEnabled&&to(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&to(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?\"null\":typeof o);return}return o}function yU(e,t,r,i){let o=O0e(e,t,\"string\",i);if(o===void 0)return;if(!o){i.traceEnabled&&to(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=Yo(wr(r,o));return i.traceEnabled&&to(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function q4e(e,t,r){return yU(e,\"typings\",t,r)||yU(e,\"types\",t,r)}function J4e(e,t,r){return yU(e,\"tsconfig\",t,r)}function K4e(e,t,r){return yU(e,\"main\",t,r)}function X4e(e,t){let r=O0e(e,\"typesVersions\",\"object\",t);if(r!==void 0)return t.traceEnabled&&to(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y4e(e,t){let r=X4e(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)rs(r,l)&&!hM.tryParse(l)&&to(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=X6(r);if(!i){t.traceEnabled&&to(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,jm);return}let{version:o,paths:s}=i;if(typeof s!=\"object\"){t.traceEnabled&&to(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,\"object\",typeof s);return}return i}function X6(e){foe||(foe=new zf(bp));for(let t in e){if(!rs(e,t))continue;let r=hM.tryParse(t);if(r!==void 0&&r.test(foe))return{version:t,paths:e[t]}}}function RN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=Ur(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $4e(r)}function $4e(e){let t;return Vf(Yo(e),r=>{let i=wr(r,iSe);(t??(t=[])).push(i)}),t}function Q4e(e,t,r){let i=typeof r.useCaseSensitiveFileNames==\"function\"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Xh(e,t,!i)===0}function w0e(e,t,r){let i=d3e(e,t,r),o=Q4e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function W0e(e,t,r){let i=Zs(e,\"/node_modules/@types\")||Zs(e,\"/node_modules/@types/\")?tSe(t,r):t;return wr(e,i)}function eoe(e,t,r,i,o,s,l){x.assert(typeof e==\"string\",\"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.\");let d=cg(r,i);o&&(r=o.commandLine.options);let p=t?Ur(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Ic(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(to(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),to(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),F(h)),h;let m=RN(r,i);d&&(t===void 0?m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let v=[],E=[],S=toe(r);l!==void 0&&(S|=30);let A=zd(r);l===99&&3<=A&&A<=99&&(S|=32);let C=S&8?hy(r,l):[],R=[],L={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:v,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:C,requestContainingDirectory:p,reportDiagnostic:$=>void R.push($),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},G=oe(),U=!0;G||(G=W(),U=!1);let K;if(G){let{fileName:$,packageId:de}=G,fe=$,q;r.preserveSymlinks||({resolvedFileName:fe,originalPath:q}=w0e($,i,d)),K={primary:U,resolvedFileName:fe,originalPath:q,packageId:de,isExternalLibraryImport:Gb($)}}return h={resolvedTypeReferenceDirective:K,failedLookupLocations:xN(v),affectingLocations:xN(E),resolutionDiagnostics:xN(R)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Ic(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&F(h),h;function F($){var de;(de=$.resolvedTypeReferenceDirective)!=null&&de.resolvedFileName?$.resolvedTypeReferenceDirective.packageId?to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,$.resolvedTypeReferenceDirective.resolvedFileName,Qv($.resolvedTypeReferenceDirective.packageId),$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,$.resolvedTypeReferenceDirective.resolvedFileName,$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_not_resolved,e)}function oe(){if(m&&m.length)return d&&to(i,f.Resolving_with_primary_search_path_0,m.join(\", \")),ml(m,$=>{let de=W0e($,e,L),fe=gm($,i);if(!fe&&d&&to(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,$),r.typeRoots){let q=eR(4,de,!fe,L);if(q){let H=tk(q.path),ee=H?m0(H,!1,L):void 0;return Qie(yI(ee,q))}}return Qie(coe(4,de,!fe,L))});d&&to(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function W(){let $=t&&Ur(t);if($!==void 0){let de;if(!r.typeRoots||!Zs(t,lR))if(d&&to(i,f.Looking_up_in_node_modules_folder_initial_location_0,$),Ic(e)){let{path:fe}=j0e($,e);de=AU(4,fe,!1,L,!0)}else{let fe=$0e(4,e,$,L,void 0,void 0);de=fe&&fe.value}else d&&to(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Qie(de)}else d&&to(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function toe(e){let t=0;switch(zd(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function hy(e,t){let r=zd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?[\"import\"]:[\"require\"];return e.noDtsResolution||i.push(\"types\"),r!==100&&i.push(\"node\"),ro(i,e.customConditions)}function bU(e,t,r,i,o){let s=nk(o?.getPackageJsonInfoCache(),i,r);return Vf(t,l=>{if(Ll(l)!==\"node_modules\"){let d=wr(l,\"node_modules\"),p=wr(d,e);return m0(p,!1,s)}})}function Y6(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=RN(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=Yo(s),d=wr(o,l,\"package.json\");if(!(t.fileExists(d)&&kC(d,t).typings===null)){let h=Ll(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function $6(e){return!!e?.contents}function noe(e){return!!e&&!e.contents}function roe(e){var t;if(e===null||typeof e!=\"object\")return\"\"+e;if(oo(e))return`[${(t=e.map(i=>roe(i)))==null?void 0:t.join(\",\")}]`;let r=\"{\";for(let i in e)rs(e,i)&&(r+=`${i}: ${roe(e[i])}`);return r+\"}\"}function EU(e,t){return t.map(r=>roe(iF(e,r))).join(\"|\")+`|${e.pathsBasePath}`}function SU(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(v){return v?p(v.commandLine.options,!1):o}function l(v){return v?p(v.commandLine.options,!0):o}function d(v){e!==v&&(e?o=p(v,!0):r.set(v,o),e=v)}function p(v,E){let S=r.get(v);if(S)return S;let A=m(v);if(S=i.get(A),!S){if(e){let C=m(e);C===A?S=o:i.has(C)||i.set(C,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(v,S),S}function h(){let v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function m(v){let E=t.get(v);return E||t.set(v,E=EU(v,V6)),E}}function Z4e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(ks(d,e,t))}function o(d,p){(r||(r=new Map)).set(ks(d,e,t),p)}function s(){r=void 0}function l(){return r}}function F0e(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function e3e(e,t,r,i){let o=SU(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let v=ks(h,e,t);return F0e(o,m,v,()=>bI())}function p(h,m,v,E){var S,A;let C=ks(v,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(C))==null?void 0:A.get(h,m)}}function DN(e,t){return t===void 0?e:`${t}|${e}`}function bI(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=DN(o,s);return t.set(l,[o,s]),l}}function t3e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function n3e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function r3e(e,t,r,i,o){let s=SU(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(v){s.update(v)}function p(v,E,S,A){var C,R;return x.assert(!Ic(v)),(R=(C=s.getMapOfCacheRedirects(A))==null?void 0:C.get(DN(v,E)))==null?void 0:R.get(S)}function h(v,E,S){return x.assert(!Ic(v)),F0e(s,S,DN(v,E),m)}function m(){let v=new Map;return{get:E,set:S};function E(C){return v.get(ks(C,e,t))}function S(C,R){let L=ks(C,e,t);if(v.has(L))return;v.set(L,R);let G=i(R),U=G&&A(L,G),K=L;for(;K!==U;){let F=Ur(K);if(F===K||v.has(F))break;v.set(F,R),K=F}}function A(C,R){let L=ks(Ur(R),e,t),G=0,U=Math.min(C.length,L.length);for(;G<U&&C.charCodeAt(G)===L.charCodeAt(G);)G++;if(G===C.length&&(L.length===G||L[G]===Os))return C;let K=M_(C);if(G<K)return;let F=C.lastIndexOf(Os,G-1);if(F!==-1)return C.substr(0,Math.max(F,K))}}}function z0e(e,t,r,i,o,s){s??(s=new Map);let l=e3e(e,t,r,s),d=r3e(e,t,r,o,s);return i??(i=Z4e(e,t)),{...i,...l,...d,clear:p,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(v){l.update(v),d.update(v)}}function Qx(e,t,r,i,o){let s=z0e(e,t,r,i,t3e,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function Q6(e,t,r,i,o){return z0e(e,t,r,i,n3e,o)}function TU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Z6(e,t,r,i,o){return Zx(e,t,TU(r),i,o)}function B0e(e,t,r,i){let o=Ur(t);return r.getFromDirectoryCache(e,i,o,void 0)}function Zx(e,t,r,i,o,s,l){var d,p,h;let m=cg(r,i);s&&(r=s.commandLine.options),m&&(to(i,f.Resolving_module_0_from_1,e,t),s&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let v=Ur(t),E=o?.getFromDirectoryCache(e,l,v,s);if(E)m&&to(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,v);else{let S=r.moduleResolution;switch(S===void 0?(S=zd(r),m&&to(i,f.Module_resolution_kind_is_not_specified_using_0,O1[S])):m&&to(i,f.Explicitly_specified_module_resolution_kind_Colon_0,O1[S]),(d=Pd)==null||d.logStartResolveModule(e),S){case 3:E=s3e(e,t,r,i,o,s,l);break;case 99:E=l3e(e,t,r,i,o,s,l);break;case 2:E=aoe(e,t,r,i,o,s,l?hy(r,l):void 0);break;case 1:E=uoe(e,t,r,i,o,s);break;case 100:E=ooe(e,t,r,i,o,s,l?hy(r,l):void 0);break;default:return x.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=Pd)==null||p.logInfoEvent(`Module \"${e}\" resolved to \"${E.resolvedModule.resolvedFileName}\"`)),(h=Pd)==null||h.logStopResolveModule(E&&E.resolvedModule?\"\"+E.resolvedModule.resolvedFileName:\"null\"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(v,s).set(e,l,E),Ic(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(v,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?to(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,Qv(E.resolvedModule.packageId)):to(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):to(i,f.Module_name_0_was_not_resolved,e)),E}function G0e(e,t,r,i,o){let s=i3e(e,t,i,o);return s?s.value:Ic(t)?o3e(e,t,r,i,o):a3e(e,t,i,o)}function i3e(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!op(t)){i.traceEnabled&&(s&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),to(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=zW(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=fF(l)):void 0;return doe(e,t,p,l,h,r,!1,i)}}function o3e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&to(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=Yo(wr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=Yo(p);Zs(h,Os)||(h+=Os);let m=Ui(s,h)&&(d===void 0||d.length<h.length);o.traceEnabled&&to(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,m),m&&(d=h,l=p)}if(d){o.traceEnabled&&to(o.host,f.Longest_matching_prefix_for_0_is_1,s,d);let p=s.substr(d.length);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,d,s);let h=i(e,s,!gm(r,o.host),o);if(h)return h;o.traceEnabled&&to(o.host,f.Trying_other_entries_in_rootDirs);for(let m of o.compilerOptions.rootDirs){if(m===l)continue;let v=wr(Yo(m),p);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,m,v);let E=Ur(v),S=i(e,v,!gm(E,o.host),o);if(S)return S}o.traceEnabled&&to(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function a3e(e,t,r,i){let{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);let s=Yo(wr(o,t));return i.traceEnabled&&to(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!gm(Ur(s),i.host),i)}function ioe(e,t,r){let{resolvedModule:i,failedLookupLocations:o}=c3e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(\", \")}`);return i.resolvedFileName}function s3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function l3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function V0e(e,t,r,i,o,s,l,d,p){let h=Ur(r),m=d===99?32:0,v=i.noDtsResolution?3:7;return Mb(i)&&(v|=8),ek(e|m,t,h,i,o,s,v,!1,l,p)}function c3e(e,t,r){return ek(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function ooe(e,t,r,i,o,s,l){let d=Ur(t),p=r.noDtsResolution?3:7;return Mb(r)&&(p|=8),ek(toe(r),e,d,r,i,o,p,!1,s,l)}function aoe(e,t,r,i,o,s,l,d){let p;return d?p=8:r.noDtsResolution?(p=3,Mb(r)&&(p|=8)):p=Mb(r)?15:7,ek(l?30:0,e,Ur(t),r,i,o,p,!!d,s,l)}function soe(e,t,r){return ek(30,e,Ur(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function ek(e,t,r,i,o,s,l,d,p,h){var m,v,E,S,A;let C=cg(i,o),R=[],L=[],G=zd(i);h??(h=hy(i,G===100||G===2?void 0:e&32?99:1));let U=[],K={compilerOptions:i,host:o,traceEnabled:C,failedLookupLocations:R,affectingLocations:L,packageJsonInfoCache:s,features:e,conditions:h??je,requestContainingDirectory:r,reportDiagnostic:$=>void U.push($),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};C&&HA(G)&&to(o,f.Resolving_in_0_mode_with_conditions_1,e&32?\"ESM\":\"CJS\",K.conditions.map($=>`'${$}'`).join(\", \"));let F;if(G===2){let $=l&5,de=l&-6;F=$&&W($,K)||de&&W(de,K)||void 0}else F=W(l,K);let oe;if(K.resolvedPackageDirectory&&!d&&!Ic(t)){let $=F?.value&&l&5&&!K0e(5,F.value.resolved.extension);if((m=F?.value)!=null&&m.isExternalLibraryImport&&$&&e&8&&h?.includes(\"import\")){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let de={...K,features:K.features&-9,reportDiagnostic:Ca},fe=W(l&5,de);(v=fe?.value)!=null&&v.isExternalLibraryImport&&(oe=fe.value.resolved.path)}else if((!F?.value||$)&&G===2){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let de={...K.compilerOptions,moduleResolution:100},fe={...K,compilerOptions:de,features:30,conditions:hy(de),reportDiagnostic:Ca},q=W(l&5,fe);(E=q?.value)!=null&&E.isExternalLibraryImport&&(oe=q.value.resolved.path)}}return L0e(t,(S=F?.value)==null?void 0:S.resolved,(A=F?.value)==null?void 0:A.isExternalLibraryImport,R,L,U,K,s,oe);function W($,de){let q=G0e($,t,r,(H,ee,le,Ee)=>AU(H,ee,le,Ee,!0),de);if(q)return Rp({resolved:q,isExternalLibraryImport:Gb(q.path)});if(Ic(t)){let{path:H,parts:ee}=j0e(r,t),le=AU($,H,!1,de,!0);return le&&Rp({resolved:le,isExternalLibraryImport:To(ee,\"node_modules\")})}else{let H;if(e&2&&Ui(t,\"#\")&&(H=m3e($,t,r,de,s,p)),!H&&e&4&&(H=f3e($,t,r,de,s,p)),!H){if(t.includes(\":\")){C&&to(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,K6($));return}C&&to(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,K6($)),H=$0e($,t,r,de,s,p)}return $&4&&(H??(H=rSe(t,de))),H&&{value:H.value&&{resolved:H.value,isExternalLibraryImport:!0}}}}}function j0e(e,t){let r=wr(e,t),i=mc(r),o=Ns(i);return{path:o===\".\"||o===\"..\"?_c(Yo(r)):Yo(r),parts:i}}function d3e(e,t,r){if(!t.realpath)return e;let i=Yo(t.realpath(e));return r&&to(t,f.Resolving_real_path_for_0_result_1,e,i),i}function AU(e,t,r,i,o){if(i.traceEnabled&&to(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,K6(e)),!Jg(t)){if(!r){let l=Ur(t);gm(l,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=eR(e,t,r,i);if(s){let l=o?tk(s.path):void 0,d=l?m0(l,!1,i):void 0;return yI(d,s)}}if(r||gm(t,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return coe(e,t,r,i,o)}function Gb(e){return e.includes(q_)}function tk(e,t){let r=Yo(e),i=r.lastIndexOf(q_);if(i===-1)return;let o=i+q_.length,s=U0e(r,o,t);return r.charCodeAt(o)===64&&(s=U0e(r,s,t)),r.slice(0,s)}function U0e(e,t,r){let i=e.indexOf(Os,t+1);return i===-1?r?e.length:t:i}function loe(e,t,r,i){return vU(eR(e,t,r,i))}function eR(e,t,r,i){let o=H0e(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=q0e(t,e,\"\",r,i);if(s)return s}}function H0e(e,t,r,i){if(!Ll(t).includes(\".\"))return;let s=Yd(t);s===t&&(s=t.substring(0,t.lastIndexOf(\".\")));let l=t.substring(s.length);return i.traceEnabled&&to(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),q0e(s,e,l,r,i)}function IU(e,t,r,i){return e&1&&$l(t,l2)||e&4&&$l(t,s2)?xU(t,r,i)!==void 0?{path:t,ext:JW(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&el(t,\".json\")?xU(t,r,i)!==void 0?{path:t,ext:\".json\",resolvedUsingTsExtension:void 0}:void 0:H0e(e,t,r,i)}function q0e(e,t,r,i,o){if(!i){let l=Ur(e);l&&(i=!gm(l,o.host))}switch(r){case\".mjs\":case\".mts\":case\".d.mts\":return t&1&&s(\".mts\",r===\".mts\"||r===\".d.mts\")||t&4&&s(\".d.mts\",r===\".mts\"||r===\".d.mts\")||t&2&&s(\".mjs\")||void 0;case\".cjs\":case\".cts\":case\".d.cts\":return t&1&&s(\".cts\",r===\".cts\"||r===\".d.cts\")||t&4&&s(\".d.cts\",r===\".cts\"||r===\".d.cts\")||t&2&&s(\".cjs\")||void 0;case\".json\":return t&4&&s(\".d.json.ts\")||t&8&&s(\".json\")||void 0;case\".tsx\":case\".jsx\":return t&1&&(s(\".tsx\",r===\".tsx\")||s(\".ts\",r===\".tsx\"))||t&4&&s(\".d.ts\",r===\".tsx\")||t&2&&(s(\".jsx\")||s(\".js\"))||void 0;case\".ts\":case\".d.ts\":case\".js\":case\"\":return t&1&&(s(\".ts\",r===\".ts\"||r===\".d.ts\")||s(\".tsx\",r===\".ts\"||r===\".d.ts\"))||t&4&&s(\".d.ts\",r===\".ts\"||r===\".d.ts\")||t&2&&(s(\".js\")||s(\".jsx\"))||o.isConfigLookup&&s(\".json\")||void 0;default:return t&4&&!Yc(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=xU(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function xU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return J0e(e,t,r);let o=og(e)??\"\",s=o?QL(e,o):e;return an(r.compilerOptions.moduleSuffixes,l=>J0e(s+l+o,t,r))}function J0e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&to(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&to(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function coe(e,t,r,i,o=!0){let s=o?m0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&e4(s,i);return yI(s,DU(e,t,r,i,l,d))}function RU(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=toe(t),p=nk(i?.getPackageJsonInfoCache(),r,t);p.conditions=hy(t),p.requestContainingDirectory=e.packageDirectory;let h=DU(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,e4(e,p));if(s=pn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=NE([hy(t,99),hy(t,1)],mm);for(let v of m){let E={...p,failedLookupLocations:[],conditions:v,host:r},S=u3e(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=Kh(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function u3e(e,t,r,i){let o;if(oo(t))for(let l of t)s(l);else if(typeof t==\"object\"&&t!==null&&t4(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l==\"string\"&&Ui(l,\"./\"))if(l.includes(\"*\")&&r.host.readDirectory){if(l.indexOf(\"*\")!==l.lastIndexOf(\"*\"))return!1;r.host.readDirectory(e.packageDirectory,H4e(i),void 0,[pee(KA(l,\"**/*\"),\".*\")]).forEach(h=>{o=Kh(o,{path:h,ext:w1(h),resolvedUsingTsExtension:void 0})})}else{let h=mc(l).slice(2);if(h.includes(\"..\")||h.includes(\".\")||h.includes(\"node_modules\"))return!1;let m=wr(e.packageDirectory,l),v=Qi(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=IU(i,v,!1,r);if(E)return o=Kh(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l==\"object\"&&l!==null)return an(fh(l),h=>{if(h===\"default\"||To(r.conditions,h)||ok(r.conditions,h))return s(l[h]),!0})}}function nk(e,t,r){return{host:t,compilerOptions:r,traceEnabled:cg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:je,requestContainingDirectory:void 0,reportDiagnostic:Ca,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function rk(e,t){let r=mc(e);for(r.pop();r.length>0;){let i=m0(Vv(r),!1,t);if(i)return i;r.pop()}}function e4(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y4e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,v=wr(e,\"package.json\");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(E!==void 0){if($6(E))return m&&to(h,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&to(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}let S=gm(e,h);if(S&&h.fileExists(v)){let A=kC(v,h);m&&to(h,f.Found_package_json_at_0,v);let C={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,C),(d=r.affectingLocations)==null||d.push(v),C}else S&&m&&to(h,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(v)}function DU(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=J4e(o,t,i):l=e&4&&q4e(o,t,i)||e&7&&K4e(o,t,i)||void 0);let d=(E,S,A,C)=>{let R=IU(E,S,A,C);if(R)return vU(R);let L=E===4?5:E,G=C.features,U=C.candidateIsFromPackageJsonField;C.candidateIsFromPackageJsonField=!0,o?.type!==\"module\"&&(C.features&=-33);let K=AU(L,S,A,C,!1);return C.features=G,C.candidateIsFromPackageJsonField=U,K},p=l?!gm(Ur(l),i.host):void 0,h=r||!gm(t,i.host),m=wr(t,i.isConfigLookup?\"tsconfig\":\"index\");if(s&&(!l||Bf(t,l))){let E=Gf(t,l||m,!1);i.traceEnabled&&to(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,bp,E);let S=doe(e,E,t,s.paths,void 0,d,p||h,i);if(S)return M0e(S.value)}let v=l&&M0e(d(e,l,p,i));if(v)return v;if(!(i.features&32))return eR(e,m,h,i)}function K0e(e,t){return e&2&&(t===\".js\"||t===\".jsx\"||t===\".mjs\"||t===\".cjs\")||e&1&&(t===\".ts\"||t===\".tsx\"||t===\".mts\"||t===\".cts\")||e&4&&(t===\".d.ts\"||t===\".d.mts\"||t===\".d.cts\")||e&8&&t===\".json\"||!1}function ik(e){let t=e.indexOf(Os);return e[0]===\"@\"&&(t=e.indexOf(Os,t+1)),t===-1?{packageName:e,rest:\"\"}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function t4(e){return ji(fh(e),t=>Ui(t,\".\"))}function p3e(e){return!ct(fh(e),t=>Ui(t,\".\"))}function f3e(e,t,r,i,o,s){var l,d;let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!=\"string\")return;let m=mc(t),v=mc(h.contents.packageJsonContent.name);if(!ji(v,(R,L)=>m[L]===R))return;let E=m.slice(v.length),S=yn(E)?`.${Os}${E.join(Os)}`:\".\";if(sy(i.compilerOptions)&&!Gb(r))return CU(h,e,S,i,o,s);let A=e&5,C=e&-6;return CU(h,A,S,i,o,s)||CU(h,C,S,i,o,s)}function CU(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r===\".\"){let l;if(typeof e.contents.packageJsonContent.exports==\"string\"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports==\"object\"&&p3e(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:rs(e.contents.packageJsonContent.exports,\".\")&&(l=e.contents.packageJsonContent.exports[\".\"]),l)return Y0e(t,i,o,s,r,e,!1)(l,\"\",!1,\".\")}else if(t4(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!=\"object\")return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0);let l=X0e(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0)}}function m3e(e,t,r,i,o,s){var l,d;if(t===\"#\"||Ui(t,\"#/\"))return i.traceEnabled&&to(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),Rp(void 0);let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h)return i.traceEnabled&&to(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),Rp(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&to(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),Rp(void 0);let m=X0e(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&to(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),Rp(void 0))}function NU(e,t){let r=e.indexOf(\"*\"),i=t.indexOf(\"*\"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function X0e(e,t,r,i,o,s,l,d){let p=Y0e(e,t,r,i,o,l,d);if(!Zs(o,Os)&&!o.includes(\"*\")&&rs(s,o)){let v=s[o];return p(v,\"\",!1,o)}let h=uS(Cr(fh(s),v=>v.includes(\"*\")||Zs(v,\"/\")),NU);for(let v of h)if(t.features&16&&m(v,o)){let E=s[v],S=v.indexOf(\"*\"),A=o.substring(v.substring(0,S).length,o.length-(v.length-1-S));return p(E,A,!0,v)}else if(Zs(v,\"*\")&&Ui(o,v.substring(0,v.length-1))){let E=s[v],S=o.substring(v.length-1);return p(E,S,!0,v)}else if(Ui(o,v)){let E=s[v],S=o.substring(v.length);return p(E,S,!1,v)}function m(v,E){if(Zs(v,\"*\"))return!1;let S=v.indexOf(\"*\");return S===-1?!1:Ui(E,v.substring(0,S))&&Zs(E,v.substring(S+1))}}function Y0e(e,t,r,i,o,s,l){return d;function d(p,h,m,v){if(typeof p==\"string\"){if(!m&&h.length>0&&!Zs(p,\"/\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);if(!Ui(p,\"./\")){if(l&&!Ui(p,\"../\")&&!Ui(p,\"/\")&&!Ou(p)){let F=m?p.replace(/\\*/g,h):p+h;gy(t,f.Using_0_subpath_1_with_target_2,\"imports\",v,F),gy(t,f.Resolving_module_0_from_1,F,s.packageDirectory+\"/\");let oe=ek(t.features,F,s.packageDirectory+\"/\",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return Rp(oe.resolvedModule?{path:oe.resolvedModule.resolvedFileName,extension:oe.resolvedModule.extension,packageId:oe.resolvedModule.packageId,originalPath:oe.resolvedModule.originalPath,resolvedUsingTsExtension:oe.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0)}let R=(op(p)?mc(p).slice(1):mc(p)).slice(1);if(R.includes(\"..\")||R.includes(\".\")||R.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);let L=wr(s.packageDirectory,p),G=mc(h);if(G.includes(\"..\")||G.includes(\".\")||G.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);t.traceEnabled&&to(t.host,f.Using_0_subpath_1_with_target_2,l?\"imports\":\"exports\",v,m?p.replace(/\\*/g,h):p+h);let U=E(m?L.replace(/\\*/g,h):L+h),K=A(U,h,wr(s.packageDirectory,\"package.json\"),l);return K||Rp(yI(s,IU(e,U,!1,t)))}else if(typeof p==\"object\"&&p!==null)if(Array.isArray(p)){if(!yn(p))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);for(let C of p){let R=d(C,h,m,v);if(R)return R}}else{gy(t,f.Entering_conditional_exports);for(let C of fh(p))if(C===\"default\"||t.conditions.includes(C)||ok(t.conditions,C)){gy(t,f.Matched_0_condition_1,l?\"imports\":\"exports\",C);let R=p[C],L=d(R,h,m,v);if(L)return gy(t,f.Resolved_under_condition_0,C),gy(t,f.Exiting_conditional_exports),L;gy(t,f.Failed_to_resolve_under_condition_0,C)}else gy(t,f.Saw_non_matching_condition_0,C);gy(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&to(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),Rp(void 0);return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);function E(C){var R,L;return C===void 0?C:Qi(C,(L=(R=t.host).getCurrentDirectory)==null?void 0:L.call(R))}function S(C,R){return _c(wr(C,R))}function A(C,R,L,G){var U,K,F,oe;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!C.includes(\"/node_modules/\")&&(!t.compilerOptions.configFile||Bf(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!PU(t)))){let $=ev({useCaseSensitiveFileNames:()=>PU(t)}),de=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let fe=E(VN(t.compilerOptions,()=>[],((K=(U=t.host).getCurrentDirectory)==null?void 0:K.call(U))||\"\",$));de.push(fe)}else if(t.requestContainingDirectory){let fe=E(wr(t.requestContainingDirectory,\"index.ts\")),q=E(VN(t.compilerOptions,()=>[fe,E(L)],((oe=(F=t.host).getCurrentDirectory)==null?void 0:oe.call(F))||\"\",$));de.push(q);let H=_c(q);for(;H&&H.length>1;){let ee=mc(H);ee.pop();let le=Vv(ee);de.unshift(le),H=_c(le)}}de.length>1&&t.reportDiagnostic(bl(G?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,R===\"\"?\".\":R,L));for(let fe of de){let q=W(fe);for(let H of q)if(Bf(H,C,!PU(t))){let ee=C.slice(H.length+1),le=wr(fe,ee),Ee=[\".mjs\",\".cjs\",\".js\",\".json\",\".d.mts\",\".d.cts\",\".d.ts\"];for(let ce of Ee)if(el(le,ce)){let Z=une(le);for(let pe of Z){if(!K0e(e,pe))continue;let Ae=xM(le,pe,ce,!PU(t));if(t.host.fileExists(Ae))return Rp(yI(s,IU(e,Ae,!1,t)))}}}}}return;function W($){var de,fe;let q=t.compilerOptions.configFile?((fe=(de=t.host).getCurrentDirectory)==null?void 0:fe.call(de))||\"\":$,H=[];return t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.outDir))),H}}}}function ok(e,t){if(!e.includes(\"types\")||!Ui(t,\"types@\"))return!1;let r=hM.tryParse(t.substring(6));return r?r.test(bp):!1}function $0e(e,t,r,i,o,s){return Q0e(e,t,r,i,!1,o,s)}function _3e(e,t,r){return Q0e(4,e,t,r,!0,void 0,void 0)}function Q0e(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){gy(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,K6(p));let v=m(p);if(v)return v}if(h&&!o)return gy(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,K6(h)),m(h);function m(v){return Vf(ad(r),E=>{if(Ll(E)!==\"node_modules\"){let S=nSe(s,t,d,E,l,i);return S||Rp(Z0e(v,t,E,i,o,s,l))}})}}function Z0e(e,t,r,i,o,s,l){let d=wr(r,\"node_modules\"),p=gm(d,i.host);if(!p&&i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=eSe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=wr(d,\"@types\"),m=p;return p&&!gm(h,i.host)&&(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),eSe(4,tSe(t,i),h,m,i,s,l)}}function eSe(e,t,r,i,o,s,l){var d,p;let h=Yo(wr(r,t)),{packageName:m,rest:v}=ik(t),E=wr(r,m),S,A=m0(h,!i,o);if(v!==\"\"&&A&&(!(o.features&8)||!rs(((d=S=m0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??je,\"exports\"))){let L=eR(e,h,!i,o);if(L)return vU(L);let G=DU(e,h,!i,o,A.contents.packageJsonContent,e4(A,o));return yI(A,G)}let C=(L,G,U,K)=>{let F=(v||!(K.features&32))&&eR(L,G,U,K)||DU(L,G,U,K,A&&A.contents.packageJsonContent,A&&e4(A,K));return!F&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&K.features&32&&(F=eR(L,wr(G,\"index.js\"),U,K)),yI(A,F)};if(v!==\"\"&&(A=S??m0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=CU(A,e,wr(\".\",v),o,s,l))==null?void 0:p.value;let R=v!==\"\"&&A?e4(A,o):void 0;if(R){o.traceEnabled&&to(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,R.version,bp,v);let L=i&&gm(E,o.host),G=doe(e,v,E,R.paths,void 0,C,!L,o);if(G)return G.value}return C(e,h,!i,o)}function doe(e,t,r,i,o,s,l,d){o||(o=fF(i));let p=CV(o,t);if(p){let h=fo(p)?void 0:qZ(p,t),m=fo(p)?p:HZ(p);return d.traceEnabled&&to(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:an(i[m],E=>{let S=h?KA(E,h):E,A=Yo(wr(r,S));d.traceEnabled&&to(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let C=og(E);if(C!==void 0){let R=xU(A,l,d);if(R!==void 0)return vU({path:R,ext:C,resolvedUsingTsExtension:void 0})}return s(e,A,l||!gm(Ur(A),d.host),d)})}}}function tSe(e,t){let r=tR(e);return t.traceEnabled&&r!==e&&to(t.host,f.Scoped_package_detected_looking_in_0,r),r}function n4(e){return`@types/${tR(e)}`}function tR(e){if(Ui(e,\"@\")){let t=e.replace(Os,LU);if(t!==e)return t.slice(1)}return e}function CN(e){let t=jD(e,\"@types/\");return t!==e?ak(t):e}function ak(e){return e.includes(LU)?\"@\"+e.replace(LU,Os):e}function nSe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&to(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function uoe(e,t,r,i,o,s){let l=cg(r,i),d=[],p=[],h=Ur(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return L0e(e,E&&E.value,E?.value&&Gb(E.value.path),d,p,m,v,o);function S(A){let C=G0e(A,e,h,loe,v);if(C)return{value:C};if(Ic(e)){let R=Yo(wr(h,e));return Rp(loe(A,R,!1,v))}else{let R=Vf(h,L=>{let G=nSe(o,e,void 0,L,s,v);if(G)return G;let U=Yo(wr(L,e));return Rp(loe(A,U,!1,v))});if(R)return R;if(A&5){let L=_3e(e,h,v);return A&4&&(L??(L=rSe(e,v))),L}}}}function rSe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=W0e(r,e,t),o=gm(r,t.host);!o&&t.traceEnabled&&to(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=eR(4,i,!o,t);if(s){let d=tk(s.path),p=d?m0(d,!1,t):void 0;return Rp(yI(p,s))}let l=coe(4,i,!o,t);if(l)return Rp(l)}}function nR(e,t){return!!e.allowImportingTsExtensions||t&&Yc(t)}function poe(e,t,r,i,o,s){let l=cg(r,i);l&&to(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=Z0e(4,e,o,m,!1,void 0,void 0);return k0e(v,!0,d,p,h,m.resultFromCache,void 0)}function Rp(e){return e!==void 0?{value:e}:void 0}function gy(e,t,...r){e.traceEnabled&&to(e.host,t,...r)}function PU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames==\"boolean\"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var foe,iSe,MU,q_,LU,h3e=pt({\"src/compiler/moduleNameResolver.ts\"(){\"use strict\";wo(),iSe=wr(\"node_modules\",\"@types\"),MU=(e=>(e[e.None=0]=\"None\",e[e.Imports=2]=\"Imports\",e[e.SelfName=4]=\"SelfName\",e[e.Exports=8]=\"Exports\",e[e.ExportsPatternTrailers=16]=\"ExportsPatternTrailers\",e[e.AllFeatures=30]=\"AllFeatures\",e[e.Node16Default=30]=\"Node16Default\",e[e.NodeNextDefault=30]=\"NodeNextDefault\",e[e.BundlerDefault=30]=\"BundlerDefault\",e[e.EsmMode=32]=\"EsmMode\",e))(MU||{}),q_=\"/node_modules/\",LU=\"__\"}});function dg(e,t){return e.body&&!e.body.parent&&(Aa(e.body,e),oy(e.body,!1)),e.body?moe(e.body,t):1}function moe(e,t=new Map){let r=Fa(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=g3e(e,t);return t.set(r,i),i}function g3e(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(BE(e))return 2;break;case 272:case 271:if(!Wr(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=v3e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ao(e,o=>{let s=moe(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:x.assertNever(s)}}),i}case 267:return dg(e,t);case 80:if(e.flags&4096)return 0}return 1}function v3e(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Do(i)||n_(i)||Li(i)){let o=i.statements,s;for(let l of o)if(zM(l,r)){l.parent||(Aa(l,i),oy(l,!1));let d=moe(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function EI(e){return x.attachFlowNodeDebugInfo(e),e}function _oe(e,t){var r,i;Ls(\"beforeBind\"),(r=Pd)==null||r.logStartBindFile(\"\"+e.fileName),aSe(e,t),(i=Pd)==null||i.logStopBindFile(),Ls(\"afterBind\"),Sp(\"Bind\",\"beforeBind\",\"afterBind\")}function y3e(){var e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K,F,oe=!1,W=0,$,de,fe={flags:1},q={flags:1},H=V();return le;function ee(k,ge,...Xe){return vf(Nn(k)||e,k,ge,...Xe)}function le(k,ge){var Xe,Mt;e=k,t=ge,r=Wa(t),F=Ee(e,ge),de=new Set,W=0,$=wc.getSymbolConstructor(),x.attachFlowNodeDebugInfo(fe),x.attachFlowNodeDebugInfo(q),e.locals||((Xe=qn)==null||Xe.push(qn.Phase.Bind,\"bindSourceFile\",{path:e.path},!0),xe(e),(Mt=qn)==null||Mt.pop(),e.symbolCount=W,e.classifiableNames=de,Fc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,v=void 0,E=void 0,S=void 0,A=void 0,C=void 0,R=void 0,G=void 0,U=!1,oe=!1,K=0}function Ee(k,ge){return Fd(ge,\"alwaysStrict\")&&!k.isDeclarationFile?!0:!!k.externalModuleIndicator}function ce(k,ge){return W++,new $(k,ge)}function Z(k,ge,Xe){k.flags|=Xe,ge.symbol=k,k.declarations=Kh(k.declarations,ge),Xe&1955&&!k.exports&&(k.exports=Vo()),Xe&6240&&!k.members&&(k.members=Vo()),k.constEnumOnlyModule&&k.flags&304&&(k.constEnumOnlyModule=!1),Xe&111551&&IL(k,ge)}function pe(k){if(k.kind===277)return k.isExportEquals?\"export=\":\"default\";let ge=mo(k);if(ge){if(sd(k)){let Xe=Ef(ge);return Jm(k)?\"__global\":`\"${Xe}\"`}if(ge.kind===167){let Xe=ge.expression;if(Ap(Xe))return Hs(Xe.text);if(LW(Xe))return qo(Xe.operator)+Xe.operand.text;x.fail(\"Only computed properties with literal names have declaration names\")}if(Ci(ge)){let Xe=Oc(k);if(!Xe)return;let Mt=Xe.symbol;return wL(Mt,ge.escapedText)}return Em(ge)?JA(ge):Xm(ge)?AC(ge):void 0}switch(k.kind){case 176:return\"__constructor\";case 184:case 179:case 330:return\"__call\";case 185:case 180:return\"__new\";case 181:return\"__index\";case 278:return\"__export\";case 312:return\"export=\";case 226:if(hl(k)===2)return\"export=\";x.fail(\"Unknown binary declaration kind\");break;case 324:return dx(k)?\"__new\":\"__call\";case 169:return x.assert(k.parent.kind===324,\"Impossible parameter parent kind\",()=>`parent is: ${x.formatSyntaxKind(k.parent.kind)}, expected JSDocFunctionType`),\"arg\"+k.parent.parameters.indexOf(k)}}function Ae(k){return Ld(k)?is(k.name):Ii(x.checkDefined(pe(k)))}function Oe(k,ge,Xe,Mt,Vn,jr,Or){x.assert(Or||!ty(Xe));let zi=Wr(Xe,2048)||Ed(Xe)&&Xe.name.escapedText===\"default\",_a=Or?\"__computed\":zi&&ge?\"default\":pe(Xe),ha;if(_a===void 0)ha=ce(0,\"__missing\");else if(ha=k.get(_a),Mt&2885600&&de.add(_a),!ha)k.set(_a,ha=ce(0,_a)),jr&&(ha.isReplaceableByMethod=!0);else{if(jr&&!ha.isReplaceableByMethod)return ha;if(ha.flags&Vn){if(ha.isReplaceableByMethod)k.set(_a,ha=ce(0,_a));else if(!(Mt&3&&ha.flags&67108864)){Ld(Xe)&&Aa(Xe.name,Xe);let pl=ha.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Gc=!0;(ha.flags&384||Mt&384)&&(pl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Gc=!1);let nc=!1;yn(ha.declarations)&&(zi||ha.declarations&&ha.declarations.length&&Xe.kind===277&&!Xe.isExportEquals)&&(pl=f.A_module_cannot_have_multiple_default_exports,Gc=!1,nc=!0);let Xu=[];Xf(Xe)&&_l(Xe.type)&&Wr(Xe,32)&&ha.flags&2887656&&Xu.push(ee(Xe,f.Did_you_mean_0,`export type { ${Ii(Xe.name.escapedText)} }`));let _u=mo(Xe)||Xe;an(ha.declarations,(ja,em)=>{let tm=mo(ja)||ja,Ri=Gc?ee(tm,pl,Ae(ja)):ee(tm,pl);e.bindDiagnostics.push(nc?fa(Ri,ee(_u,em===0?f.Another_export_default_is_here:f.and_here)):Ri),nc&&Xu.push(ee(tm,f.The_first_export_default_is_here))});let Ay=Gc?ee(_u,pl,Ae(Xe)):ee(_u,pl);e.bindDiagnostics.push(fa(Ay,...Xu)),ha=ce(0,_a)}}}return Z(ha,Xe,Mt),ha.parent?x.assert(ha.parent===ge,\"Existing symbol parent should match new one\"):ha.parent=ge,ha}function _e(k,ge,Xe){let Mt=!!(gb(k)&32)||be(k);if(ge&2097152)return k.kind===281||k.kind===271&&Mt?Oe(o.symbol.exports,o.symbol,k,ge,Xe):(x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe));if(bf(k)&&x.assert(Jn(k)),!sd(k)&&(Mt||o.flags&128)){if(!L_(o)||!o.locals||Wr(k,2048)&&!pe(k))return Oe(o.symbol.exports,o.symbol,k,ge,Xe);let Vn=ge&111551?1048576:0,jr=Oe(o.locals,void 0,k,Vn,Xe);return jr.exportSymbol=Oe(o.symbol.exports,o.symbol,k,ge,Xe),k.localSymbol=jr,jr}else return x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}function be(k){if(k.parent&&Il(k)&&(k=k.parent),!bf(k))return!1;if(!C2(k)&&k.fullName)return!0;let ge=mo(k);return ge?!!(UL(ge.parent)&&Nl(ge.parent)||bd(ge.parent)&&gb(ge.parent)&32):!1}function Te(k,ge){let Xe=o,Mt=s,Vn=l;if(ge&1?(k.kind!==219&&(s=o),o=l=k,ge&32&&(o.locals=Vo(),jn(o))):ge&2&&(l=k,ge&32&&(l.locals=void 0)),ge&4){let jr=m,Or=v,zi=E,_a=S,ha=R,pl=G,Gc=U,nc=ge&16&&!Wr(k,1024)&&!k.asteriskToken&&!!RS(k)||k.kind===175;nc||(m=EI({flags:2}),ge&144&&(m.node=k)),S=nc||k.kind===176||Jn(k)&&(k.kind===262||k.kind===218)?gn():void 0,R=void 0,v=void 0,E=void 0,G=void 0,U=!1,Le(k),k.flags&=-5633,!(m.flags&1)&&ge&8&&gf(k.body)&&(k.flags|=512,U&&(k.flags|=1024),k.endFlowNode=m),k.kind===312&&(k.flags|=K,k.endFlowNode=m),S&&(Wt(S,m),m=Gn(S),(k.kind===176||k.kind===175||Jn(k)&&(k.kind===262||k.kind===218))&&(k.returnFlowNode=m)),nc||(m=jr),v=Or,E=zi,S=_a,R=ha,G=pl,U=Gc}else ge&64?(h=!1,Le(k),x.assertNotNode(k,Me),k.flags=h?k.flags|256:k.flags&-257):Le(k);o=Xe,s=Mt,l=Vn}function De(k){ft(k,ge=>ge.kind===262?xe(ge):void 0),ft(k,ge=>ge.kind!==262?xe(ge):void 0)}function ft(k,ge=xe){k!==void 0&&an(k,ge)}function he(k){Ao(k,xe,ft)}function Le(k){let ge=oe;if(oe=!1,Nt(k)){he(k),dt(k),oe=ge;return}switch(k.kind>=243&&k.kind<=259&&!t.allowUnreachableCode&&(k.flowNode=m),k.kind){case 247:ki(k);break;case 246:so(k);break;case 248:Jo(k);break;case 249:case 250:Ea(k);break;case 245:ln(k);break;case 253:case 257:Tn(k);break;case 252:case 251:tt(k);break;case 258:yt(k);break;case 255:re(k);break;case 269:Ce(k);break;case 296:et(k);break;case 244:z(k);break;case 256:_t(k);break;case 224:on(k);break;case 225:Qt(k);break;case 226:if(nv(k)){oe=ge,Zt(k);return}H(k);break;case 220:Re(k);break;case 227:St(k);break;case 260:te(k);break;case 211:case 212:ti(k);break;case 213:di(k);break;case 235:Cn(k);break;case 353:case 345:case 347:Ie(k);break;case 312:{De(k.statements),xe(k.endOfFileToken);break}case 241:case 268:De(k.statements);break;case 208:j(k);break;case 169:se(k);break;case 210:case 209:case 303:case 230:oe=ge;default:he(k);break}dt(k),oe=ge}function Ke(k){switch(k.kind){case 80:case 81:case 110:case 211:case 212:return st(k);case 213:return Ge(k);case 217:if(Ux(k))return!1;case 235:return Ke(k.expression);case 226:return Vt(k);case 224:return k.operator===54&&Ke(k.operand);case 221:return Ke(k.expression)}return!1}function Dt(k){return MC(k)||(Er(k)||dI(k)||uu(k))&&Dt(k.expression)||Zn(k)&&k.operatorToken.kind===28&&Dt(k.right)||Rs(k)&&(Ap(k.argumentExpression)||gl(k.argumentExpression))&&Dt(k.expression)||lc(k)&&Dt(k.left)}function st(k){return Dt(k)||yd(k)&&st(k.expression)}function Ge(k){if(k.arguments){for(let ge of k.arguments)if(st(ge))return!0}return!!(k.expression.kind===211&&st(k.expression.expression))}function ot(k,ge){return Wx(k)&&jt(k.expression)&&Ga(ge)}function Vt(k){switch(k.operatorToken.kind){case 64:case 76:case 77:case 78:return st(k.left);case 35:case 36:case 37:case 38:return jt(k.left)||jt(k.right)||ot(k.right,k.left)||ot(k.left,k.right)||sC(k.right)&&Ke(k.left)||sC(k.left)&&Ke(k.right);case 104:return jt(k.left);case 103:return Ke(k.right);case 28:return Ke(k.right)}return!1}function jt(k){switch(k.kind){case 217:return jt(k.expression);case 226:switch(k.operatorToken.kind){case 64:return jt(k.left);case 28:return jt(k.right)}}return st(k)}function gn(){return EI({flags:4,antecedents:void 0})}function On(){return EI({flags:8,antecedents:void 0})}function en(k,ge,Xe){return EI({flags:1024,target:k,antecedents:ge,antecedent:Xe})}function zt(k){k.flags|=k.flags&2048?4096:2048}function Wt(k,ge){!(ge.flags&1)&&!To(k.antecedents,ge)&&((k.antecedents||(k.antecedents=[])).push(ge),zt(ge))}function ei(k,ge,Xe){return ge.flags&1?ge:Xe?(Xe.kind===112&&k&64||Xe.kind===97&&k&32)&&!F8(Xe)&&!jG(Xe.parent)?fe:Ke(Xe)?(zt(ge),EI({flags:k,antecedent:ge,node:Xe})):ge:k&32?ge:fe}function Ki(k,ge,Xe,Mt){return zt(k),EI({flags:128,antecedent:k,switchStatement:ge,clauseStart:Xe,clauseEnd:Mt})}function gi(k,ge,Xe){zt(ge);let Mt=EI({flags:k,antecedent:ge,node:Xe});return R&&Wt(R,Mt),Mt}function io(k,ge){return zt(k),EI({flags:512,antecedent:k,node:ge})}function Gn(k){let ge=k.antecedents;return ge?ge.length===1?ge[0]:k:fe}function Nr(k){let ge=k.parent;switch(ge.kind){case 245:case 247:case 246:return ge.expression===k;case 248:case 227:return ge.condition===k}return!1}function cr(k){for(;;)if(k.kind===217)k=k.expression;else if(k.kind===224&&k.operator===54)k=k.operand;else return jL(k)}function Jt(k){return cV(Ka(k))}function Ue(k){for(;uu(k.parent)||fy(k.parent)&&k.parent.operator===54;)k=k.parent;return!Nr(k)&&!cr(k.parent)&&!(yd(k.parent)&&k.parent.expression===k)}function Rt(k,ge,Xe,Mt){let Vn=A,jr=C;A=Xe,C=Mt,k(ge),A=Vn,C=jr}function mn(k,ge,Xe){Rt(xe,k,ge,Xe),(!k||!Jt(k)&&!cr(k)&&!(yd(k)&&nC(k)))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function qr(k,ge,Xe){let Mt=v,Vn=E;v=ge,E=Xe,xe(k),v=Mt,E=Vn}function ni(k,ge){let Xe=G;for(;Xe&&k.parent.kind===256;)Xe.continueTarget=ge,Xe=Xe.next,k=k.parent;return ge}function ki(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();Wt(ge,m),m=ge,mn(k.expression,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),Wt(ge,m),m=Gn(Mt)}function so(k){let ge=On(),Xe=ni(k,gn()),Mt=gn();Wt(ge,m),m=ge,qr(k.statement,Mt,Xe),Wt(Xe,m),m=Gn(Xe),mn(k.expression,ge,Mt),m=Gn(Mt)}function Jo(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();xe(k.initializer),Wt(ge,m),m=ge,mn(k.condition,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),xe(k.incrementor),Wt(ge,m),m=Gn(Mt)}function Ea(k){let ge=ni(k,On()),Xe=gn();xe(k.expression),Wt(ge,m),m=ge,k.kind===250&&xe(k.awaitModifier),Wt(Xe,m),xe(k.initializer),k.initializer.kind!==261&&it(k.initializer),qr(k.statement,Xe,ge),Wt(ge,m),m=Gn(Xe)}function ln(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.expression,ge,Xe),m=Gn(ge),xe(k.thenStatement),Wt(Mt,m),m=Gn(Xe),xe(k.elseStatement),Wt(Mt,m),m=Gn(Mt)}function Tn(k){xe(k.expression),k.kind===253&&(U=!0,S&&Wt(S,m)),m=fe}function ke(k){for(let ge=G;ge;ge=ge.next)if(ge.name===k)return ge}function nt(k,ge,Xe){let Mt=k.kind===252?ge:Xe;Mt&&(Wt(Mt,m),m=fe)}function tt(k){if(xe(k.label),k.label){let ge=ke(k.label.escapedText);ge&&(ge.referenced=!0,nt(k,ge.breakTarget,ge.continueTarget))}else nt(k,v,E)}function yt(k){let ge=S,Xe=R,Mt=gn(),Vn=gn(),jr=gn();if(k.finallyBlock&&(S=Vn),Wt(jr,m),R=jr,xe(k.tryBlock),Wt(Mt,m),k.catchClause&&(m=Gn(jr),jr=gn(),Wt(jr,m),R=jr,xe(k.catchClause),Wt(Mt,m)),S=ge,R=Xe,k.finallyBlock){let Or=gn();Or.antecedents=ro(ro(Mt.antecedents,jr.antecedents),Vn.antecedents),m=Or,xe(k.finallyBlock),m.flags&1?m=fe:(S&&Vn.antecedents&&Wt(S,en(Or,Vn.antecedents,m)),R&&jr.antecedents&&Wt(R,en(Or,jr.antecedents,m)),m=Mt.antecedents?en(Or,Mt.antecedents,m):fe)}else m=Gn(Mt)}function re(k){let ge=gn();xe(k.expression);let Xe=v,Mt=L;v=ge,L=m,xe(k.caseBlock),Wt(ge,m);let Vn=an(k.caseBlock.clauses,jr=>jr.kind===297);k.possiblyExhaustive=!Vn&&!ge.antecedents,Vn||Wt(ge,Ki(L,k,0,0)),v=Xe,L=Mt,m=Gn(ge)}function Ce(k){let ge=k.clauses,Xe=k.parent.expression.kind===112||Ke(k.parent.expression),Mt=fe;for(let Vn=0;Vn<ge.length;Vn++){let jr=Vn;for(;!ge[Vn].statements.length&&Vn+1<ge.length;)Mt===fe&&(m=L),xe(ge[Vn]),Vn++;let Or=gn();Wt(Or,Xe?Ki(L,k.parent,jr,Vn+1):L),Wt(Or,Mt),m=Gn(Or);let zi=ge[Vn];xe(zi),Mt=m,!(m.flags&1)&&Vn!==ge.length-1&&t.noFallthroughCasesInSwitch&&(zi.fallthroughFlowNode=m)}}function et(k){let ge=m;m=L,xe(k.expression),m=ge,ft(k.statements)}function z(k){xe(k.expression),Je(k.expression)}function Je(k){if(k.kind===213){let ge=k;ge.expression.kind!==108&&MC(ge.expression)&&(m=io(m,ge))}}function _t(k){let ge=gn();G={next:G,name:k.label.escapedText,breakTarget:ge,continueTarget:void 0,referenced:!1},xe(k.label),xe(k.statement),!G.referenced&&!t.allowUnusedLabels&&tc(Kne(t),k.label,f.Unused_label),G=G.next,Wt(ge,m),m=Gn(ge)}function ze(k){k.kind===226&&k.operatorToken.kind===64?it(k.left):it(k)}function it(k){if(Dt(k))m=gi(16,m,k);else if(k.kind===209)for(let ge of k.elements)ge.kind===230?it(ge.expression):ze(ge);else if(k.kind===210)for(let ge of k.properties)ge.kind===303?ze(ge.initializer):ge.kind===304?it(ge.name):ge.kind===305&&it(ge.expression)}function Ct(k,ge,Xe){let Mt=gn();k.operatorToken.kind===56||k.operatorToken.kind===77?mn(k.left,Mt,Xe):mn(k.left,ge,Mt),m=Gn(Mt),xe(k.operatorToken),PC(k.operatorToken.kind)?(Rt(xe,k.right,ge,Xe),it(k.left),Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k))):mn(k.right,ge,Xe)}function on(k){if(k.operator===54){let ge=A;A=C,C=ge,he(k),C=A,A=ge}else he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Qt(k){he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Zt(k){oe?(oe=!1,xe(k.operatorToken),xe(k.right),oe=!0,xe(k.left)):(oe=!0,xe(k.left),oe=!1,xe(k.operatorToken),xe(k.right)),it(k.left)}function V(){return M6(k,ge,Xe,Mt,Vn,void 0);function k(Or,zi){if(zi){zi.stackIndex++,Aa(Or,i);let ha=F;tr(Or);let pl=i;i=Or,zi.skip=!1,zi.inStrictModeStack[zi.stackIndex]=ha,zi.parentStack[zi.stackIndex]=pl}else zi={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let _a=Or.operatorToken.kind;if(VL(_a)||PC(_a)){if(Ue(Or)){let ha=gn();Ct(Or,ha,ha),m=Gn(ha)}else Ct(Or,A,C);zi.skip=!0}return zi}function ge(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Xe(Or,zi,_a){zi.skip||xe(Or)}function Mt(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Vn(Or,zi){if(!zi.skip){let pl=Or.operatorToken.kind;if(tv(pl)&&!Sh(Or)&&(it(Or.left),pl===64&&Or.left.kind===212)){let Gc=Or.left;jt(Gc.expression)&&(m=gi(256,m,Or))}}let _a=zi.inStrictModeStack[zi.stackIndex],ha=zi.parentStack[zi.stackIndex];_a!==void 0&&(F=_a),ha!==void 0&&(i=ha),zi.skip=!1,zi.stackIndex--}function jr(Or){if(Or&&Zn(Or)&&!nv(Or))return Or;xe(Or)}}function Re(k){he(k),k.expression.kind===211&&it(k.expression)}function St(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.condition,ge,Xe),m=Gn(ge),xe(k.questionToken),xe(k.whenTrue),Wt(Mt,m),m=Gn(Xe),xe(k.colonToken),xe(k.whenFalse),Wt(Mt,m),m=Gn(Mt)}function M(k){let ge=vc(k)?void 0:k.name;if(ko(ge))for(let Xe of ge.elements)M(Xe);else m=gi(16,m,k)}function te(k){he(k),(k.initializer||H1(k.parent.parent))&&M(k)}function j(k){xe(k.dotDotDotToken),xe(k.propertyName),Pe(k.initializer),xe(k.name)}function se(k){ft(k.modifiers),xe(k.dotDotDotToken),xe(k.questionToken),xe(k.type),Pe(k.initializer),xe(k.name)}function Pe(k){if(!k)return;let ge=m;if(xe(k),ge===fe||ge===m)return;let Xe=gn();Wt(Xe,ge),Wt(Xe,m),m=Gn(Xe)}function Ie(k){xe(k.tagName),k.kind!==347&&k.fullName&&(Aa(k.fullName,k),oy(k.fullName,!1)),typeof k.comment!=\"string\"&&ft(k.comment)}function gt(k){he(k);let ge=xb(k);ge&&ge.kind!==174&&Z(ge.symbol,ge,32)}function bt(k,ge,Xe){Rt(xe,k,ge,Xe),(!yd(k)||nC(k))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function Ot(k){switch(k.kind){case 211:xe(k.questionDotToken),xe(k.name);break;case 212:xe(k.questionDotToken),xe(k.argumentExpression);break;case 213:xe(k.questionDotToken),ft(k.typeArguments),ft(k.arguments);break}}function dn(k,ge,Xe){let Mt=tC(k)?gn():void 0;bt(k.expression,Mt||ge,Xe),Mt&&(m=Gn(Mt)),Rt(Ot,k,ge,Xe),nC(k)&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function An(k){if(Ue(k)){let ge=gn();dn(k,ge,ge),m=Gn(ge)}else dn(k,A,C)}function Cn(k){yd(k)?An(k):he(k)}function ti(k){yd(k)?An(k):he(k)}function di(k){if(yd(k))An(k);else{let ge=Ka(k.expression);ge.kind===218||ge.kind===219?(ft(k.typeArguments),ft(k.arguments),xe(k.expression)):(he(k),k.expression.kind===108&&(m=io(m,k)))}if(k.expression.kind===211){let ge=k.expression;Me(ge.name)&&jt(ge.expression)&&K9(ge.name)&&(m=gi(256,m,k))}}function jn(k){d&&(d.nextContainer=k),d=k}function Ar(k,ge,Xe){switch(o.kind){case 267:return _e(k,ge,Xe);case 312:return _i(k,ge,Xe);case 231:case 263:return Zi(k,ge,Xe);case 266:return Oe(o.symbol.exports,o.symbol,k,ge,Xe);case 187:case 329:case 210:case 264:case 292:return Oe(o.symbol.members,o.symbol,k,ge,Xe);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}}function Zi(k,ge,Xe){return zo(k)?Oe(o.symbol.exports,o.symbol,k,ge,Xe):Oe(o.symbol.members,o.symbol,k,ge,Xe)}function _i(k,ge,Xe){return wl(e)?_e(k,ge,Xe):Oe(e.locals,void 0,k,ge,Xe)}function ui(k){let ge=Li(k)?k:Vr(k.body,n_);return!!ge&&ge.statements.some(Xe=>xl(Xe)||dl(Xe))}function Mr(k){k.flags&33554432&&!ui(k)?k.flags|=128:k.flags&=-129}function lo(k){if(Mr(k),sd(k))if(Wr(k,32)&&ls(k,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),_9(k))_n(k);else{let ge;if(k.name.kind===11){let{text:Mt}=k.name;ge=xx(Mt),ge===void 0&&ls(k.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Mt)}let Xe=Ar(k,512,110735);e.patternAmbientModules=pn(e.patternAmbientModules,ge&&!fo(ge)?{pattern:ge,symbol:Xe}:void 0)}else{let ge=_n(k);if(ge!==0){let{symbol:Xe}=k;Xe.constEnumOnlyModule=!(Xe.flags&304)&&ge===2&&Xe.constEnumOnlyModule!==!1}}}function _n(k){let ge=dg(k),Xe=ge!==0;return Ar(k,Xe?512:1024,Xe?110735:0),ge}function ms(k){let ge=ce(131072,pe(k));Z(ge,k,131072);let Xe=ce(2048,\"__type\");Z(Xe,k,2048),Xe.members=Vo(),Xe.members.set(ge.escapedName,ge)}function Dl(k){return vs(k,4096,\"__object\")}function _o(k){return vs(k,4096,\"__jsxAttributes\")}function Va(k,ge,Xe){return Ar(k,ge,Xe)}function vs(k,ge,Xe){let Mt=ce(ge,Xe);return ge&106508&&(Mt.parent=o.symbol),Z(Mt,k,ge),Mt}function Js(k,ge,Xe){switch(l.kind){case 267:_e(k,ge,Xe);break;case 312:if(sp(o)){_e(k,ge,Xe);break}default:x.assertNode(l,L_),l.locals||(l.locals=Vo(),jn(l)),Oe(l.locals,void 0,k,ge,Xe)}}function Fc(){if(!p)return;let k=o,ge=d,Xe=l,Mt=i,Vn=m;for(let jr of p){let Or=jr.parent.parent;o=S9(Or)||e,l=w_(Or)||e,m=EI({flags:2}),i=jr,xe(jr.typeExpression);let zi=mo(jr);if((C2(jr)||!jr.fullName)&&zi&&UL(zi.parent)){let _a=Nl(zi.parent);if(_a){Ks(e.symbol,zi.parent,_a,!!Rn(zi,pl=>Er(pl)&&pl.name.escapedText===\"prototype\"),!1);let ha=o;switch(TL(zi.parent)){case 1:case 2:sp(e)?o=e:o=void 0;break;case 4:o=zi.parent.expression;break;case 3:o=zi.parent.expression.name;break;case 5:o=_0(e,zi.parent.expression)?e:Er(zi.parent.expression)?zi.parent.expression.name:zi.parent.expression;break;case 0:return x.fail(\"Shouldn't have detected typedef or enum on non-assignment declaration\")}o&&_e(jr,524288,788968),o=ha}}else C2(jr)||!jr.fullName||jr.fullName.kind===80?(i=jr.parent,Js(jr,524288,788968)):xe(jr.fullName)}o=k,d=ge,l=Xe,i=Mt,m=Vn}function $i(k){if(!e.parseDiagnostics.length&&!(k.flags&33554432)&&!(k.flags&16777216)&&!rne(k)){let ge=vb(k);if(ge===void 0)return;F&&ge>=119&&ge<=127?e.bindDiagnostics.push(ee(k,Uo(k),is(k))):ge===135?wl(e)&&hW(k)?e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,is(k))):k.flags&65536&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k))):ge===127&&k.flags&16384&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k)))}}function Uo(k){return Oc(k)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function zc(k){k.escapedText===\"#constructor\"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ee(k,f.constructor_is_a_reserved_word,is(k))))}function ts(k){F&&Tu(k.left)&&tv(k.operatorToken.kind)&&Wl(k,k.left)}function ua(k){F&&k.variableDeclaration&&Wl(k,k.variableDeclaration.name)}function Us(k){if(F&&k.expression.kind===80){let ge=IS(e,k.expression);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function tf(k){return Me(k)&&(k.escapedText===\"eval\"||k.escapedText===\"arguments\")}function Wl(k,ge){if(ge&&ge.kind===80){let Xe=ge;if(tf(Xe)){let Mt=IS(e,ge);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,il(k),ar(Xe)))}}}function il(k){return Oc(k)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function zs(k){F&&Wl(k,k.name)}function ho(k){return Oc(k)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ut(k){if(r<2&&l.kind!==312&&l.kind!==267&&!U1(l)){let ge=IS(e,k);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,ho(k)))}}function ys(k){F&&Wl(k,k.operand)}function Pc(k){F&&(k.operator===46||k.operator===47)&&Wl(k,k.operand)}function Bc(k){F&&ls(k,f.with_statements_are_not_allowed_in_strict_mode)}function Ju(k){F&&Wa(t)>=2&&(ate(k.statement)||cl(k.statement))&&ls(k.label,f.A_label_is_not_allowed_here)}function ls(k,ge,...Xe){let Mt=W_(e,k.pos);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,ge,...Xe))}function tc(k,ge,Xe){ae(k,ge,ge,Xe)}function ae(k,ge,Xe,Mt){X(k,{pos:Tb(ge,e),end:Xe.end},Mt)}function X(k,ge,Xe){let Mt=Rc(e,ge.pos,ge.end-ge.pos,Xe);k?e.bindDiagnostics.push(Mt):e.bindSuggestionDiagnostics=pn(e.bindSuggestionDiagnostics,{...Mt,category:2})}function xe(k){if(!k)return;Aa(k,i),qn&&(k.tracingPath=e.path);let ge=F;if(tr(k),k.kind>165){let Xe=i;i=k;let Mt=kU(k);Mt===0?Le(k):Te(k,Mt),i=Xe}else{let Xe=i;k.kind===1&&(i=k),dt(k),i=Xe}F=ge}function dt(k){if(ap(k))if(Jn(k))for(let ge of k.jsDoc)xe(ge);else for(let ge of k.jsDoc)Aa(ge,k),oy(ge,!1)}function $t(k){if(!F)for(let ge of k){if(!Hf(ge))return;if(sr(ge)){F=!0;return}}}function sr(k){let ge=FE(e,k.expression);return ge==='\"use strict\"'||ge===\"'use strict'\"}function tr(k){switch(k.kind){case 80:if(k.flags&4096){let Or=k.parent;for(;Or&&!bf(Or);)Or=Or.parent;Js(Or,524288,788968);break}case 110:return m&&(lt(k)||i.kind===304)&&(k.flowNode=m),$i(k);case 166:m&&EW(k)&&(k.flowNode=m);break;case 236:case 108:k.flowNode=m;break;case 81:return zc(k);case 211:case 212:let ge=k;m&&Dt(ge)&&(ge.flowNode=m),Yte(ge)&&Ln(ge),Jn(ge)&&e.commonJsModuleIndicator&&Eh(ge)&&!r4(l,\"module\")&&Oe(e.locals,void 0,ge.expression,134217729,111550);break;case 226:switch(hl(k)){case 1:Du(k);break;case 2:pc(k);break;case 3:Oo(k.left,k);break;case 6:eo(k);break;case 4:Vd(k);break;case 5:let Or=k.left.expression;if(Jn(k)&&Me(Or)){let zi=r4(l,Or.escapedText);if(gW(zi?.valueDeclaration)){Vd(k);break}}Kl(k);break;case 0:break;default:x.fail(\"Unknown binary expression special property assignment kind\")}return ts(k);case 299:return ua(k);case 220:return Us(k);case 225:return ys(k);case 224:return Pc(k);case 254:return Bc(k);case 256:return Ju(k);case 197:h=!0;return;case 182:break;case 168:return Ye(k);case 169:return mg(k);case 260:return fd(k);case 208:return k.flowNode=m,fd(k);case 172:case 171:return Ir(k);case 303:case 304:return mu(k,4,0);case 306:return mu(k,8,900095);case 179:case 180:case 181:return Ar(k,131072,0);case 174:case 173:return mu(k,8192|(k.questionToken?16777216:0),qf(k)?0:103359);case 262:return Ku(k);case 176:return Ar(k,16384,0);case 177:return mu(k,32768,46015);case 178:return mu(k,65536,78783);case 184:case 324:case 330:case 185:return ms(k);case 187:case 329:case 200:return pi(k);case 339:return gt(k);case 210:return Dl(k);case 218:case 219:return Lh(k);case 213:switch(hl(k)){case 7:return Cl(k);case 8:return Ec(k);case 9:return Po(k);case 0:break;default:return x.fail(\"Unknown call expression assignment declaration kind\")}Jn(k)&&u_(k);break;case 231:case 263:return F=!0,X_(k);case 264:return Js(k,64,788872);case 265:return Js(k,524288,788968);case 266:return fg(k);case 267:return lo(k);case 292:return _o(k);case 291:return Va(k,4,0);case 271:case 274:case 276:case 281:return Ar(k,2097152,2097152);case 270:return bc(k);case 273:return Jl(k);case 278:return bs(k);case 277:return Qs(k);case 312:return $t(k.statements),hr();case 241:if(!U1(k.parent))return;case 268:return $t(k.statements);case 348:if(k.parent.kind===330)return mg(k);if(k.parent.kind!==329)break;case 355:let Vn=k,jr=Vn.isBracketed||Vn.typeExpression&&Vn.typeExpression.type.kind===323?16777220:4;return Ar(Vn,jr,0);case 353:case 345:case 347:return(p||(p=[])).push(k);case 346:return xe(k.typeExpression)}}function Ir(k){let ge=su(k),Xe=ge?98304:4,Mt=ge?13247:0;return mu(k,Xe|(k.questionToken?16777216:0),Mt)}function pi(k){return vs(k,2048,\"__type\")}function hr(){if(Mr(e),wl(e))No();else if(yf(e)){No();let k=e.symbol;Oe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=k}}function No(){vs(e,512,`\"${Yd(e.fileName)}\"`)}function Qs(k){if(!o.symbol||!o.symbol.exports)vs(k,111551,pe(k));else{let ge=px(k)?2097152:4,Xe=Oe(o.symbol.exports,o.symbol,k,ge,-1);k.isExportEquals&&IL(Xe,k)}}function bc(k){ct(k.modifiers)&&e.bindDiagnostics.push(ee(k,f.Modifiers_cannot_appear_here));let ge=Li(k.parent)?wl(k.parent)?k.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;ge?e.bindDiagnostics.push(ee(k,ge)):(e.symbol.globalExports=e.symbol.globalExports||Vo(),Oe(e.symbol.globalExports,e.symbol,k,2097152,2097152))}function bs(k){!o.symbol||!o.symbol.exports?vs(k,8388608,pe(k)):k.exportClause?j_(k.exportClause)&&(Aa(k.exportClause,k),Oe(o.symbol.exports,o.symbol,k.exportClause,2097152,2097152)):Oe(o.symbol.exports,o.symbol,k,8388608,0)}function Jl(k){k.name&&Ar(k,2097152,2097152)}function Za(k){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=k,e.externalModuleIndicator||No()),!0)}function Ec(k){if(!Za(k))return;let ge=nf(k.arguments[0],void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));ge&&Oe(ge.exports,ge,k,1048580,0)}function Du(k){if(!Za(k))return;let ge=nf(k.left.expression,void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));if(ge){let Mt=kL(k.right)&&(DS(k.left.expression)||Eh(k.left.expression))?2097152:1048580;Aa(k.left,k),Oe(ge.exports,ge,k.left,Mt,0)}}function pc(k){if(!Za(k))return;let ge=bL(k.right);if(fV(ge)||o===e&&_0(e,ge))return;if(ma(ge)&&ji(ge.properties,xu)){an(ge.properties,Nf);return}let Xe=px(k)?2097152:1049092,Mt=Oe(e.symbol.exports,e.symbol,k,Xe|67108864,0);IL(Mt,k)}function Nf(k){Oe(e.symbol.exports,e.symbol,k,69206016,0)}function Vd(k){if(x.assert(Jn(k)),Zn(k)&&Er(k.left)&&Ci(k.left.name)||Er(k)&&Ci(k.name))return;let Xe=lu(k,!1,!1);switch(Xe.kind){case 262:case 218:let Mt=Xe.symbol;if(Zn(Xe.parent)&&Xe.parent.operatorToken.kind===64){let Or=Xe.parent.left;UE(Or)&&ry(Or.expression)&&(Mt=tu(Or.expression.expression,s))}Mt&&Mt.valueDeclaration&&(Mt.members=Mt.members||Vo(),ty(k)?Se(k,Mt,Mt.members):Oe(Mt.members,Mt,k,67108868,0),Z(Mt,Mt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Vn=Xe.parent,jr=zo(Xe)?Vn.symbol.exports:Vn.symbol.members;ty(k)?Se(k,Vn.symbol,jr):Oe(jr,Vn.symbol,k,67108868,0,!0);break;case 312:if(ty(k))break;Xe.commonJsModuleIndicator?Oe(Xe.symbol.exports,Xe.symbol,k,1048580,0):Ar(k,1,111550);break;case 267:break;default:x.failBadSyntaxKind(Xe)}}function Se(k,ge,Xe){Oe(Xe,ge,k,4,0,!0,!0),At(k,ge)}function At(k,ge){ge&&(ge.assignmentDeclarationMembers||(ge.assignmentDeclarationMembers=new Map)).set(Fa(k),k)}function Ln(k){k.expression.kind===110?Vd(k):UE(k)&&k.parent.parent.kind===312&&(ry(k.expression)?Oo(k,k.parent):Bs(k))}function eo(k){Aa(k.left,k),Aa(k.right,k),Sc(k.left.expression,k.left,!1,!0)}function Po(k){let ge=tu(k.arguments[0].expression);ge&&ge.valueDeclaration&&Z(ge,ge.valueDeclaration,32),vl(k,ge,!0)}function Oo(k,ge){let Xe=k.expression,Mt=Xe.expression;Aa(Mt,Xe),Aa(Xe,k),Aa(k,ge),Sc(Mt,k,!0,!0)}function Cl(k){let ge=tu(k.arguments[0]),Xe=k.parent.parent.kind===312;ge=Ks(ge,k.arguments[0],Xe,!1,!1),vl(k,ge,!1)}function Kl(k){var ge;let Xe=tu(k.left.expression,l)||tu(k.left.expression,o);if(!Jn(k)&&!$te(Xe))return;let Mt=Tx(k.left);if(!(Me(Mt)&&((ge=r4(o,Mt.escapedText))==null?void 0:ge.flags)&2097152))if(Aa(k.left,k),Aa(k.right,k),Me(k.left.expression)&&o===e&&_0(e,k.left.expression))Du(k);else if(ty(k)){vs(k,67108868,\"__computed\");let Vn=Ks(Xe,k.left.expression,Nl(k.left),!1,!1);At(k,Vn)}else Bs(Fo(k.left,NS))}function Bs(k){x.assert(!Me(k)),Aa(k.expression,k),Sc(k.expression,k,!1,!1)}function Ks(k,ge,Xe,Mt,Vn){return k?.flags&2097152||(Xe&&!Mt&&(k=nf(ge,k,(zi,_a,ha)=>{if(_a)return Z(_a,zi,67110400),_a;{let pl=ha?ha.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Vo());return Oe(pl,ha,zi,67110400,110735)}})),Vn&&k&&k.valueDeclaration&&Z(k,k.valueDeclaration,32)),k}function vl(k,ge,Xe){if(!ge||!kp(ge))return;let Mt=Xe?ge.members||(ge.members=Vo()):ge.exports||(ge.exports=Vo()),Vn=0,jr=0;hs(LA(k))?(Vn=8192,jr=103359):Bo(k)&&CS(k)&&(ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"set\"})&&(Vn|=65540,jr|=78783),ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"get\"})&&(Vn|=32772,jr|=46015)),Vn===0&&(Vn=4,jr=0),Oe(Mt,ge,k,Vn|67108864,jr&-67108865)}function Nl(k){return Zn(k.parent)?fu(k.parent).parent.kind===312:k.parent.parent.kind===312}function Sc(k,ge,Xe,Mt){let Vn=tu(k,l)||tu(k,o),jr=Nl(ge);Vn=Ks(Vn,ge.expression,jr,Xe,Mt),vl(ge,Vn,Xe)}function kp(k){if(k.flags&1072)return!0;let ge=k.valueDeclaration;if(ge&&Bo(ge))return!!LA(ge);let Xe=ge?yi(ge)?ge.initializer:Zn(ge)?ge.right:Er(ge)&&Zn(ge.parent)?ge.parent.right:void 0:void 0;if(Xe=Xe&&bL(Xe),Xe){let Mt=ry(yi(ge)?ge.name:Zn(ge)?ge.left:ge);return!!Ib(Zn(Xe)&&(Xe.operatorToken.kind===57||Xe.operatorToken.kind===61)?Xe.right:Xe,Mt)}return!1}function fu(k){for(;Zn(k.parent);)k=k.parent;return k.parent}function tu(k,ge=o){if(Me(k))return r4(ge,k.escapedText);{let Xe=tu(k.expression);return Xe&&Xe.exports&&Xe.exports.get(tg(k))}}function nf(k,ge,Xe){if(_0(e,k))return e.symbol;if(Me(k))return Xe(k,tu(k),ge);{let Mt=nf(k.expression,ge,Xe),Vn=SL(k);return Ci(Vn)&&x.fail(\"unexpected PrivateIdentifier\"),Xe(Vn,Mt&&Mt.exports&&Mt.exports.get(tg(k)),Mt)}}function u_(k){!e.commonJsModuleIndicator&&Xd(k,!1)&&Za(k)}function X_(k){if(k.kind===263)Js(k,32,899503);else{let Vn=k.name?k.name.escapedText:\"__class\";vs(k,32,Vn),k.name&&de.add(k.name.escapedText)}let{symbol:ge}=k,Xe=ce(4194308,\"prototype\"),Mt=ge.exports.get(Xe.escapedName);Mt&&(k.name&&Aa(k.name,k),e.bindDiagnostics.push(ee(Mt.declarations[0],f.Duplicate_identifier_0,$s(Xe)))),ge.exports.set(Xe.escapedName,Xe),Xe.parent=ge}function fg(k){return BE(k)?Js(k,128,899967):Js(k,256,899327)}function fd(k){if(F&&Wl(k,k.name),!ko(k.name)){let ge=k.kind===260?k:k.parent.parent;Jn(k)&&jE(ge)&&!yb(k)&&!(gb(k)&32)?Ar(k,2097152,2097152):p9(k)?Js(k,2,111551):JE(k)?Ar(k,1,111551):Ar(k,1,111550)}}function mg(k){if(!(k.kind===348&&o.kind!==330)&&(F&&!(k.flags&33554432)&&Wl(k,k.name),ko(k.name)?vs(k,1,\"__\"+k.parent.parameters.indexOf(k)):Ar(k,1,111551),wu(k,k.parent))){let ge=k.parent.parent;Oe(ge.symbol.members,ge.symbol,k,4|(k.questionToken?16777216:0),0)}}function Ku(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),zs(k),F?(Ut(k),Js(k,16,110991)):Ar(k,16,110991)}function Lh(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&(k.flowNode=m),zs(k);let ge=k.name?k.name.escapedText:\"__function\";return vs(k,16,ge)}function mu(k,ge,Xe){return!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&pW(k)&&(k.flowNode=m),ty(k)?vs(k,ge,\"__computed\"):Ar(k,ge,Xe)}function Y(k){let ge=Rn(k,Xe=>Xe.parent&&lI(Xe.parent)&&Xe.parent.extendsType===Xe);return ge&&ge.parent}function Ye(k){if(Df(k.parent)){let ge=NW(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):Ar(k,262144,526824)}else if(k.parent.kind===195){let ge=Y(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):vs(k,262144,pe(k))}else Ar(k,262144,526824)}function xt(k){let ge=dg(k);return ge===1||ge===2&&n0(t)}function Nt(k){if(!(m.flags&1))return!1;if(m===fe&&(QM(k)&&k.kind!==242||k.kind===263||k.kind===267&&xt(k))&&(m=q,!t.allowUnreachableCode)){let Xe=Jne(t)&&!(k.flags&33554432)&&(!cl(k)||!!(Xg(k.declarationList)&7)||k.declarationList.declarations.some(Mt=>!!Mt.initializer));b3e(k,(Mt,Vn)=>ae(Xe,Mt,Vn,f.Unreachable_code_detected))}return!0}}function b3e(e,t){if(Di(e)&&oSe(e)&&Do(e.parent)){let{statements:r}=e.parent,i=NV(r,e);Z5(i,oSe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function oSe(e){return!Ql(e)&&!E3e(e)&&!kb(e)&&!(cl(e)&&!(Xg(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function E3e(e){switch(e.kind){case 264:case 265:return!0;case 267:return dg(e)!==1;case 266:return Wr(e,4096);default:return!1}}function _0(e,t){let r=0,i=mM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),DS(t)||Eh(t))return!0;if(Me(t)){let o=r4(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),lc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function kU(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(pW(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Lo(e.parent)||nl(e.parent)?0:34}return 0}function r4(e,t){var r,i,o,s;let l=(i=(r=Vr(e,L_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(qm(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var OU,wU,aSe,S3e=pt({\"src/compiler/binder.ts\"(){\"use strict\";wo(),mS(),OU=(e=>(e[e.NonInstantiated=0]=\"NonInstantiated\",e[e.Instantiated=1]=\"Instantiated\",e[e.ConstEnumOnly=2]=\"ConstEnumOnly\",e))(OU||{}),wU=(e=>(e[e.None=0]=\"None\",e[e.IsContainer=1]=\"IsContainer\",e[e.IsBlockScopedContainer=2]=\"IsBlockScopedContainer\",e[e.IsControlFlowContainer=4]=\"IsControlFlowContainer\",e[e.IsFunctionLike=8]=\"IsFunctionLike\",e[e.IsFunctionExpression=16]=\"IsFunctionExpression\",e[e.HasLocals=32]=\"HasLocals\",e[e.IsInterface=64]=\"IsInterface\",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]=\"IsObjectLiteralOrClassExpressionMethodOrAccessor\",e))(wU||{}),aSe=y3e()}});function hoe(e,t,r,i,o,s,l,d,p,h){return m;function m(v=()=>!0){let E=[],S=[];return{walkType:de=>{try{return A(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}},walkSymbol:de=>{try{return $(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}}};function A(de){if(!(!de||E[de.id]||(E[de.id]=de,$(de.symbol)))){if(de.flags&524288){let q=de,H=q.objectFlags;H&4&&C(de),H&32&&K(de),H&3&&oe(de),H&24&&W(q)}de.flags&262144&&R(de),de.flags&3145728&&L(de),de.flags&4194304&&G(de),de.flags&8388608&&U(de)}}function C(de){A(de.target),an(h(de),A)}function R(de){A(d(de))}function L(de){an(de.types,A)}function G(de){A(de.type)}function U(de){A(de.objectType),A(de.indexType),A(de.constraint)}function K(de){A(de.typeParameter),A(de.constraintType),A(de.templateType),A(de.modifiersType)}function F(de){let fe=t(de);fe&&A(fe.type),an(de.typeParameters,A);for(let q of de.parameters)$(q);A(e(de)),A(r(de))}function oe(de){W(de),an(de.typeParameters,A),an(i(de),A),A(de.thisType)}function W(de){let fe=o(de);for(let q of fe.indexInfos)A(q.keyType),A(q.type);for(let q of fe.callSignatures)F(q);for(let q of fe.constructSignatures)F(q);for(let q of fe.properties)$(q)}function $(de){if(!de)return!1;let fe=na(de);if(S[fe])return!1;if(S[fe]=de,!v(de))return!0;let q=s(de);return A(q),de.exports&&de.exports.forEach($),an(de.declarations,H=>{if(H.type&&H.type.kind===186){let ee=H.type,le=l(p(ee.exprName));$(le)}}),!1}}}var T3e=pt({\"src/compiler/symbolWalker.ts\"(){\"use strict\";wo()}});function sk({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Ic(o)?0:1:e===\"relative\"?0:e===\"non-relative\"?1:e===\"project-relative\"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return nR(r,i.fileName)?[3,2]:[2];if(zd(r)===1)return p===2?[2,1]:[1,2];let h=nR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:x.assertNever(p)}}};function l(d){if(o!==void 0){if(QE(o))return 2;if(Zs(o,\"/index\"))return 1}return nre(t,d??i.impliedNodeFormat,r,i)}}function A3e(e,t,r,i,o,s,l={}){let d=sSe(e,t,r,i,o,sk({},e,t,s),{},l);if(d!==s)return d}function i4(e,t,r,i,o,s={}){return sSe(e,t,r,i,o,sk({},e,t),{},s)}function I3e(e,t,r,i,o,s={}){let l=WU(t.fileName,i),d=mSe(l,r,i,o,s);return ml(d,p=>voe(p,l,t,i,e,o,!0,s.overrideImportMode))}function sSe(e,t,r,i,o,s,l,d={}){let p=WU(r,o),h=mSe(p,i,o,l,d);return ml(h,m=>voe(m,p,t,o,e,l,void 0,d.overrideImportMode))||uSe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function x3e(e,t,r,i,o={}){return lSe(e,t,r,i,o)[0]}function lSe(e,t,r,i,o={}){var s;let l=eW(e);if(!l)return je;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function cSe(e,t,r,i,o,s,l={}){return dSe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function dSe(e,t,r,i,o,s,l={},d){let p=!1,h=C3e(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,v,E,S]=lSe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!v)return{moduleSpecifiers:je,computedWithoutCache:p};p=!0,E||(E=_Se(WU(i.fileName,o),v.originalFileName,o));let A=R3e(E,r,i,o,s,l,d);return S?.set(i.path,v.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function R3e(e,t,r,i,o,s={},l){let d=WU(r.fileName,i),p=sk(o,t,r),h=an(e,C=>an(i.getFileIncludeReasons().get(ks(C.path,i.getCurrentDirectory(),d.getCanonicalFileName)),R=>{if(R.kind!==3||R.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Dae(r,R.index,t))return;let L=Ak(r,R.index).text;return p.relativePreference!==1||!op(L)?L:void 0}));if(h)return[h];let m=ct(e,C=>C.isInNodeModules),v,E,S,A;for(let C of e){let R=C.isInNodeModules?voe(C,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(v=pn(v,R),R&&C.isRedirect)return v;if(!R){let L=uSe(C.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,C.isRedirect);if(!L)continue;C.isRedirect?S=pn(S,L):RG(L)?Gb(L)?A=pn(A,L):E=pn(E,L):(l||!m||C.isInNodeModules)&&(A=pn(A,L))}}return E?.length?E:S?.length?S:v?.length?v:x.checkDefined(A)}function WU(e,t){e=Qi(e,t.getCurrentDirectory());let r=od(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Ur(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function uSe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:v,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),C=m&&M3e(m,e,v,S,A,r)||lk(ME(Gf(v,e,S)),A,r);if(!p&&!h&&!DF(r)||l===0)return d?void 0:C;let R=Qi(zW(r,i)||p,i.getCurrentDirectory()),L=ySe(e,R,S);if(!L)return d?void 0:C;let G=d?void 0:P3e(e,v,r,i,o),U=d||G===void 0?h&&hSe(L,h,A,i,r):void 0;if(d)return U;let K=G??(U===void 0&&p!==void 0?lk(L,A,r):U);if(!K)return C;if(l===1&&!op(K))return K;if(l===3&&!op(K)){let F=r.configFilePath?ks(Ur(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),oe=ks(e,F,S),W=Ui(E,F),$=Ui(oe,F);if(W&&!$||!W&&$)return K;let de=goe(i,Ur(oe)),fe=goe(i,v),q=!yx(i);return D3e(de,fe,q)?C:K}return bSe(K)||o4(C)<o4(K)?C:K}function D3e(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Xh(e,t,r)===0}function o4(e){let t=0;for(let r=Ui(e,\"./\")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function pSe(e,t){return zv(t.isRedirect,e.isRedirect)||$L(e.path,t.path)}function goe(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Vf(t,r=>e.fileExists(wr(r,\"package.json\"))?r:void 0)}function fSe(e,t,r,i,o){var s;let l=ev(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=ks(t,d,l),m=r.redirectTargetsMap.get(h)||je,E=[...p?[p]:je,t,...m].map(L=>Qi(L,d)),S=!ji(E,KC);if(!i){let L=an(E,G=>!(S&&KC(G))&&o(G,p===G));if(L)return L}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),C=Qi(t,d);return A&&Vf(Ur(C),L=>{let G=A.get(_c(ks(L,d,l)));if(G)return CG(e,L,l)?!1:an(E,U=>{if(!CG(U,L,l))return;let K=Gf(L,U,l);for(let F of G){let oe=jv(F,K),W=o(oe,U===p);if(S=!0,W)return W}})})||(i?an(E,L=>S&&KC(L)?void 0:o(L,L===p)):void 0)}function mSe(e,t,r,i,o={}){var s;let l=ks(e.importingSourceFileName,r.getCurrentDirectory(),ev(r)),d=ks(t,r.getCurrentDirectory(),ev(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=_Se(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function _Se(e,t,r){let i=new Map,o=!1;fSe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=Gb(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=_c(l),p;i.forEach(({path:m,isRedirect:v,isInNodeModules:E},S)=>{Ui(m,d)&&((p||(p=[])).push({path:S,isRedirect:v,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(pSe),s.push(...p));let h=Ur(l);if(h===l)break;l=h}if(i.size){let l=bo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(pSe),s.push(...l)}return s}function C3e(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>m9(l)&&(!zE(l)||!Ic(Ef(l.name))));if(i)return i.name.text;let s=Fi(e.declarations,l=>{var d,p,h,m;if(!Il(l))return;let v=C(l);if(!((d=v?.parent)!=null&&d.parent&&n_(v.parent)&&sd(v.parent.parent)&&Li(v.parent.parent.parent)))return;let E=(m=(h=(p=v.parent.parent.symbol.exports)==null?void 0:p.get(\"export=\"))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return v.parent.parent;function C(R){for(;R.flags&8;)R=R.parent;return R}})[0];if(s)return s.name.text}function hSe(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=Yo(d),h=p.indexOf(\"*\"),m=r.map(v=>({ending:v,value:lk(e,[v],o)}));if(og(p)&&m.push({ending:void 0,value:e}),h!==-1){let v=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=v.length+E.length&&Ui(A,v)&&Zs(A,E)&&s({ending:S,value:A})){let C=A.substring(v.length,A.length-E.length);if(!op(C))return KA(l,C)}}else if(ct(m,v=>v.ending!==0&&p===v.value)||ct(m,v=>v.ending===0&&p===v.value&&s(v)))return l}function s({ending:l,value:d}){return l!==0||d===lk(e,[l],o,i)}}function a4(e,t,r,i,o,s,l,d,p){if(typeof s==\"string\"){let h=!yx(t),m=()=>t.getCommonSourceDirectory(),v=p&&fH(r,e,h,m),E=p&&pH(r,e,h,m),S=Qi(wr(i,s),void 0),A=qA(r)?Yd(r)+boe(r,e):void 0;switch(d){case 0:if(A&&Xh(A,S,h)===0||Xh(r,S,h)===0||v&&Xh(v,S,h)===0||E&&Xh(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&Bf(S,A,h)){let G=Gf(S,A,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(Bf(S,r,h)){let G=Gf(S,r,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(v&&Bf(S,v,h)){let G=Gf(S,v,!1);return{moduleFileToTry:wr(o,G)}}if(E&&Bf(S,E,h)){let G=Gf(S,E,!1);return{moduleFileToTry:wr(o,G)}}break;case 2:let C=S.indexOf(\"*\"),R=S.slice(0,C),L=S.slice(C+1);if(A&&Ui(A,R,h)&&Zs(A,L,h)){let G=A.slice(R.length,A.length-L.length);return{moduleFileToTry:KA(o,G)}}if(Ui(r,R,h)&&Zs(r,L,h)){let G=r.slice(R.length,r.length-L.length);return{moduleFileToTry:KA(o,G)}}if(v&&Ui(v,R,h)&&Zs(v,L,h)){let G=v.slice(R.length,v.length-L.length);return{moduleFileToTry:KA(o,G)}}if(E&&Ui(E,R,h)&&Zs(E,L,h)){let G=E.slice(R.length,E.length-L.length);return{moduleFileToTry:KA(o,G)}}break}}else{if(Array.isArray(s))return an(s,h=>a4(e,t,r,i,o,h,l,d,p));if(typeof s==\"object\"&&s!==null){for(let h of fh(s))if(h===\"default\"||l.indexOf(h)>=0||ok(l,h)){let m=s[h],v=a4(e,t,r,i,o,m,l,d,p);if(v)return v}}}}function N3e(e,t,r,i,o,s,l){return typeof s==\"object\"&&s!==null&&!Array.isArray(s)&&t4(s)?an(fh(s),d=>{let p=Qi(wr(o,d),void 0),h=Zs(d,\"/\")?1:d.includes(\"*\")?2:0;return a4(e,t,r,i,p,s[d],l,h,!1)}):a4(e,t,r,i,o,s,l,0,!1)}function P3e(e,t,r,i,o){var s,l,d;if(!i.readFile||!DF(r))return;let p=goe(i,t);if(!p)return;let h=wr(p,\"package.json\"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(noe(m)||!i.fileExists(h))return;let v=m?.contents.packageJsonContent||KW(i.readFile(h)),E=v?.imports;if(!E)return;let S=hy(r,o);return(d=an(fh(E),A=>{if(!Ui(A,\"#\")||A===\"#\"||Ui(A,\"#/\"))return;let C=Zs(A,\"/\")?1:A.includes(\"*\")?2:0;return a4(r,i,e,p,A,E[A],S,C,!0)}))==null?void 0:d.moduleFileToTry}function M3e(e,t,r,i,o,s){let l=gSe(t,e,i);if(l===void 0)return;let d=gSe(r,e,i),p=ta(d,m=>nn(l,v=>ME(Gf(m,v,i)))),h=cB(p,$L);if(h)return lk(h,o,s)}function voe({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=yF(e);if(!m)return;let E=sk(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let K=m.packageRootIndex,F;for(;;){let{moduleFileToTry:oe,packageRootPath:W,blockedByExports:$,verbatimFromExports:de}=U(K);if(zd(l)!==1){if($)return;if(de)return oe}if(W){S=W,A=!0;break}if(F||(F=oe),K=e.indexOf(Os,K+1),K===-1){S=lk(F,E,l,s);break}}}if(t&&!A)return;let C=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),R=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(Ui(i,R)||C&&Ui(r(C),R)))return;let L=S.substring(m.topLevelPackageNameIndex+1),G=CN(L);return zd(l)===1&&G===L?void 0:G;function U(K){var F,oe;let W=e.substring(0,K),$=wr(W,\"package.json\"),de=e,fe=!1,q=(oe=(F=s.getPackageJsonInfoCache)==null?void 0:F.call(s))==null?void 0:oe.getPackageJsonInfo($);if($6(q)||q===void 0&&s.fileExists($)){let H=q?.contents.packageJsonContent||KW(s.readFile($)),ee=h||o.impliedNodeFormat;if(RF(l)){let ce=W.substring(m.topLevelPackageNameIndex+1),Z=CN(ce),pe=hy(l,ee),Ae=H?.exports?N3e(l,s,e,W,Z,H.exports,pe):void 0;if(Ae)return{...Ae,verbatimFromExports:!0};if(H?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let le=H?.typesVersions?X6(H.typesVersions):void 0;if(le){let ce=e.slice(W.length+1),Z=hSe(ce,le.paths,E,s,l);Z===void 0?fe=!0:de=wr(W,Z)}let Ee=H?.typings||H?.types||H?.main||\"index.js\";if(fo(Ee)&&!(fe&&CV(fF(le.paths),Ee))){let ce=ks(Ee,W,r),Z=r(de);if(Yd(ce)===Yd(Z))return{packageRootPath:W,moduleFileToTry:de};if(H?.type!==\"module\"&&!$l(Z,c2)&&Ui(Z,ce)&&Ur(Z)===fb(ce)&&Yd(Ll(Z))===\"index\")return{packageRootPath:W,moduleFileToTry:de}}}else{let H=r(de.substring(m.packageRootIndex+1));if(H===\"index.d.ts\"||H===\"index.js\"||H===\"index.ts\"||H===\"index.tsx\")return{moduleFileToTry:de,packageRootPath:W}}return{moduleFileToTry:de}}}function L3e(e,t){if(!e.fileExists)return;let r=Ff(GC({allowJs:!0},[{extension:\"node\",isMixedContent:!1},{extension:\"json\",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function gSe(e,t,r){return Fi(t,i=>{let o=ySe(e,i,r);return o!==void 0&&bSe(o)?void 0:o})}function lk(e,t,r,i){if($l(e,[\".json\",\".mjs\",\".cjs\"]))return e;let o=Yd(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if($l(e,[\".mts\",\".cts\"])&&l!==-1&&l<s)return e;if($l(e,[\".d.mts\",\".mts\",\".d.cts\",\".cts\"]))return o+yoe(e,r);if(!$l(e,[\".d.ts\"])&&$l(e,[\".ts\"])&&e.includes(\".d.\"))return vSe(e);switch(t[0]){case 0:let d=C1(o,\"/index\");return i&&d!==o&&L3e(i,d)?o:d;case 1:return o;case 2:return o+yoe(e,r);case 3:if(Yc(e)){let p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+yoe(e,r)}return e;default:return x.assertNever(t[0])}}function vSe(e){let t=Ll(e);if(!Zs(e,\".ts\")||!t.includes(\".d.\")||$l(t,[\".d.ts\"]))return;let r=QL(e,\".ts\"),i=r.substring(r.lastIndexOf(\".\"));return r.substring(0,r.indexOf(\".d.\"))+i}function yoe(e,t){return boe(e,t)??x.fail(`Extension ${jC(e)} is unsupported:: FileName:: ${e}`)}function boe(e,t){let r=og(e);switch(r){case\".ts\":case\".d.ts\":return\".js\";case\".tsx\":return t.jsx===1?\".jsx\":\".js\";case\".js\":case\".jsx\":case\".json\":return r;case\".d.mts\":case\".mts\":case\".mjs\":return\".mjs\";case\".d.cts\":case\".cts\":case\".cjs\":return\".cjs\";default:return}}function ySe(e,t,r){let i=AA(t,e,t,r,!1);return Ou(i)?void 0:i}function bSe(e){return Ui(e,\"..\")}var Eoe,Soe=pt({\"src/compiler/moduleSpecifiers.ts\"(){\"use strict\";wo(),Eoe=(e=>(e[e.Relative=0]=\"Relative\",e[e.NonRelative=1]=\"NonRelative\",e[e.Shortest=2]=\"Shortest\",e[e.ExternalNonRelative=3]=\"ExternalNonRelative\",e))(Eoe||{})}}),h0={};la(h0,{RelativePreference:()=>Eoe,countPathComponents:()=>o4,forEachFileNameOfModule:()=>fSe,getModuleSpecifier:()=>i4,getModuleSpecifierPreferences:()=>sk,getModuleSpecifiers:()=>cSe,getModuleSpecifiersWithCacheInfo:()=>dSe,getNodeModulesPackageName:()=>I3e,tryGetJSExtensionForFile:()=>boe,tryGetModuleSpecifiersFromCache:()=>x3e,tryGetRealFileNameForNonJsDeclarationFileName:()=>vSe,updateModuleSpecifier:()=>A3e});var Toe=pt({\"src/compiler/_namespaces/ts.moduleSpecifiers.ts\"(){\"use strict\";Soe()}});function k3e(){this.flags=0}function Fa(e){return e.id||(e.id=xoe,xoe++),e.id}function na(e){return e.id||(e.id=Ioe,Ioe++),e.id}function FU(e,t){let r=dg(e);return r===1||t&&r===2}function Aoe(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=wc.getSymbolConstructor(),p=wc.getTypeConstructor(),h=wc.getSignatureConstructor(),m=0,v=0,E=0,S=0,A=0,C=0,R,L,G=!1,U=Vo(),K=[1],F=e.getCompilerOptions(),oe=Wa(F),W=ld(F),$=!!F.experimentalDecorators,de=nN(F),fe=Xne(F),q=zS(F),H=Fd(F,\"strictNullChecks\"),ee=Fd(F,\"strictFunctionTypes\"),le=Fd(F,\"strictBindCallApply\"),Ee=Fd(F,\"strictPropertyInitialization\"),ce=Fd(F,\"noImplicitAny\"),Z=Fd(F,\"noImplicitThis\"),pe=Fd(F,\"useUnknownInCatchVariables\"),Ae=!!F.keyofStringsOnly,Oe=Ae?1:0,_e=F.suppressExcessPropertyErrors?0:8192,be=F.exactOptionalPropertyTypes,Te=plt(),De=Hut(),ft=h_(),he=Vo(),Le=Ra(4,\"undefined\");Le.declarations=[];var Ke=Ra(1536,\"globalThis\",8);Ke.exports=he,Ke.declarations=[],he.set(Ke.escapedName,Ke);var Dt=Ra(4,\"arguments\"),st=Ra(4,\"require\"),Ge=F.verbatimModuleSyntax?\"verbatimModuleSyntax\":\"isolatedModules\",ot=!F.verbatimModuleSyntax||!!F.importsNotUsedAsValues,Vt,jt,gn=0,On,en=0;let zt={getNodeCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,v),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:hu.size,identity:Cu.size,subtype:Y_.size,strictSubtype:rf.size}),isUndefinedSymbol:n=>n===Le,isArgumentsSymbol:n=>n===Dt,isUnknownSymbol:n=>n===tt,getMergedSymbol:Oa,getDiagnostics:V8e,getGlobalDiagnostics:sut,getRecursionIdentity:dQ,getUnmatchedProperties:ehe,getTypeOfSymbolAtLocation:(n,a)=>{let c=uo(a);return c?eot(n,c):it},getTypeOfSymbol:Yn,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=uo(n,ao);return c===void 0?x.fail(\"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.\"):(x.assert(wu(c,c.parent)),TP(c,Hs(a)))},getDeclaredTypeOfSymbol:Cs,getPropertiesOfType:Xa,getPropertyOfType:(n,a)=>Qo(n,Hs(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=uo(c);if(!u)return;let _=Hs(a),g=GQ(_,u);return g?zhe(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Fe(n,Hs(a)),getIndexInfoOfType:(n,a)=>Uh(n,a===0?Ie:gt),getIndexInfosOfType:Ud,getIndexInfosOfIndexSymbol:Kme,getSignaturesOfType:Co,getIndexTypeOfType:(n,a)=>yE(n,a===0?Ie:gt),getIndexType:n=>y_(n),getBaseTypes:ep,getBaseTypeOfLiteralType:wg,getWidenedType:gp,getTypeFromTypeNode:n=>{let a=uo(n,xi);return a?si(a):it},getParameterType:zm,getParameterIdentifierInfoAtPosition:Nst,getPromisedTypeOfPromise:kw,getAwaitedType:n=>pA(n),getReturnTypeOfSignature:Ha,isNullableType:h5,getNullableType:e5,getNonNullableType:Wg,getNonOptionalType:mQ,getTypeArguments:Ts,typeToTypeNode:ft.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ft.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ft.signatureToSignatureDeclaration,symbolToEntityName:ft.symbolToEntityName,symbolToExpression:ft.symbolToExpression,symbolToNode:ft.symbolToNode,symbolToTypeParameterDeclarations:ft.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ft.symbolToParameterDeclaration,typeParameterToDeclaration:ft.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=uo(n);return c?lut(c,a):[]},getSymbolAtLocation:n=>{let a=uo(n);return a?um(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=uo(n);return a?hut(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=uo(n);return a?gut(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=uo(n,Ed);return a?vut(a):void 0},getExportSymbolOfSymbol(n){return Oa(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=uo(n);return a?S1(a):it},getTypeOfAssignmentPattern:n=>{let a=uo(n,lC);return a&&gZ(a)||it},getPropertySymbolOfDestructuringAssignment:n=>{let a=uo(n,Me);return a?yut(a):void 0},signatureToString:(n,a,c,u)=>th(n,uo(a),c,u),typeToString:(n,a,c)=>Pn(n,uo(a),c),symbolToString:(n,a,c,u)=>ai(n,uo(a),c,u),typePredicateToString:(n,a,c)=>nh(n,uo(a),c),writeSignature:(n,a,c,u,_)=>th(n,uo(a),c,u,_),writeType:(n,a,c,u)=>Pn(n,uo(a),c,u),writeSymbol:(n,a,c,u,_)=>ai(n,uo(a),c,u,_),writeTypePredicate:(n,a,c,u)=>nh(n,uo(a),c,u),getAugmentedPropertiesOfType:Bge,getRootSymbols:Y8e,getSymbolOfExpando:YQ,getContextualType:(n,a)=>{let c=uo(n,lt);if(c)return a&4?Ki(c,()=>bu(c,a)):bu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=uo(n,Zh);return a?Ihe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=uo(n,WE);return c&&Ahe(c,a)},getContextualTypeForJsxAttribute:n=>{let a=uo(n,H8);return a&&dOe(a,void 0)},isContextSensitive:uf,getTypeOfPropertyOfContextualType:DE,getFullyQualifiedName:mp,getResolvedSignature:(n,a,c)=>gi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Wt,getResolvedSignatureForSignatureHelp:(n,a,c)=>ei(n,()=>gi(n,a,c,16)),getExpandedParameters:uLe,hasEffectiveRestParameter:dh,containsArgumentsReference:Hme,getConstantValue:n=>{let a=uo(n,tWe);return a?Gge(a):void 0},isValidPropertyAccess:(n,a)=>{let c=uo(n,$ee);return!!c&&zat(c,Hs(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=uo(n,Er);return!!u&&BOe(u,a,c)},getSignatureFromDeclaration:n=>{let a=uo(n,Lo);return a?kf(a):void 0},isImplementationOfOverload:n=>{let a=uo(n,Lo);return a?Z8e(a):void 0},getImmediateAliasedSymbol:Nhe,getAliasedSymbol:fc,getEmitResolver:Ev,getExportsOfModule:wT,getExportsAndPropertiesOfModule:eD,forEachExportAndPropertyOfModule:tD,getSymbolWalker:hoe(Stt,df,Ha,ep,Om,Yn,cm,iu,dp,Ts),getAmbientModules:kpt,getJsxIntrinsicTagNamesAt:vat,isOptionalParameter:n=>{let a=uo(n,ao);return a?ow(a):!1},tryGetMemberInModuleExports:(n,a)=>WT(Hs(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>nD(Hs(n),a),tryFindAmbientModule:n=>w$(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>w$(n,!1),getApparentType:ou,getUnionType:Br,isTypeAssignableTo:ea,createAnonymousType:cs,createSignature:jh,createSymbol:Ra,createIndexInfo:sh,getAnyType:()=>z,getStringType:()=>Ie,getStringLiteralType:yu,getNumberType:()=>gt,getNumberLiteralType:Wm,getBigIntType:()=>bt,createPromiseType:R5,createArrayType:_d,getElementTypeOfArrayType:Z7,getBooleanType:()=>ti,getFalseType:n=>n?Ot:dn,getTrueType:n=>n?An:Cn,getVoidType:()=>jn,getUndefinedType:()=>Re,getNullType:()=>se,getESSymbolType:()=>di,getNeverType:()=>Ar,getOptionalType:()=>j,getPromiseType:()=>W7(!1),getPromiseLikeType:()=>QLe(!1),getAsyncIterableType:()=>{let n=q$(!1);if(n!==ho)return n},isSymbolAccessible:vi,isArrayType:ff,isTupleType:ga,isArrayLikeType:Lv,isEmptyAnonymousObjectType:ch,isTypeInvalidDueToUnionDiscriminant:rtt,getExactOptionalProperties:Nrt,getAllPossiblePropertiesOfTypes:itt,getSuggestedSymbolForNonexistentProperty:Vhe,getSuggestionForNonexistentProperty:jhe,getSuggestedSymbolForNonexistentJSXAttribute:FOe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Uhe(n,Hs(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Oat(n,Hs(a),c),getSuggestedSymbolForNonexistentModule:jQ,getSuggestionForNonexistentExport:wat,getSuggestedSymbolForNonexistentClassMember:WOe,getBaseConstraintOfType:md,getDefaultFromTypeParameter:n=>n&&n.flags&262144?KT(n):void 0,resolveName(n,a,c,u){return Xs(a,Hs(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Ii(tE(n)),getJsxFragmentFactory:n=>{let a=jge(n);return a&&Ii(dp(a).escapedText)},getAccessibleSymbolChain:Wy,getTypePredicateOfSignature:df,resolveExternalModuleName:n=>{let a=uo(n,lt);return a&&jd(a,a,!0)},resolveExternalModuleSymbol:$u,tryGetThisTypeAt:(n,a,c)=>{let u=uo(n);return u&&bhe(u,a,c)},getTypeArgumentConstraint:n=>{let a=uo(n,xi);return a&&Ult(a)},getSuggestionDiagnostics:(n,a)=>{let c=uo(n,Li)||x.fail(\"Could not determine parsed source file.\");if(UC(c,F,e))return je;let u;try{return i=a,Fge(c),x.assert(!!(Fr(c).flags&1)),u=Pr(u,yT.getDiagnostics(c.fileName)),i8e(G8e(c),(_,g,T)=>{!X1(_)&&!B8e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||je}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(zt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:gr,isDeclarationVisible:Pm,isPropertyAccessible:qhe,getTypeOnlyAliasDeclaration:of,getMemberOverrideModifierStatus:Sdt,isTypeParameterPossiblyReferenced:U7,typeHasCallOrConstructSignatures:vZ};function Wt(n,a){let c=new Set,u=[];Ki(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,ei(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);return bo(c)}function ei(n,a){if(n=Rn(n,ZG),n){let c=[],u=[];for(;n;){let g=Fr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,e0(n)){let T=Pi(dr(n)),N=T.type;u.push([T,N]),T.type=void 0}n=Rn(n.parent,ZG)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function Ki(n,a){let c=Rn(n,WE);if(c){let _=n;do Fr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}G=!0;let u=ei(n,a);if(G=!1,c){let _=n;do Fr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function gi(n,a,c,u){let _=uo(n,WE);Vt=c;let g=_?xD(_,a,u):void 0;return Vt=void 0,g}var io=new Map,Gn=new Map,Nr=new Map,cr=new Map,Jt=new Map,Ue=new Map,Rt=new Map,mn=new Map,qr=new Map,ni=new Map,ki=new Map,so=new Map,Jo=new Map,Ea=new Map,ln=new Map,Tn=[],ke=new Map,nt=new Set,tt=Ra(4,\"unknown\"),yt=Ra(0,\"__resolving__\"),re=new Map,Ce=new Map,et=new Set,z=Fl(1,\"any\"),Je=Fl(1,\"any\",262144,\"auto\"),_t=Fl(1,\"any\",void 0,\"wildcard\"),ze=Fl(1,\"any\",void 0,\"blocked string\"),it=Fl(1,\"error\"),Ct=Fl(1,\"unresolved\"),on=Fl(1,\"any\",65536,\"non-inferrable\"),Qt=Fl(1,\"intrinsic\"),Zt=Fl(2,\"unknown\"),V=Fl(2,\"unknown\",void 0,\"non-null\"),Re=Fl(32768,\"undefined\"),St=H?Re:Fl(32768,\"undefined\",65536,\"widening\"),M=Fl(32768,\"undefined\",void 0,\"missing\"),te=be?M:Re,j=Fl(32768,\"undefined\",void 0,\"optional\"),se=Fl(65536,\"null\"),Pe=H?se:Fl(65536,\"null\",65536,\"widening\"),Ie=Fl(4,\"string\"),gt=Fl(8,\"number\"),bt=Fl(64,\"bigint\"),Ot=Fl(512,\"false\",void 0,\"fresh\"),dn=Fl(512,\"false\"),An=Fl(512,\"true\",void 0,\"fresh\"),Cn=Fl(512,\"true\");An.regularType=Cn,An.freshType=An,Cn.regularType=Cn,Cn.freshType=An,Ot.regularType=dn,Ot.freshType=Ot,dn.regularType=dn,dn.freshType=Ot;var ti=Br([dn,Cn]),di=Fl(4096,\"symbol\"),jn=Fl(16384,\"void\"),Ar=Fl(131072,\"never\"),Zi=Fl(131072,\"never\",262144,\"silent\"),_i=Fl(131072,\"never\",void 0,\"implicit\"),ui=Fl(131072,\"never\",void 0,\"unreachable\"),Mr=Fl(67108864,\"object\"),lo=Br([Ie,gt]),_n=Br([Ie,gt,di]),ms=Ae?Ie:_n,Dl=Br([gt,bt]),_o=Br([Ie,gt,ti,bt,se,Re]),Va=YT([\"\",\"\"],[gt]),vs=j7(n=>n.flags&262144?rrt(n):n,()=>\"(restrictive mapper)\"),Js=j7(n=>n.flags&262144?_t:n,()=>\"(permissive mapper)\"),Fc=Fl(131072,\"never\",void 0,\"unique literal\"),$i=j7(n=>n.flags&262144?Fc:n,()=>\"(unique literal mapper)\"),Uo,zc=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!0),n),()=>\"(unmeasurable reporter)\"),ts=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!1),n),()=>\"(unreliable reporter)\"),ua=cs(void 0,U,je,je,je),Us=cs(void 0,U,je,je,je);Us.objectFlags|=2048;var tf=Ra(2048,\"__type\");tf.members=Vo();var Wl=cs(tf,U,je,je,je),il=cs(void 0,U,je,je,je),zs=H?Br([Re,se,il]):Zt,ho=cs(void 0,U,je,je,je);ho.instantiations=new Map;var Ut=cs(void 0,U,je,je,je);Ut.objectFlags|=262144;var ys=cs(void 0,U,je,je,je),Pc=cs(void 0,U,je,je,je),Bc=cs(void 0,U,je,je,je),Ju=Bp(),ls=Bp();ls.constraint=Ju;var tc=Bp(),ae=Bp(),X=Bp();X.constraint=ae;var xe=O7(1,\"<<unresolved>>\",0,z),dt=jh(void 0,void 0,void 0,je,z,void 0,0,0),$t=jh(void 0,void 0,void 0,je,it,void 0,0,0),sr=jh(void 0,void 0,void 0,je,z,void 0,0,0),tr=jh(void 0,void 0,void 0,je,Zi,void 0,0,0),Ir=sh(gt,Ie,!0),pi=new Map,hr={get yieldType(){return x.fail(\"Not supported\")},get returnType(){return x.fail(\"Not supported\")},get nextType(){return x.fail(\"Not supported\")}},No=wv(z,z,z),Qs=wv(z,z,Zt),bc=wv(Ar,z,Re),bs={iterableCacheKey:\"iterationTypesOfAsyncIterable\",iteratorCacheKey:\"iterationTypesOfAsyncIterator\",iteratorSymbolName:\"asyncIterator\",getGlobalIteratorType:Wtt,getGlobalIterableType:q$,getGlobalIterableIteratorType:Ftt,getGlobalGeneratorType:ztt,resolveIterationType:(n,a)=>pA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Jl={iterableCacheKey:\"iterationTypesOfIterable\",iteratorCacheKey:\"iterationTypesOfIterator\",iteratorSymbolName:\"iterator\",getGlobalIteratorType:Btt,getGlobalIterableType:a_e,getGlobalIterableIteratorType:Gtt,getGlobalGeneratorType:Vtt,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Za,Ec=new Map,Du=[],pc,Nf,Vd,Se,At,Ln,eo,Po,Oo,Cl,Kl,Bs,Ks,vl,Nl,Sc,kp,fu,tu,nf,u_,X_,fg,fd,mg,Ku,Lh,mu,Y,Ye,xt,Nt,k,ge,Xe,Mt,Vn,jr,Or,zi,_a,ha,pl,Gc,nc,Xu,_u,Ay,ja,em,tm,Ri,_g,yv,nm,D0,C0,Op=new Map,p_=0,wp=0,hg=0,Ne=!1,Ve=0,Tt,Pt,rn,wn=[],tn=[],Wn=[],Qr=0,Kn=[],Gr=[],Qn=0,Mo=yu(\"\"),xa=Wm(0),xd=$$({negative:!1,base10Value:\"0\"}),Vc=[],gg=[],$b=[],UI=0,Qb=!1,GR=0,VR=10,jR=[],gT=[],N0=[],HI=[],UR=[],qI=[],JI=[],KI=[],XI=[],vT=[],YI=[],P0=[],M0=[],Iy=[],xy=[],kh=[],Zb=[],La=hx(),yT=hx(),HR=eh(),eE,vg,Y_=new Map,rf=new Map,hu=new Map,Yu=new Map,Cu=new Map,bv=new Map,bT=Vo();bT.set(Le.escapedName,Le);var qR=[[\".mts\",\".mjs\"],[\".ts\",\".js\"],[\".cts\",\".cjs\"],[\".mjs\",\".mjs\"],[\".js\",\".js\"],[\".cjs\",\".cjs\"],[\".tsx\",F.jsx===1?\".jsx\":\".js\"],[\".jsx\",\".jsx\"],[\".json\",\".json\"]];return qut(),zt;function $I(n){return n?ln.get(n):void 0}function Ry(n,a){return n&&ln.set(n,a),a}function tE(n){if(n){let a=Nn(n);if(a)if(fI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get(\"jsxfrag\");if(c){let _=oo(c)?c[0]:c;if(a.localJsxFragmentFactory=gI(_.arguments.factory,oe),He(a.localJsxFragmentFactory,Xl,Su),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=dp(a.localJsxFragmentFactory).escapedText}let u=jge(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=dp(u).escapedText}else{let c=QI(a);if(c)return a.localJsxNamespace=c}}return eE||(eE=\"React\",F.jsxFactory?(vg=gI(F.jsxFactory,oe),He(vg,Xl),vg&&(eE=dp(vg).escapedText)):F.reactNamespace&&(eE=Hs(F.reactNamespace))),vg||(vg=P.createQualifiedName(P.createIdentifier(Ii(eE)),\"createElement\")),eE}function QI(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get(\"jsx\");if(a){let c=oo(a)?a[0]:a;if(n.localJsxFactory=gI(c.arguments.factory,oe),He(n.localJsxFactory,Xl,Su),n.localJsxFactory)return n.localJsxNamespace=dp(n.localJsxFactory).escapedText}}function Xl(n){return F_(n,-1,-1),un(n,Xl,void 0)}function Ev(n,a){return V8e(n,a),De}function ZI(n,a,...c){let u=n?vr(n,a,...c):bl(a,...c),_=La.lookup(u);return _||(La.add(u),u)}function xm(n,a,c,...u){let _=we(a,c,...u);return _.skippedOn=n,_}function ET(n,a,...c){return n?vr(n,a,...c):bl(a,...c)}function we(n,a,...c){let u=ET(n,a,...c);return La.add(u),u}function Rm(n,a){n?La.add(a):yT.add({...a,category:2})}function jc(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Nn(a);Rm(n,\"message\"in c?Rc(_,0,0,c,...u):T9(_,c));return}Rm(n,\"message\"in c?vr(a,c,...u):eg(Nn(a),a,c))}function nE(n,a,c,...u){let _=we(n,c,...u);if(a){let g=vr(n,f.Did_you_forget_to_use_await);fa(_,g)}return _}function e1(n,a){let c=Array.isArray(n)?an(n,zG):zG(n);return c&&fa(a,vr(c,f.The_declaration_was_marked_as_deprecated_here)),yT.add(a),a}function Dy(n){let a=nu(n);return a&&yn(n.declarations)>1?a.flags&64?ct(n.declarations,Sv):ji(n.declarations,Sv):!!n.valueDeclaration&&Sv(n.valueDeclaration)||yn(n.declarations)&&ji(n.declarations,Sv)}function Sv(n){return!!(lS(n)&536870912)}function Tv(n,a,c){let u=vr(n,f._0_is_deprecated,c);return e1(a,u)}function SP(n,a,c,u){let _=c?vr(n,f.The_signature_0_of_1_is_deprecated,u,c):vr(n,f._0_is_deprecated,u);return e1(a,_)}function Ra(n,a,c){v++;let u=new d(n|33554432,a);return u.links=new Coe,u.links.checkFlags=c||0,u}function Dm(n,a){let c=Ra(1,n);return c.links.type=a,c}function ST(n,a){let c=Ra(4,n);return c.links.type=a,c}function TT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function rE(n,a){a.mergeId||(a.mergeId=Roe,Roe++),jR[a.mergeId]=n}function AT(n){let a=Ra(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),rE(a,n),a}function Pf(n,a,c=!1){if(!(n.flags&TT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=yl(n);if(_===tt)return a;n=AT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&IL(n,a.valueDeclaration),Pr(n.declarations,a.declarations),a.members&&(n.members||(n.members=Vo()),Cm(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=Vo()),Cm(n.exports,a.exports,c)),c||rE(n,a)}else if(n.flags&1024)n!==Ke&&we(a.declarations&&mo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ai(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,N=a.declarations&&Nn(a.declarations[0]),O=n.declarations&&Nn(n.declarations[0]),B=nL(N,F.checkJs),Q=nL(O,F.checkJs),me=ai(a);if(N&&O&&Za&&!_&&N!==O){let ue=Xh(N.path,O.path)===-1?N:O,We=ue===N?O:N,at=FD(Za,`${ue.path}|${We.path}`,()=>({firstFile:ue,secondFile:We,conflictingSymbols:new Map})),ht=FD(at.conflictingSymbols,me,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));B||u(ht.firstFileLocations,a),Q||u(ht.secondFileLocations,n)}else B||Mf(a,T,me,n),Q||Mf(n,T,me,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)jp(_,T)}}function Mf(n,a,c,u){an(n.declarations,_=>{yg(_,a,c,u.declarations)})}function yg(n,a,c,u){let _=(Ib(n,!1)?L9(n):mo(n))||n,g=ZI(_,a,c);for(let T of u||je){let N=(Ib(T,!1)?L9(T):mo(T))||T;if(N===_)continue;g.relatedInformation=g.relatedInformation||[];let O=vr(N,f._0_was_also_declared_here,c),B=vr(N,f.and_here);yn(g.relatedInformation)>=5||ct(g.relatedInformation,Q=>zC(Q,B)===0||zC(Q,O)===0)||fa(g,yn(g.relatedInformation)?B:O)}}function t1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=Vo();return Cm(c,n),Cm(c,a),c}function Cm(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?Pf(g,u,c):Oa(u))})}function JR(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){x.assert(_.symbol.declarations.length>1);return}if(Jm(_))Cm(he,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=Tg(n,n,g,!0);if(!T)return;if(T=$u(T),T.flags&1920)if(ct(Nf,N=>T===N.symbol)){let N=Pf(_.symbol,T,!0);Vd||(Vd=new Map),Vd.set(n.text,N)}else{if((c=T.exports)!=null&&c.get(\"__export\")&&((u=_.symbol.exports)!=null&&u.size)){let N=Dme(T,\"resolvedExports\");for(let[O,B]of bo(_.symbol.exports.entries()))N.has(O)&&!T.exports.has(O)&&Pf(N.get(O),B)}Pf(T,_.symbol)}else we(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function L0(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?an(T.declarations,u(Ii(g),c)):n.set(g,_)});function u(_,g){return T=>La.add(vr(T,g,_))}}function Pi(n){if(n.flags&33554432)return n.links;let a=na(n);return gT[a]??(gT[a]=new Coe)}function Fr(n){let a=Fa(n);return N0[a]||(N0[a]=new k3e)}function $_(n){return n.kind===312&&!sp(n)}function gu(n,a,c){if(c){let u=Oa(n.get(a));if(u&&(x.assert((tl(u)&1)===0,\"Should never get an instantiated symbol here.\"),u.flags&c||u.flags&2097152&&Qc(u)&c))return u}}function TP(n,a){let c=n.parent,u=n.parent.parent,_=gu(c.locals,a,111551),g=gu(Ky(u.symbol),a,111551);return _&&g?[_,g]:x.fail(\"There should exist two symbols, one as property declaration and one as parameter declaration\")}function bg(n,a){let c=Nn(n),u=Nn(a),_=w_(n);if(c!==u){if(W&&(c.externalModuleIndicator||u.externalModuleIndicator)||!ss(F)||OS(a)||n.flags&33554432||T(a,n))return!0;let O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(u)}if(a.flags&16777216||OS(a)||she(a))return!0;if(n.pos<=a.pos&&!(xo(n)&&fL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let O=Db(a,208);return O?Rn(O,Na)!==Rn(n,Na)||n.pos<O.pos:bg(Db(n,260),a)}else{if(n.kind===260)return!g(n,a);if(Kr(n))return!Rn(a,O=>Pa(O)&&O.parent.parent===n);if(xo(n))return!N(n,a,!1);if(wu(n,n.parent))return!(fe&&Oc(n)===Oc(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return fe&&Oc(n)&&(xo(n)||wu(n,n.parent))?!N(n,a,!0):!0;return!1;function g(O,B){switch(O.parent.parent.kind){case 243:case 248:case 250:if(O0(B,O,_))return!0;break}let Q=O.parent.parent;return H1(Q)&&O0(B,Q.expression,_)}function T(O,B){return!!Rn(O,Q=>{if(Q===_)return\"quit\";if(Lo(Q))return!0;if(nl(Q))return B.pos<O.pos;let me=Vr(Q.parent,xo);if(me&&me.initializer===Q){if(zo(Q.parent)){if(B.kind===174)return!0;if(xo(B)&&Oc(O)===Oc(B)){let We=B.name;if(Me(We)||Ci(We)){let at=Yn(dr(B)),ht=Cr(B.parent.members,nl);if(Ddt(We,at,ht,B.parent.pos,Q.pos))return!0}}}else if(!(B.kind===172&&!zo(B))||Oc(O)!==Oc(B))return!0}return!1})}function N(O,B,Q){return B.end>O.end?!1:Rn(B,ue=>{if(ue===O)return\"quit\";switch(ue.kind){case 219:return!0;case 172:return Q&&(xo(O)&&ue.parent===O.parent||wu(O,O.parent)&&ue.parent===O.parent.parent)?\"quit\":!0;case 241:switch(ue.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function AP(n,a,c){let u=Wa(F),_=a;if(ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let N=Fr(_);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=an(_.parameters,g)||!1),!N.declarationRequiresScopeChange}return!1;function g(N){return T(N.name)||!!N.initializer&&T(N.initializer)}function T(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(N.name);case 172:return jl(N)?!fe:T(N.name);default:return jG(N)||yd(N)?u<7:Na(N)&&N.dotDotDotToken&&Rf(N.parent)?u<4:xi(N)?!1:Ao(N,T)||!1}}}function Cy(n){return ES(n)&&Qh(n.type)||gN(n)&&Qh(n.typeExpression)}function Xs(n,a,c,u,_,g,T=!1,N=!0){return pp(n,a,c,u,_,g,T,N,gu)}function pp(n,a,c,u,_,g,T,N,O){var B,Q,me;let ue=n,We,at,ht,qt,Xt,Hn=!1,En=n,Kt,In=!1;e:for(;n;){if(a===\"const\"&&Cy(n))return;if($M(n)&&at&&n.name===at&&(at=n,n=n.parent),L_(n)&&n.locals&&!$_(n)&&(We=O(n.locals,a,c))){let zn=!0;if(Lo(n)&&at&&at!==n.body?(c&We.flags&788968&&at.kind!==327&&(zn=We.flags&262144?at===n.type||at.kind===169||at.kind===348||at.kind===349||at.kind===168:!1),c&We.flags&3&&(AP(We,n,at)?zn=!1:We.flags&1&&(zn=at.kind===169||at===n.type&&!!Rn(We.valueDeclaration,ao)))):n.kind===194&&(zn=at===n.trueType),zn)break e;We=void 0}switch(Hn=Hn||Lf(n,at),n.kind){case 312:if(!sp(n))break;In=!0;case 267:let zn=((B=dr(n))==null?void 0:B.exports)||U;if(n.kind===312||Il(n)&&n.flags&33554432&&!Jm(n)){if(We=zn.get(\"default\")){let co=Ex(We);if(co&&We.flags&c&&co.escapedName===a)break e;We=void 0}let Bn=zn.get(a);if(Bn&&Bn.flags===2097152&&(Vs(Bn,281)||Vs(Bn,280)))break}if(a!==\"default\"&&(We=O(zn,a,c&2623475)))if(Li(n)&&n.commonJsModuleIndicator&&!((Q=We.declarations)!=null&&Q.some(bf)))We=void 0;else break e;break;case 266:if(We=O(((me=dr(n))==null?void 0:me.exports)||U,a,c&8)){u&&xf(F)&&!(n.flags&33554432)&&Nn(n)!==Nn(We.valueDeclaration)&&we(En,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ii(a),Ge,`${Ii(Fp(n).escapedName)}.${Ii(a)}`);break e}break;case 172:if(!zo(n)){let Bn=Ag(n.parent);Bn&&Bn.locals&&O(Bn.locals,a,c&111551)&&(x.assertNode(n,xo),qt=n)}break;case 263:case 231:case 264:if(We=O(dr(n).members||U,a,c&788968)){if(!Eg(We,n)){We=void 0;break}if(at&&zo(at)){u&&we(En,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Dc(n)&&c&32){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 233:if(at===n.expression&&n.parent.token===96){let Bn=n.parent.parent;if(Kr(Bn)&&(We=O(dr(Bn).members,a,c&788968))){u&&we(En,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Kt=n.parent.parent,(Kr(Kt)||Kt.kind===264)&&(We=O(dr(Kt).members,a,c&788968))){u&&we(En,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Wa(F)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a===\"arguments\"){We=Dt;break e}break;case 218:if(c&3&&a===\"arguments\"){We=Dt;break e}if(c&16){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(xc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let Mn=ux(n);Mn&&(n=Mn.parent);break;case 169:at&&(at===n.initializer||at===n.name&&ko(at))&&(Xt||(Xt=n));break;case 208:at&&(at===n.initializer||at===n.name&&ko(at))&&JE(n)&&!Xt&&(Xt=n);break;case 195:if(c&262144){let Bn=n.typeParameter.name;if(Bn&&a===Bn.escapedText){We=n.typeParameter.symbol;break e}}break;case 281:at&&at===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Ny(n)&&(ht=n),at=n,n=Df(n)?NW(n)||n.parent:(Tm(n)||T6(n))&&xb(n)||n.parent}if(g&&We&&(!ht||We!==ht.symbol)&&(We.isReferenced|=c),!We){if(at&&(x.assertNode(at,Li),at.commonJsModuleIndicator&&a===\"exports\"&&c&at.symbol.flags))return at.symbol;T||(We=O(he,a,c))}if(!We&&ue&&Jn(ue)&&ue.parent&&Xd(ue.parent,!1))return st;function Sn(){return qt&&!fe?(we(En,En&&qt.type&&wM(qt.type,En.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,is(qt.name),rm(_)),!0):!1}if(We){if(u&&Sn())return}else{u&&r(()=>{if(!En||En.parent.kind!==331&&!k0(En,a,_)&&!Sn()&&!IT(En)&&!n1(En,a,c)&&!Av(En,a)&&!xT(En,a,c)&&!KR(En,a,c)&&!Wh(En,a,c)){let zn,Mn;if(_&&(Mn=Lat(_),Mn&&we(En,u,rm(_),Mn)),!Mn&&N&&GR<VR&&(zn=Uhe(ue,a,c),zn?.valueDeclaration&&sd(zn.valueDeclaration)&&Jm(zn.valueDeclaration)&&(zn=void 0),zn)){let co=ai(zn),no=Ghe(ue,zn,!1),Eo=c===1920||_&&typeof _!=\"string\"&&xs(_)?f.Cannot_find_namespace_0_Did_you_mean_1:no?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,Yi=ET(En,Eo,rm(_),co);Rm(!no,Yi),zn.valueDeclaration&&fa(Yi,vr(zn.valueDeclaration,f._0_is_declared_here,co))}!zn&&!Mn&&_&&we(En,u,rm(_)),GR++}});return}return u&&r(()=>{var zn;if(En&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Mn=zp(We);(Mn.flags&2||Mn.flags&32||Mn.flags&384)&&Ds(Mn,En)}if(We&&In&&(c&111551)===111551&&!(ue.flags&16777216)){let Mn=Oa(We);yn(Mn.declarations)&&ji(Mn.declarations,Bn=>D2(Bn)||Li(Bn)&&!!Bn.symbol.globalExports)&&jc(!F.allowUmdGlobalAccess,En,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ii(a))}if(We&&Xt&&!Hn&&(c&111551)===111551){let Mn=Oa(L$(We)),Bn=Ym(Xt);Mn===dr(Xt)?we(En,f.Parameter_0_cannot_reference_itself,is(Xt.name)):Mn.valueDeclaration&&Mn.valueDeclaration.pos>Xt.pos&&Bn.parent.locals&&O(Bn.parent.locals,Mn.escapedName,c)===Mn&&we(En,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,is(Xt.name),is(En))}if(We&&En&&c&111551&&We.flags&2097152&&!(We.flags&111551)&&!Pb(En)){let Mn=of(We,111551);if(Mn){let Bn=Mn.kind===281||Mn.kind===278||Mn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,co=Ii(a);Oh(we(En,Bn,co),Mn,co)}}if(F.isolatedModules&&We&&In&&(c&111551)===111551){let Bn=O(he,a,c)===We&&Li(at)&&at.locals&&O(at.locals,a,-111552);if(Bn){let co=(zn=Bn.declarations)==null?void 0:zn.find(no=>no.kind===276||no.kind===273||no.kind===274||no.kind===271);co&&!UM(co)&&we(co,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ii(a))}}}),We}function Oh(n,a,c){return a?fa(n,vr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function Lf(n,a){return n.kind!==219&&n.kind!==218?oI(n)||(hs(n)||n.kind===172&&!zo(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Wr(n,1024)?!0:!RS(n)}function Ny(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function rm(n){return fo(n)?Ii(n):is(n)}function Eg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(Df(c.parent)?PS(c.parent):c.parent)===a)return!(Df(c.parent)&&Dr(c.parent.parent.tags,bf))}return!1}function k0(n,a,c){if(!Me(n)||n.escapedText!==a||j8e(n)||OS(n))return!1;let u=lu(n,!1,!1),_=u;for(;_;){if(Kr(_.parent)){let g=dr(_.parent);if(!g)break;let T=Yn(g);if(Qo(T,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,rm(c),ai(g)),!0;if(_===u&&!zo(_)){let N=Cs(g).thisType;if(Qo(N,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,rm(c)),!0}}_=_.parent}return!1}function IT(n){let a=wh(n);return a&&Es(a,64,!0)?(we(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Vl(a)),!0):!1}function wh(n){switch(n.kind){case 80:case 211:return n.parent?wh(n.parent):void 0;case 233:if(gl(n.expression))return n.expression;default:return}}function n1(n,a,c){let u=1920|(Jn(n)?111551:0);if(c===u){let _=yl(Xs(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if($d(g)){x.assert(g.left===n,\"Should only be resolving left side of qualified name as a namespace\");let T=g.right.escapedText;if(Qo(Cs(_),T))return we(g,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ii(a),Ii(T)),!0}return we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ii(a)),!0}}return!1}function Wh(n,a,c){if(c&788584){let u=yl(Xs(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return we(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ii(a)),!0}return!1}function f_(n){return n===\"any\"||n===\"string\"||n===\"number\"||n===\"boolean\"||n===\"never\"||n===\"unknown\"}function Av(n,a){return f_(a)&&n.parent.kind===281?(we(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function KR(n,a,c){if(c&111551){if(f_(a)){let g=n.parent.parent;if(g&&g.parent&&xp(g)){let T=g.token,N=g.parent.kind;N===264&&T===96?we(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ii(a)):N===263&&T===96?we(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ii(a)):N===263&&T===119&&we(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ii(a))}else we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ii(a));return!0}let u=yl(Xs(n,a,788544,void 0,void 0,!1)),_=u&&Qc(u);if(u&&_!==void 0&&!(_&111551)){let g=Ii(a);return YR(a)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):XR(n,u)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g===\"K\"?\"P\":\"K\"):we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function XR(n,a){let c=Rn(n.parent,u=>Pa(u)||Gu(u)?!1:ju(u)||\"quit\");if(c&&c.members.length===1){let u=Cs(a);return!!(u.flags&1048576)&&N5(u,384,!0)}return!1}function YR(n){switch(n){case\"Promise\":case\"Symbol\":case\"Map\":case\"WeakMap\":case\"Set\":case\"WeakSet\":return!0}return!1}function xT(n,a,c){if(c&111127){if(yl(Xs(n,a,1024,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_value,Ii(a)),!0}else if(c&788544&&yl(Xs(n,a,1536,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_type,Ii(a)),!0;return!1}function Ds(n,a){var c;if(x.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>p9(_)||Kr(_)||_.kind===266);if(u===void 0)return x.fail(\"checkResolvedBlockScopedVariable could not find block-scoped declaration\");if(!(u.flags&33554432)&&!bg(u,a)){let _,g=is(mo(u));n.flags&2?_=we(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=we(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=we(a,f.Enum_0_used_before_its_declaration,g):(x.assert(!!(n.flags&128)),xf(F)&&(_=we(a,f.Enum_0_used_before_its_declaration,g))),_&&fa(_,vr(u,f._0_is_declared_here,g))}}function O0(n,a,c){return!!a&&!!Rn(n,u=>u===a||(u===c||Lo(u)&&(!RS(u)||gc(u)&3)?\"quit\":!1))}function RT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function im(n){return n.declarations&&hA(n.declarations,Py)}function Py(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&px(n)||Zn(n)&&hl(n)===2&&px(n)||us(n)&&Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&$R(n.parent.right)||n.kind===304||n.kind===303&&$R(n.initializer)||n.kind===260&&jE(n)||n.kind===208&&jE(n.parent.parent)}function $R(n){return kL(n)||ps(n)&&T_(n)}function DT(n,a){let c=Ly(n);if(c){let _=Tx(c.expression).arguments[0];return Me(c.name)?yl(Qo(PLe(_),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===283){let _=jd(n,N9(n)||gC(n)),g=$u(_);return Nu(n,_,g,!1),g}let u=i1(n.moduleReference,a);return IP(n,u),u}function IP(n,a){if(Nu(n,void 0,a,!1)&&!n.isTypeOnly){let c=of(dr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?\"*\":Ii(c.name.escapedText);fa(we(n.moduleReference,_),vr(c,g,T))}}function nr(n,a,c,u){let _=n.exports.get(\"export=\"),g=_?Qo(Yn(_),a,!0):n.exports.get(a),T=yl(g,u);return Nu(c,g,T,!1),T}function Mc(n){return dl(n)&&!n.isExportEquals||Wr(n,2048)||Ed(n)||j_(n)}function Oi(n){return Ga(n)?e.getModeForUsageLocation(Nn(n),n):void 0}function Wp(n,a){return n===99&&a===1}function Iv(n){return Oi(n)===99&&Zs(n.text,\".json\")}function m_(n,a,c,u){let _=n&&Oi(u);if(n&&_!==void 0&&100<=W&&W<=199){let g=Wp(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=nr(a,\"default\",void 0,!0);return!(g&&ct(g.declarations,Mc)||nr(a,Hs(\"__esModule\"),void 0,c))}return wd(n)?typeof n.externalModuleIndicator!=\"object\"&&!nr(a,Hs(\"__esModule\"),void 0,c):xv(a)}function Xn(n,a){let c=jd(n,n.parent.moduleSpecifier);if(c)return CT(c,n,a)}function CT(n,a,c){var u;let _;pC(n)?_=n:_=nr(n,\"default\",a,c);let g=(u=n.declarations)==null?void 0:u.find(Li),T=iE(a);if(!T)return _;let N=Iv(T),O=m_(g,n,c,T);if(!_&&!O&&!N)if(xv(n)&&!q){let B=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\",me=n.exports.get(\"export=\").valueDeclaration,ue=we(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,ai(n),B);me&&fa(ue,vr(me,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,B))}else V_(a)?Tc(n,a):NT(n,n,a,RA(a)&&a.propertyName||a.name);else if(O||N){let B=$u(n,c)||yl(n,c);return Nu(a,n,B,!1),B}return Nu(a,_,void 0,!1),_}function iE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return U_(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return x.assertNever(n)}}function Tc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))we(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ai(n),ai(a.symbol));else{let g=we(a.name,f.Module_0_has_no_default_export,ai(n)),T=(u=n.exports)==null?void 0:u.get(\"__export\");if(T){let N=(_=T.declarations)==null?void 0:_.find(O=>{var B,Q;return!!(xl(O)&&O.moduleSpecifier&&((Q=(B=jd(O,O.moduleSpecifier))==null?void 0:B.exports)!=null&&Q.has(\"default\")))});N&&fa(g,vr(N,f.export_Asterisk_does_not_re_export_a_default))}}}function Q_(n,a){let c=n.parent.parent.moduleSpecifier,u=jd(n,c),_=Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function om(n,a){let c=n.parent.moduleSpecifier,u=c&&jd(n,c),_=c&&Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function w0(n,a){if(n===tt&&a===tt)return tt;if(n.flags&790504)return n;let c=Ra(n.flags|a.flags,n.escapedName);return x.assert(n.declarations||a.declarations),c.declarations=NE(ro(n.declarations,a.declarations),Hg),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function W0(n,a,c,u){var _;if(n.flags&1536){let g=Qu(n).get(a.escapedText),T=yl(g,u),N=(_=Pi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return Nu(c,g,T,!1,N,a.escapedText),T}}function My(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return yl(Qo(si(c),a))}}function Sg(n,a,c=!1){var u;let _=N9(n)||n.moduleSpecifier,g=jd(n,_),T=!Er(a)&&a.propertyName||a.name;if(!Me(T))return;let N=T.escapedText===\"default\"&&q,O=Pu(g,_,!1,N);if(O&&T.escapedText){if(pC(g))return g;let B;g&&g.exports&&g.exports.get(\"export=\")?B=Qo(Yn(O),T.escapedText,!0):B=My(O,T.escapedText),B=yl(B,c);let Q=W0(O,T,a,c);if(Q===void 0&&T.escapedText===\"default\"){let ue=(u=g.declarations)==null?void 0:u.find(Li);(Iv(_)||m_(ue,g,c,_))&&(Q=$u(g,c)||yl(g,c))}let me=Q&&B&&Q!==B?w0(B,Q):Q||B;return me||NT(g,O,n,T),me}}function NT(n,a,c,u){var _;let g=mp(n,c),T=is(u),N=jQ(u,a);if(N!==void 0){let O=ai(N),B=we(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,O);N.valueDeclaration&&fa(B,vr(N.valueDeclaration,f._0_is_declared_here,O))}else(_=n.exports)!=null&&_.has(\"default\")?we(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):am(c,u,T,n,g)}function am(n,a,c,u,_){var g,T;let N=(T=(g=Vr(u.valueDeclaration,L_))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),O=u.exports;if(N){let B=O?.get(\"export=\");if(B)Nm(B,N)?oE(n,a,c,_):we(a,f.Module_0_has_no_exported_member_1,_,c);else{let Q=O?Dr(Ume(O),ue=>!!Nm(ue,N)):void 0,me=Q?we(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,ai(Q)):we(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);N.declarations&&fa(me,...nn(N.declarations,(ue,We)=>vr(ue,We===0?f._0_is_declared_here:f.and_here,c)))}}else we(a,f.Module_0_has_no_exported_member_1,_,c)}function oE(n,a,c,u){if(W>=5){let _=z_(F)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else if(Jn(n)){let _=z_(F)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else{let _=z_(F)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c,c,u)}}function Fh(n,a){if(Iu(n)&&ar(n.propertyName||n.name)===\"default\"){let T=iE(n),N=T&&jd(n,T);if(N)return CT(N,n,a)}let c=Na(n)?Ym(n):n.parent.parent.parent,u=Ly(c),_=Sg(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Me(g)?yl(Qo(Yn(_),g.escapedText),a):(Nu(n,void 0,_,!1),_)}function Ly(n){if(yi(n)&&n.initializer&&Er(n.initializer))return n.initializer}function r1(n,a){if(qm(n.parent)){let c=$u(n.parent.symbol,a);return Nu(n,void 0,c,!1),c}}function aE(n,a,c){if(ar(n.propertyName||n.name)===\"default\"){let _=iE(n),g=_&&jd(n,_);if(g)return CT(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?Sg(n.parent.parent,n,c):Es(n.propertyName||n.name,a,!1,c);return Nu(n,void 0,u,!1),u}function QR(n,a){let c=dl(n)?n.expression:n.right,u=F0(c,a);return Nu(n,void 0,u,!1),u}function F0(n,a){if(Dc(n))return Ml(n).symbol;if(!Su(n)&&!gl(n))return;let c=Es(n,901119,!0,a);return c||(Ml(n),Fr(n).resolvedSymbol)}function PT(n,a){if(Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return F0(n.parent.right,a)}function fp(n,a=!1){switch(n.kind){case 271:case 260:return DT(n,a);case 273:return Xn(n,a);case 274:return Q_(n,a);case 280:return om(n,a);case 276:case 208:return Fh(n,a);case 281:return aE(n,901119,a);case 277:case 226:return QR(n,a);case 270:return r1(n,a);case 304:return Es(n.name,901119,!0,a);case 303:return F0(n.initializer,a);case 212:case 211:return PT(n,a);default:return x.fail()}}function MT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function yl(n,a){return!a&&MT(n)?fc(n):n}function fc(n){x.assert((n.flags&2097152)!==0,\"Should only get Alias here.\");let a=Pi(n);if(a.aliasTarget)a.aliasTarget===yt&&(a.aliasTarget=tt);else{a.aliasTarget=yt;let c=im(n);if(!c)return x.fail();let u=fp(c);a.aliasTarget===yt?a.aliasTarget=u||tt:we(c,f.Circular_definition_of_import_alias_0,ai(n))}return a.aliasTarget}function LT(n){if(Pi(n).aliasTarget!==yt)return fc(n)}function Qc(n,a,c){let u=a&&of(n),_=u&&xl(u),g=u&&(_?jd(u.moduleSpecifier,u.moduleSpecifier,!0):fc(u.symbol)),T=_&&g?Z_(g):void 0,N=c?0:n.flags,O;for(;n.flags&2097152;){let B=zp(fc(n));if(!_&&B===g||T?.get(B.escapedName)===B)break;if(B===tt)return-1;if(B===n||O?.has(B))break;B.flags&2097152&&(O?O.add(B):O=new Set([n,B])),N|=B.flags,n=B}return N}function Nu(n,a,c,u,_,g){if(!n||Er(n))return!1;let T=dr(n);if(Sb(n)){let O=Pi(T);return O.typeOnlyDeclaration=n,!0}if(_){let O=Pi(T);return O.typeOnlyDeclaration=_,T.escapedName!==g&&(O.typeOnlyExportStarName=g),!0}let N=Pi(T);return sE(N,a,u)||sE(N,c,u)}function sE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get(\"export=\"))??a,g=_.declarations&&Dr(_.declarations,Sb);n.typeOnlyDeclaration=g??Pi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function of(n,a){if(!(n.flags&2097152))return;let c=Pi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?yl(Z_(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):fc(c.typeOnlyDeclaration.symbol);return Qc(u)&a?c.typeOnlyDeclaration:void 0}}function ky(n){if(!ot)return;let a=dr(n),c=fc(a);c&&(c===tt||Qc(a,!0)&111551&&!Bw(c))&&Oy(a)}function Oy(n){x.assert(ot);let a=Pi(n);if(!a.referenced){a.referenced=!0;let c=im(n);if(!c)return x.fail();ox(c)&&Qc(yl(n))&111551&&Ml(c.moduleReference)}}function Lc(n){let a=Pi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function i1(n,a){return n.kind===80&&LC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Es(n,1920,!1,a):(x.assert(n.parent.kind===271),Es(n,901119,!1,a))}function mp(n,a){return n.parent?mp(n.parent,a)+\".\"+ai(n):ai(n,a,void 0,36)}function kT(n){for(;$d(n.parent);)n=n.parent;return n}function OT(n){let a=dp(n),c=Xs(a,a.escapedText,111551,void 0,a,!0);if(c){for(;$d(a.parent);){let u=Yn(c);if(c=Qo(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Es(n,a,c,u,_){if(_l(n))return;let g=1920|(Jn(n)?a&111551:0),T;if(n.kind===80){let N=a===g||xs(n)?f.Cannot_find_namespace_0:Ake(dp(n)),O=Jn(n)&&!xs(n)?ZR(n,a):void 0;if(T=Oa(Xs(_||n,n.escapedText,a,c||O?void 0:N,n,!0,!1)),!T)return Oa(O)}else if(n.kind===166||n.kind===211){let N=n.kind===166?n.left:n.expression,O=n.kind===166?n.right:n.name,B=Es(N,g,c,!1,_);if(!B||_l(O))return;if(B===tt)return B;if(B.valueDeclaration&&Jn(B.valueDeclaration)&&zd(F)!==100&&yi(B.valueDeclaration)&&B.valueDeclaration.initializer&&lwe(B.valueDeclaration.initializer)){let Q=B.valueDeclaration.initializer.arguments[0],me=jd(Q,Q);if(me){let ue=$u(me);ue&&(B=ue)}}if(T=Oa(gu(Qu(B),O.escapedText,a)),!T&&B.flags&2097152&&(T=Oa(gu(Qu(fc(B)),O.escapedText,a))),!T){if(!c){let Q=mp(B),me=is(O),ue=jQ(O,B);if(ue){we(O,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,me,ai(ue));return}let We=$d(n)&&kT(n);if(Se&&a&788968&&We&&!Wx(We.parent)&&OT(We)){we(We,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Wu(We));return}if(a&1920&&$d(n.parent)){let ht=Oa(gu(Qu(B),O.escapedText,788968));if(ht){we(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ai(ht),Ii(n.parent.right.escapedText));return}}we(O,f.Namespace_0_has_no_exported_member_1,Q,me)}return}}else x.assertNever(n,\"Unknown entity name kind.\");return x.assert((tl(T)&1)===0,\"Should never get an instantiated symbol here.\"),!xs(n)&&Su(n)&&(T.flags&2097152||n.parent.kind===277)&&Nu(V9(n),T,void 0,!0),T.flags&a||u?T:fc(T)}function ZR(n,a){if(U$(n.parent)){let c=lE(n.parent);if(c)return Xs(c,n.escapedText,a,void 0,n,!0)}}function lE(n){if(Rn(n,_=>q1(_)||_.flags&16777216?bf(_):\"quit\"))return;let c=PS(n);if(c&&Cc(c)&&AL(c.expression)){let _=dr(c.expression.left);if(_)return z0(_)}if(c&&ps(c)&&AL(c.parent)&&Cc(c.parent.parent)){let _=dr(c.parent.left);if(_)return z0(_)}if(c&&(qf(c)||Hl(c))&&Zn(c.parent.parent)&&hl(c.parent.parent)===6){let _=dr(c.parent.parent.left);if(_)return z0(_)}let u=Rb(n);if(u&&Lo(u)){let _=dr(u);return _&&_.valueDeclaration}}function z0(n){let a=n.parent.valueDeclaration;return a?(vC(a)?LA(a):SS(a)?yL(a):void 0)||a:void 0}function xP(n){let a=n.valueDeclaration;if(!a||!Jn(a)||n.flags&524288||Ib(a,!1))return;let c=yi(a)?yL(a):LA(a);if(c){let u=Fp(c);if(u)return Zhe(u,n)}}function jd(n,a,c){let _=zd(F)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return Tg(n,a,c?void 0:_)}function Tg(n,a,c,u=!1){return Ga(a)?__(n,a.text,c,a,u):void 0}function __(n,a,c,u,_=!1){var g,T,N,O,B,Q,me,ue,We,at,ht;if(Ui(a,\"@types/\")){let Bn=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,co=jD(a,\"@types/\");we(u,Bn,co,a)}let qt=w$(a,!0);if(qt)return qt;let Xt=Nn(n),Hn=Ga(n)?n:((g=Il(n)?n:n.parent&&Il(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=ey(n)?n:void 0)==null?void 0:T.argument.literal)||(yi(n)&&n.initializer&&Xd(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((N=Rn(n,lp))==null?void 0:N.arguments[0])||((O=Rn(n,cc))==null?void 0:O.moduleSpecifier)||((B=Rn(n,Ab))==null?void 0:B.moduleReference.expression)||((Q=Rn(n,xl))==null?void 0:Q.moduleSpecifier),En=Hn&&Ga(Hn)?e.getModeForUsageLocation(Xt,Hn):Xt.impliedNodeFormat,Kt=zd(F),In=(me=e.getResolvedModule(Xt,a,En))==null?void 0:me.resolvedModule,Sn=In&&FH(F,In,Xt),zn=In&&(!Sn||Sn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(In.resolvedFileName);if(zn){if(Sn&&we(u,Sn,a,In.resolvedFileName),In.resolvedUsingTsExtension&&Yc(a)){let Bn=((ue=Rn(n,cc))==null?void 0:ue.importClause)||Rn(n,hm(Nc,xl));(Bn&&!Bn.isTypeOnly||Rn(n,lp))&&we(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Mn(x.checkDefined(JW(a))))}else if(In.resolvedUsingTsExtension&&!nR(F,Xt.fileName)){let Bn=((We=Rn(n,cc))==null?void 0:We.importClause)||Rn(n,hm(Nc,xl));if(!(Bn?.isTypeOnly||Rn(n,Dh))){let co=x.checkDefined(JW(a));we(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,co)}}if(zn.symbol){if(In.isExternalLibraryImport&&!VC(In.extension)&&o1(!1,u,Xt,En,In,a),Kt===3||Kt===99){let Bn=Xt.impliedNodeFormat===1&&!Rn(n,lp)||!!Rn(n,Nc),co=Rn(n,no=>Dh(no)||xl(no)||cc(no));if(Bn&&zn.impliedNodeFormat===99&&!hre(co))if(Rn(n,Nc))we(u,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let no,Eo=og(Xt.fileName);if(Eo===\".ts\"||Eo===\".js\"||Eo===\".tsx\"||Eo===\".jsx\"){let Yi=Xt.packageJsonScope,ic=Eo===\".ts\"?\".mts\":Eo===\".js\"?\".mjs\":void 0;Yi&&!Yi.contents.packageJsonContent.type?ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,ic,wr(Yi.packageDirectory,\"package.json\")):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,wr(Yi.packageDirectory,\"package.json\")):ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,ic):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}La.add(eg(Nn(u),u,So(no,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return Oa(zn.symbol)}c&&we(u,f.File_0_is_not_a_module,zn.fileName);return}if(Nf){let Bn=pB(Nf,co=>co.pattern,a);if(Bn){let co=Vd&&Vd.get(a);return Oa(co||Bn.symbol)}}if(In&&!VC(In.extension)&&Sn===void 0||Sn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let Bn=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;we(u,Bn,a,In.resolvedFileName)}else o1(ce&&!!c,u,Xt,En,In,a);return}if(c){if(In){let Bn=e.getProjectReferenceRedirect(In.resolvedFileName);if(Bn){we(u,f.Output_file_0_has_not_been_built_from_source_file_1,Bn,In.resolvedFileName);return}}if(Sn)we(u,Sn,a,In.resolvedFileName);else{let Bn=op(a)&&!TA(a),co=Kt===3||Kt===99;if(!Mb(F)&&el(a,\".json\")&&Kt!==1&&rF(F))we(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(En===99&&co&&Bn){let no=Qi(a,Ur(Xt.path)),Eo=(at=qR.find(([Yi,ic])=>e.fileExists(no+Yi)))==null?void 0:at[1];Eo?we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Eo):we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((ht=e.getResolvedModule(Xt,a,En))!=null&&ht.alternateResult){let no=Q8(Xt,e,a,En,a);jc(!0,u,So(no,c,a))}else we(u,c,a)}}return;function Mn(Bn){let co=QL(a,Bn);if(nF(W)||En===99){let no=Yc(a)&&nR(F);return co+(Bn===\".mts\"||Bn===\".d.mts\"?no?\".mts\":\".mjs\":Bn===\".cts\"||Bn===\".d.mts\"?no?\".cts\":\".cjs\":no?\".ts\":\".js\")}return co}}function o1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let N;!Ic(T)&&_&&(N=Q8(c,e,T,u,_.name)),jc(n,a,So(N,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function $u(n,a){if(n?.exports){let c=yl(n.exports.get(\"export=\"),a),u=a1(Oa(c),Oa(n));return Oa(u)||n}}function a1(n,a){if(!n||n===tt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=Pi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:AT(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=Vo()),a.exports.forEach((_,g)=>{g!==\"export=\"&&u.exports.set(g,u.exports.has(g)?Pf(u.exports.get(g),_):_)}),u===n&&(Pi(u).resolvedExports=void 0,Pi(u).resolvedMembers=void 0),Pi(u).cjsExportMerged=u,c.cjsExportMerged=u}function Pu(n,a,c,u){var _;let g=$u(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!Vs(g,312)){let N=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\";return we(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),g}let T=a.parent;if(cc(T)&&cx(T)||lp(T)){let N=lp(T)?T.arguments[0]:T.moduleSpecifier,O=Yn(g),B=awe(O,g,n,N);if(B)return s1(g,B,T);let Q=(_=n?.declarations)==null?void 0:_.find(Li),me=Q&&Wp(Oi(N),Q.impliedNodeFormat);if(z_(F)||me){let ue=k7(O,0);if((!ue||!ue.length)&&(ue=k7(O,1)),ue&&ue.length||Qo(O,\"default\",!0)||me){let We=O.flags&3670016?swe(O,g,n,N):ege(g,g.parent);return s1(g,We,T)}}}}return g}function s1(n,a,c){let u=Ra(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=Om(a);return u.links.type=cs(u,_.members,je,je,_.indexInfos),u}function xv(n){return n.exports.get(\"export=\")!==void 0}function wT(n){return Ume(Z_(n))}function eD(n){let a=wT(n),c=$u(n);if(c!==n){let u=Yn(c);wy(u)&&Pr(a,Xa(u))}return a}function tD(n,a){Z_(n).forEach((_,g)=>{V0(g)||a(_,g)});let u=$u(n);if(u!==n){let _=Yn(u);wy(_)&&ntt(_,(g,T)=>{a(g,T)})}}function WT(n,a){let c=Z_(a);if(c)return c.get(n)}function nD(n,a){let c=WT(n,a);if(c)return c;let u=$u(a);if(u===a)return;let _=Yn(u);return wy(_)?Qo(_,n):void 0}function wy(n){return!(n.flags&402784252||br(n)&1||ff(n)||ga(n))}function Qu(n){return n.flags&6256?Dme(n,\"resolvedExports\"):n.flags&1536?Z_(n):n.exports||U}function Z_(n){let a=Pi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=FT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function rD(n,a,c,u){a&&a.forEach((_,g)=>{if(g===\"default\")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:Vl(u.moduleSpecifier)});else if(c&&u&&T&&yl(T)!==yl(_)){let N=c.get(g);N.exportsWithDuplicate?N.exportsWithDuplicate.push(u):N.exportsWithDuplicate=[u]}})}function FT(n){let a=[],c,u=new Set;n=$u(n);let _=g(n)||U;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,N,O){if(!O&&T?.exports&&T.exports.forEach((me,ue)=>u.add(ue)),!(T&&T.exports&&jp(a,T)))return;let B=new Map(T.exports),Q=T.exports.get(\"__export\");if(Q){let me=Vo(),ue=new Map;if(Q.declarations)for(let We of Q.declarations){let at=jd(We,We.moduleSpecifier),ht=g(at,We,O||We.isTypeOnly);rD(me,ht,ue,We)}ue.forEach(({exportsWithDuplicate:We},at)=>{if(!(at===\"export=\"||!(We&&We.length)||B.has(at)))for(let ht of We)La.add(vr(ht,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ue.get(at).specifierText,Ii(at)))}),rD(B,me)}return N?.isTypeOnly&&(c??(c=new Map),B.forEach((me,ue)=>c.set(ue,N))),B}}function Oa(n){let a;return n&&n.mergeId&&(a=jR[n.mergeId])?a:n}function dr(n){return Oa(n.symbol&&L$(n.symbol))}function Fp(n){return qm(n)?dr(n):void 0}function nu(n){return Oa(n.parent&&L$(n.parent))}function B0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&Fp(n.valueDeclaration.parent)||n}function iD(n,a){let c=Nn(a),u=Fa(c),_=Pi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let N of c.imports){if(xs(N))continue;let O=jd(a,N,!0);!O||!zh(O,n)||(g=pn(g,O))}if(yn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let N of T){if(!wl(N))continue;let O=dr(N);zh(O,n)&&(g=pn(g,O))}return _.extendedContainers=g||je}function cE(n,a,c){let u=nu(n);if(u&&!(n.flags&262144))return O(u);let _=Fi(n.declarations,Q=>{if(!sd(Q)&&Q.parent){if(Rd(Q.parent))return dr(Q.parent);if(n_(Q.parent)&&Q.parent.parent&&$u(dr(Q.parent.parent))===n)return dr(Q.parent.parent)}if(Dc(Q)&&Zn(Q.parent)&&Q.parent.operatorToken.kind===64&&us(Q.parent.left)&&gl(Q.parent.left.expression))return Eh(Q.parent.left)||DS(Q.parent.left.expression)?dr(Nn(Q)):(Ml(Q.parent.left.expression),Fr(Q.parent.left.expression).resolvedSymbol)});if(!yn(_))return;let g=Fi(_,Q=>zh(Q,n)?Q:void 0),T=[],N=[];for(let Q of g){let[me,...ue]=O(Q);T=pn(T,me),N=Pr(N,ue)}return ro(T,N);function O(Q){let me=Fi(Q.declarations,B),ue=a&&iD(n,a),We=G0(Q,c);if(a&&Q.flags&Ig(c)&&Wy(Q,a,1920,!1))return pn(ro(ro([Q],me),ue),We);let at=!(Q.flags&Ig(c))&&Q.flags&788968&&Cs(Q).flags&524288&&c===111551?U0(a,qt=>hc(qt,Xt=>{if(Xt.flags&Ig(c)&&Yn(Xt)===Cs(Q))return Xt})):void 0,ht=at?[at,...me,Q]:[...me,Q];return ht=pn(ht,We),ht=Pr(ht,ue),ht}function B(Q){return u&&zT(Q,u)}}function G0(n,a){let c=!!yn(n.declarations)&&Ta(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(ma(c)&&c===c.parent.initializer||ju(c)&&c===c.parent.type))return dr(c.parent)}function zT(n,a){let c=wi(n),u=c&&c.exports&&c.exports.get(\"export=\");return u&&Nm(u,a)?c:void 0}function zh(n,a){if(n===nu(a))return a;let c=n.exports&&n.exports.get(\"export=\");if(c&&Nm(c,a))return n;let u=Qu(n),_=u.get(a.escapedName);return _&&Nm(_,a)?_:hc(u,g=>{if(Nm(g,a))return g})}function Nm(n,a){if(Oa(yl(Oa(n)))===Oa(yl(Oa(a))))return n}function zp(n){return Oa(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function sm(n,a){return!!(n.flags&111551||n.flags&2097152&&Qc(n,!a)&111551)}function Ag(n){let a=n.members;for(let c of a)if(c.kind===176&&gf(c.body))return c}function Bh(n){var a;let c=new p(zt,n);return m++,c.id=m,(a=qn)==null||a.recordType(c),c}function Gh(n,a){let c=Bh(n);return c.symbol=a,c}function l1(n){return new p(zt,n)}function Fl(n,a,c=0,u){oD(a,u);let _=Bh(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function oD(n,a){let c=`${n},${a??\"\"}`;et.has(c)&&x.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:\"\"}; you may need to pass a name to createIntrinsicType.`),et.add(c)}function af(n,a){let c=Gh(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function eh(){return Br(bo(GU.keys(),yu))}function Bp(n){return Gh(262144,n)}function V0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function dE(n){let a;return n.forEach((c,u)=>{c1(c,u)&&(a||(a=[])).push(c)}),a||je}function c1(n,a){return!V0(a)&&sm(n)}function BT(n){let a=dE(n),c=z$(n);return c?ro(a,[c]):a}function Gp(n,a,c,u,_){let g=n;return g.members=a,g.properties=je,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==U&&(g.properties=dE(a)),g}function cs(n,a,c,u,_){return Gp(af(16,n),a,c,u,_)}function j0(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Cr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=cs(n.symbol,n.members,n.callSignatures,ct(a)?a:je,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function U0(n,a){let c;for(let u=n;u;u=u.parent){if(L_(u)&&u.locals&&!$_(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!sp(u))break;case 267:let _=dr(u);if(c=a(_?.exports||U,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((dr(u).members||U).forEach((T,N)=>{T.flags&788968&&(g||(g=Vo())).set(N,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(he,void 0,!0)}function Ig(n){return n===111551?111551:1920}function Wy(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=Pi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),N=U0(a,(Xt,Hn,En,Kt)=>Kt),O=`${u?0:1}|${N&&Fa(N)}|${c}`;if(T.has(O))return T.get(O);let B=na(n),Q=_.get(B);Q||_.set(B,Q=[]);let me=U0(a,ue);return T.set(O,me),me;function ue(Xt,Hn,En){if(!jp(Q,Xt))return;let Kt=ht(Xt,Hn,En);return Q.pop(),Kt}function We(Xt,Hn){return!uE(Xt,a,Hn)||!!Wy(Xt.parent,a,Ig(Hn),u,_)}function at(Xt,Hn,En){return(n===(Hn||Xt)||Oa(n)===Oa(Hn||Xt))&&!ct(Xt.declarations,Rd)&&(En||We(Oa(Xt),c))}function ht(Xt,Hn,En){return at(Xt.get(n.escapedName),void 0,Hn)?[n]:hc(Xt,In=>{if(In.flags&2097152&&In.escapedName!==\"export=\"&&In.escapedName!==\"default\"&&!(QW(In)&&a&&wl(Nn(a)))&&(!u||ct(In.declarations,Ab))&&(!En||!ct(In.declarations,Jte))&&(Hn||!Vs(In,281))){let Sn=fc(In),zn=qt(In,Sn,Hn);if(zn)return zn}if(In.escapedName===n.escapedName&&In.exportSymbol&&at(Oa(In.exportSymbol),void 0,Hn))return[n]})||(Xt===he?qt(Ke,Ke,Hn):void 0)}function qt(Xt,Hn,En){if(at(Xt,Hn,En))return[Xt];let Kt=Qu(Hn),In=Kt&&ue(Kt,!0);if(In&&We(Xt,Ig(c)))return[Xt].concat(In)}}function uE(n,a,c){let u=!1;return U0(a,_=>{let g=Oa(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!Vs(g,281);return g=T?fc(g):g,(T?Qc(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ne(n,a){return ri(n,a,788968,!1,!0).accessibility===0}function rt(n,a){return ri(n,a,111551,!1,!0).accessibility===0}function Ht(n,a,c){return ri(n,a,c,!1,!1).accessibility===0}function yr(n,a,c,u,_,g){if(!yn(n))return;let T,N=!1;for(let O of n){let B=Wy(O,a,u,!1);if(B){T=O;let ue=ru(B[0],_);if(ue)return ue}if(g&&ct(O.declarations,Rd)){if(_){N=!0;continue}return{accessibility:0}}let Q=cE(O,a,u),me=yr(Q,a,c,c===O?Ig(u):u,_,g);if(me)return me}if(N)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ai(c,a,u),errorModuleName:T!==c?ai(T,a,1920):void 0}}function vi(n,a,c,u){return ri(n,a,c,u,!0)}function ri(n,a,c,u,_){if(n&&a){let g=yr([n],a,n,c,u,_);if(g)return g;let T=an(n.declarations,wi);if(T){let N=wi(a);if(T!==N)return{accessibility:2,errorSymbolName:ai(n,a,c),errorModuleName:ai(T),errorNode:Jn(a)?a:void 0}}return{accessibility:1,errorSymbolName:ai(n,a,c)}}return{accessibility:0}}function wi(n){let a=Rn(n,$o);return a&&dr(a)}function $o(n){return sd(n)||n.kind===312&&sp(n)}function Rd(n){return iW(n)||n.kind===312&&sp(n)}function ru(n,a){let c;if(!ji(Cr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,N;if(!Pm(g)){let O=RT(g);if(O&&!Wr(O,32)&&Pm(O.parent))return _(g,O);if(yi(g)&&cl(g.parent.parent)&&!Wr(g.parent.parent,32)&&Pm(g.parent.parent.parent))return _(g,g.parent.parent);if(oW(g)&&!Wr(g,32)&&Pm(g.parent))return _(g,g);if(Na(g)){if(n.flags&2097152&&Jn(g)&&((T=g.parent)!=null&&T.parent)&&yi(g.parent.parent)&&((N=g.parent.parent.parent)!=null&&N.parent)&&cl(g.parent.parent.parent.parent)&&!Wr(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&Pm(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let B=Rn(g,cl);return Wr(B,32)?!0:Pm(B.parent)?_(g,B):!1}}return!1}return!0}function _(g,T){return a&&(Fr(g).isVisible=!0,c=Kh(c,T)),!0}}function sf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!yh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Fy(n,a){let c=sf(n),u=dp(n),_=Xs(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&YE(u)&&vi(dr(lu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&ru(_,!0)||{accessibility:1,errorSymbolName:Vl(u),errorNode:u}}function ai(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?ft.symbolToNode:ft.symbolToEntityName;return _?N(_).getText():dC(N);function N(O){let B=T(n,c,a,g),Q=a?.kind===312?hH():y0(),me=a&&Nn(a);return Q.writeNode(4,B,me,O),O}}function th(n,a,c=0,u,_){return _?g(_).getText():dC(g);function g(T){let N;c&262144?N=u===1?185:184:N=u===1?180:179;let O=ft.signatureToSignatureDeclaration(n,N,a,GT(c)|70221824|512),B=hk(),Q=a&&Nn(a);return B.writeNode(4,O,Q,nV(T)),T}}function Pn(n,a,c=1064960,u=GL(\"\")){let _=F.noErrorTruncation||c&1,g=ft.typeToTypeNode(n,a,GT(c)|70221824|(_?1:0));if(g===void 0)return x.fail(\"should always get typenode\");let T=n!==Ct?y0():_H(),N=a&&Nn(a);T.writeNode(4,g,N,u);let O=u.getText(),B=_?AF*2:i2*2;return B&&O&&O.length>=B?O.substr(0,B-3)+\"...\":O}function d1(n,a){let c=By(n.symbol)?Pn(n,n.symbol.valueDeclaration):Pn(n),u=By(a.symbol)?Pn(a,a.symbol.valueDeclaration):Pn(a);return c===u&&(c=zy(n),u=zy(a)),[c,u]}function zy(n){return Pn(n,void 0,64)}function By(n){return n&&!!n.valueDeclaration&&lt(n.valueDeclaration)&&!uf(n.valueDeclaration)}function GT(n=0){return n&848330095}function H0(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===cf(n.symbol)||!!(n.flags&524288)&&!!(br(n)&16777216))}function h_(){return{typeToTypeNode:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>u(Qe,Xr)),indexInfoToIndexSignatureDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>Q(Qe,Xr,void 0)),signatureToSignatureDeclaration:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>me(Qe,ve,li)),symbolToEntityName:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>Yi(Qe,li,ve,!1)),symbolToExpression:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>ic(Qe,li,ve)),symbolToTypeParameterDeclarations:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>In(Qe,Xr)),symbolToParameterDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>qt(Qe,Xr)),typeParameterToDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>at(Qe,Xr)),symbolTableToDeclarationStatements:(Qe,ve,vn,_r,Xr)=>a(ve,vn,_r,li=>Ys(Qe,li,Xr)),symbolToNode:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>n(Qe,li,ve))};function n(Qe,ve,vn){if(ve.flags&1073741824){if(Qe.valueDeclaration){let Xr=mo(Qe.valueDeclaration);if(Xr&&Pa(Xr))return Xr}let _r=Pi(Qe).nameType;if(_r&&_r.flags&9216)return ve.enclosingDeclaration=_r.symbol.valueDeclaration,P.createComputedPropertyName(ic(_r.symbol,ve,vn))}return ic(Qe,ve,vn)}function a(Qe,ve,vn,_r){x.assert(Qe===void 0||(Qe.flags&16)===0);let Xr=vn?.trackSymbol?vn.moduleResolverHost:ve&134217728?w3e(e):void 0,li={enclosingDeclaration:Qe,flags:ve||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};li.tracker=new VU(li,vn,Xr);let ci=_r(li);return li.truncating&&li.flags&1&&li.tracker.reportTruncationError(),li.encounteredError?void 0:ci}function c(Qe){return Qe.truncating?Qe.truncating:Qe.truncating=Qe.approximateLength>(Qe.flags&1?AF:i2)}function u(Qe,ve){let vn=ve.flags,_r=_(Qe,ve);return ve.flags=vn,_r}function _(Qe,ve){var vn,_r;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xr=ve.flags&8388608;if(ve.flags&=-8388609,!Qe){if(!(ve.flags&262144)){ve.encounteredError=!0;return}return ve.approximateLength+=3,P.createKeywordTypeNode(133)}if(ve.flags&536870912||(Qe=wm(Qe)),Qe.flags&1)return Qe.aliasSymbol?P.createTypeReferenceNode(Bn(Qe.aliasSymbol),O(Qe.aliasTypeArguments,ve)):Qe===Ct?iN(P.createKeywordTypeNode(133),3,\"unresolved\"):(ve.approximateLength+=3,P.createKeywordTypeNode(Qe===Qt?141:133));if(Qe.flags&2)return P.createKeywordTypeNode(159);if(Qe.flags&4)return ve.approximateLength+=6,P.createKeywordTypeNode(154);if(Qe.flags&8)return ve.approximateLength+=6,P.createKeywordTypeNode(150);if(Qe.flags&64)return ve.approximateLength+=6,P.createKeywordTypeNode(163);if(Qe.flags&16&&!Qe.aliasSymbol)return ve.approximateLength+=7,P.createKeywordTypeNode(136);if(Qe.flags&1056){if(Qe.symbol.flags&8){let fn=nu(Qe.symbol),zr=co(fn,ve,788968);if(Cs(fn)===Qe)return zr;let Ai=$s(Qe.symbol);return Tp(Ai,0)?ii(zr,P.createTypeReferenceNode(Ai,void 0)):Dh(zr)?(zr.isTypeOf=!0,P.createIndexedAccessTypeNode(zr,P.createLiteralTypeNode(P.createStringLiteral(Ai)))):Yp(zr)?P.createIndexedAccessTypeNode(P.createTypeQueryNode(zr.typeName),P.createLiteralTypeNode(P.createStringLiteral(Ai))):x.fail(\"Unhandled type node kind returned from `symbolToTypeNode`.\")}return co(Qe.symbol,ve,788968)}if(Qe.flags&128)return ve.approximateLength+=Qe.value.length+2,P.createLiteralTypeNode($n(P.createStringLiteral(Qe.value,!!(ve.flags&268435456)),16777216));if(Qe.flags&256){let fn=Qe.value;return ve.approximateLength+=(\"\"+fn).length,P.createLiteralTypeNode(fn<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-fn)):P.createNumericLiteral(fn))}if(Qe.flags&2048)return ve.approximateLength+=ZE(Qe.value).length+1,P.createLiteralTypeNode(P.createBigIntLiteral(Qe.value));if(Qe.flags&512)return ve.approximateLength+=Qe.intrinsicName.length,P.createLiteralTypeNode(Qe.intrinsicName===\"true\"?P.createTrue():P.createFalse());if(Qe.flags&8192){if(!(ve.flags&1048576)){if(rt(Qe.symbol,ve.enclosingDeclaration))return ve.approximateLength+=6,co(Qe.symbol,ve,111551);ve.tracker.reportInaccessibleUniqueSymbolError&&ve.tracker.reportInaccessibleUniqueSymbolError()}return ve.approximateLength+=13,P.createTypeOperatorNode(158,P.createKeywordTypeNode(155))}if(Qe.flags&16384)return ve.approximateLength+=4,P.createKeywordTypeNode(116);if(Qe.flags&32768)return ve.approximateLength+=9,P.createKeywordTypeNode(157);if(Qe.flags&65536)return ve.approximateLength+=4,P.createLiteralTypeNode(P.createNull());if(Qe.flags&131072)return ve.approximateLength+=5,P.createKeywordTypeNode(146);if(Qe.flags&4096)return ve.approximateLength+=6,P.createKeywordTypeNode(155);if(Qe.flags&67108864)return ve.approximateLength+=6,P.createKeywordTypeNode(151);if(YC(Qe))return ve.flags&4194304&&(!ve.encounteredError&&!(ve.flags&32768)&&(ve.encounteredError=!0),(_r=(vn=ve.tracker).reportInaccessibleThisError)==null||_r.call(vn)),ve.approximateLength+=4,P.createThisTypeNode();if(!Xr&&Qe.aliasSymbol&&(ve.flags&16384||ne(Qe.aliasSymbol,ve.enclosingDeclaration))){let fn=O(Qe.aliasTypeArguments,ve);return V0(Qe.aliasSymbol.escapedName)&&!(Qe.aliasSymbol.flags&32)?P.createTypeReferenceNode(P.createIdentifier(\"\"),fn):yn(fn)===1&&Qe.aliasSymbol===Po.symbol?P.createArrayTypeNode(fn[0]):co(Qe.aliasSymbol,ve,788968,fn)}let li=br(Qe);if(li&4)return x.assert(!!(Qe.flags&524288)),Qe.node?Ft(Qe,xn):xn(Qe);if(Qe.flags&262144||li&3){if(Qe.flags&262144&&To(ve.inferTypeParameters,Qe)){ve.approximateLength+=$s(Qe.symbol).length+6;let zr,Ai=iu(Qe);if(Ai){let Ji=OLe(Qe,!0);Ji&&kg(Ai,Ji)||(ve.approximateLength+=9,zr=Ai&&u(Ai,ve))}return P.createInferTypeNode(We(Qe,ve,zr))}if(ve.flags&4&&Qe.flags&262144){let zr=Eo(Qe,ve);return ve.approximateLength+=ar(zr).length,P.createTypeReferenceNode(P.createIdentifier(ar(zr)),void 0)}if(Qe.symbol)return co(Qe.symbol,ve,788968);let fn=(Qe===ae||Qe===X)&&L&&L.symbol?(Qe===X?\"sub-\":\"super-\")+$s(L.symbol):\"?\";return P.createTypeReferenceNode(P.createIdentifier(fn),void 0)}if(Qe.flags&1048576&&Qe.origin&&(Qe=Qe.origin),Qe.flags&3145728){let fn=Qe.flags&1048576?aD(Qe.types):Qe.types;if(yn(fn)===1)return u(fn[0],ve);let zr=O(fn,ve,!0);if(zr&&zr.length>0)return Qe.flags&1048576?P.createUnionTypeNode(zr):P.createIntersectionTypeNode(zr);!ve.encounteredError&&!(ve.flags&262144)&&(ve.encounteredError=!0);return}if(li&48)return x.assert(!!(Qe.flags&524288)),Gt(Qe);if(Qe.flags&4194304){let fn=Qe.type;ve.approximateLength+=6;let zr=u(fn,ve);return P.createTypeOperatorNode(143,zr)}if(Qe.flags&134217728){let fn=Qe.texts,zr=Qe.types,Ai=P.createTemplateHead(fn[0]),Ji=P.createNodeArray(nn(zr,(Ho,Yl)=>P.createTemplateLiteralTypeSpan(u(Ho,ve),(Yl<zr.length-1?P.createTemplateMiddle:P.createTemplateTail)(fn[Yl+1]))));return ve.approximateLength+=2,P.createTemplateLiteralType(Ai,Ji)}if(Qe.flags&268435456){let fn=u(Qe.type,ve);return co(Qe.symbol,ve,788968,[fn])}if(Qe.flags&8388608){let fn=u(Qe.objectType,ve),zr=u(Qe.indexType,ve);return ve.approximateLength+=2,P.createIndexedAccessTypeNode(fn,zr)}if(Qe.flags&16777216)return Ft(Qe,fn=>ci(fn));if(Qe.flags&33554432){let fn=u(Qe.baseType,ve),zr=wP(Qe)&&r_e(\"NoInfer\",!1);return zr?co(zr,ve,788968,[fn]):fn}return x.fail(\"Should be unreachable.\");function ci(fn){let zr=u(fn.checkType,ve);if(ve.approximateLength+=15,ve.flags&4&&fn.root.isDistributive&&!(fn.checkType.flags&262144)){let al=Bp(Ra(262144,\"T\")),Ba=Eo(al,ve),oc=P.createTypeReferenceNode(Ba);ve.approximateLength+=37;let As=eA(fn.root.checkType,al,fn.mapper),Gm=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let qe=u(Gi(fn.root.extendsType,As),ve);ve.inferTypeParameters=Gm;let ut=xr(Gi(si(fn.root.node.trueType),As)),Bt=xr(Gi(si(fn.root.node.falseType),As));return P.createConditionalTypeNode(zr,P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(oc.typeName))),P.createConditionalTypeNode(P.createTypeReferenceNode(P.cloneNode(Ba)),u(fn.checkType,ve),P.createConditionalTypeNode(oc,qe,ut,Bt),P.createKeywordTypeNode(146)),P.createKeywordTypeNode(146))}let Ai=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let Ji=u(fn.extendsType,ve);ve.inferTypeParameters=Ai;let Ho=xr(EE(fn)),Yl=xr(SE(fn));return P.createConditionalTypeNode(zr,Ji,Ho,Yl)}function xr(fn){var zr,Ai,Ji;return fn.flags&1048576?(zr=ve.visitedTypes)!=null&&zr.has(Hd(fn))?(ve.flags&131072||(ve.encounteredError=!0,(Ji=(Ai=ve.tracker)==null?void 0:Ai.reportCyclicStructureError)==null||Ji.call(Ai)),g(ve)):Ft(fn,Ho=>u(Ho,ve)):u(fn,ve)}function ur(fn){return!!fw(fn)}function $e(fn){return!!fn.target&&ur(fn.target)&&!ur(fn)}function It(fn){var zr;x.assert(!!(fn.flags&524288));let Ai=fn.declaration.readonlyToken?P.createToken(fn.declaration.readonlyToken.kind):void 0,Ji=fn.declaration.questionToken?P.createToken(fn.declaration.questionToken.kind):void 0,Ho,Yl,al=!fD(fn)&&!(HT(fn).flags&2)&&ve.flags&4&&!(Vp(fn).flags&262144&&((zr=iu(Vp(fn)))==null?void 0:zr.flags)&4194304);if(fD(fn)){if($e(fn)&&ve.flags&4){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt)}Ho=P.createTypeOperatorNode(143,Yl||u(HT(fn),ve))}else if(al){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt),Ho=Yl}else Ho=u(Vp(fn),ve);let Ba=We(km(fn),ve,Ho),oc=fn.declaration.nameType?u(Dv(fn),ve):void 0,As=u(ob(Ng(fn),!!(oh(fn)&4)),ve),Gm=P.createMappedTypeNode(Ai,Ba,oc,Ji,As,void 0);ve.approximateLength+=10;let qe=$n(Gm,1);if($e(fn)&&ve.flags&4){let ut=Gi(iu(si(fn.declaration.typeParameter.constraint.type))||Zt,fn.mapper);return P.createConditionalTypeNode(u(HT(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),ut.flags&2?void 0:u(ut,ve))),qe,P.createKeywordTypeNode(146))}else if(al)return P.createConditionalTypeNode(u(Vp(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),P.createTypeOperatorNode(143,u(HT(fn),ve)))),qe,P.createKeywordTypeNode(146));return qe}function Gt(fn){var zr,Ai;let Ji=fn.id,Ho=fn.symbol;if(Ho){if(!!(br(fn)&8388608)){let As=fn.node;if(oI(As)&&si(As)===fn){let Gm=fl(ve,As);if(Gm)return Gm}return(zr=ve.visitedTypes)!=null&&zr.has(Ji)?g(ve):Ft(fn,Yt)}let Ba=H0(fn)?788968:111551;if(T_(Ho.valueDeclaration))return co(Ho,ve,Ba);if(Ho.flags&32&&!D$(Ho)&&!(Ho.valueDeclaration&&Kr(Ho.valueDeclaration)&&ve.flags&2048&&(!Zl(Ho.valueDeclaration)||vi(Ho,ve.enclosingDeclaration,Ba,!1).accessibility!==0))||Ho.flags&896||Yl())return co(Ho,ve,Ba);if((Ai=ve.visitedTypes)!=null&&Ai.has(Ji)){let oc=S7(fn);return oc?co(oc,ve,788968):g(ve)}else return Ft(fn,Yt)}else return Yt(fn);function Yl(){var al;let Ba=!!(Ho.flags&8192)&&ct(Ho.declarations,As=>zo(As)),oc=!!(Ho.flags&16)&&(Ho.parent||an(Ho.declarations,As=>As.parent.kind===312||As.parent.kind===268));if(Ba||oc)return(!!(ve.flags&4096)||((al=ve.visitedTypes)==null?void 0:al.has(Ji)))&&(!(ve.flags&8)||rt(Ho,ve.enclosingDeclaration))}}function Ft(fn,zr){var Ai,Ji,Ho;let Yl=fn.id,al=br(fn)&16&&fn.symbol&&fn.symbol.flags&32,Ba=br(fn)&4&&fn.node?\"N\"+Fa(fn.node):fn.flags&16777216?\"N\"+Fa(fn.root.node):fn.symbol?(al?\"+\":\"\")+na(fn.symbol):void 0;ve.visitedTypes||(ve.visitedTypes=new Set),Ba&&!ve.symbolDepth&&(ve.symbolDepth=new Map);let oc=ve.enclosingDeclaration&&Fr(ve.enclosingDeclaration),As=`${Hd(fn)}|${ve.flags}`;oc&&(oc.serializedTypes||(oc.serializedTypes=new Map));let Gm=(Ai=oc?.serializedTypes)==null?void 0:Ai.get(As);if(Gm)return(Ji=Gm.trackedSymbols)==null||Ji.forEach(([Rr,Si,yo])=>ve.tracker.trackSymbol(Rr,Si,yo)),Gm.truncating&&(ve.truncating=!0),ve.approximateLength+=Gm.addedLength,cn(Gm.node);let qe;if(Ba){if(qe=ve.symbolDepth.get(Ba)||0,qe>10)return g(ve);ve.symbolDepth.set(Ba,qe+1)}ve.visitedTypes.add(Yl);let ut=ve.trackedSymbols;ve.trackedSymbols=void 0;let Bt=ve.approximateLength,kn=zr(fn),pr=ve.approximateLength-Bt;return!ve.reportedDiagnostic&&!ve.encounteredError&&((Ho=oc?.serializedTypes)==null||Ho.set(As,{node:kn,truncating:ve.truncating,addedLength:pr,trackedSymbols:ve.trackedSymbols})),ve.visitedTypes.delete(Yl),Ba&&ve.symbolDepth.set(Ba,qe),ve.trackedSymbols=ut,kn;function cn(Rr){return!xs(Rr)&&uo(Rr)===Rr?Rr:Ze(P.cloneNode(un(Rr,cn,void 0,rr)),Rr)}function rr(Rr,Si,yo,Ko,Xo){return Rr&&Rr.length===0?Ze(P.createNodeArray(void 0,Rr.hasTrailingComma),Rr):Dn(Rr,Si,yo,Ko,Xo)}}function Yt(fn){if(vu(fn)||fn.containsError)return It(fn);let zr=Om(fn);if(!zr.properties.length&&!zr.indexInfos.length){if(!zr.callSignatures.length&&!zr.constructSignatures.length)return ve.approximateLength+=2,$n(P.createTypeLiteralNode(void 0),1);if(zr.callSignatures.length===1&&!zr.constructSignatures.length){let al=zr.callSignatures[0];return me(al,184,ve)}if(zr.constructSignatures.length===1&&!zr.callSignatures.length){let al=zr.constructSignatures[0];return me(al,185,ve)}}let Ai=Cr(zr.constructSignatures,al=>!!(al.flags&4));if(ct(Ai)){let al=nn(Ai,XT);return zr.callSignatures.length+(zr.constructSignatures.length-Ai.length)+zr.indexInfos.length+(ve.flags&2048?Wv(zr.properties,oc=>!(oc.flags&4194304)):yn(zr.properties))&&al.push(j0(zr)),u(Zo(al),ve)}let Ji=ve.flags;ve.flags|=4194304;let Ho=qi(zr);ve.flags=Ji;let Yl=P.createTypeLiteralNode(Ho);return ve.approximateLength+=2,$n(Yl,ve.flags&1024?0:1),Yl}function xn(fn){let zr=Ts(fn);if(fn.target===Po||fn.target===Oo){if(ve.flags&2){let Ho=u(zr[0],ve);return P.createTypeReferenceNode(fn.target===Po?\"Array\":\"ReadonlyArray\",[Ho])}let Ai=u(zr[0],ve),Ji=P.createArrayTypeNode(Ai);return fn.target===Po?Ji:P.createTypeOperatorNode(148,Ji)}else if(fn.target.objectFlags&8){if(zr=sc(zr,(Ai,Ji)=>ob(Ai,!!(fn.target.elementFlags[Ji]&2))),zr.length>0){let Ai=Nv(fn),Ji=O(zr.slice(0,Ai),ve);if(Ji){let{labeledElementDeclarations:Ho}=fn.target;for(let al=0;al<Ji.length;al++){let Ba=fn.target.elementFlags[al],oc=Ho?.[al];oc?Ji[al]=P.createNamedTupleMember(Ba&12?P.createToken(26):void 0,P.createIdentifier(Ii(ige(oc))),Ba&2?P.createToken(58):void 0,Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ji[al]=Ba&12?P.createRestTypeNode(Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ba&2?P.createOptionalTypeNode(Ji[al]):Ji[al]}let Yl=$n(P.createTupleTypeNode(Ji),1);return fn.target.readonly?P.createTypeOperatorNode(148,Yl):Yl}}if(ve.encounteredError||ve.flags&524288){let Ai=$n(P.createTupleTypeNode([]),1);return fn.target.readonly?P.createTypeOperatorNode(148,Ai):Ai}ve.encounteredError=!0;return}else{if(ve.flags&2048&&fn.symbol.valueDeclaration&&Kr(fn.symbol.valueDeclaration)&&!rt(fn.symbol,ve.enclosingDeclaration))return Gt(fn);{let Ai=fn.target.outerTypeParameters,Ji=0,Ho;if(Ai){let oc=Ai.length;for(;Ji<oc;){let As=Ji,Gm=wLe(Ai[Ji]);do Ji++;while(Ji<oc&&wLe(Ai[Ji])===Gm);if(!nB(Ai,zr,As,Ji)){let qe=O(zr.slice(As,Ji),ve),ut=ve.flags;ve.flags|=16;let Bt=co(Gm,ve,788968,qe);ve.flags=ut,Ho=Ho?ii(Ho,Bt):Bt}}}let Yl;if(zr.length>0){let oc=(fn.target.typeParameters||je).length;Yl=O(zr.slice(Ji,oc),ve)}let al=ve.flags;ve.flags|=16;let Ba=co(fn.symbol,ve,788968,Yl);return ve.flags=al,Ho?ii(Ho,Ba):Ba}}}function ii(fn,zr){if(Dh(fn)){let Ai=fn.typeArguments,Ji=fn.qualifier;Ji&&(Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai)))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=Ji?P.createQualifiedName(Ji,Yl):Yl;return P.updateImportTypeNode(fn,fn.argument,fn.attributes,Ji,Ai,fn.isTypeOf)}else{let Ai=fn.typeArguments,Ji=fn.typeName;Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=P.createQualifiedName(Ji,Yl);return P.updateTypeReferenceNode(fn,Ji,Ai)}}function Yr(fn){let zr=fn.typeName,Ai=[];for(;!Me(zr);)Ai.unshift(zr.right),zr=zr.left;return Ai.unshift(zr),Ai}function qi(fn){if(c(ve))return[P.createPropertySignature(void 0,\"...\",void 0,void 0)];let zr=[];for(let Ho of fn.callSignatures)zr.push(me(Ho,179,ve));for(let Ho of fn.constructSignatures)Ho.flags&4||zr.push(me(Ho,180,ve));for(let Ho of fn.indexInfos)zr.push(Q(Ho,ve,fn.objectFlags&1024?g(ve):void 0));let Ai=fn.properties;if(!Ai)return zr;let Ji=0;for(let Ho of Ai){if(Ji++,ve.flags&2048){if(Ho.flags&4194304)continue;Kp(Ho)&6&&ve.tracker.reportPrivateInBaseOfClassExpression&&ve.tracker.reportPrivateInBaseOfClassExpression(Ii(Ho.escapedName))}if(c(ve)&&Ji+2<Ai.length-1){zr.push(P.createPropertySignature(void 0,`... ${Ai.length-Ji} more ...`,void 0,void 0)),N(Ai[Ai.length-1],ve,zr);break}N(Ho,ve,zr)}return zr.length?zr:void 0}}function g(Qe){return Qe.approximateLength+=3,Qe.flags&1?P.createKeywordTypeNode(133):P.createTypeReferenceNode(P.createIdentifier(\"...\"),void 0)}function T(Qe,ve){var vn;return!!(tl(Qe)&8192)&&(To(ve.reverseMappedStack,Qe)||((vn=ve.reverseMappedStack)==null?void 0:vn[0])&&!(br(Da(ve.reverseMappedStack).links.propertyType)&16))}function N(Qe,ve,vn){var _r;let Xr=!!(tl(Qe)&8192),li=T(Qe,ve)?z:qy(Qe),ci=ve.enclosingDeclaration;if(ve.enclosingDeclaration=void 0,ve.tracker.canTrackSymbol&&nw(Qe.escapedName))if(Qe.declarations){let Yt=Ta(Qe.declarations);if(D7(Yt))if(Zn(Yt)){let xn=mo(Yt);xn&&Rs(xn)&&UL(xn.argumentExpression)&&Hn(xn.argumentExpression,ci,ve)}else Hn(Yt.name.expression,ci,ve)}else ve.tracker.reportNonSerializableProperty(ai(Qe));ve.enclosingDeclaration=Qe.valueDeclaration||((_r=Qe.declarations)==null?void 0:_r[0])||ci;let xr=bn(Qe,ve);if(ve.enclosingDeclaration=ci,ve.approximateLength+=$s(Qe).length+1,Qe.flags&98304){let Yt=q0(Qe);if(li!==Yt&&!Lt(li)&&!Lt(Yt)){let xn=Vs(Qe,177),ii=kf(xn);vn.push(Ol(me(ii,177,ve,{name:xr}),xn));let Yr=Vs(Qe,178),qi=kf(Yr);vn.push(Ol(me(qi,178,ve,{name:xr}),Yr));return}}let ur=Qe.flags&16777216?P.createToken(58):void 0;if(Qe.flags&8208&&!Xy(li).length&&!Bm(Qe)){let Yt=Co(Bl(li,xn=>!(xn.flags&32768)),0);for(let xn of Yt){let ii=me(xn,173,ve,{name:xr,questionToken:ur});vn.push(Ft(ii))}if(Yt.length||!ur)return}let $e;T(Qe,ve)?$e=g(ve):(Xr&&(ve.reverseMappedStack||(ve.reverseMappedStack=[]),ve.reverseMappedStack.push(Qe)),$e=li?es(ve,li,Qe,ci):P.createKeywordTypeNode(133),Xr&&ve.reverseMappedStack.pop());let It=Bm(Qe)?[P.createToken(148)]:void 0;It&&(ve.approximateLength+=9);let Gt=P.createPropertySignature(It,xr,ur,$e);vn.push(Ft(Gt));function Ft(Yt){var xn;let ii=(xn=Qe.declarations)==null?void 0:xn.find(Yr=>Yr.kind===355);if(ii){let Yr=VM(ii.comment);Yr&&Lb(Yt,[{kind:3,text:`*","vulnerability":{}},{"path":"dify-agent-runtime/internal/server/config.go","start_line":31,"end_line":31,"snippet":"\tDefaultAuthTokenEnv                  = \"SHELLCTL_AUTH_TOKEN\"","vulnerability":{"severity":"HIGH"}},{"path":"api/clients/agent_backend/factory.py","start_line":44,"end_line":51,"snippet":"    return DifyAgentBackendRunClient(\n        create_agent_backend_client(\n            base_url=base_url,\n            api_token=api_token,\n            stream_timeout=stream_read_timeout_seconds,\n        ),\n        stream_max_reconnects=stream_max_reconnects,\n    )","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":32,"end_line":32,"snippet":"        valid_password(new_password)","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":37,"end_line":37,"snippet":"    application_services().accounts.lifecycle.reset_password(account.id, new_password, email=normalized_email)","vulnerability":{"severity":"WARNING"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0003","rule_version":"1.3.0","rule_name":"Runtime Command Injection via Process Execution","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"medium","rationale":"The dify-agent / dify-agent-runtime component's declared purpose is to run arbitrary user-submitted shell scripts/commands as a sandboxed agent tool (shellctl), so argv-based exec is within its declared contract rather than an injection bug. Tracing the sinks: (1) dify-agent-runtime/cmd/runner/main.go uses exec.Command(self, childArgs...) / syscall.Exec(binary, argv, ...) with a fixed, hardcoded self-reexec argv (binary + '--exec' + script_path + cwd) -- the actual user-supplied SCRIPT CONTENT is never concatenated into a shell string for this sink; it is written as file content at scriptPath and only the fixed path string is passed as an argv element, with shebang/`sh <path>` dispatch (buildExecArgv) -- the semgrep LOW-confidence 'non-static command' flags are the exec of the controller's OWN re-exec'd binary, not attacker-constructed shell text. (2) dify-agent-runtime/internal/server/tmux.go wraps user script execution via tmux using shellJoin/shellQuote helpers that quote each argument before composing the wrapper script, and the user's script itself runs inside a Landlock-restricted (default SHELLCTL_ENABLE_PATH_ISOLATION=true, envvar.go:34-40) sandboxed process tree that confines filesystem access -- i.e. arbitrary command execution is the TOOL'S DECLARED JOB, with sandboxing as the mitigating control, not a hidden injection flaw. api/libs/helper.py:127-128 run(script) (subprocess.getstatusoutput('source /root/.bashrc && '+script), a real shell-injection-shaped sink) has NO callers anywhere in the api/ runtime tree (grep confirms only this definition, zero call sites) -- dead code, not reachable from any HTTP/tool-call path, so it does not establish execution_reachability for a VULNERABLE verdict.","vulnerability_details":null,"fix_guidance":"Remove the unreferenced api/libs/helper.py:run() dead code to eliminate future-reachability risk; keep SHELLCTL_ENABLE_PATH_ISOLATION defaulted to true and do not allow it to be disabled in multi-tenant deployments.","why_this_matters":"Unsanitized command construction in shipped runtime code can give a remote attacker arbitrary code execution with the application's privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":108,"end_line":117,"snippet":"\tself, _ := os.Executable()\n\tchildArgs := []string{\"--exec\", scriptPath, cwd}\n\tif enableIsolation {\n\t\tchildArgs = append([]string{\"--exec\", \"--landlock\"}, childArgs[1:]...)\n\t}\n\n\tcmd := exec.Command(self, childArgs...)\n\tcmd.Env = env\n\tcmd.Dir = cwd"},{"path":"dify-agent-runtime/internal/envvar/envvar.go","start_line":33,"end_line":40,"snippet":"// PathIsolationEnabled returns whether Landlock filesystem isolation is active.\nfunc PathIsolationEnabled() bool {\n\tv, ok := os.LookupEnv(EnvEnablePathIsolation)\n\tif !ok {\n\t\treturn true\n\t}\n\treturn v == \"true\"\n}"},{"path":"api/libs/helper.py","start_line":127,"end_line":128,"snippet":"def run(script):\n    return subprocess.getstatusoutput(\"source /root/.bashrc && \" + script)"},{"path":"dify-agent-runtime/internal/server/tmux.go","start_line":246,"end_line":246,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":320,"end_line":320,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":115,"end_line":115,"snippet":null,"vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0004","rule_version":"1.2.0","rule_name":"DoS Protections: Timeouts, Concurrency, Streaming Limits","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The codebase implements layered DoS protections: (1) a generic rate-limit decorator/library (api/libs/rate_limit.py) with per-IP/session/account/email/token sliding-window limits applied to auth-sensitive endpoints (device code, SSO initiate, bearer token validation, etc.); (2) the outbound SSRF-protected HTTP client enforces connect/read/write/total timeouts by default (SSRF_DEFAULT_TIME_OUT family) and a bounded buffer_response() that raises ResponseTooLargeError once decoded bytes exceed a configured cap, preventing unbounded streaming responses from exhausting memory; (3) upload size limits are enforced per content type (UPLOAD_FILE_SIZE_LIMIT, UPLOAD_IMAGE_FILE_SIZE_LIMIT, UPLOAD_VIDEO_FILE_SIZE_LIMIT, UPLOAD_AUDIO_FILE_SIZE_LIMIT, UPLOAD_SKILL_FILE_SIZE_LIMIT) in api/configs/feature/__init__.py and enforced in FileService.is_file_size_within_limit before any save() call.","vulnerability_details":null,"fix_guidance":"Continue to audit newly added external-facing endpoints to ensure they are decorated with an appropriate RateLimit spec; consider a global default body-size limit at the WSGI/reverse-proxy layer as defense in depth.","why_this_matters":"Resource exhaustion can crash or stall MCP.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/helper/ssrf_proxy.py","start_line":287,"end_line":300,"snippet":"def buffer_response(response: httpx.Response, *, max_response_bytes: int) -> httpx.Response:\n    \"\"\"Consume one open identity response under a decoded byte limit and close its stream.\"\"\"\n    if max_response_bytes <= 0:\n        raise ValueError(\"max_response_bytes must be positive\")\n    try:\n        content_encoding = response.headers.get(\"content-encoding\", \"identity\").strip().lower()\n        if content_encoding not in {\"\", \"identity\"}:\n            raise UnsupportedResponseEncodingError(...)\n        content = bytearray()\n        for chunk in response.iter_bytes():\n            if len(content) + len(chunk) > max_response_bytes:\n                raise ResponseTooLargeError(f\"response exceeded {max_response_bytes} bytes\")\n            content.extend(chunk)"},{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_DEVICE_FLOW_APPROVE = RateLimit(...)\nLIMIT_LOOKUP_PUBLIC = RateLimit(60, timedelta(minutes=5), (RateLimitScope.IP,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/configs/feature/__init__.py","start_line":458,"end_line":488,"snippet":"    UPLOAD_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    KNOWLEDGE_UPLOAD_FILE_SIZE_LIMIT_FOR_PAID_PLAN: NonNegativeInt = Field(...)\n    UPLOAD_IMAGE_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_VIDEO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_AUDIO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_SKILL_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0005","rule_version":"1.2.0","rule_name":"Logging Hygiene (No Secrets/PII/Tokens) & Audit Trail","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"api/libs/helper.py's TokenManager.get_token_data() logs the FULL raw token value at WARNING level (enabled by default under LOG_LEVEL=INFO) whenever a lookup misses. TokenManager mints these tokens for password-reset and other auth flows, so a reset-password token lands in application logs verbatim, with no central redaction filter in place.","vulnerability_details":"api/libs/helper.py line 549: `logger.warning(\"%s token %s not found with key %s\", token_type, token, key)` logs the raw `token` argument (a UUID minted by TokenManager.generate_token for sensitive flows including password reset, api/services/account/login_adapters.py:328) at WARNING level, enabled under the default LOG_LEVEL=INFO. Anyone with read access to application logs (log-aggregation/SIEM access, a separate log-exposure bug, or an insider) can harvest live password-reset tokens straight from this log line and use them to take over the corresponding account before the token's TTL expires -- turning a routine 'token not found' debug log into an account-takeover credential leak.","fix_guidance":"Change helper.py:549 to log only a hash/prefix of the token (e.g. token[:8]+'...') or omit it entirely and log the Redis key alone; add a logging filter/formatter that redacts known credential-shaped fields project-wide as defense in depth.","why_this_matters":"Prevents sensitive data leakage; enables forensics.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0005 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"api/libs/helper.py","start_line":544,"end_line":551,"snippet":"    @classmethod\n    def get_token_data(cls, token: str, token_type: str) -> dict[str, Any] | None:\n        key = cls._get_token_key(token, token_type)\n        token_data_json = redis_client.get(key)\n        if token_data_json is None:\n            logger.warning(\"%s token %s not found with key %s\", token_type, token, key)\n            return None\n        return dict(_token_data_adapter.validate_json(token_data_json))"},{"path":"api/services/account/login_adapters.py","start_line":325,"end_line":330,"snippet":"            token = TokenManager.generate_token(\n                account_id=account_id,\n                email=email,"},{"path":"api/configs/feature/__init__.py","start_line":804,"end_line":807,"snippet":"    LOG_LEVEL: str = Field(\n        description=\"Logging level, default to INFO. Set to ERROR for production environments.\",\n        default=\"INFO\",\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0006","rule_version":"1.2.0","rule_name":"Container/Runtime Hardening","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"Trivy config scan identifies concrete hardening gaps: docker/couchbase-server/Dockerfile uses the floating ':latest' tag (DS-0001) and never sets a non-root USER (DS-0002, HIGH) -- confirmed by manual read, no USER directive exists so the container runs as root by inheritance from the base image. .devcontainer/Dockerfile also runs as root (DS-0002) and misses --no-install-recommends on apt-get install (DS-0029, HIGH). All Dockerfiles lack HEALTHCHECK (DS-0026, LOW). The two internet-facing production images (api/Dockerfile, web/Dockerfile) DO create and switch to a non-root 'dify' user, so the primary attack surface is hardened; the finding is scoped to the auxiliary Couchbase and dev-container images.","vulnerability_details":"docker/couchbase-server/Dockerfile runs its vector-DB backing service container as root (no USER directive) with an unpinned FROM couchbase/server:latest base. If an attacker achieves any code-execution foothold inside that container (e.g. via a future Couchbase CVE pulled in silently by the floating tag, or a vulnerability in init-cbserver.sh), running as root removes the standard UID-separation barrier, giving the attacker root-equivalent privileges inside the container and a larger blast radius for container-breakout primitives (e.g. abusing any mounted docker.sock, writable host paths, or kernel-level capabilities available to root but not to an unprivileged UID). The floating :latest tag means a rebuild can silently pull a newer and differently-vulnerable image without the change being reviewed.","fix_guidance":"Pin docker/couchbase-server/Dockerfile to a specific Couchbase version tag (not :latest) and add a non-root USER switch after setup; add USER directives to .devcontainer/Dockerfile and use --no-install-recommends there; add HEALTHCHECK instructions to all shipped Dockerfiles.","why_this_matters":"Reduces blast radius of exploits.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0006 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM couchbase/server:latest AS stage_base\n# FROM couchbase:latest AS stage_base\nCOPY init-cbserver.sh /opt/couchbase/init/\nRUN chmod +x /opt/couchbase/init/init-cbserver.sh"},{"path":".devcontainer/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM mcr.microsoft.com/devcontainers/python:3.13-bookworm\n\nRUN apt-get update && export DEBIAN_FRONTEND=noninteractive \\\n     && apt-get -y install libgmp-dev libmpfr-dev libmpc-dev"},{"path":"api/Dockerfile","start_line":125,"end_line":125,"snippet":"USER dify"},{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":1,"snippet":"FROM couchbase/server:latest AS stage_base"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0007","rule_version":"1.2.0","rule_name":"Dependency Risk & Supply Chain","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"Trivy's scan of the committed lockfiles (api/uv.lock, dify-agent/uv.lock, pnpm-lock.yaml, dify-agent-runtime/go.mod) found 23 known CVEs in pinned, locked dependency versions, including chromadb==0.5.20 (pinned in api/uv.lock as the Chroma vector-store provider's declared runtime dependency) mapped to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH), and CVE-2026-45831 (HIGH) with no fixed version yet published, alongside other HIGH/MEDIUM findings (e.g. pydantic-ai-slim, golang.org/x/mod, socket.io-parser) that do have published fixed versions the project has not yet adopted. The presence of these scanner-confirmed, unpatched CVEs in exact pinned dependency versions constitutes a supply-chain risk on its own; this finding does not assert a specific demonstrated remote-exploit path through the Chroma vector-store API, only that the vulnerable versions are locked and declared as runtime dependencies.","vulnerability_details":"api/uv.lock pins chromadb to exact version 0.5.20, which Trivy's vulnerability database maps to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH) and CVE-2026-45831 (HIGH) with no fixed version yet published. chromadb is Dify's vector-database client, used by the RAG/knowledge-base subsystem that ingests and queries attacker-influenceable document content; a deployment that enables the Chroma vector-store provider runs this vulnerable client code against untrusted document/query content, exposing whatever remote-code-execution/data-exposure primitive CVE-2026-45833 represents to any user who can trigger a knowledge-base query or ingest a document into a Chroma-backed dataset.","fix_guidance":"Upgrade or replace chromadb beyond 0.5.20 once a patched release addressing CVE-2026-45833/45830/45831 is available (or pin to a patched fork / disable the Chroma vector-store provider until then); separately upgrade pydantic-ai-slim to >=2.53.0, bump the vulnerable golang.org/x/mod dependency, and update socket.io-parser to a fixed release; add a scheduled dependency CVE scan to CI to catch newly disclosed CVEs in already-pinned packages.","why_this_matters":"Prevents typosquat and malicious update compromise.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0007 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The scan reported mitigation_present but the independent adjudication did not corroborate it; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/uv.lock","start_line":880,"end_line":883,"snippet":"name = \"chromadb\"\nversion = \"0.5.20\"\nsource = { registry = \"https://pypi.org/simple\" }\ndependencies = ["},{"path":"Makefile","start_line":170,"end_line":1,"snippet":"(go.mod pins golang.org/x/mod to a version affected by CVE-2026-56864 HIGH / CVE-2026-56865 HIGH, per trivy-fs.json Results[] for Target=='dify-agent-runtime/go.mod')"},{"path":"web/package.json","start_line":29,"end_line":29,"snippet":"\"preinstall\": \"npx only-allow pnpm\","},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45833","pkg_name":"chromadb","severity":"CRITICAL","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45830","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45831","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107286","pkg_name":"pydantic-ai-slim","severity":"HIGH","installed_version":"2.31.0","fixed_version":"2.53.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-69185","pkg_name":"socket.io-parser","severity":"HIGH","installed_version":"4.2.6","fixed_version":"4.2.7, 3.4.5, 3.3.6"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-102991","pkg_name":"mako","severity":"MEDIUM","installed_version":"1.3.12","fixed_version":"1.4.2"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-104874","pkg_name":"multidict","severity":"MEDIUM","installed_version":"6.7.0","fixed_version":"6.9.1"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49264","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49265","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107287","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.7, 2.52.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107289","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107290","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107291","pkg_name":"pydantic-ai-slim","severity":"LOW","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-103923","pkg_name":"katex","severity":"LOW","installed_version":"0.16.47","fixed_version":"0.18.2"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0008","rule_version":"1.2.0","rule_name":"Missing or Inadequate Input Validation","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Dify's console/service/web API controllers consistently validate request bodies against typed schemas before use: console endpoints use flask-restx `@console_ns.expect(...)` model bindings plus a `model_validate(SomeModel)` decorator pattern (e.g. api/controllers/console/auth/login.py `@console_ns.expect(console_ns.models[EmailPayload.__name__])` + `@model_validate(EmailPayload)`) backed by Pydantic models, and service-api / inner-api endpoints use Pydantic `TypeAdapter`/`BaseModel.model_validate_json` for structured payload validation (e.g. api/services/data_source/notion_oauth_gateway.py uses `_NOTION_SOURCE_INFO_ADAPTER`/`_NOTION_PAGE_SUMMARY_ADAPTER` TypeAdapters to validate even third-party OAuth provider responses before use). File-upload input is explicitly constrained (extension blacklist, size limits, filename character blacklist) in FileService before any filesystem write. This is the rule's documented negative-indicator pattern (strict schema validation; type/length checks) applied broadly across the controller surface.","vulnerability_details":null,"fix_guidance":"Keep enforcing Pydantic/TypeAdapter schema validation for all new endpoints and third-party response parsing; add `.strict()`/reject-unknown-fields where the framework supports it.","why_this_matters":"Frontline control to prevent multiple classes of vulns.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/services/file_service.py","start_line":100,"end_line":113,"snippet":"        extension = os.path.splitext(filename)[1].lstrip(\".\").lower()\n        if any(c in filename for c in [\"/\", \"\\\\\"]):\n            raise ValueError(\"Filename contains invalid characters\")\n        if len(filename) > 200:\n            filename = filename.split(\".\")[0][:200] + \".\" + extension\n        if extension and extension in dify_config.UPLOAD_FILE_EXTENSION_BLACKLIST:\n            raise BlockedFileExtensionError(f\"File extension '.{extension}' is not allowed for security reasons\")\n        if source == \"datasets\" and extension not in DOCUMENT_EXTENSIONS:\n            raise UnsupportedFileTypeError()"},{"path":"api/services/data_source/notion_oauth_gateway.py","start_line":25,"end_line":34,"snippet":"class _NotionSourceInfo(TypedDict):\n    workspace_name: str | None\n    workspace_icon: str | None\n    workspace_id: str | None\n    pages: list[_NotionPageSummary]\n    total: int\n\n_NOTION_SOURCE_INFO_ADAPTER = TypeAdapter(_NotionSourceInfo)\n_NOTION_PAGE_SUMMARY_ADAPTER = TypeAdapter(_NotionPageSummary)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0009","rule_version":"1.2.0","rule_name":"Insecure Deserialization","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"pickle is used to serialize/deserialize RAG embedding vectors (api/models/dataset.py:744-747, api/core/rag/embedding/cached_embedding.py:115,198), but tracing the write path shows embedding bytes are produced exclusively by CacheEmbedding, which pickles the FLOAT LIST returned directly from the configured embedding model's own invoke_text_embedding()/invoke_multimodal_embedding() output -- there is no code path where externally-supplied bytes (an uploaded file, an HTTP body, a tool argument) are passed to pickle.loads. Reaching the sink with attacker-chosen bytes would require an independent primitive (e.g. direct DB write access or a different injection bug) that is not present in this codebase, so the required attacker_controlled_source and continuous source_to_sink_flow this rule demands cannot be established from the cited code; the evaluation_rubric's 'Deserialization of constants only' false_positive_guard class applies by analogy (model-generated, not request-controlled). Separately, api/services/agent/roster_package_reader.py:352-379 deserializes untrusted Roster Agent package YAML using a hardened yaml.SafeLoader subclass (_PackageYamlLoader) that explicitly rejects YAML aliases and non-string mapping keys -- the one YAML-deserialization sink that DOES take externally-supplied (uploaded package) content uses the safe loader, which is the rule's documented negative indicator.","vulnerability_details":null,"fix_guidance":"Defense-in-depth: replace pickle with numpy .tobytes()/np.frombuffer (fixed dtype) or a JSON float array for the Embedding.embedding column so this stored blob can never become a code-execution primitive even if a future bug (SQLi, bulk-import, compromised worker) lets an attacker write to that column directly.","why_this_matters":"Can lead to arbitrary code execution.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/rag/embedding/cached_embedding.py","start_line":107,"end_line":119,"snippet":"                cache_embeddings = []\n                try:\n                    for i, n_embedding in zip(embedding_queue_indices, embedding_queue_embeddings):\n                        text_embeddings[i] = n_embedding\n                        hash = helper.generate_text_hash(texts[i])\n                        if hash not in cache_embeddings:\n                            embedding_cache = Embedding(\n                                model_name=self._model_instance.model_name,\n                                hash=hash,\n                                provider_name=self._model_instance.provider,\n                                embedding=pickle.dumps(n_embedding, protocol=pickle.HIGHEST_PROTOCOL),\n                            )"},{"path":"api/models/dataset.py","start_line":743,"end_line":747,"snippet":"    def set_embedding(self, embedding_data: list[float]):\n        self.embedding = pickle.dumps(embedding_data, protocol=pickle.HIGHEST_PROTOCOL)\n\n    def get_embedding(self) -> list[float]:\n        return cast(list[float], pickle.loads(self.embedding))  # noqa: S301"},{"path":"api/services/agent/roster_package_reader.py","start_line":352,"end_line":379,"snippet":"            return yaml.load(payload, Loader=_PackageYamlLoader), size  # noqa: S506\n        except (UnicodeDecodeError, yaml.YAMLError, ValueError, RecursionError) as exc:\n            raise InvalidRosterAgentPackageError(...)\n                f\"Roster Agent package {path.removesuffix('.yaml')} is invalid\"\n            ) from exc\n\n\nclass _PackageYamlLoader(yaml.SafeLoader):\n    \"\"\"Reject ambiguous mappings and aliases in untrusted package documents.\"\"\"\n\n    @override"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0010","rule_version":"1.2.0","rule_name":"Lack of Output Encoding/Sanitization","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The semgrep XSS-shaped hits (python.flask.security.audit.xss.make-response-with-unknown-content, 8 occurrences across login.py, agent_config_inspector.py, recommended_app.py, tool_providers.py, trigger_providers.py) all resolve on inspection to `make_response(dump_response(SomeTypedModel, {...}))` calls -- i.e. a structured, schema-typed JSON-shaped payload serialized through a typed response-dump helper, not raw/unescaped user input written into an HTML content-type response. The project's web frontend (React/Next.js in web/) uses JSX's default auto-escaping for rendered text and the two `render-template-string` hits (api/libs/email_template_renderer.py, api/tasks/mail_inner_task.py) go through a Jinja2 `ImmutableSandboxedEnvironment` in SANDBOX mode by default (MAIL_TEMPLATING_MODE default = SANDBOX), which blocks template-level code/attribute-traversal exploitation even if the template string itself were attacker-influenced.","vulnerability_details":null,"fix_guidance":"Keep MAIL_TEMPLATING_MODE defaulted to SANDBOX (never UNSAFE) in production configuration guidance; continue returning typed/serialized model objects from make_response rather than raw string concatenation.","why_this_matters":"Prevents UI-level injection and operator compromise.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/controllers/console/auth/login.py","start_line":173,"end_line":177,"snippet":"        response = make_response(dump_response(SimpleResultResponse, {\"result\": \"success\"}))\n        clear_access_token_from_cookie(response)\n        clear_refresh_token_from_cookie(response)\n        clear_csrf_token_from_cookie(response)\n        return response"},{"path":"api/libs/email_template_renderer.py","start_line":17,"end_line":28,"snippet":"class SandboxedEnvironment(ImmutableSandboxedEnvironment):\n    \"\"\"Sandboxed environment with execution timeout.\"\"\"\n    def __init__(self, timeout: int, *args: Any, **kwargs: Any):\n        self._deadline = time.time() + timeout if timeout else None\n        super().__init__(*args, **kwargs)\n    @override\n    def call(self, context: Context, obj: Any, *args: Any, **kwargs: Any) -> Any:\n        if self._deadline is not None and time.time() > self._deadline:\n            raise TimeoutError(\"Template rendering timeout\")\n        return super().call(context, obj, *args, **kwargs)"},{"path":"api/configs/feature/__init__.py","start_line":1155,"end_line":1158,"snippet":"    MAIL_TEMPLATING_MODE: TemplateMode = Field(\n        description=\"Template mode for email services\",\n        default=TemplateMode.SANDBOX,\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0011","rule_version":"1.4.0","rule_name":"Path Traversal & Symlink Bypass (Filesystem Tools)","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The agent CLI's skill-pull flow (dify-agent-runtime/internal/agentcli/config.go) builds the download archive path and extraction directory directly from a skill name supplied via CLI argument or a downloaded manifest, using filepath.Join(targetDir, name+\".zip\") and a matching skillDir, without checking for path separators, absolute paths, or containment within targetDir. filepath.Join normalizes '../' segments, so a name such as '../../outside' causes the resulting path to escape targetDir, and the subsequent MkdirAll/os.WriteFile calls can then create or overwrite files outside the intended skills directory. The earlier SECURE verdict considered only the UUID-keyed API upload path (which is safely indirected) and did not examine this separate CLI/manifest-driven skill-pull flow, which has no equivalent indirection or validation before the filesystem sink.","vulnerability_details":null,"fix_guidance":"Validate the skill name before it is used to build any filesystem path in config.go's skill-pull flow: reject names containing path separators or '..' segments, or that resolve (after filepath.Clean/filepath.Abs) outside targetDir, before calling filepath.Join/MkdirAll/os.WriteFile.","why_this_matters":"Traversal exposes arbitrary host files; can lead to code execution.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":56,"end_line":63,"snippet":"// RunConfigSkillsPull executes the `config skills pull` command.\nfunc RunConfigSkillsPull(env *Environment, names []string, localDir string, jsonOutput bool) error {\n\tclient, err := NewStubClient(env)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer func() { _ = client.Close() }()\n"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":76,"end_line":83,"snippet":"\t\t\t\t} `json:\"items\"`\n\t\t\t} `json:\"skills\"`\n\t\t}\n\t\tif err := json.Unmarshal(body, &manifest); err != nil {\n\t\t\treturn fmt.Errorf(\"parse manifest: %w\", err)\n\t\t}\n\t\tfor _, item := range manifest.Skills.Items {\n\t\t\tnames = append(names, item.Name)"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":104,"end_line":123,"snippet":"\t}\n\n\terr = runConfigPulls(len(names), func(index int) error {\n\t\tname := names[index]\n\t\tdownload, err := client.CreateConfigDownloadURL(ctx, \"skill\", name)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"request config skill %q download URL: %w\", name, err)\n\t\t}\n\t\tarchiveBytes, err := client.DownloadFromURL(download.DownloadURL)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"download config skill %q: %w\", name, err)\n\t\t}\n\n\t\tarchivePath := filepath.Join(targetDir, name+\".zip\")\n\t\tskillDir := filepath.Join(targetDir, name)\n\t\tif err := os.MkdirAll(skillDir, 0o755); err != nil {\n\t\t\treturn fmt.Errorf(\"create skill directory: %w\", err)\n\t\t}\n\t\tif err := os.WriteFile(archivePath, archiveBytes, 0o644); err != nil {\n\t\t\treturn fmt.Errorf(\"write archive: %w\", err)"},{"path":"dify-agent-runtime/internal/snapshot/save.go","start_line":83,"end_line":83,"snippet":"\t\t\tf, err := os.Open(p)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":763,"end_line":763,"snippet":"\tendedAtRaw, err := os.ReadFile(endedAtPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":759,"end_line":759,"snippet":"\texitCodeRaw, err := os.ReadFile(exitCodePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":106,"end_line":106,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":38,"end_line":38,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/sanitize/sanitize.go","start_line":155,"end_line":155,"snippet":"\t\tf, err := os.Create(readyFile)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/httpclient.go","start_line":72,"end_line":72,"snippet":"\treturn os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":548,"end_line":548,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":471,"end_line":471,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":133,"end_line":133,"snippet":"\t\tif data, err := os.ReadFile(skillMDPath); err == nil {","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":120,"end_line":120,"snippet":"\t\toutFile, err := os.Create(destPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":71,"end_line":71,"snippet":"\t\tfile, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":15,"end_line":15,"snippet":"\toutFile, err := os.Create(archivePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":343,"end_line":343,"snippet":"\tdata, err := os.ReadFile(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":325,"end_line":325,"snippet":"\tf, err := os.Open(scriptPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":254,"end_line":254,"snippet":"\tfile, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0600)","vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0012","rule_version":"1.2.0","rule_name":"Denial of Wallet / Cost Controls","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"Model/tool invocation paths are protected by multiple quota/budget layers: api/libs/rate_limit.py provides per-IP/account/session/email/token sliding-window rate limits applied to auth and API-bearer-token validation; FeatureService (api/services/feature_service.py referenced throughout controllers, e.g. human_input_delivery_test_service.py's `features.human_input_email_delivery_enabled` gate) enforces plan-based feature/quota gating before billable operations execute; and dataset/knowledge upload size limits (UPLOAD_FILE_SIZE_LIMIT family) bound the cost of ingestion-triggered embedding calls. The SSRF-protected HTTP client additionally bounds retries (SSRF_DEFAULT_MAX_RETRIES) and response size (buffer_response max_response_bytes), preventing unbounded retry storms or oversized-response costs on outbound calls to paid third-party APIs/model providers.","vulnerability_details":null,"fix_guidance":"Continue enforcing plan-based quotas (FeatureService) on any newly added billable/model-invocation endpoint; ensure per-tenant model-call quotas are consistently checked before each LLM/tool invocation.","why_this_matters":"Prevents cost-based disruption.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/core/helper/ssrf_proxy.py","start_line":226,"end_line":284,"snippet":"    retries = 0\n    while retries <= max_retries:\n        ...\n        retries += 1\n        if retries <= max_retries:\n            time.sleep(BACKOFF_FACTOR * (2 ** (retries - 1)))\n    raise MaxRetriesExceededError(f\"Reached maximum retries ({max_retries}) for URL {url}\")"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0013","rule_version":"1.1.0","rule_name":"Tool Output Sanitization & Injection Containment","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"low","rationale":"Dify's CoT agent runner assigns tool invocation results verbatim to scratchpad.observation and then interpolates that value verbatim into the 'Observation:' section of model-visible assistant history (api/core/agent/cot_agent_runner.py), with no sanitization, escaping, role-marker stripping, or untrusted-return annotation applied anywhere between the tool-output assignment and the point it re-enters the model's context. This allows tool-sourced content (e.g. a malicious web page or API response surfaced through a fetch/scrape-style tool) to inject text that the model treats as part of its own reasoning history, with no host-enforced trust boundary on that path.","vulnerability_details":null,"fix_guidance":"Add a sanitization/escaping layer for tool outputs before they are concatenated into the agent scratchpad: strip or neutralize control characters and fake role/system markers, and wrap tool output in an explicit untrusted-content envelope before it is interpolated into the Observation: section in cot_agent_runner.py and fc_agent_runner.py.","why_this_matters":"Tool outputs are a primary prompt-injection vector. Third-party content (web pages, files, API responses) may contain text crafted to override instructions or impersonate system/tool messages. Without a host-enforced envelope, sanitization, and an explicit untrusted-return signal, the model can be coerced into executing attacker-controlled directives, leaking secrets, or chaining further tool calls on behalf of the adversary.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0013 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/agent/cot_agent_runner.py","start_line":244,"end_line":252,"snippet":"                    tool_invoke_response, tool_invoke_meta = self._handle_invoke_action(\n                        session=session,\n                        action=scratchpad.action,\n                        tool_instances=tool_instances,\n                        message_file_ids=message_file_ids,\n                        trace_manager=trace_manager,\n                    )\n                    scratchpad.observation = tool_invoke_response\n                    scratchpad.agent_response = tool_invoke_response"},{"path":"api/core/agent/cot_agent_runner.py","start_line":400,"end_line":413,"snippet":"    def _format_assistant_message(self, agent_scratchpad: list[AgentScratchpadUnit]) -> str:\n        \"\"\"\n        format assistant message\n        \"\"\"\n        message = \"\"\n        for scratchpad in agent_scratchpad:\n            if scratchpad.is_final():\n                message += f\"Final Answer: {scratchpad.agent_response}\"\n            else:\n                message += f\"Thought: {scratchpad.thought}\\n\\n\"\n                if scratchpad.action_str:\n                    message += f\"Action: {scratchpad.action_str}\\n\\n\"\n                if scratchpad.observation:\n                    message += f\"Observation: {scratchpad.observation}\\n\\n\""}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0014","rule_version":"1.2.0","rule_name":"CI/CD Workflow Script Injection","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Reviewed all workflows using dangerous triggers (workflow_run, repository_dispatch, workflow_dispatch) for attacker-controlled interpolation into shell run blocks. The i18n translation pipeline (trigger-i18n-sync.yml -> translate-i18n-claude.yml) passes attacker-influenceable data (PR/commit content) only through typed client_payload fields consumed as quoted shell variables (BASE_SHA=\"...\"), and the PR-coverage-comment workflows (pyrefly-diff-comment.yml, pyrefly-type-coverage-comment.yml) using workflow_run only check out the DEFAULT branch (trusted code) and fetch data via the GitHub API/artifacts rather than interpolating untrusted strings directly into a run: block. The 12 semgrep yaml.github-actions.security.run-shell-injection hits (accessibility-e2e.yml, cli-e2e.yml, pyrefly-diff.yml, pyrefly-type-coverage.yml, style.yml, translate-i18n-claude.yml) all resolve to either workflow_dispatch 'choice' inputs enforced by a fixed options list, maintainer-only manual dispatch, values interpolated only within an already-double-quoted shell string consumed as data (not re-parsed/eval'd), or SHA values resolved via git/GitHub Actions context rather than free-form attacker text. No case shows a continuous source-to-sink path from an untrusted field to an unguarded shell execution with secrets/write-token exposure.","vulnerability_details":null,"fix_guidance":"Continue pinning actions by SHA (already done); keep workflow_dispatch choice-type inputs server-enforced; avoid ever switching the i18n pipeline to pull_request_target without validating client_payload fields against a strict allowlist/regex before use.","why_this_matters":"CI/CD script injection can execute attacker-controlled commands with workflow tokens, repository secrets, trusted-runner access, artifact or cache authority, and release or deployment privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":".github/workflows/translate-i18n-claude.yml","start_line":75,"end_line":95,"snippet":"if [ \"${{ github.event_name }}\" = \"repository_dispatch\" ]; then\n  BASE_SHA=\"${{ github.event.client_payload.base_sha }}\"\n  HEAD_SHA=\"${{ github.event.client_payload.head_sha }}\"\n  CHANGED_FILES=\"${{ github.event.client_payload.changed_files }}\"\n  ...\n  if [ -n \"${{ github.event.client_payload.changes_base64 }}\" ]; then\n    printf '%s' '${{ github.event.client_payload.changes_base64 }}' | base64 -d > /tmp/i18n-changes.json"},{"path":".github/workflows/pyrefly-type-coverage-comment.yml","start_line":20,"end_line":29,"snippet":"if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.pull_requests[0].head.repo.full_name != github.repository }}\nsteps:\n  - name: Checkout default branch (trusted code)\n    uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-R0001","rule_version":"1.3.0","rule_name":"Weaponization: Malicious-Purpose Artifact (Offensive Capability by Design)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Investigated all 3 YARA matches flagged repo-wide. (1) api/configs/remote_settings_sources/apollo/utils.py:46-47 'Zeus_Malware_Reverse_Shell' -- this is a UDP connect()-to-8.8.8.8 trick used purely to discover the machine's outbound-facing local IP address for Apollo remote-config client registration; there is no socket-to-shell wiring, no subprocess/exec, no network listener -- a benign, extremely common Python idiom misidentified by the socket+connect co-occurrence heuristic. (2) dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py:57-61 -- a pytest fixture that spawns a throwaway, loopback-bound (127.0.0.1) redis-server subprocess for an integration test and tears it down in a finally block; it is test infrastructure, not an operational reverse shell (no socket piped to a shell, no attacker-facing listener). (3) e2e/AGENTS.md:26-56 'tool_poisoning secondary-objective wide-span' match itself carries confidence 25 and is explicitly annotated by the scanner as 'likely ordinary prose, not a poisoned tool description' -- reading the cited span confirms it is contributor-facing documentation about E2E test runner architecture (tags, seeds, cleanup) with zero instructions directing model/agent behavior, no injected directives, and no secondary objective. Dify's overall product is a LLM app-development/agent-orchestration platform (not an offensive-security tool), and none of its shipped code, skills, or agent instructions direct generation of malware/exploits/credential theft or mass-abuse tooling.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact whose purpose is to weaponize the agent -- to produce malware, steal credentials, evade defenses, or run attacks at scale -- is dangerous regardless of how securely it is built; posture controls (auth, input validation, least privilege) cannot make a weapon safe, which is why a confirmed weaponization finding caps the trust verdict to `blocked` rather than being averaged against a good posture score. Catching malicious PURPOSE is a distinct safety control, and it must be conservative because offensive capability is dual-use: legitimate pentest, CTF, defensive, and research work must abstain (UNKNOWN), never block -- unless the artifact itself hides from the people who install, run or audit it.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"api/configs/remote_settings_sources/apollo/utils.py","start_line":42,"end_line":52,"snippet":"def init_ip() -> str:\n    ip = \"\"\n    s = None\n    try:\n        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n        s.connect((\"8.8.8.8\", 53))\n        ip = s.getsockname()[0]\n    finally:\n        if s:\n            s.close()\n    return ip","vulnerability":{}},{"path":"dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py","start_line":50,"end_line":76,"snippet":"@pytest.fixture\ndef redis_url() -> Iterator[str]:\n    \"\"\"Start an isolated Redis when the binary is available locally.\"\"\"\n    redis_server = shutil.which(\"redis-server\")\n    if redis_server is None:\n        pytest.skip(\"redis-server is required for run terminal integration tests\")\n    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as probe:\n        probe.bind((\"127.0.0.1\", 0))\n        port = probe.getsockname()[1]\n    process = subprocess.Popen(  # noqa: S603\n        [redis_server, \"--bind\", \"127.0.0.1\", \"--port\", str(port), \"--save\", \"\", \"--appendonly\", \"no\"],\n        stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT,\n    )","vulnerability":{}},{"path":"e2e/AGENTS.md","start_line":26,"end_line":56,"snippet":"- Generate disposable resource names through `support/naming.ts` with an `E2E` prefix.\n- Keep deterministic upload material in `fixtures/test-materials/`...\n- Seed scripts own shared long-lived fixtures; scenarios own disposable resources...\n- Use typed `DifyWorld` cleanup fields... Registered callbacks run LIFO after typed cleanup queues.\n- Remove child and referencing resources before owners. Attach cleanup failures to the report instead of swallowing them.\n(contributor-facing E2E test architecture doc; no agent-directed secondary objective)","vulnerability":{}}],"affected_tools":null,"component_name":null}],"component_tools":[],"summary":{"high_level_risks":["Known CVEs in pinned dependency versions, notably chromadb==0.5.20 (CVE-2026-45833 CRITICAL, plus two HIGH CVEs) with no fix currently available, and additional HIGH CVEs in pydantic-ai-slim, golang.org/x/mod, and socket.io-parser (ATR-C0007, HIGH).","Hardcoded default secrets shipped in docker-compose.yaml/docker-compose-template.yaml (PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY, DIFY_AGENT_SERVER_SECRET_KEY, MINIO_SECRET_KEY) take effect on any deployment that does not override them, giving a publicly-known static credential for internal plugin-daemon/inner-API/object-storage channels (ATR-C0002, HIGH).","Dify's app-as-MCP-server feature (api/controllers/mcp/mcp.py, api/core/mcp/server/streamable_http.py) exposes a remote streamable-HTTP MCP endpoint gated solely by a 16-char CSPRNG 'server_code' embedded in the URL path -- there is no standard Authorization/Bearer check, no OAuth 2.1/PKCE flow, and no rate limiting on the server_code lookup, making it a bearer-URL style credential with brute-force risk and typical URL-secret leakage via proxy/access logs and Referer headers.","The `mcp` Flask blueprint is the only blueprint registered in extensions/ext_blueprints.py with NO CORS/Origin policy applied, leaving no Origin/Host validation in front of a host-side-effectful endpoint that invokes full Dify app generation.","A password-reset / sensitive auth token is logged in full at WARNING level in api/libs/helper.py TokenManager.get_token_data, exposing a usable account-takeover credential to anyone with log access (ATR-C0005, MEDIUM).","The reference deployment ships insecure-by-default transport settings: the API container's gunicorn process binds 0.0.0.0 with no TLS, and NGINX_HTTPS_ENABLED defaults to false in docker/docker-compose.yaml / docker/.env.example, making TLS opt-in rather than mandatory.","Insecure deserialization (pickle) used for the RAG embedding cache column; the stored BLOB has no integrity binding, so any future write primitive against that column becomes an RCE vector (ATR-C0009).","Auxiliary/dev container images (docker/couchbase-server/Dockerfile, .devcontainer/Dockerfile) run as root and/or use a floating ':latest' base tag, unlike the hardened production api/Dockerfile and web/Dockerfile (ATR-C0006, MEDIUM).","Tool-output-to-LLM-context sanitization (ATR-C0013) could not be fully verified across the plugin-daemon boundary; the agent scratchpad/Observation concatenation path and plugin-daemon tool-result boundary lack confirmed control-character/injection-marker stripping.","skills/difyctl destructive operations (remove/revoke) have no enforced confirmation prompt, relying on the model volunteering confirmation rather than enforcing it in the agent harness."],"top_remediations":["Upgrade or disable the chromadb vector-store provider pending a fix for CVE-2026-45833/45830/45831; upgrade pydantic-ai-slim, golang.org/x/mod, and socket.io-parser to patched versions.","Remove hardcoded fallback secret values from docker-compose*.yaml; fail-fast or auto-generate random secrets on first run instead.","Add OAuth 2.1 (with PKCE) as the primary authorization mechanism for the inbound MCP server endpoint, or at minimum require a standard Authorization header bearer token in addition to server_code, plus rate limiting/lockout on failed server_code lookups.","Apply an explicit CORS/Origin allowlist (or host-based validation) to the `mcp` Flask blueprint consistent with the other blueprints in extensions/ext_blueprints.py.","Stop logging raw token values in api/libs/helper.py TokenManager.get_token_data; log only a hash/prefix or the Redis key.","Make TLS mandatory (NGINX_HTTPS_ENABLED default true) for any deployment exposing MCP/API endpoints beyond localhost, and default DIFY_BIND_ADDRESS to loopback for standalone (non-compose) runs.","Replace pickle-based embedding serialization with a safe format (numpy tobytes/JSON) as defense-in-depth against any future write-path compromise.","Add non-root USER directives and pin a specific (non-'latest') base image tag for docker/couchbase-server/Dockerfile and .devcontainer/Dockerfile; add HEALTHCHECK to all shipped Dockerfiles.","Conduct a focused audit of the tool-output-to-context concatenation path (agent scratchpad Observation field) and the plugin-daemon boundary for control-character/prompt-injection-marker sanitization.","Harden skills/difyctl's destructive-operation guidance into an enforced confirmation gate in the surrounding agent harness."]},"rollup":{"component_findings_count":{"vulnerable":0,"secure":6,"not_applicable":2},"repo_findings_inherited_count":{"vulnerable":7,"secure":8,"not_applicable":0},"component_tools_count":{},"worst_case_severity":"HIGH"},"trust_scores":{"repo_level":{"score":25,"tier":"critical","capability_band":"extreme","score_confidence":"low","score_interval":{"low":8,"high":42},"factors":["ATR-M0003 HIGH","ATR-M0009 HIGH","ATR-C0001 HIGH","ATR-C0002 HIGH","ATR-C0005 MEDIUM","ATR-C0006 MEDIUM","ATR-C0007 HIGH","ATR-C0011 HIGH","ATR-C0013 HIGH"]},"component_level":{"score":100,"tier":"high","capability_band":"minimal","score_confidence":"high","score_interval":{"low":96,"high":100},"factors":[]}}},{"artifact_version":"2.0","component":{"component_type":"skill","component_name":"skills-plugins/.agents/skills/frontend-code-review","component_path":".agents/skills/frontend-code-review","metadata":{"manifest":"SKILL.md"}},"scan_provenance":{"scanned_at":"2026-10-14T23:52:06.135Z","resolved_ref":"f77facfe6520ed379d723288aed0b4806ad76143","resolved_ver":null},"repo_context":{"repo_url":"https://github.com/langgenius/dify","languages":["Python","TypeScript","JavaScript","Go","Dockerfile"],"transports_detected":["stdio","sse","streamable_http"],"deployment_artifacts":["docker/docker-compose.yaml","docker/Dockerfile","api/Dockerfile","web/Dockerfile","docker/docker-compose.middleware.yaml"],"provenance":{"publisher":"langgenius","publisher_verified":true,"signed_build":false,"dependency_cve_count":34,"maintenance_active":true,"declared_policy":false}},"component_findings":[{"rule_id":"ATR-P0001","rule_version":"1.0.0","rule_name":"Capability Transparency: Declared Purpose vs. Actual Behavior (Shadow Features)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Declared purpose (review frontend code under web/ or packages/dify-ui/ on explicit request) matches the body and reference routing exactly; no hidden behavior.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Install-time trust is granted from the artifact's self-description, so any bundled capability the description does not disclose -- network egress, credential reads, or subprocess execution -- runs as an unconsented backdoor with the host agent's full privileges.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-code-review/SKILL.md","start_line":1,"end_line":9,"snippet":"---\nname: frontend-code-review\ndescription: Use only when the user explicitly requests a review or audit of frontend code under `web/` or `packages/dify-ui/`. Supports pending-change, file-focused, and pasted-diff reviews. Do not use for implementation-only requests, diagnosis without review intent, or backend-only code.\n---\n\n# Frontend Code Review\n\nReview the requested scope for concrete defects and violations of explicit project contracts."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-code-review"},{"rule_id":"ATR-P0002","rule_version":"1.0.0","rule_name":"Consent Suppression and Guardrail / Human-in-the-Loop Subversion via Trusted Instructions","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Review-only skill with no implementation action and no instruction to suppress findings, warnings, or confirmations.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Because a skill/plugin instruction body is ingested as trusted first-party context, consent- or oversight-suppressing prose inherits the host's full authority and turns a passive package into a self-authorizing backdoor that strips the human-in-the-loop control from every action it can reach.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-code-review/SKILL.md","start_line":32,"end_line":39,"snippet":"## Severity And Output\n\n- **P0**: security or privacy leak, data loss, production crash, or inaccessible critical workflow.\n...\nLead with findings ordered by severity. ... Do not add praise sections, speculative risks, or an unsolicited offer to implement fixes."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-code-review"},{"rule_id":"ATR-P0003","rule_version":"1.2.0","rule_name":"Host-Credential and Conversation-Context Harvesting and Exfiltration","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"This component is a declarative review-only Markdown bundle with no host-credential or conversation/memory read mechanism; its optional external guidelines link is a documentation fetch, not a data-bearing exfiltration channel. The rule requires an actual harvest mechanism to be present, and none exists here, so the rule does not apply.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin that couples a host-credential or live-conversation read with an outbound channel turns an ostensibly benign helper into an autonomous exfiltration agent, leaking long-lived secrets, session tokens, and confidential prompt context to an attacker on every invocation across every tool the artifact serves.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-code-review/references/accessibility-ui.md","start_line":133,"end_line":135,"snippet":"[Web Interface Guidelines]: https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-code-review"},{"rule_id":"ATR-P0004","rule_version":"1.1.0","rule_name":"Format-Native Out-of-Band Execution and Host Control-Plane Persistence","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"The component consists solely of SKILL.md and reference Markdown files with no bundled script, hook, entry point, host-config write, or control-plane primitive; absent any format-native execution or persistence mechanism, the rule's applicability condition is not met.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Format-native execution and control-plane writes bypass the model's reasoning loop, converting a single install approval into durable, self-reinjecting code execution that can MITM the host agent's own model endpoint and silently subvert every subsequent tool call.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-code-review/SKILL.md","start_line":6,"end_line":9,"snippet":"# Frontend Code Review\n\nReview the requested scope for concrete defects and violations of explicit project contracts. This skill owns review decisions; its references route to canonical rules without activating another skill's implementation workflow."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-code-review"},{"rule_id":"ATR-P0005","rule_version":"1.0.0","rule_name":"Over-Declared / Over-Privileged Artifact Manifest Scope","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"Scope restricted to web/ and packages/dify-ui/ frontend code review only.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact that self-declares host privilege far beyond its stated function -- or hides executable reach inside a passive-looking package -- gives a single install a blast radius the operator never scoped, so any later mistake, compromise, or misconfiguration detonates across resources the artifact never needed.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-code-review/SKILL.md","start_line":3,"end_line":3,"snippet":"description: Use only when the user explicitly requests a review or audit of frontend code under `web/` or `packages/dify-ui/`. Supports pending-change, file-focused, and pasted-diff reviews. Do not use for implementation-only requests, diagnosis without review intent, or backend-only code."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-code-review"},{"rule_id":"ATR-P0006","rule_version":"1.1.0","rule_name":"Injection and Concealed Directives in Skill/Plugin Manifest and Instruction Text","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"low","rationale":"No concealed/injected directives found.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin's always-loaded manifest and instruction carriers (frontmatter/body, `description_for_model`, Gemini `FunctionDeclaration.description` / Vertex AI extension `manifest` / ADK agent `instruction`, tool docstrings, JSON-Schema descriptions) are concatenated into the host agent prompt at operator privilege, so a directive that is hidden with non-printing codepoints, disguised with a homoglyph, forged with role-control tokens, or masked from the rendered view silently commandeers model behavior toward attacker-chosen actions across every tool the artifact serves -- with no code execution required and nothing visible to a reviewer reading the rendered text.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-code-review/SKILL.md","start_line":1,"end_line":49,"snippet":"(full file reviewed; plain markdown prose, no hidden/zero-width characters or concealed directives found)"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-code-review"},{"rule_id":"ATR-P0007","rule_version":"1.0.0","rule_name":"Skill/Plugin Package Provenance, Integrity, and Post-Approval Mutation (Rug-Pull)","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"In-tree skill versioned with the repo; no separate distribution/update channel.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill/plugin reviewed once and then trusted indefinitely becomes a rug-pull vector when its OWN model-facing instruction body, declared scope, or manifest can be live-swapped or silently mutated after approval -- without an approval-time digest that is re-compared on load and re-consent on any change, a publisher (or an attacker who compromises the distribution channel) can rewrite the artifact's trusted instructions or widen its tool scope under authority the host already granted, turning an approved package into an exfiltration or unauthorized-action backdoor.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-code-review/SKILL.md","start_line":1,"end_line":4,"snippet":"---\nname: frontend-code-review\ndescription: Use only when the user explicitly requests a review or audit of frontend code under `web/` or `packages/dify-ui/`. Supports pending-change, file-focused, and pasted-diff reviews. Do not use for implementation-only requests, diagnosis without review intent, or backend-only code.\n---"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-code-review"},{"rule_id":"ATR-P0008","rule_version":"1.0.0","rule_name":"Skill/Plugin Impersonation, Typosquatting & Publisher Spoofing","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"First-party, in-tree skill with a plain descriptive name; no impersonation.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Impersonation is the entry point of the agentic supply chain (OWASP LLM ASI04 / MITRE ATT&CK T1195): a skill or plugin installed on the strength of a familiar name inherits the host agent's execution context before any payload runs. The deception front-runs trust, so catching the identity lie breaks the chain at the cheapest point -- and it is independent of whether the current code is benign, because the same trusted-looking name can ship a payload in the next version.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-code-review/SKILL.md","start_line":2,"end_line":2,"snippet":"name: frontend-code-review"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-code-review"}],"repo_findings_inherited":[{"rule_id":"ATR-C0001","rule_version":"1.2.0","rule_name":"Unrestricted Network Fetch / SSRF","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The outbound HTTP client used for custom tool invocations and HTTP Request nodes falls back to a direct httpx client whenever SSRF_PROXY_HTTP_URL/SSRF_PROXY_HTTPS_URL are unset (they default to None in api/core/helper/ssrf_proxy.py), meaning the SSRF-blocking Squid proxy is an opt-in deployment choice rather than a code-enforced control. The custom-tool invocation path (api/core/tools/custom_tool/tool.py) dispatches the tool's configured server URL through this client with no in-code destination gate (no check against private/loopback/link-local ranges) before the request is sent. A deployment that does not explicitly configure the SSRF proxy environment variables -- which is possible under the project's supported configuration surface, not just the shipped Compose example -- allows a custom tool's configured URL to reach internal or private network destinations unguarded.","vulnerability_details":null,"fix_guidance":"Enforce SSRF protection in code rather than relying solely on an external proxy default: add a destination-validation check (reject private/loopback/link-local IP ranges) directly in the HTTP client construction path in api/core/helper/ssrf_proxy.py so protection applies even when SSRF_PROXY_HTTP_URL/HTTPS_URL are unset, and add an explicit gate in the custom-tool dispatch path in api/core/tools/custom_tool/tool.py before the configured server URL is fetched.","why_this_matters":"Enables internal pivoting and data exfiltration.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/tools/custom_tool/tool.py","start_line":65,"end_line":76,"snippet":"        self, credentials: dict[str, Any], parameters: dict[str, Any], format_only: bool = False\n    ) -> str:\n        \"\"\"\n        validate the credentials for Api tool\n        \"\"\"\n        # assemble validate request and request parameters\n        headers = self.assembling_request(parameters)\n\n        if format_only:\n            return \"\"\n\n        response = self.do_http_request(self.api_bundle.server_url, self.api_bundle.method, headers, parameters)"},{"path":"api/configs/feature/__init__.py","start_line":725,"end_line":738,"snippet":"    SSRF_PROXY_ALL_URL: str | None = Field(\n        description=\"Proxy URL for HTTP or HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTP_URL: str | None = Field(\n        description=\"Proxy URL for HTTP requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTPS_URL: str | None = Field(\n        description=\"Proxy URL for HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )"},{"path":"api/core/helper/ssrf_proxy.py","start_line":86,"end_line":101,"snippet":"def _build_ssrf_client(verify: bool) -> httpx.Client:\n    if dify_config.SSRF_PROXY_ALL_URL:\n        return httpx.Client(\n            proxy=dify_config.SSRF_PROXY_ALL_URL,\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    if dify_config.SSRF_PROXY_HTTP_URL and dify_config.SSRF_PROXY_HTTPS_URL:\n        return httpx.Client(\n            mounts=_create_proxy_mounts(verify=verify),\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    return httpx.Client(verify=verify, limits=_SSRF_CLIENT_LIMITS)"},{"path":"api/core/tools/custom_tool/tool.py","start_line":292,"end_line":306,"snippet":"            raise ValueError(f\"Invalid http method {method}\")\n        response: httpx.Response = _METHOD_MAP[\n            method_lc\n        ](  # https://discuss.python.org/t/type-inference-for-function-return-types/42926\n            url,\n            max_retries=0,\n            params=params,\n            headers=headers,\n            cookies=cookies,\n            data=body,\n            files=files,\n            timeout=API_TOOL_DEFAULT_TIMEOUT,\n            follow_redirects=True,\n        )\n        return response"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0002","rule_version":"1.3.2","rule_name":"Static Secrets","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"docker-compose.yaml and docker-compose-template.yaml ship REAL-LOOKING hardcoded default secret VALUES for inter-service authentication that take effect the moment an operator runs `docker compose up` without overriding the env vars: PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY default to the fixed base64-looking string 'lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi' / 'QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1' (identical across every public clone of the repo), DIFY_AGENT_SERVER_SECRET_KEY defaults to the fixed hex string '0123456789abcdef0123456789abcdef', and MINIO_SECRET_KEY defaults to 'minioadmin'. These are not placeholder/empty values in a .env.example (which would be the negative case) -- they are live fallback defaults baked directly into the shipped docker-compose YAML that is the project's documented one-command quick-start path, so any internet-reachable deployment that forgets to override them authenticates its internal plugin-daemon/inner-API channel and MinIO object storage with a publicly known static secret. This matches the rule's positive_indicator 'default changeme-style value' and its CWE-798/312 class directly.","vulnerability_details":"docker/docker-compose.yaml uses shell-style `${VAR:-default}` substitution where `default` is a concrete, realistic-looking secret baked into the committed YAML (not a placeholder like 'changeme' or empty string), for PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY/INNER_API_KEY_FOR_PLUGIN, DIFY_AGENT_SERVER_SECRET_KEY, and MINIO_SECRET_KEY. Any deployment that does not explicitly set these environment variables before `docker compose up` will run with these known-to-the-public credentials protecting the plugin-daemon <-> API inner channel and the MinIO backing store, letting anyone with network access to those internal ports (e.g. via SSRF, container escape, or a misconfigured network) authenticate as a trusted internal service.","fix_guidance":"Remove hardcoded fallback values from docker-compose for PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY/DIFY_AGENT_SERVER_SECRET_KEY/MINIO_SECRET_KEY; instead fail fast (or auto-generate a random secret at first-run via an init script) when the operator has not supplied a value, so no installation ever runs with a secret value that is identical and publicly known across every Dify deployment.","why_this_matters":"Plaintext secrets are easily exfiltrated.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0002 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/docker-compose.yaml","start_line":600,"end_line":604,"snippet":"      SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}\n      ...\n      DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":688,"end_line":688,"snippet":"      DIFY_AGENT_SERVER_SECRET_KEY: ${DIFY_AGENT_SERVER_SECRET_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":1104,"end_line":1104,"snippet":"      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}"},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":16,"end_line":17,"snippet":"PLUGIN_DAEMON_KEY=[REDACTED]\nPLUGIN_DIFY_INNER_API_KEY=[REDACTED]"},{"path":"api/Dockerfile","start_line":57,"end_line":57,"snippet":"ARG NODESOURCE_KEY_FPR=6F71F525282841EEDAF851B42F59B5F99B1BE0B4","vulnerability":{}},{"path":"api/.env.example","start_line":239,"end_line":239,"snippet":"# Prefix used to create collection name in vector database","vulnerability":{}},{"path":"api/.env.example","start_line":701,"end_line":701,"snippet":"POSITION_TOOL_EXCLUDES=","vulnerability":{}},{"path":"api/.env.example","start_line":715,"end_line":715,"snippet":"PLUGIN_MODEL_PROVIDERS_CACHE_TTL=86400","vulnerability":{}},{"path":"api/knowledge-fs-contract.lock.json","start_line":3,"end_line":3,"snippet":"  \"openapiSha256\": \"f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb\",","vulnerability":{}},{"path":"api/providers/vdb/vdb-alibabacloud-mysql/pyproject.toml","start_line":10,"end_line":10,"snippet":"alibabacloud_mysql = \"dify_vdb_alibabacloud_mysql.alibabacloud_mysql_vector:AlibabaCloudMySQLVectorFactory\"","vulnerability":{}},{"path":"api/services/agent/package_resource_exporter.py","start_line":257,"end_line":257,"snippet":"                    try:","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":30,"end_line":30,"snippet":"DIFY_AGENT_PLUGIN_DAEMON_API_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":36,"end_line":36,"snippet":"DIFY_AGENT_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":91,"end_line":91,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"dify-agent/docs/dify-agent/guide/index.md","start_line":151,"end_line":151,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/worker.env.example","start_line":10,"end_line":10,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/api.env.example","start_line":13,"end_line":13,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":165,"end_line":165,"snippet":"WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":174,"end_line":174,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":224,"end_line":224,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/.env.example","start_line":234,"end_line":234,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":280,"end_line":280,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":17,"end_line":17,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/dify-agent.env.example","start_line":118,"end_line":118,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/security.env.example","start_line":28,"end_line":29,"snippet":"OTLP_API_KEY=\nBAIDU_VECTOR_DB_API_KEY=dify","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":133,"end_line":133,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":166,"end_line":166,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":179,"end_line":179,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/vectorstores/weaviate.env.example","start_line":11,"end_line":11,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":204,"end_line":205,"snippet":"SENDGRID_API_KEY=\nINVITE_EXPIRY_HOURS=72","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":495,"end_line":495,"snippet":"VECTOR_STORE=weaviate","vulnerability":{}},{"path":"docker/docker-compose.yaml","start_line":1273,"end_line":1273,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"docker/docker-compose-template.yaml","start_line":1267,"end_line":1267,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"packages/contracts/generated/knowledge-fs/metadata.gen.ts","start_line":4,"end_line":5,"snippet":"export const knowledgeFsSourceOpenapiSha256 =\n  'f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb'","vulnerability":{}},{"path":"web/public/vs/editor/editor.main.js","start_line":631,"end_line":631,"snippet":"`))}}e.Trace=t}),define(ne[689],se([1,0,8,247,140]),function(oe,e,d,k,I){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.BaseResolvedKeybinding=void 0;class E extends I.ResolvedKeybinding{constructor(m,_){if(super(),_.length===0)throw(0,d.illegalArgument)(\"chords\");this._os=m,this._chords=_}getLabel(){return k.UILabelProvider.toLabel(this._os,this._chords,m=>this._getLabel(m))}getAriaLabel(){return k.AriaLabelProvider.toLabel(this._os,this._chords,m=>this._getAriaLabel(m))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:k.ElectronAcceleratorLabelProvider.toLabel(this._os,this._chords,m=>this._getElectronAccelerator(m))}getUserSettingsLabel(){return k.UserSettingsLabelProvider.toLabel(this._os,this._chords,m=>this._getUserSettingsLabel(m))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(m=>this._getChord(m))}_getChord(m){return new I.ResolvedChord(m.ctrlKey,m.shiftKey,m.altKey,m.metaKey,this._getLabel(m),this._getAriaLabel(m))}getDispatchChords(){return this._chords.map(m=>this._getChordDispatch(m))}getSingleModifierDispatchChords(){return this._chords.map(m=>this._getSingleModifierChordDispatch(m))}}e.BaseResolvedKeybinding=E}),define(ne[31],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,d.createDecorator)(\"keybindingService\")}),define(ne[391],se([1,0,5,174,2,31]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorHoverStatusBar=void 0;const y=d.$;let m=class extends I.Disposable{get hasContent(){return this._hasContent}constructor(b){super(),this._keybindingService=b,this.actions=[],this._hasContent=!1,this.hoverElement=y(\"div.hover-row.status-bar\"),this.hoverElement.tabIndex=0,this.actionsElement=d.append(this.hoverElement,y(\"div.actions\"))}addAction(b){const p=this._keybindingService.lookupKeybinding(b.commandId),n=p?p.getLabel():null;this._hasContent=!0;const o=this._register(k.HoverAction.render(this.actionsElement,b,n));return this.actions.push(o),o}append(b){const p=d.append(this.actionsElement,b);return this._hasContent=!0,p}};e.EditorHoverStatusBar=m,e.EditorHoverStatusBar=m=ke([ce(0,E.IKeybindingService)],m)}),define(ne[690],se([1,0,5,31,670,12,28,61,20,174,6]),function(oe,e,d,k,I,E,y,m,_,b,p){\"use strict\";var n;Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContentHoverWidget=void 0;const o=30,t=6;let i=class extends I.ResizableContentWidget{static{n=this}static{this.ID=\"editor.contrib.resizableContentHoverWidget\"}static{this._lastDimensions=new d.Dimension(0,0)}get isVisibleFromKeyboard(){return this._renderedHover?.source===1}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(c,l,a,r,u){const C=c.getOption(67)+8,f=150,h=new d.Dimension(f,C);super(c,h),this._configurationService=a,this._accessibilityService=r,this._keybindingService=u,this._hover=this._register(new b.HoverWidget),this._onDidResize=this._register(new p.Emitter),this.onDidResize=this._onDidResize.event,this._minimumSize=h,this._hoverVisibleKey=_.EditorContextKeys.hoverVisible.bindTo(l),this._hoverFocusedKey=_.EditorContextKeys.hoverFocused.bindTo(l),d.append(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex=\"50\",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(w=>{w.hasChanged(50)&&this._updateFont()}));const v=this._register(d.trackFocus(this._resizableNode.domNode));this._register(v.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(v.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return n.ID}static _applyDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.width=r,c.style.height=u}_setContentsDomNodeDimensions(c,l){const a=this._hover.contentsDomNode;return n._applyDimensions(a,c,l)}_setContainerDomNodeDimensions(c,l){const a=this._hover.containerDomNode;return n._applyDimensions(a,c,l)}_setHoverWidgetDimensions(c,l){this._setContentsDomNodeDimensions(c,l),this._setContainerDomNodeDimensions(c,l),this._layoutContentWidget()}static _applyMaxDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.maxWidth=r,c.style.maxHeight=u}_setHoverWidgetMaxDimensions(c,l){n._applyMaxDimensions(this._hover.contentsDomNode,c,l),n._applyMaxDimensions(this._hover.containerDomNode,c,l),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-maxWidth\",typeof c==\"number\"?`${c}px`:c),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(c){this._setHoverWidgetMaxDimensions(\"none\",\"none\");const l=c.width,a=c.height;this._setHoverWidgetDimensions(l,a)}_updateResizableNodeMaxDimensions(){const c=this._findMaximumRenderingWidth()??1/0,l=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new d.Dimension(c,l),this._setHoverWidgetMaxDimensions(c,l)}_resize(c){n._lastDimensions=new d.Dimension(c.width,c.height),this._setAdjustedHoverWidgetDimensions(c),this._resizableNode.layout(c.height,c.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const c=this._renderedHover?.showAtPosition;if(c)return this._positionPreference===1?this._availableVerticalSpaceAbove(c):this._availableVerticalSpaceBelow(c)}_findMaximumRenderingHeight(){const c=this._findAvailableSpaceVertically();if(!c)return;let l=t;return Array.from(this._hover.contentsDomNode.children).forEach(a=>{l+=a.clientHeight}),Math.min(c,l)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty(\"--vscode-hover-whiteSpace\",\"nowrap\"),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-sourceWhiteSpace\",\"nowrap\");const c=Array.from(this._hover.contentsDomNode.children).some(l=>l.scrollWidth>l.clientWidth);return this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-whiteSpace\"),this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-sourceWhiteSpace\"),c}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const c=this._isHoverTextOverflowing(),l=typeof this._contentWidth>\"u\"?0:this._contentWidth-2;return c||this._hover.containerDomNode.clientWidth<l?d.getClientArea(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(c,l){if(!this._renderedHover)return!1;if(this._renderedHover.initialMousePosX===void 0||this._renderedHover.initialMousePosY===void 0)return this._renderedHover.initialMousePosX=c,this._renderedHover.initialMousePosY=l,!1;const a=d.getDomNodePagePosition(this.getDomNode());this._renderedHover.closestMouseDistance===void 0&&(this._renderedHover.closestMouseDistance=s(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,a.left,a.top,a.width,a.height));const r=s(c,l,a.left,a.top,a.width,a.height);return r>this._renderedHover.closestMouseDistance+4?!1:(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,r),!0)}_setRenderedHover(c){this._renderedHover?.dispose(),this._renderedHover=c,this._hoverVisibleKey.set(!!c),this._hover.containerDomNode.classList.toggle(\"hidden\",!c)}_updateFont(){const{fontSize:c,lineHeight:l}=this._editor.getOption(50),a=this._hover.contentsDomNode;a.style.fontSize=`${c}px`,a.style.lineHeight=`${l/c}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName(\"code\")).forEach(u=>this._editor.applyFontInfo(u))}_updateContent(c){const l=this._hover.contentsDomNode;l.style.paddingBottom=\"\",l.textContent=\"\",l.appendChild(c)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const c=Math.max(this._editor.getLayoutInfo().height/4,250,n._lastDimensions.height),l=Math.max(this._editor.getLayoutInfo().width*.66,500,n._lastDimensions.width);this._setHoverWidgetMaxDimensions(l,c)}_render(c){this._setRenderedHover(c),this._updateFont(),this._updateContent(c.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(c){if(!this._editor||!this._editor.hasModel())return;this._render(c);const l=d.getTotalHeight(this._hover.containerDomNode),a=c.showAtPosition;this._positionPreference=this._findPositionPreference(l,a)??1,this.onContentsChanged(),c.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const u=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,b.getHoverAccessibleViewHint)(this._configurationService.getValue(\"accessibility.verbosity.hover\")===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding(\"editor.action.accessibleView\")?.getAriaLabel()??\"\");u&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+\", \"+u)}hide(){if(!this._renderedHover)return;const c=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new d.Dimension(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),c&&this._editor.focus()}_removeConstraintsRenderNormally(){const c=this._editor.getLayoutInfo();this._resizableNode.layout(c.height,c.width),this._setHoverWidgetDimensions(\"auto\",\"auto\")}setMinimumDimensions(c){this._minimumSize=new d.Dimension(Math.max(this._minimumSize.width,c.width),Math.max(this._minimumSize.height,c.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const c=typeof this._contentWidth>\"u\"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new d.Dimension(c,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const c=this._hover.containerDomNode;let l=d.getTotalHeight(c),a=d.getTotalWidth(c);if(this._resizableNode.layout(l,a),this._setHoverWidgetDimensions(a,l),l=d.getTotalHeight(c),a=d.getTotalWidth(c),this._contentWidth=a,this._updateMinimumWidth(),this._resizableNode.layout(l,a),this._renderedHover?.showAtPosition){const r=d.getTotalHeight(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(r,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c-l.lineHeight})}scrollDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c+l.lineHeight})}scrollLeft(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c-o})}scrollRight(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c+o})}pageUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c-l})}pageDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c+l})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};e.ContentHoverWidget=i,e.ContentHoverWidget=i=n=ke([ce(1,E.IContextKeyService),ce(2,y.IConfigurationService),ce(3,m.IAccessibilityService),ce(4,k.IKeybindingService)],i);function s(g,c,l,a,r,u){const C=l+r/2,f=a+u/2,h=Math.max(Math.abs(g-C)-r/2,0),v=Math.max(Math.abs(c-f)-u/2,0);return Math.sqrt(h*h+v*v)}}),define(ne[392],se([1,0,12]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.KeybindingResolver=e.NoMatchingKb=void 0,e.NoMatchingKb={kind:0};const k={kind:1};function I(_,b,p){return{kind:2,commandId:_,commandArgs:b,isBubble:p}}class E{constructor(b,p,n){this._log=n,this._defaultKeybindings=b,this._defaultBoundCommands=new Map;for(const o of b){const t=o.command;t&&t.charAt(0)!==\"-\"&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=E.handleRemovals([].concat(b).concat(p));for(let o=0,t=this._keybindings.length;o<t;o++){const i=this._keybindings[o];if(i.chords.length===0)continue;const s=i.when?.substituteConstants();s&&s.type===0||this._addKeyPress(i.chords[0],i)}}static _isTargetedForRemoval(b,p,n){if(p){for(let o=0;o<p.length;o++)if(p[o]!==b.chords[o])return!1}return!(n&&n.type!==1&&(!b.when||!(0,d.expressionsAreEqualWithConstantSubstitution)(n,b.when)))}static handleRemovals(b){const p=new Map;for(let o=0,t=b.length;o<t;o++){const i=b[o];if(i.command&&i.command.charAt(0)===\"-\"){const s=i.command.substring(1);p.has(s)?p.get(s).push(i):p.set(s,[i])}}if(p.size===0)return b;const n=[];for(let o=0,t=b.length;o<t;o++){const i=b[o];if(!i.command||i.command.length===0){n.push(i);continue}if(i.command.charAt(0)===\"-\")continue;const s=p.get(i.command);if(!s||!i.isDefault){n.push(i);continue}let g=!1;for(const c of s){const l=c.when;if(this._isTargetedForRemoval(i,c.chords,l)){g=!0;break}}if(!g){n.push(i);continue}}return n}_addKeyPress(b,p){const n=this._map.get(b);if(typeof n>\"u\"){this._map.set(b,[p]),this._addToLookupMap(p);return}for(let o=n.length-1;o>=0;o--){const t=n[o];if(t.command===p.command)continue;let i=!0;for(let s=1;s<t.chords.length&&s<p.chords.length;s++)if(t.chords[s]!==p.chords[s]){i=!1;break}i&&E.whenIsEntirelyIncluded(t.when,p.when)&&this._removeFromLookupMap(t)}n.push(p),this._addToLookupMap(p)}_addToLookupMap(b){if(!b.command)return;let p=this._lookupMap.get(b.command);typeof p>\"u\"?(p=[b],this._lookupMap.set(b.command,p)):p.push(b)}_removeFromLookupMap(b){if(!b.command)return;const p=this._lookupMap.get(b.command);if(!(typeof p>\"u\")){for(let n=0,o=p.length;n<o;n++)if(p[n]===b){p.splice(n,1);return}}}static whenIsEntirelyIncluded(b,p){return!p||p.type===1?!0:!b||b.type===1?!1:(0,d.implies)(b,p)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(b,p){const n=this._lookupMap.get(b);if(typeof n>\"u\"||n.length===0)return null;if(n.length===1)return n[0];for(let o=n.length-1;o>=0;o--){const t=n[o];if(p.contextMatchesRules(t.when))return t}return n[n.length-1]}resolve(b,p,n){const o=[...p,n];this._log(`| Resolving ${o}`);const t=this._map.get(o[0]);if(t===void 0)return this._log(\"\\\\ No keybinding entries.\"),e.NoMatchingKb;let i=null;if(o.length<2)i=t;else{i=[];for(let g=0,c=t.length;g<c;g++){const l=t[g];if(o.length>l.chords.length)continue;let a=!0;for(let r=1;r<o.length;r++)if(l.chords[r]!==o[r]){a=!1;break}a&&i.push(l)}}const s=this._findCommand(b,i);return s?o.length<s.chords.length?(this._log(`\\\\ From ${i.length} keybinding entries, awaiting ${s.chords.length-o.length} more chord(s), when: ${y(s.when)}, source: ${m(s)}.`),k):(this._log(`\\\\ From ${i.length} keybinding entries, matched ${s.command}, when: ${y(s.when)}, source: ${m(s)}.`),I(s.command,s.commandArgs,s.bubble)):(this._log(`\\\\ From ${i.length} keybinding entries, no when clauses matched the context.`),e.NoMatchingKb)}_findCommand(b,p){for(let n=p.length-1;n>=0;n--){const o=p[n];if(E._contextMatchesRules(b,o.when))return o}return null}static _contextMatchesRules(b,p){return p?p.evaluate(b):!0}}e.KeybindingResolver=E;function y(_){return _?`${_.serialize()}`:\"no when condition\"}function m(_){return _.extensionId?_.isBuiltinExtension?`built-in extension ${_.extensionId}`:`user extension ${_.extensionId}`:_.isDefault?\"built-in\":\"user\"}}),define(ne[691],se([1,0,14,8,6,300,2,3,392]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractKeybindingService=void 0;const b=/^(cursor|delete|undo|redo|tab|editor\\.action\\.clipboard)/;class p extends y.Disposable{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:I.Event.None}get inChordMode(){return this._currentChords.length>0}constructor(t,i,s,g,c){super(),this._contextKeyService=t,this._commandService=i,this._telemetryService=s,this._notificationService=g,this._logService=c,this._onDidUpdateKeybindings=this._register(new I.Emitter),this._currentChords=[],this._currentChordChecker=new d.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new d.TimeoutTimer,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(t){this._logging&&this._logService.info(`[KeybindingService]: ${t}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(t,i){const s=this._getResolver().lookupPrimaryKeybinding(t,i||this._contextKeyService);if(s)return s.resolvedKeybinding}dispatchEvent(t,i){return this._dispatch(t,i)}softDispatch(t,i){this._log(\"/ Soft dispatching keyboard event\");const s=this.resolveKeyboardEvent(t);if(s.hasMultipleChords())return console.warn(\"keyboard event should not be mapped to multiple chords\"),_.NoMatchingKb;const[g]=s.getDispatchChords();if(g===null)return this._log(\"\\\\ Keyboard event cannot be dispatched\"),_.NoMatchingKb;const c=this._contextKeyService.getContext(i),l=this._currentChords.map(({keypress:a})=>a);return this._getResolver().resolve(c,l,g)}_scheduleLeaveChordMode(){const t=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-t>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(t,i){switch(this._currentChords.push({keypress:t,label:i}),this._currentChords.length){case 0:throw(0,k.illegalState)(\"impossible\");case 1:this._currentChordStatusMessage=this._notificationService.status(m.localize(1538,\"({0}) was pressed. Waiting for second key of chord...\",i));break;default:{const s=this._currentChords.map(({label:g})=>g).join(\", \");this._currentChordStatusMessage=this._notificationService.status(m.localize(1539,\"({0}) was pressed. Waiting for next key of chord...\",s))}}this._scheduleLeaveChordMode(),E.IME.enabled&&E.IME.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],E.IME.enable()}_dispatch(t,i){return this._doDispatch(this.resolveKeyboardEvent(t),i,!1)}_singleModifierDispatch(t,i){const s=this.resolveKeyboardEvent(t),[g]=s.getSingleModifierDispatchChords();if(g)return this._ignoreSingleModifiers.has(g)?(this._log(`+ Ignoring single modifier ${g} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${g}.`),this._currentSingleModifier=g,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log(\"+ Clearing single modifier due to 300ms elapsed.\"),this._currentSingleModifier=null},300),!1):g===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${g} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(s,i,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[c]=s.getChords();return this._ignoreSingleModifiers=new n(c),this._currentSingleModifier!==null&&this._log(\"+ Clearing single modifier due to other key up.\"),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(t,i,s=!1){let g=!1;if(t.hasMultipleChords())return console.warn(\"Unexpected keyboard event mapped to multiple chords\"),!1;let c=null,l=null;if(s){const[C]=t.getSingleModifierDispatchChords();c=C,l=C?[C]:[]}else[c]=t.getDispatchChords(),l=this._currentChords.map(({keypress:C})=>C);if(c===null)return this._log(\"\\\\ Keyboard event cannot be dispatched in keydown phase.\"),g;const a=this._contextKeyService.getContext(i),r=t.getLabel(),u=this._getResolver().resolve(a,l,c);switch(u.kind){case 0:{if(this._logService.trace(\"KeybindingService#dispatch\",r,\"[ No matching keybinding ]\"),this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving multi-chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1540,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}return g}case 1:return this._logService.trace(\"KeybindingService#dispatch\",r,\"[ Several keybindings match - more chords needed ]\"),g=!0,this._expectAnotherChord(c,r),this._log(this._currentChords.length===1?\"+ Entering multi-chord mode...\":\"+ Continuing multi-chord mode...\"),g;case 2:{if(this._logService.trace(\"KeybindingService#dispatch\",r,`[ Will dispatch command ${u.commandId} ]`),u.commandId===null||u.commandId===\"\"){if(this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1541,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}}else{this.inChordMode&&this._leaveChordMode(),u.isBubble||(g=!0),this._log(`+ Invoking command ${u.commandId}.`),this._currentlyDispatchingCommandId=u.commandId;try{typeof u.commandArgs>\"u\"?this._commandService.executeCommand(u.commandId).then(void 0,C=>this._notificationService.warn(C)):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,C=>this._notificationService.warn(C))}finally{this._currentlyDispatchingCommandId=null}b.test(u.commandId)||this._telemetryService.publicLog2(\"workbenchActionExecuted\",{id:u.commandId,from:\"keybinding\",detail:t.getUserSettingsLabel()??void 0})}return g}}}mightProducePrintableCharacter(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30}}e.AbstractKeybindingService=p;class n{static{this.EMPTY=new n(null)}constructor(t){this._ctrlKey=t?t.ctrlKey:!1,this._shiftKey=t?t.shiftKey:!1,this._altKey=t?t.altKey:!1,this._metaKey=t?t.metaKey:!1}has(t){switch(t){case\"ctrl\":return this._ctrlKey;case\"shift\":return this._shiftKey;case\"alt\":return this._altKey;case\"meta\":return this._metaKey}}}}),define(ne[393],se([1,0]),function(oe,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ResolvedKeybindingItem=void 0,e.toEmptyArrayIfContainsNull=k;class d{constructor(E,y,m,_,b,p,n){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=E,this.chords=E?k(E.getDispatchChords()):[],E&&this.chords.length===0&&(this.chords=k(E.getSingleModifierDispatchChords())),this.bubble=y?y.charCodeAt(0)===94:!1,this.command=this.bubble?y.substr(1):y,this.commandArgs=m,this.when=_,this.isDefault=b,this.extensionId=p,this.isBuiltinExtension=n}}e.ResolvedKeybindingItem=d;function k(I){const E=[];for(let y=0,m=I.length;y<m;y++){const _=I[y];if(!_)return[];E.push(_)}return E}}),define(ne[692],se([1,0,72,140,689,393]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.USLayoutResolvedKeybinding=void 0;class y extends I.BaseResolvedKeybinding{constructor(_,b){super(b,_)}_keyCodeToUILabel(_){if(this._os===2)switch(_){case 15:return\"\\u2190\";case 16:return\"\\u2191\";case 17:return\"\\u2192\";case 18:return\"\\u2193\"}return d.KeyCodeUtils.toString(_)}_getLabel(_){return _.isDuplicateModifierCase()?\"\":this._keyCodeToUILabel(_.keyCode)}_getAriaLabel(_){return _.isDuplicateModifierCase()?\"\":d.KeyCodeUtils.toString(_.keyCode)}_getElectronAccelerator(_){return d.KeyCodeUtils.toElectronAccelerator(_.keyCode)}_getUserSettingsLabel(_){if(_.isDuplicateModifierCase())return\"\";const b=d.KeyCodeUtils.toUserSettingsUS(_.keyCode);return b&&b.toLowerCase()}_getChordDispatch(_){return y.getDispatchStr(_)}static getDispatchStr(_){if(_.isModifierKey())return null;let b=\"\";return _.ctrlKey&&(b+=\"ctrl+\"),_.shiftKey&&(b+=\"shift+\"),_.altKey&&(b+=\"alt+\"),_.metaKey&&(b+=\"meta+\"),b+=d.KeyCodeUtils.toString(_.keyCode),b}_getSingleModifierChordDispatch(_){return _.keyCode===5&&!_.shiftKey&&!_.altKey&&!_.metaKey?\"ctrl\":_.keyCode===4&&!_.ctrlKey&&!_.altKey&&!_.metaKey?\"shift\":_.keyCode===6&&!_.ctrlKey&&!_.shiftKey&&!_.metaKey?\"alt\":_.keyCode===57&&!_.ctrlKey&&!_.shiftKey&&!_.altKey?\"meta\":null}static _scanCodeToKeyCode(_){const b=d.IMMUTABLE_CODE_TO_KEY_CODE[_];if(b!==-1)return b;switch(_){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(_){if(!_)return null;if(_ instanceof k.KeyCodeChord)return _;const b=this._scanCodeToKeyCode(_.scanCode);return b===0?null:new k.KeyCodeChord(_.ctrlKey,_.shiftKey,_.altKey,_.metaKey,b)}static resolveKeybinding(_,b){const p=(0,E.toEmptyArrayIfContainsNull)(_.chords.map(n=>this._toKeyCodeChord(n)));return p.length>0?[new y(p,b)]:[]}}e.USLayoutResolvedKeybinding=y}),define(ne[181],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,d.createDecorator)(\"labelService\")}),define(ne[119],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILayoutService=void 0,e.ILayoutService=(0,d.createDecorator)(\"layoutService\")}),define(ne[394],se([1,0,5,52,13,6,34,49,119]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorScopedLayoutService=void 0;let b=class{get mainContainer(){return(0,I.firstOrDefault)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??k.mainWindow.document.body}get activeContainer(){return(this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor())?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return d.getClientArea(this.mainContainer)}get activeContainerDimension(){return d.getClientArea(this.activeContainer)}get containers(){return(0,I.coalesce)(this._codeEditorService.listCodeEditors().map(o=>o.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(o){this._codeEditorService=o,this.onDidLayoutMainContainer=E.Event.None,this.onDidLayoutActiveContainer=E.Event.None,this.onDidLayoutContainer=E.Event.None,this.onDidChangeActiveContainer=E.Event.None,this.onDidAddContainer=E.Event.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};b=ke([ce(0,y.ICodeEditorService)],b);let p=class extends b{get mainContainer(){return this._container}constructor(o,t){super(t),this._container=o}};e.EditorScopedLayoutService=p,e.EditorScopedLayoutService=p=ke([ce(1,y.ICodeEditorService)],p),(0,m.registerSingleton)(_.ILayoutService,b,1)}),define(ne[693],se([1,0,5,52,6,2,61,28,12,119]),function(oe,e,d,k,I,E,y,m,_,b){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AccessibilityService=void 0;let p=class extends E.Disposable{constructor(o,t,i){super(),this._contextKeyService=o,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new I.Emitter,this._onDidChangeReducedMotion=new I.Emitter,this._onDidChangeLinkUnderline=new I.Emitter,this._accessibilityModeEnabledContext=y.CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration(\"editor.accessibilitySupport\")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),c.affectsConfiguration(\"workbench.reduceMotion\")&&(this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._onDidChangeReducedMotion.fire())})),s(),this._register(this.onDidChangeScreenReaderOptimized(()=>s()));const g=k.mainWindow.matchMedia(\"(prefers-reduced-motion: reduce)\");this._systemMotionReduced=g.matches,this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._linkUnderlinesEnabled=this._configurationService.getValue(\"accessibility.underlineLinks\"),this.initReducedMotionListeners(g),this.initLinkUnderlineListeners()}initReducedMotionListeners(o){this._register((0,d.addDisposableListener)(o,\"change\",()=>{this._systemMotionReduced=o.matches,this._configMotionReduced===\"auto\"&&this._onDidChangeReducedMotion.fire()}));const t=()=>{const i=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle(\"reduce-motion\",i),this._layoutService.mainContainer.classList.toggle(\"enable-motion\",!i)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration(t=>{if(t.affectsConfiguration(\"accessibility.underlineLinks\")){const i=this._configurationService.getValue(\"accessibility.underlineLinks\");this._linkUnderlinesEnabled=i,this._onDidChangeLinkUnderline.fire()}}));const o=()=>{const t=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle(\"underline-links\",t)};o(),this._register(this.onDidChangeLinkUnderlines(()=>o()))}onDidChangeLinkUnderlines(o){return this._onDidChangeLinkUnderline.event(o)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const o=this._configurationService.getValue(\"editor.accessibilitySupport\");return o===\"on\"||o===\"auto\"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const o=this._configMotionReduced;return o===\"on\"||o===\"auto\"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};e.AccessibilityService=p,e.AccessibilityService=p=ke([ce(0,_.IContextKeyService),ce(1,b.ILayoutService),ce(2,m.IConfigurationService)],p)}),define(ne[395],se([1,0,353,2,119,5]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContextViewService=e.ContextViewHandler=void 0;let y=class extends k.Disposable{constructor(b){super(),this.layoutService=b,this.contextView=this._register(new d.ContextView(this.layoutService.mainContainer,1)),this.layout(),this._register(b.onDidLayoutContainer(()=>this.layout()))}showContextView(b,p,n){let o;p?p===this.layoutService.getContainer((0,E.getWindow)(p))?o=1:n?o=3:o=2:o=1,this.contextView.setContainer(p??this.layoutService.activeContainer,o),this.contextView.show(b);const t={close:()=>{this.openContextView===t&&this.hideContextView()}};return this.openContextView=t,t}layout(){this.contextView.layout()}hideContextView(b){this.contextView.hide(b),this.openContextView=void 0}};e.ContextViewHandler=y,e.ContextViewHandler=y=ke([ce(0,I.ILayoutService)],y);class m extends y{getContextViewElement(){return this.contextView.getViewElement()}}e.ContextViewService=m}),define(ne[62],se([1,0,6,2,12,7]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.CONTEXT_LOG_LEVEL=e.MultiplexLogger=e.ConsoleLogger=e.AbstractLogger=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILogService=void 0,e.LogLevelToString=p,e.ILogService=(0,E.createDecorator)(\"logService\");var y;(function(n){n[n.Off=0]=\"Off\",n[n.Trace=1]=\"Trace\",n[n.Debug=2]=\"Debug\",n[n.Info=3]=\"Info\",n[n.Warning=4]=\"Warning\",n[n.Error=5]=\"Error\"})(y||(e.LogLevel=y={})),e.DEFAULT_LOG_LEVEL=y.Info;class m extends k.Disposable{constructor(){super(...arguments),this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new d.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(o){this.level!==o&&(this.level=o,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(o){return this.level!==y.Off&&this.level<=o}}e.AbstractLogger=m;class _ extends m{constructor(o=e.DEFAULT_LOG_LEVEL,t=!0){super(),this.useColors=t,this.setLevel(o)}trace(o,...t){this.checkLogLevel(y.Trace)&&(this.useColors?console.log(\"%cTRACE\",\"color: #888\",o,...t):console.log(o,...t))}debug(o,...t){this.checkLogLevel(y.Debug)&&(this.useColors?console.log(\"%cDEBUG\",\"background: #eee; color: #888\",o,...t):console.log(o,...t))}info(o,...t){this.checkLogLevel(y.Info)&&(this.useColors?console.log(\"%c INFO\",\"color: #33f\",o,...t):console.log(o,...t))}warn(o,...t){this.checkLogLevel(y.Warning)&&(this.useColors?console.log(\"%c WARN\",\"color: #993\",o,...t):console.log(o,...t))}error(o,...t){this.checkLogLevel(y.Error)&&(this.useColors?console.log(\"%c  ERR\",\"color: #f33\",o,...t):console.error(o,...t))}}e.ConsoleLogger=_;class b extends m{constructor(o){super(),this.loggers=o,o.length&&this.setLevel(o[0].getLevel())}setLevel(o){for(const t of this.loggers)t.setLevel(o);super.setLevel(o)}trace(o,...t){for(const i of this.loggers)i.trace(o,...t)}debug(o,...t){for(const i of this.loggers)i.debug(o,...t)}info(o,...t){for(const i of this.loggers)i.info(o,...t)}warn(o,...t){for(const i of this.loggers)i.warn(o,...t)}error(o,...t){for(const i of this.loggers)i.error(o,...t)}dispose(){for(const o of this.loggers)o.dispose();super.dispose()}}e.MultiplexLogger=b;function p(n){switch(n){case y.Trace:return\"trace\";case y.Debug:return\"debug\";case y.Info:return\"info\";case y.Warning:return\"warn\";case y.Error:return\"error\";case y.Off:return\"off\"}}e.CONTEXT_LOG_LEVEL=new I.RawContextKey(\"logLevel\",p(y.Info))}),define(ne[212],se([1,0,64,5,93,47,296,14,6,2,128,11,310,23,61,62]),function(oe,e,d,k,I,E,y,m,_,b,p,n,o,t,i,s){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.TextAreaWrapper=e.ClipboardEventUtils=e.TextAreaInput=e.InMemoryClipboardMetadataManager=e.CopyOptions=e.TextAreaSyntethicEvents=void 0;var g;(function(u){u.Tap=\"-monaco-textarea-synthetic-tap\"})(g||(e.TextAreaSyntethicEvents=g={})),e.CopyOptions={forceCopyWithSyntaxHighlighting:!1};class c{static{this.INSTANCE=new c}constructor(){this._lastState=null}set(C,f){this._lastState={lastCopiedValue:C,data:f}}get(C){return this._lastState&&this._lastState.lastCopiedValue===C?this._lastState.data:(this._lastState=null,null)}}e.InMemoryClipboardMetadataManager=c;class l{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(C){C=C||\"\";const f={text:C,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=C.length,f}}let a=class extends b.Disposable{get textAreaState(){return this._textAreaState}constructor(C,f,h,v,w,S){super(),this._host=C,this._textArea=f,this._OS=h,this._browser=v,this._accessibilityService=w,this._logService=S,this._onFocus=this._register(new _.Emitter),this.onFocus=this._onFocus.event,this._onBlur=this._register(new _.Emitter),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new _.Emitter),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new _.Emitter),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new _.Emitter),this.onCut=this._onCut.event,this._onPaste=this._register(new _.Emitter),this.onPaste=this._onPaste.event,this._onType=this._register(new _.Emitter),this.onType=this._onType.event,this._onCompositionStart=this._register(new _.Emitter),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new _.Emitter),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new _.Emitter),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new _.Emitter),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new b.MutableDisposable),this._asyncTriggerCut=this._register(new m.RunOnceScheduler(()=>this._onCut.fire(),0)),this._textAreaState=o.TextAreaState.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent(\"ctor\"),this._register(_.Event.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let L=null;this._register(this._textArea.onKeyDown(D=>{const T=new E.StandardKeyboardEvent(D);(T.keyCode===114||this._currentComposition&&T.keyCode===1)&&T.stopPropagation(),T.equals(9)&&T.preventDefault(),L=T,this._onKeyDown.fire(T)})),this._register(this._textArea.onKeyUp(D=>{const T=new E.StandardKeyboardEvent(D);this._onKeyUp.fire(T)})),this._register(this._textArea.onCompositionStart(D=>{o._debugComposition&&console.log(\"[compositionstart]\",D);const T=new l;if(this._currentComposition){this._currentComposition=T;return}if(this._currentComposition=T,this._OS===2&&L&&L.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===D.data&&(L.code===\"ArrowRight\"||L.code===\"ArrowLeft\")){o._debugComposition&&console.log(\"[compositionstart] Handling long press case on macOS + arrow key\",D),T.handleCompositionUpdate(\"x\"),this._onCompositionStart.fire({data:D.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:D.data});return}this._onCompositionStart.fire({data:D.data})})),this._register(this._textArea.onCompositionUpdate(D=>{o._debugComposition&&console.log(\"[compositionupdate]\",D);const T=this._currentComposition;if(!T)return;if(this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionUpdate.fire(D);return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionUpdate.fire(D)})),this._register(this._textArea.onCompositionEnd(D=>{o._debugComposition&&console.log(\"[compositionend]\",D);const T=this._currentComposition;if(!T)return;if(this._currentComposition=null,this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionEnd.fire();return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(D=>{if(o._debugComposition&&console.log(\"[input]\",D),this._textArea.setIgnoreSelectionChangeTime(\"received input event\"),this._currentComposition)return;const T=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),M=o.TextAreaState.deduceInput(this._textAreaState,T,this._OS===2);M.replacePrevCharCnt===0&&M.text.length===1&&(n.isHighSurrogate(M.text.charCodeAt(0))||M.text.charCodeAt(0)===127)||(this._textAreaState=T,(M.text!==\"\"||M.replacePrevCharCnt!==0||M.replaceNextCharCnt!==0||M.positionDelta!==0)&&this._onType.fire(M))})),this._register(this._textArea.onCut(D=>{this._textArea.setIgnoreSelectionChangeTime(\"received cut event\"),this._ensureClipboardGetsEditorSelection(D),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(D=>{this._ensureClipboardGetsEditorSelection(D)})),this._register(this._textArea.onPaste(D=>{if(this._textArea.setIgnoreSelectionChangeTime(\"received paste event\"),D.preventDefault(),!D.clipboardData)return;let[T,M]=e.ClipboardEventUtils.getTextData(D.clipboardData);T&&(M=M||c.INSTANCE.get(T),this._onPaste.fire({text:T,metadata:M}))})),this._register(this._textArea.onFocus(()=>{const D=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!D&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"blurWithoutCompositionEnd\"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"tapWithoutCompositionEnd\"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let C=0;return k.addDisposableListener(this._textArea.ownerDocument,\"selectionchange\",f=>{if(y.inputLatency.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const h=Date.now(),v=h-C;if(C=h,v<5)return;const w=h-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),w<100||!this._textAreaState.selection)return;const S=this._textArea.getValue();if(this._textAreaState.value!==S)return;const L=this._textArea.getSelectionStart(),D=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===L&&this._textAreaState.selectionEnd===D)return;const T=this._textAreaState.deduceEditorPosition(L),M=this._host.deduceModelPosition(T[0],T[1],T[2]),A=this._textAreaState.deduceEditorPosition(D),P=this._host.deduceModelPosition(A[0],A[1],A[2]),N=new t.Selection(M.lineNumber,M.column,P.lineNumber,P.column);this._onSelectionChangeRequest.fire(N)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(C){this._hasFocus!==C&&(this._hasFocus=C,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent(\"focusgain\"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(C,f){this._hasFocus||(f=f.collapseSelection()),f.writeToTextArea(C,this._textArea,this._hasFocus),this._textAreaState=f}writeNativeTextAreaContent(C){!this._accessibilityService.isScreenReaderOptimized()&&C===\"render\"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${C})`),this._setAndWriteTextAreaState(C,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(C){const f=this._host.getDataToCopy(),h={version:1,isFromEmptySelection:f.isFromEmptySelection,multicursorText:f.multicursorText,mode:f.mode};c.INSTANCE.set(this._browser.isFirefox?f.text.replace(/\\r\\n/g,`","vulnerability":{}},{"path":"web/public/vs/language/typescript/tsWorker.js","start_line":320,"end_line":320,"snippet":"`||hn[0]===\"\\r\");)hn.shift()}function CP(hn){for(;hn.length;){let Tr=hn[hn.length-1].trimEnd();if(Tr===\"\")hn.pop();else if(Tr.length<hn[hn.length-1].length){hn[hn.length-1]=Tr;break}else break}}function fE(){for(;;){if(gt(),j()===1)return!0;if(!(j()===5||j()===4))return!1}}function Dg(){if(!((j()===5||j()===4)&&_i(fE)))for(;j()===5||j()===4;)gt()}function jy(){if((j()===5||j()===4)&&_i(fE))return\"\";let hn=t.hasPrecedingLineBreak(),Tr=!1,gr=\"\";for(;hn&&j()===42||j()===5||j()===4;)gr+=t.getTokenText(),j()===4?(hn=!0,Tr=!0,gr=\"\"):j()===42&&(hn=!1),gt();return Tr?gr:\"\"}function lD(hn){x.assert(j()===60);let Tr=t.getTokenStart();gt();let gr=gE(void 0),Ei=jy(),hi;switch(gr.escapedText){case\"author\":hi=Ss(Tr,gr,hn,Ei);break;case\"implements\":hi=Hy(Tr,gr,hn,Ei);break;case\"augments\":case\"extends\":hi=lm(Tr,gr,hn,Ei);break;case\"class\":case\"constructor\":hi=hE(Tr,m.createJSDocClassTag,gr,hn,Ei);break;case\"public\":hi=hE(Tr,m.createJSDocPublicTag,gr,hn,Ei);break;case\"private\":hi=hE(Tr,m.createJSDocPrivateTag,gr,hn,Ei);break;case\"protected\":hi=hE(Tr,m.createJSDocProtectedTag,gr,hn,Ei);break;case\"readonly\":hi=hE(Tr,m.createJSDocReadonlyTag,gr,hn,Ei);break;case\"override\":hi=hE(Tr,m.createJSDocOverrideTag,gr,hn,Ei);break;case\"deprecated\":Nr=!0,hi=hE(Tr,m.createJSDocDeprecatedTag,gr,hn,Ei);break;case\"this\":hi=T7(Tr,gr,hn,Ei);break;case\"enum\":hi=D$(Tr,gr,hn,Ei);break;case\"arg\":case\"argument\":case\"param\":return w(Tr,gr,2,hn);case\"return\":case\"returns\":hi=Be(Tr,gr,hn,Ei);break;case\"template\":hi=Jy(Tr,gr,hn,Ei);break;case\"type\":hi=kt(Tr,gr,hn,Ei);break;case\"typedef\":hi=MP(Tr,gr,hn,Ei);break;case\"callback\":hi=Ame(Tr,gr,hn,Ei);break;case\"overload\":hi=Ime(Tr,gr,hn,Ei);break;case\"satisfies\":hi=_E(Tr,gr,hn,Ei);break;case\"see\":hi=ir(Tr,gr,hn,Ei);break;case\"exception\":case\"throws\":hi=Wi(Tr,gr,hn,Ei);break;default:hi=Uy(Tr,gr,hn,Ei);break}return hi}function _p(hn,Tr,gr,Ei){return Ei||(gr+=Tr-hn),Sa(gr,Ei.slice(gr))}function Sa(hn,Tr){let gr=M(),Ei=[],hi=[],wa,ns=0,Dd;function ih(Cg){Dd||(Dd=hn),Ei.push(Cg),hn+=Cg.length}Tr!==void 0&&(Tr!==\"\"&&ih(Tr),ns=1);let Zu=j();e:for(;;){switch(Zu){case 4:ns=0,Ei.push(t.getTokenText()),hn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:x.assert(ns!==2&&ns!==3,\"whitespace shouldn't come from the scanner while saving comment text\");let Cg=t.getTokenText();Dd!==void 0&&hn+Cg.length>Dd&&(Ei.push(Cg.slice(Dd-hn)),ns=2),hn+=Cg.length;break;case 19:ns=2;let ep=t.getTokenFullStart(),uD=t.getTokenEnd()-1,tw=zl(uD);tw?(hi.push(Ut(m.createJSDocText(Ei.join(\"\")),wa??gr,ep)),hi.push(tw),Ei=[],wa=t.getTokenEnd()):ih(t.getTokenText());break;case 62:ns===3?ns=2:ns=3,ih(t.getTokenText());break;case 82:ns!==3&&(ns=2),ih(t.getTokenValue());break;case 42:if(ns===0){ns=1,hn+=1;break}default:ns!==3&&(ns=2),ih(t.getTokenText());break}ns===2||ns===3?Zu=bt(ns===3):Zu=gt()}DP(Ei);let Lm=Ei.join(\"\").trimEnd();if(hi.length)return Lm.length&&hi.push(Ut(m.createJSDocText(Lm),wa??gr)),ho(hi,gr,t.getTokenEnd());if(Lm.length)return Lm}function zl(hn){let Tr=ui(p1);if(!Tr)return;gt(),Dg();let gr=mE(),Ei=[];for(;j()!==20&&j()!==4&&j()!==1;)Ei.push(t.getTokenText()),gt();let hi=Tr===\"link\"?m.createJSDocLink:Tr===\"linkcode\"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return Ut(hi(gr,Ei.join(\"\")),hn,t.getTokenEnd())}function mE(){if(Md(j())){let hn=M(),Tr=tc();for(;$i(25);)Tr=Ut(m.createQualifiedName(Tr,j()===81?ys(80,!1):ls()),hn);for(;j()===81;)ti(),gt(),Tr=Ut(m.createJSDocMemberName(Tr,ls()),hn);return Tr}}function p1(){if(jy(),j()===19&&gt()===60&&Md(gt())){let hn=t.getTokenValue();if(NP(hn))return hn}}function NP(hn){return hn===\"link\"||hn===\"linkcode\"||hn===\"linkplain\"}function Uy(hn,Tr,gr,Ei){return Ut(m.createJSDocUnknownTag(Tr,_p(hn,M(),gr,Ei)),hn)}function PP(hn){hn&&(Ma?Ma.push(hn):(Ma=[hn],lf=hn.pos),v_=hn.end)}function Un(){return jy(),j()===19?Fe():void 0}function y(){let hn=Rv(23);hn&&Dg();let Tr=Rv(62),gr=dD();return Tr&&ua(62),hn&&(Dg(),Uo(64)&&we(),_n(24)),{name:gr,isBracketed:hn}}function D(hn){switch(hn.kind){case 151:return!0;case 188:return D(hn.elementType);default:return Yp(hn)&&Me(hn.typeName)&&hn.typeName.escapedText===\"Object\"&&!hn.typeArguments}}function w(hn,Tr,gr,Ei){let hi=Un(),wa=!hi;jy();let{name:ns,isBracketed:Dd}=y(),ih=jy();wa&&!_i(p1)&&(hi=Un());let Zu=_p(hn,M(),Ei,ih),Lm=ie(hi,ns,gr,Ei);Lm&&(hi=Lm,wa=!0);let Cg=gr===1?m.createJSDocPropertyTag(Tr,ns,Dd,hi,wa,Zu):m.createJSDocParameterTag(Tr,ns,Dd,hi,wa,Zu);return Ut(Cg,hn)}function ie(hn,Tr,gr,Ei){if(hn&&D(hn.type)){let hi=M(),wa,ns;for(;wa=ui(()=>I7(gr,Ei,Tr));)wa.kind===348||wa.kind===355?ns=pn(ns,wa):wa.kind===352&&Re(wa.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ns){let Dd=Ut(m.createJSDocTypeLiteral(ns,hn.type.kind===188),hi);return Ut(m.createJSDocTypeExpression(Dd),hi)}}}function Be(hn,Tr,gr,Ei){ct(Ma,T6)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Un();return Ut(m.createJSDocReturnTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function kt(hn,Tr,gr,Ei){ct(Ma,gN)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Fe(!0),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocTypeTag(Tr,hi,wa),hn)}function ir(hn,Tr,gr,Ei){let wa=j()===23||_i(()=>gt()===60&&Md(gt())&&NP(t.getTokenValue()))?void 0:mt(),ns=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSeeTag(Tr,wa,ns),hn)}function Wi(hn,Tr,gr,Ei){let hi=Un(),wa=_p(hn,M(),gr,Ei);return Ut(m.createJSDocThrowsTag(Tr,hi,wa),hn)}function Ss(hn,Tr,gr,Ei){let hi=M(),wa=Mm(),ns=t.getTokenFullStart(),Dd=_p(hn,ns,gr,Ei);Dd||(ns=t.getTokenFullStart());let ih=typeof Dd!=\"string\"?ho(ro([Ut(wa,hi,ns)],Dd),hi):wa.text+Dd;return Ut(m.createJSDocAuthorTag(Tr,ih),hn)}function Mm(){let hn=[],Tr=!1,gr=t.getToken();for(;gr!==1&&gr!==4;){if(gr===30)Tr=!0;else{if(gr===60&&!Tr)break;if(gr===32&&Tr){hn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}hn.push(t.getTokenText()),gr=gt()}return m.createJSDocText(hn.join(\"\"))}function Hy(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocImplementsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function lm(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocAugmentsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function _E(hn,Tr,gr,Ei){let hi=Fe(!1),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSatisfiesTag(Tr,hi,wa),hn)}function R$(){let hn=$i(19),Tr=M(),gr=Tme();t.setInJSDocType(!0);let Ei=uE();t.setInJSDocType(!1);let hi=m.createExpressionWithTypeArguments(gr,Ei),wa=Ut(hi,Tr);return hn&&_n(20),wa}function Tme(){let hn=M(),Tr=gE();for(;$i(25);){let gr=gE();Tr=Ut(K(Tr,gr),hn)}return Tr}function hE(hn,Tr,gr,Ei,hi){return Ut(Tr(gr,_p(hn,M(),Ei,hi)),hn)}function T7(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocThisTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function D$(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocEnumTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function MP(hn,Tr,gr,Ei){let hi=Un();jy();let wa=A7();Dg();let ns=Sa(gr),Dd;if(!hi||D(hi.type)){let Zu,Lm,Cg,ep=!1;for(;(Zu=ui(()=>P$(gr)))&&Zu.kind!==352;)if(ep=!0,Zu.kind===351)if(Lm){let uD=Qt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);uD&&fa(uD,Ix(_e,Te,0,0,f.The_tag_was_first_specified_here));break}else Lm=Zu;else Cg=pn(Cg,Zu);if(ep){let uD=hi&&hi.type.kind===188,tw=m.createJSDocTypeLiteral(Cg,uD);hi=Lm&&Lm.typeExpression&&!D(Lm.typeExpression.type)?Lm.typeExpression:Ut(tw,hn),Dd=hi.end}}Dd=Dd||ns!==void 0?M():(wa??hi??Tr).end,ns||(ns=_p(hn,Dd,gr,Ei));let ih=m.createJSDocTypedefTag(Tr,hi,wa,ns);return Ut(ih,hn,Dd)}function A7(hn){let Tr=t.getTokenStart();if(!Md(j()))return;let gr=gE();if($i(25)){let Ei=A7(!0),hi=m.createModuleDeclaration(void 0,gr,Ei,hn?8:void 0);return Ut(hi,Tr)}return hn&&(gr.flags|=4096),gr}function C$(hn){let Tr=M(),gr,Ei;for(;gr=ui(()=>I7(4,hn));){if(gr.kind===352){Re(gr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ei=pn(Ei,gr)}return ho(Ei||[],Tr)}function N$(hn,Tr){let gr=C$(Tr),Ei=ui(()=>{if(Rv(60)){let hi=lD(Tr);if(hi&&hi.kind===349)return hi}});return Ut(m.createJSDocSignature(void 0,gr,Ei),hn)}function Ame(hn,Tr,gr,Ei){let hi=A7();Dg();let wa=Sa(gr),ns=N$(hn,gr);wa||(wa=_p(hn,M(),gr,Ei));let Dd=wa!==void 0?M():ns.end;return Ut(m.createJSDocCallbackTag(Tr,ns,hi,wa),hn,Dd)}function Ime(hn,Tr,gr,Ei){Dg();let hi=Sa(gr),wa=N$(hn,gr);hi||(hi=_p(hn,M(),gr,Ei));let ns=hi!==void 0?M():wa.end;return Ut(m.createJSDocOverloadTag(Tr,wa,hi),hn,ns)}function cD(hn,Tr){for(;!Me(hn)||!Me(Tr);)if(!Me(hn)&&!Me(Tr)&&hn.right.escapedText===Tr.right.escapedText)hn=hn.left,Tr=Tr.left;else return!1;return hn.escapedText===Tr.escapedText}function P$(hn){return I7(1,hn)}function I7(hn,Tr,gr){let Ei=!0,hi=!1;for(;;)switch(gt()){case 60:if(Ei){let wa=q0(hn,Tr);return wa&&(wa.kind===348||wa.kind===355)&&gr&&(Me(wa.name)||!cD(gr,wa.name.left))?!1:wa}hi=!1;break;case 4:Ei=!0,hi=!1;break;case 42:hi&&(Ei=!1),hi=!0;break;case 80:Ei=!1;break;case 1:return!1}}function q0(hn,Tr){x.assert(j()===60);let gr=t.getTokenFullStart();gt();let Ei=gE(),hi=jy(),wa;switch(Ei.escapedText){case\"type\":return hn===1&&kt(gr,Ei);case\"prop\":case\"property\":wa=1;break;case\"arg\":case\"argument\":case\"param\":wa=6;break;case\"template\":return Jy(gr,Ei,Tr,hi);case\"this\":return T7(gr,Ei,Tr,hi);default:return!1}return hn&wa?w(gr,Ei,hn,Tr):!1}function Yn(){let hn=M(),Tr=Rv(23);Tr&&Dg();let gr=eh(!1,!0),Ei=gE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),hi;if(Tr&&(Dg(),_n(64),hi=Ea(16777216,nm),_n(24)),!_l(Ei))return Ut(m.createTypeParameterDeclaration(gr,Ei,void 0,hi),hn)}function qy(){let hn=M(),Tr=[];do{Dg();let gr=Yn();gr!==void 0&&Tr.push(gr),jy()}while(Rv(28));return ho(Tr,hn)}function Jy(hn,Tr,gr,Ei){let hi=j()===19?Fe():void 0,wa=qy();return Ut(m.createJSDocTemplateTag(Tr,hi,wa,_p(hn,M(),gr,Ei)),hn)}function Rv(hn){return j()===hn?(gt(),!0):!1}function dD(){let hn=gE();for($i(23)&&_n(24);$i(25);){let Tr=gE();$i(23)&&_n(24),hn=Ye(hn,Tr)}return hn}function gE(hn){if(!Md(j()))return ys(80,!hn,hn||f.Identifier_expected);Vt++;let Tr=t.getTokenStart(),gr=t.getTokenEnd(),Ei=j(),hi=Pc(t.getTokenValue()),wa=Ut(C(hi,Ei),Tr,gr);return gt(),wa}}})(g_=e.JSDocParser||(e.JSDocParser={}))})(zb||(zb={})),(e=>{function t(S,A,C,R){if(R=R||x.shouldAssert(2),m(S,A,C,R),Iee(C))return S;if(S.statements.length===0)return zb.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let L=S;x.assert(!L.hasBeenIncrementallyParsed),L.hasBeenIncrementallyParsed=!0,zb.fixupParentReferences(L);let G=S.text,U=v(S),K=p(S,C);m(S,A,K,R),x.assert(K.span.start<=C.span.start),x.assert(Al(K.span)===Al(C.span)),x.assert(Al(ZD(K))===Al(ZD(C)));let F=ZD(K).length-K.span.length;d(L,K.span.start,Al(K.span),Al(ZD(K)),F,G,A,R);let oe=zb.parseSourceFile(S.fileName,A,S.languageVersion,U,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return oe.commentDirectives=r(S.commentDirectives,oe.commentDirectives,K.span.start,Al(K.span),F,G,A,R),oe.impliedNodeFormat=S.impliedNodeFormat,oe}e.updateSourceFile=t;function r(S,A,C,R,L,G,U,K){if(!S)return A;let F,oe=!1;for(let $ of S){let{range:de,type:fe}=$;if(de.end<C)F=pn(F,$);else if(de.pos>R){W();let q={range:{pos:de.pos+L,end:de.end+L},type:fe};F=pn(F,q),K&&x.assert(G.substring(de.pos,de.end)===U.substring(q.range.pos,q.range.end))}}return W(),F;function W(){oe||(oe=!0,F?A&&F.push(...A):F=A)}}function i(S,A,C,R,L,G){A?K(S):U(S);return;function U(F){let oe=\"\";if(G&&o(F)&&(oe=R.substring(F.pos,F.end)),F._children&&(F._children=void 0),F_(F,F.pos+C,F.end+C),G&&o(F)&&x.assert(oe===L.substring(F.pos,F.end)),Ao(F,U,K),ap(F))for(let W of F.jsDoc)U(W);l(F,G)}function K(F){F._children=void 0,F_(F,F.pos+C,F.end+C);for(let oe of F)U(oe)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,C,R,L){x.assert(S.end>=A,\"Adjusting an element that was entirely before the change range\"),x.assert(S.pos<=C,\"Adjusting an element that was entirely after the change range\"),x.assert(S.pos<=S.end);let G=Math.min(S.pos,R),U=S.end>=C?S.end+L:Math.min(S.end,R);x.assert(G<=U),S.parent&&(x.assertGreaterThanOrEqual(G,S.parent.pos),x.assertLessThanOrEqual(U,S.parent.end)),F_(S,G,U)}function l(S,A){if(A){let C=S.pos,R=L=>{x.assert(L.pos>=C),C=L.end};if(ap(S))for(let L of S.jsDoc)R(L);Ao(S,R),x.assert(C<=S.end)}}function d(S,A,C,R,L,G,U,K){F(S);return;function F(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!1,L,G,U,K);return}let $=W.end;if($>=A){if(W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L),Ao(W,F,oe),ap(W))for(let de of W.jsDoc)F(de);l(W,K);return}x.assert($<A)}function oe(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!0,L,G,U,K);return}let $=W.end;if($>=A){W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L);for(let de of W)F(de);return}x.assert($<A)}}function p(S,A){let R=A.span.start;for(let U=0;R>0&&U<=1;U++){let K=h(S,R);x.assert(K.pos<=R);let F=K.pos;R=Math.max(0,F-1)}let L=Gl(R,Al(A.span)),G=A.newLength+(A.span.start-R);return FM(L,G)}function h(S,A){let C=S,R;if(Ao(S,G),R){let U=L(R);U.pos>C.pos&&(C=U)}return C;function L(U){for(;;){let K=yV(U);if(K)U=K;else return U}}function G(U){if(!_l(U))if(U.pos<=A){if(U.pos>=C.pos&&(C=U),A<U.end)return Ao(U,G),!0;x.assert(U.end<=A),R=U}else return x.assert(U.pos>A),!0}}function m(S,A,C,R){let L=S.text;if(C&&(x.assert(L.length-C.span.length+C.newLength===A.length),R||x.shouldAssert(3))){let G=L.substr(0,C.span.start),U=A.substr(0,C.span.start);x.assert(G===U);let K=L.substring(Al(C.span),L.length),F=A.substring(Al(ZD(C)),A.length);x.assert(K===F)}}function v(S){let A=S.statements,C=0;x.assert(C<A.length);let R=A[C],L=-1;return{currentNode(U){return U!==L&&(R&&R.end===U&&C<A.length-1&&(C++,R=A[C]),(!R||R.pos!==U)&&G(U)),L=U,x.assert(!R||R.pos===U),R}};function G(U){A=void 0,C=-1,R=void 0,Ao(S,K,F);return;function K(oe){return U>=oe.pos&&U<oe.end?(Ao(oe,K,F),!0):!1}function F(oe){if(U>=oe.pos&&U<oe.end)for(let W=0;W<oe.length;W++){let $=oe[W];if($){if($.pos===U)return A=oe,C=W,R=$,!0;if($.pos<U&&U<$.end)return Ao($,K,F),!0}}return!1}}}e.createSyntaxCursor=v;let E;(S=>{S[S.Value=-1]=\"Value\"})(E||(E={}))})(Zj||(Zj={})),eU=new Map,wEe=/^\\/\\/\\/\\s*<(\\S+)\\s.*?\\/>/im,WEe=/^\\/\\/\\/?\\s*@([^\\s:]+)(.*)\\s*$/im}});function O6(e){let t=new Map,r=new Map;return an(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function Xx(){return E0e||(E0e=O6(Nh))}function Mie(e){return FEe(e,bl)}function FEe(e,t){let r=bo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(\", \");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function w6(e,t,r){return h0e(e,(t??\"\").trim(),r)}function Lie(e,t=\"\",r){if(t=t.trim(),Ui(t,\"-\"))return;if(e.type===\"listOrElement\"&&!t.includes(\",\"))return vI(e,t,r);if(t===\"\")return[];let i=t.split(\",\");switch(e.element.type){case\"number\":return Fi(i,o=>vI(e.element,parseInt(o),r));case\"string\":return Fi(i,o=>vI(e.element,o||\"\",r));case\"boolean\":case\"object\":return x.fail(`List of ${e.element.type} is not yet supported.`);default:return Fi(i,o=>w6(e.element,o,r))}}function zEe(e){return e.name}function kie(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return Bb(o,i,t.alternateMode.diagnostic,e);let l=VD(e,t.optionDeclarations,zEe);return l?Bb(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):Bb(o,i,t.unknownOptionDiagnostic,r||e)}function tU(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;m<h.length;){let v=h[m];if(m++,v.charCodeAt(0)===64)p(v.slice(1));else if(v.charCodeAt(0)===45){let E=v.slice(v.charCodeAt(1)===45?2:1),S=Oie(e.getOptionsNameMap,E,!0);if(S)m=BEe(h,m,e,S,i,l);else{let A=Oie(q6.getOptionsNameMap,E,!0);A?m=BEe(h,m,q6,A,o||(o={}),l):l.push(kie(E,e,v))}}else s.push(v)}}function p(h){let m=SN(h,r||(S=>Hc.readFile(S)));if(!fo(m)){l.push(m);return}let v=[],E=0;for(;;){for(;E<m.length&&m.charCodeAt(E)<=32;)E++;if(E>=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E<m.length&&m.charCodeAt(E)!==34;)E++;E<m.length?(v.push(m.substring(S+1,E)),E++):l.push(bl(f.Unterminated_quoted_string_in_response_file_0,h))}else{for(;m.charCodeAt(E)>32;)E++;v.push(m.substring(S,E))}}d(v)}}function BEe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l===\"null\"?(o[i.name]=void 0,t++):i.type===\"boolean\"?l===\"false\"?(o[i.name]=vI(i,!1,s),t++):(l===\"true\"&&t++,s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!Ui(l,\"-\")&&t++)}else if(!e[t]&&i.type!==\"boolean\"&&s.push(bl(r.optionTypeMismatchDiagnostic,i.name,oU(i))),e[t]!==\"null\")switch(i.type){case\"number\":o[i.name]=vI(i,parseInt(e[t]),s),t++;break;case\"boolean\":let l=e[t];o[i.name]=vI(i,l!==\"false\",s),(l===\"false\"||l===\"true\")&&t++;break;case\"string\":o[i.name]=vI(i,e[t]||\"\",s),t++;break;case\"list\":let d=Lie(i,e[t],s);o[i.name]=d||[],d&&t++;break;case\"listOrElement\":x.fail(\"listOrElement not supported here\");break;default:o[i.name]=w6(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function GEe(e,t){return tU(Q2,e,t)}function nU(e,t){return Oie(Xx,e,t)}function Oie(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function VEe(){return T0e||(T0e=O6(U6))}function jEe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=tU(I0e,e),s=t;return i.length===0&&i.push(\".\"),s.clean&&s.force&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"force\")),s.clean&&s.verbose&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"verbose\")),s.clean&&s.watch&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"watch\")),s.watch&&s.dry&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"watch\",\"dry\")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function UEe(e,...t){return Fo(bl(e,...t).messageText,fo)}function V2(e,t,r,i,o,s){let l=SN(e,h=>r.readFile(h));if(!fo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=G2(e,l),p=r.getCurrentDirectory();return d.path=ks(e,p,od(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,H2(d,r,Qi(Ur(e),p),t,Qi(e,p),void 0,s,i,o)}function j2(e,t){let r=SN(e,t);return fo(r)?rU(e,r):{config:{},error:r}}function rU(e,t){let r=G2(e,t);return{config:XEe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function wie(e,t){let r=SN(e,t);return fo(r)?G2(e,r):{fileName:e,parseDiagnostics:[r]}}function SN(e,t){let r;try{r=t(e)}catch(i){return bl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?bl(f.Cannot_read_file_0,e):r}function iU(e){return PE(e,zEe)}function HEe(){return x0e||(x0e=O6(Yx))}function qEe(){return R0e||(R0e=iU(Nh))}function JEe(){return D0e||(D0e=iU(Yx))}function KEe(){return C0e||(C0e=iU($2))}function R4e(){return $ie===void 0&&($ie={name:void 0,type:\"object\",elementOptions:iU([Kie,Xie,Yie,Z2,{name:\"references\",type:\"list\",element:{name:\"references\",type:\"object\"},category:f.Projects},{name:\"files\",type:\"list\",element:{name:\"files\",type:\"string\"},category:f.File_Management},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},J2])}),$ie}function XEe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(vf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,Ll(e.fileName)===\"jsconfig.json\"?\"jsconfig.json\":\"tsconfig.json\")),Bd(o)){let s=Dr(o.elements,ma);if(s)return U2(e,s,t,!0,r)}return{}}return U2(e,o,t,!0,r)}function Wie(e,t){var r;return U2(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function U2(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var v;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(vf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(vf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,\"?\")),p(S.name)||r.push(vf(e,S.name,f.String_literal_with_double_quotes_expected));let A=aL(S.name)?void 0:$1(S.name),C=A&&Ii(A),R=C?(v=m?.elementOptions)==null?void 0:v.get(C):void 0,L=d(S.initializer,R);typeof C<\"u\"&&(i&&(E[C]=L),o?.onPropertySet(C,L,S,m,R))}return E}function l(h,m){if(!i){h.forEach(v=>d(v,m));return}return Cr(h.map(v=>d(v,m)),v=>v!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(vf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(vf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,oU(m))):r.push(vf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return da(h)&&IW(h,e)}}function oU(e){return e.type===\"listOrElement\"?`${oU(e.element)} or Array`:e.type===\"list\"?\"Array\":fo(e.type)?e.type:\"string\"}function YEe(e,t){if(e){if(q2(t))return!e.disallowNullOrUndefined;if(e.type===\"list\")return oo(t);if(e.type===\"listOrElement\")return oo(t)||YEe(e.element,t);let r=fo(e.type)?e.type:\"string\";return typeof t===r}return!1}function $Ee(e,t,r){var i,o,s;let l=od(r.useCaseSensitiveFileNames),d=nn(Cr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?C4e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ug),A=>RM(Qi(t,r.getCurrentDirectory()),Qi(A,r.getCurrentDirectory()),l)),p={configFilePath:Qi(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=F6(e.options,p),m=e.watchOptions&&N4e(e.watchOptions),v={compilerOptions:{...W6(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&W6(m),references:nn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:\"\",originalPath:void 0})),files:yn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:D4e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in Ul)if(!E.has(A)&&ct(Ul[A].dependencies,C=>E.has(C))){let C=Ul[A].computeValue(e.options),R=Ul[A].computeValue({});C!==R&&(S[A]=Ul[A].computeValue(e.options))}return R1(v.compilerOptions,W6(F6(S,p))),v}function W6(e){return{...bo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function D4e(e){if(yn(e)){if(yn(e)!==1)return e;if(e[0]!==J6)return e}}function C4e(e,t,r,i){if(!t)return Ug;let o=dF(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&iy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&iy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ug}function QEe(e){switch(e.type){case\"string\":case\"number\":case\"boolean\":case\"object\":return;case\"list\":case\"listOrElement\":return QEe(e.element);default:return e.type}}function aU(e,t){return hc(t,(r,i)=>{if(r===e)return i})}function F6(e,t){return ZEe(e,Xx(),t)}function N4e(e){return ZEe(e,HEe())}function ZEe(e,{optionsNameMap:t},r){let i=new Map,o=r&&od(r.useCaseSensitiveFileNames);for(let s in e)if(rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){x.assert(d.type!==\"listOrElement\");let p=QEe(d);p?d.type===\"list\"?i.set(s,l.map(h=>aU(h,p))):i.set(s,aU(l,p)):r&&d.isFilePath?i.set(s,RM(r.configFilePath,Qi(l,Ur(r.configFilePath)),o)):i.set(s,l)}}return i}function e0e(e,t){let r=t0e(e);return o();function i(s){return Array(s+1).join(\" \")}function o(){let s=[],l=i(2);return uU.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=Uie(d);p!==h?s.push(`${l}${d.name}: ${p}`):rs(H6,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function t0e(e){let t=Xw(e,H6);return F6(t)}function n0e(e,t,r){let i=t0e(e);return l();function o(d){return Array(d+1).join(\" \")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of Nh)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:\"\"}),m.push({value:`/* ${vo(A)} */`});for(let C of S){let R;i.has(C.name)?R=`\"${C.name}\": ${JSON.stringify(i.get(C.name))}${(h+=1)===i.size?\"\":\",\"}`:R=`// \"${C.name}\": ${JSON.stringify(Uie(C))},`,m.push({value:R,description:`/* ${C.description&&vo(C.description)||C.name} */`}),p=Math.max(R.length,p)}});let v=o(2),E=[];E.push(\"{\"),E.push(`${v}\"compilerOptions\": {`),E.push(`${v}${v}/* ${vo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push(\"\");for(let S of m){let{value:A,description:C=\"\"}=S;E.push(A&&`${v}${v}${A}${C&&o(p-A.length+2)+C}`)}if(t.length){E.push(`${v}},`),E.push(`${v}\"files\": [`);for(let S=0;S<t.length;S++)E.push(`${v}${v}${JSON.stringify(t[S])}${S===t.length-1?\"\":\",\"}`);E.push(`${v}]`)}else E.push(`${v}}`);return E.push(\"}\"),E.join(r)+r}}function sU(e,t){let r={},i=Xx().optionsNameMap;for(let o in e)rs(e,o)&&(r[o]=P4e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function P4e(e,t,r){if(e&&!q2(t)){if(e.type===\"list\"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);x.assert(e.type!==\"listOrElement\")}return t}function r0e(e,t,r,i,o,s,l,d,p){return o0e(e,void 0,t,r,i,p,o,s,l,d)}function H2(e,t,r,i,o,s,l,d,p){var h,m;(h=qn)==null||h.push(qn.Phase.Parse,\"parseJsonSourceFileConfigFileContent\",{path:e.fileName});let v=o0e(void 0,e,t,r,i,p,o,s,l,d);return(m=qn)==null||m.pop(),v}function lU(e,t){t&&Object.defineProperty(e,\"configFile\",{enumerable:!1,writable:!1,value:t})}function q2(e){return e==null}function i0e(e,t){return Ur(Qi(e,t))}function o0e(e,t,r,i,o={},s,l,d=[],p=[],h){x.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let m=[],v=l0e(e,t,r,i,l,d,m,h),{raw:E}=v,S=Xw(o,v.options||{}),A=s&&v.watchOptions?Xw(s,v.watchOptions):v.watchOptions||s;S.configFilePath=l&&ad(l);let C=L();t&&(t.configFileSpecs=C),lU(S,t);let R=Yo(l?i0e(l,i):i);return{options:S,watchOptions:A,fileNames:G(R),projectReferences:U(R),typeAcquisition:v.typeAcquisition||cU(),raw:E,errors:m,wildcardDirectories:B4e(C,R,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function L(){let $=oe(\"references\",ce=>typeof ce==\"object\",\"object\"),de=K(F(\"files\"));if(de){let ce=$===\"no-prop\"||oo($)&&$.length===0,Z=rs(E,\"extends\");if(de.length===0&&ce&&!Z)if(t){let pe=l||\"tsconfig.json\",Ae=f.The_files_list_in_config_file_0_is_empty,Oe=uL(t,\"files\",be=>be.initializer),_e=Bb(t,Oe,Ae,pe);m.push(_e)}else W(f.The_files_list_in_config_file_0_is_empty,l||\"tsconfig.json\")}let fe=K(F(\"include\")),q=F(\"exclude\"),H=!1,ee=K(q);if(q===\"no-prop\"&&E.compilerOptions){let ce=E.compilerOptions.outDir,Z=E.compilerOptions.declarationDir;(ce||Z)&&(ee=[ce,Z].filter(pe=>!!pe))}de===void 0&&fe===void 0&&(fe=[J6],H=!0);let le,Ee;return fe&&(le=b0e(fe,m,!0,t,\"include\")),ee&&(Ee=b0e(ee,m,!1,t,\"exclude\")),{filesSpecs:de,includeSpecs:fe,excludeSpecs:ee,validatedFilesSpec:Cr(de,fo),validatedIncludeSpecs:le,validatedExcludeSpecs:Ee,pathPatterns:void 0,isDefaultIncludeSpec:H}}function G($){let de=AN(C,$,S,r,p);return s0e(de,TN(E),d)&&m.push(a0e(C,l)),de}function U($){let de,fe=oe(\"references\",q=>typeof q==\"object\",\"object\");if(oo(fe))for(let q of fe)typeof q.path!=\"string\"?W(f.Compiler_option_0_requires_a_value_of_type_1,\"reference.path\",\"string\"):(de||(de=[])).push({path:Qi(q.path,$),originalPath:q.path,prepend:q.prepend,circular:q.circular});return de}function K($){return oo($)?$:void 0}function F($){return oe($,fo,\"string\")}function oe($,de,fe){if(rs(E,$)&&!q2(E[$]))if(oo(E[$])){let q=E[$];return!t&&!ji(q,de)&&m.push(bl(f.Compiler_option_0_requires_a_value_of_type_1,$,fe)),q}else return W(f.Compiler_option_0_requires_a_value_of_type_1,$,\"Array\"),\"not-array\";return\"no-prop\"}function W($,...de){t||m.push(bl($,...de))}}function M4e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function a0e({includeSpecs:e,excludeSpecs:t},r){return bl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||\"tsconfig.json\",JSON.stringify(e||[]),JSON.stringify(t||[]))}function s0e(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function TN(e){return!rs(e,\"files\")&&!rs(e,\"references\")}function z6(e,t,r,i,o){let s=i.length;return s0e(e,o)?i.push(a0e(r,t)):X5(i,l=>!M4e(l)),s!==i.length}function L4e(e){return!!e.options}function l0e(e,t,r,i,o,s,l,d){var p;i=ad(i);let h=Qi(o||\"\",i);if(s.includes(h))return l.push(bl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(\" -> \"))),{raw:e||Wie(t,l)};let m=e?k4e(e,r,i,o,l):O4e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};fo(m.extendedConfigPath)?v(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>v(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=bo(E.extendedSourceFiles.keys())),m.options=R1(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?R1(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function v(E,S){let A=w4e(t,S,r,s,l,d,E);if(A&&L4e(A)){let C=A.raw,R,L=G=>{C[G]&&(E[G]=nn(C[G],U=>Ou(U)?U:wr(R||(R=KD(Ur(S),i,od(r.useCaseSensitiveFileNames))),U)))};L(\"include\"),L(\"exclude\"),L(\"files\"),C.compileOnSave!==void 0&&(E.compileOnSave=C.compileOnSave),R1(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?R1({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function k4e(e,t,r,i,o){rs(e,\"excludes\")&&o.push(bl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=m0e(e.compilerOptions,r,o,i),l=_0e(e.typeAcquisition,r,o,i),d=F4e(e.watchOptions,r,o);e.compileOnSave=W4e(e,r,o);let p=e.extends||e.extends===\"\"?c0e(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function c0e(e,t,r,i,o,s,l,d){let p,h=i?i0e(i,r):r;if(fo(e))p=d0e(e,t,h,o,l,d);else if(oo(e)){p=[];for(let m=0;m<e.length;m++){let v=e[m];fo(v)?p=pn(p,d0e(v,t,h,o,l?.elements[m],d)):eT(Z2.element,e,r,o,s,l?.elements[m],d)}}else eT(Z2,e,r,o,s,l,d);return p}function O4e(e,t,r,i,o){let s=f0e(i),l,d,p,h,m=R4e(),v=XEe(e,o,{rootOptions:m,onPropertySet:E});return l||(l=cU(i)),h&&v&&v.compilerOptions===void 0&&o.push(vf(e,h[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,$1(h[0]))),{raw:v,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p};function E(S,A,C,R,L){if(L&&L!==Z2&&(A=eT(L,A,r,o,C,C.initializer,e)),R?.name)if(L){let G;R===Kie?G=s:R===Xie?G=d??(d={}):R===Yie?G=l??(l=cU(i)):x.fail(\"Unknown option\"),G[L.name]=A}else S&&R?.extraKeyDiagnostics&&(R.elementOptions?o.push(kie(S,R.extraKeyDiagnostics,void 0,C.name,e)):o.push(vf(e,C.name,R.extraKeyDiagnostics.unknownOptionDiagnostic,S)));else R===m&&(L===Z2?p=c0e(A,t,r,i,o,C,C.initializer,e):L||(S===\"excludes\"&&o.push(vf(e,C.name,f.Unknown_option_excludes_Did_you_mean_exclude)),Dr(uU,G=>G.name===S)&&(h=pn(h,C.name))))}}function d0e(e,t,r,i,o,s){if(e=ad(e),Ou(e)||Ui(e,\"./\")||Ui(e,\"../\")){let d=Qi(e,r);if(!t.fileExists(d)&&!Zs(d,\".json\")&&(d=`${d}.json`,!t.fileExists(d))){i.push(Bb(s,o,f.File_0_not_found,e));return}return d}let l=soe(e,wr(r,\"tsconfig.json\"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===\"\"?i.push(Bb(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,\"extends\")):i.push(Bb(s,o,f.File_0_not_found,e))}function w4e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:C_(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=wie(t,v=>r.readFile(v)),h.parseDiagnostics.length||(m=l0e(void 0,h,r,Ur(t),Ll(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let v of h.extendedSourceFiles)l.extendedSourceFiles.add(v);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function W4e(e,t,r){if(!rs(e,J2.name))return!1;let i=eT(J2,e.compileOnSave,t,r);return typeof i==\"boolean\"&&i}function u0e(e,t,r){let i=[];return{options:m0e(e,t,i,r),errors:i}}function p0e(e,t,r){let i=[];return{options:_0e(e,t,i,r),errors:i}}function f0e(e){return e&&Ll(e)===\"jsconfig.json\"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function m0e(e,t,r,i){let o=f0e(i);return Fie(qEe(),e,t,o,Q2,r),i&&(o.configFilePath=ad(i)),o}function cU(e){return{enable:!!e&&Ll(e)===\"jsconfig.json\",include:[],exclude:[]}}function _0e(e,t,r,i){let o=cU(i);return Fie(KEe(),e,t,o,Jie,r),o}function F4e(e,t,r){return Fie(JEe(),e,t,void 0,q6,r)}function Fie(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=eT(d,t[l],r,s):s.push(kie(l,o))}return i}}function Bb(e,t,r,...i){return e&&t?vf(e,t,r,...i):bl(r,...i)}function eT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(Bb(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(YEe(e,t)){let d=e.type;if(d===\"list\"&&oo(t))return g0e(e,t,r,i,o,s,l);if(d===\"listOrElement\")return oo(t)?g0e(e,t,r,i,o,s,l):eT(e.element,t,r,i,o,s,l);if(!fo(e.type))return h0e(e,t,i,s,l);let p=vI(e,t,i,s,l);return q2(p)?p:z4e(e,r,p)}else i.push(Bb(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,oU(e)))}function z4e(e,t,r){return e.isFilePath&&(r=Qi(r,t),r===\"\"&&(r=\".\")),r}function vI(e,t,r,i,o){var s;if(q2(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(Bb(o,i,...l))}function h0e(e,t,r,i,o){if(q2(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return vI(e,l,r,i,o);r.push(FEe(e,(d,...p)=>Bb(o,i,d,...p)))}function g0e(e,t,r,i,o,s,l){return Cr(nn(t,(d,p)=>eT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function AN(e,t,r,i,o=je){t=Yo(t);let s=od(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,E=GC(r,o),S=YL(r,E);if(h)for(let L of h){let G=Qi(L,t);l.set(s(G),G)}let A;if(m&&m.length>0)for(let L of i.readDirectory(t,Ff(S),v,m,void 0)){if(el(L,\".json\")){if(!A){let K=m.filter(oe=>Zs(oe,\".json\")),F=nn(lF(K,t,\"files\"),oe=>`^${oe}$`);A=F?F.map(oe=>iy(oe,i.useCaseSensitiveFileNames)):je}if(Tl(A,K=>K.test(L))!==-1){let K=s(L);!l.has(K)&&!p.has(K)&&p.set(K,L)}continue}if(V4e(L,l,d,E,s))continue;j4e(L,d,E,s);let G=s(L);!l.has(G)&&!d.has(G)&&d.set(G,L)}let C=bo(l.values()),R=bo(d.values());return C.concat(R,bo(p.values()))}function zie(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!yn(l)||!yn(d))return!1;r=Yo(r);let p=od(i);if(s){for(let h of s)if(p(Qi(h,r))===e)return!1}return y0e(e,d,i,o,r)}function v0e(e){let t=Ui(e,\"**/\")?0:e.indexOf(\"/**/\");return t===-1?!1:(Zs(e,\"/..\")?e.length:e.lastIndexOf(\"/../\"))>t}function B6(e,t,r,i){return y0e(e,Cr(t,o=>!v0e(o)),r,i)}function y0e(e,t,r,i,o){let s=BC(t,wr(Yo(i),o),\"exclude\"),l=s&&iy(s,r);return l?l.test(e)?!0:!TA(e)&&l.test(_c(e)):!1}function b0e(e,t,r,i,o){return e.filter(l=>{if(!fo(l))return!1;let d=Bie(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=fW(i,o,d);return Bb(i,p,l,d)}}function Bie(e,t){if(x.assert(typeof e==\"string\"),t&&N0e.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(v0e(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B4e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=BC(t,r,\"exclude\"),s=o&&new RegExp(o,i?\"\":\"i\"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=Yo(wr(r,h));if(s&&s.test(m))continue;let v=G4e(m,i);if(v){let{key:E,path:S,flags:A}=v,C=d.get(E),R=C!==void 0?l[C]:void 0;(R===void 0||R<A)&&(l[C!==void 0?C:S]=A,C===void 0&&d.set(E,S),A===1&&p.push(E))}}for(let h in l)if(rs(l,h))for(let m of p){let v=Gie(h,i);v!==m&&Bf(m,v,r,!i)&&delete l[h]}}return l}function Gie(e,t){return t?e:C_(e)}function G4e(e,t){let r=P0e.exec(e);if(r){let i=e.indexOf(\"?\"),o=e.indexOf(\"*\"),s=e.lastIndexOf(Os);return{key:Gie(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(RV(e.substring(e.lastIndexOf(Os)+1))){let i=fb(e);return{key:Gie(i,t),path:i,flags:1}}}function V4e(e,t,r,i,o){let s=an(i,l=>$l(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(el(e,l)&&(l!==\".ts\"||!el(e,\".d.ts\")))return!1;let d=o(Nb(e,l));if(t.has(d)||r.has(d)){if(l===\".d.ts\"&&(el(e,\".js\")||el(e,\".jsx\")))continue;return!0}}return!1}function j4e(e,t,r,i){let o=an(r,s=>$l(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(el(e,l))return;let d=i(Nb(e,l));t.delete(d)}}function Vie(e){let t={};for(let r in e)if(rs(e,r)){let i=nU(r);i!==void 0&&(t[r]=jie(e[r],i))}return t}function jie(e,t){if(e===void 0)return e;switch(t.type){case\"object\":return\"\";case\"string\":return\"\";case\"number\":return typeof e==\"number\"?e:\"\";case\"boolean\":return typeof e==\"boolean\"?e:\"\";case\"listOrElement\":if(!oo(e))return jie(e,t.element);case\"list\":let r=t.element;return oo(e)?Fi(e,i=>jie(i,r)):\"\";default:return hc(t.type,(i,o)=>{if(i===e)return o})}}function Uie(e){switch(e.type){case\"number\":return 1;case\"boolean\":return!0;case\"string\":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t==\"string\"?t:\"\"}`:\"\";case\"list\":return[];case\"listOrElement\":return Uie(e.element);case\"object\":return{};default:let r=qw(e.type.keys());return r!==void 0?r:x.fail(\"Expected 'option.type' to have entries.\")}}var J2,Hie,IN,qie,K2,G6,Yx,X2,Y2,dU,uU,Nh,pU,fU,mU,V6,j6,_U,hU,gU,U6,$2,E0e,S0e,H6,Q2,T0e,A0e,I0e,Jie,x0e,q6,R0e,D0e,C0e,Z2,Kie,Xie,Yie,$ie,J6,N0e,P0e,U4e=pt({\"src/compiler/commandLineParser.ts\"(){\"use strict\";wo(),J2={name:\"compileOnSave\",type:\"boolean\",defaultValueDescription:!1},Hie=new Map(Object.entries({preserve:1,\"react-native\":3,react:2,\"react-jsx\":4,\"react-jsxdev\":5})),IN=new Map(OD(Hie.entries(),([e,t])=>[\"\"+t,e])),qie=[[\"es5\",\"lib.es5.d.ts\"],[\"es6\",\"lib.es2015.d.ts\"],[\"es2015\",\"lib.es2015.d.ts\"],[\"es7\",\"lib.es2016.d.ts\"],[\"es2016\",\"lib.es2016.d.ts\"],[\"es2017\",\"lib.es2017.d.ts\"],[\"es2018\",\"lib.es2018.d.ts\"],[\"es2019\",\"lib.es2019.d.ts\"],[\"es2020\",\"lib.es2020.d.ts\"],[\"es2021\",\"lib.es2021.d.ts\"],[\"es2022\",\"lib.es2022.d.ts\"],[\"es2023\",\"lib.es2023.d.ts\"],[\"esnext\",\"lib.esnext.d.ts\"],[\"dom\",\"lib.dom.d.ts\"],[\"dom.iterable\",\"lib.dom.iterable.d.ts\"],[\"dom.asynciterable\",\"lib.dom.asynciterable.d.ts\"],[\"webworker\",\"lib.webworker.d.ts\"],[\"webworker.importscripts\",\"lib.webworker.importscripts.d.ts\"],[\"webworker.iterable\",\"lib.webworker.iterable.d.ts\"],[\"webworker.asynciterable\",\"lib.webworker.asynciterable.d.ts\"],[\"scripthost\",\"lib.scripthost.d.ts\"],[\"es2015.core\",\"lib.es2015.core.d.ts\"],[\"es2015.collection\",\"lib.es2015.collection.d.ts\"],[\"es2015.generator\",\"lib.es2015.generator.d.ts\"],[\"es2015.iterable\",\"lib.es2015.iterable.d.ts\"],[\"es2015.promise\",\"lib.es2015.promise.d.ts\"],[\"es2015.proxy\",\"lib.es2015.proxy.d.ts\"],[\"es2015.reflect\",\"lib.es2015.reflect.d.ts\"],[\"es2015.symbol\",\"lib.es2015.symbol.d.ts\"],[\"es2015.symbol.wellknown\",\"lib.es2015.symbol.wellknown.d.ts\"],[\"es2016.array.include\",\"lib.es2016.array.include.d.ts\"],[\"es2016.intl\",\"lib.es2016.intl.d.ts\"],[\"es2017.date\",\"lib.es2017.date.d.ts\"],[\"es2017.object\",\"lib.es2017.object.d.ts\"],[\"es2017.sharedmemory\",\"lib.es2017.sharedmemory.d.ts\"],[\"es2017.string\",\"lib.es2017.string.d.ts\"],[\"es2017.intl\",\"lib.es2017.intl.d.ts\"],[\"es2017.typedarrays\",\"lib.es2017.typedarrays.d.ts\"],[\"es2018.asyncgenerator\",\"lib.es2018.asyncgenerator.d.ts\"],[\"es2018.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"es2018.intl\",\"lib.es2018.intl.d.ts\"],[\"es2018.promise\",\"lib.es2018.promise.d.ts\"],[\"es2018.regexp\",\"lib.es2018.regexp.d.ts\"],[\"es2019.array\",\"lib.es2019.array.d.ts\"],[\"es2019.object\",\"lib.es2019.object.d.ts\"],[\"es2019.string\",\"lib.es2019.string.d.ts\"],[\"es2019.symbol\",\"lib.es2019.symbol.d.ts\"],[\"es2019.intl\",\"lib.es2019.intl.d.ts\"],[\"es2020.bigint\",\"lib.es2020.bigint.d.ts\"],[\"es2020.date\",\"lib.es2020.date.d.ts\"],[\"es2020.promise\",\"lib.es2020.promise.d.ts\"],[\"es2020.sharedmemory\",\"lib.es2020.sharedmemory.d.ts\"],[\"es2020.string\",\"lib.es2020.string.d.ts\"],[\"es2020.symbol.wellknown\",\"lib.es2020.symbol.wellknown.d.ts\"],[\"es2020.intl\",\"lib.es2020.intl.d.ts\"],[\"es2020.number\",\"lib.es2020.number.d.ts\"],[\"es2021.promise\",\"lib.es2021.promise.d.ts\"],[\"es2021.string\",\"lib.es2021.string.d.ts\"],[\"es2021.weakref\",\"lib.es2021.weakref.d.ts\"],[\"es2021.intl\",\"lib.es2021.intl.d.ts\"],[\"es2022.array\",\"lib.es2022.array.d.ts\"],[\"es2022.error\",\"lib.es2022.error.d.ts\"],[\"es2022.intl\",\"lib.es2022.intl.d.ts\"],[\"es2022.object\",\"lib.es2022.object.d.ts\"],[\"es2022.sharedmemory\",\"lib.es2022.sharedmemory.d.ts\"],[\"es2022.string\",\"lib.es2022.string.d.ts\"],[\"es2022.regexp\",\"lib.es2022.regexp.d.ts\"],[\"es2023.array\",\"lib.es2023.array.d.ts\"],[\"es2023.collection\",\"lib.es2023.collection.d.ts\"],[\"esnext.array\",\"lib.es2023.array.d.ts\"],[\"esnext.collection\",\"lib.esnext.collection.d.ts\"],[\"esnext.symbol\",\"lib.es2019.symbol.d.ts\"],[\"esnext.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"esnext.intl\",\"lib.esnext.intl.d.ts\"],[\"esnext.disposable\",\"lib.esnext.disposable.d.ts\"],[\"esnext.bigint\",\"lib.es2020.bigint.d.ts\"],[\"esnext.string\",\"lib.es2022.string.d.ts\"],[\"esnext.promise\",\"lib.esnext.promise.d.ts\"],[\"esnext.weakref\",\"lib.es2021.weakref.d.ts\"],[\"esnext.decorators\",\"lib.esnext.decorators.d.ts\"],[\"esnext.object\",\"lib.esnext.object.d.ts\"],[\"decorators\",\"lib.decorators.d.ts\"],[\"decorators.legacy\",\"lib.decorators.legacy.d.ts\"]],K2=qie.map(e=>e[0]),G6=new Map(qie),Yx=[{name:\"watchFile\",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:\"watchDirectory\",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:\"fallbackPolling\",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:\"synchronousWatchDirectory\",type:\"boolean\",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:\"excludeDirectories\",type:\"list\",element:{name:\"excludeDirectory\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:\"excludeFiles\",type:\"list\",element:{name:\"excludeFile\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],X2=[{name:\"help\",shortName:\"h\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:\"help\",shortName:\"?\",type:\"boolean\",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:\"watch\",shortName:\"w\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:\"preserveWatchOutput\",type:\"boolean\",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:\"listFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:\"explainFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:\"listEmittedFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:\"pretty\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:\"traceResolution\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:\"diagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"extendedDiagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"generateCpuProfile\",type:\"string\",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:\"profile.cpuprofile\"},{name:\"generateTrace\",type:\"string\",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:\"incremental\",shortName:\"i\",type:\"boolean\",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declaration\",shortName:\"d\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declarationMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:\"emitDeclarationOnly\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"sourceMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:\"inlineSourceMap\",type:\"boolean\",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"assumeChangesOnlyAffectDirectDependencies\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:\"locale\",type:\"string\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],Y2={name:\"target\",shortName:\"t\",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set([\"es3\"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},dU={name:\"module\",shortName:\"m\",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},uU=[{name:\"all\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:\"version\",shortName:\"v\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:\"init\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:\"project\",shortName:\"p\",type:\"string\",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:\"build\",type:\"boolean\",shortName:\"b\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:\"showConfig\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:\"listFilesOnly\",type:\"boolean\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Y2,dU,{name:\"lib\",type:\"list\",element:{name:\"lib\",type:G6,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:\"allowJs\",type:\"boolean\",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:\"checkJs\",type:\"boolean\",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:\"jsx\",type:Hie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:\"outFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:\"outDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:\"rootDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"composite\",type:\"boolean\",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:\"tsBuildInfoFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:\".tsbuildinfo\",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:\"removeComments\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:\"noEmit\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"importHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:\"importsNotUsedAsValues\",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:\"downlevelIteration\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:\"isolatedModules\",type:\"boolean\",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"verbatimModuleSyntax\",type:\"boolean\",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:\"strict\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:\"noImplicitAny\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictNullChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictFunctionTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictBindCallApply\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictPropertyInitialization\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noImplicitThis\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"useUnknownInCatchVariables\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"alwaysStrict\",type:\"boolean\",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noUnusedLocals\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:\"noUnusedParameters\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:\"exactOptionalPropertyTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:\"noImplicitReturns\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:\"noFallthroughCasesInSwitch\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:\"noUncheckedIndexedAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:\"noImplicitOverride\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:\"noPropertyAccessFromIndexSignature\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:\"moduleResolution\",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set([\"node\"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:\"baseUrl\",type:\"string\",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:\"paths\",type:\"object\",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:\"rootDirs\",type:\"list\",isTSConfigOnly:!0,element:{name:\"rootDirs\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"typeRoots\",type:\"list\",element:{name:\"typeRoots\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:\"types\",type:\"list\",element:{name:\"types\",type:\"string\"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:\"allowSyntheticDefaultImports\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:\"esModuleInterop\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:\"preserveSymlinks\",type:\"boolean\",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:\"allowUmdGlobalAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:\"moduleSuffixes\",type:\"list\",element:{name:\"suffix\",type:\"string\"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:\"allowImportingTsExtensions\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:\"resolvePackageJsonExports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"resolvePackageJsonImports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"customConditions\",type:\"list\",element:{name:\"condition\",type:\"string\"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:\"sourceRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:\"mapRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:\"inlineSources\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"experimentalDecorators\",type:\"boolean\",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:\"emitDecoratorMetadata\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:\"jsxFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:\"`React.createElement`\"},{name:\"jsxFragmentFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:\"React.Fragment\"},{name:\"jsxImportSource\",type:\"string\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:\"react\"},{name:\"resolveJsonModule\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:\"allowArbitraryExtensions\",type:\"boolean\",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:\"out\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:\"reactNamespace\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:\"`React`\"},{name:\"skipDefaultLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:\"charset\",type:\"string\",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:\"utf8\"},{name:\"emitBOM\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:\"newLine\",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:\"lf\"},{name:\"noErrorTruncation\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:\"noLib\",type:\"boolean\",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"noResolve\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"stripInternal\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:\"disableSizeLimit\",type:\"boolean\",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:\"disableSourceOfProjectReferenceRedirect\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:\"disableSolutionSearching\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:\"disableReferencedProjectLoad\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:\"noImplicitUseStrict\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:\"noEmitHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:\"noEmitOnError\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:\"preserveConstEnums\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:\"declarationDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:\"skipLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:\"allowUnusedLabels\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:\"allowUnreachableCode\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:\"suppressExcessPropertyErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:\"suppressImplicitAnyIndexErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:\"forceConsistentCasingInFileNames\",type:\"boolean\",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:\"maxNodeModuleJsDepth\",type:\"number\",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:\"noStrictGenericChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:\"useDefineForClassFields\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:\"preserveValueImports\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:\"keyofStringsOnly\",type:\"boolean\",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:\"plugins\",type:\"list\",isTSConfigOnly:!0,element:{name:\"plugin\",type:\"object\"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:\"moduleDetection\",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:\"ignoreDeprecations\",type:\"string\",defaultValueDescription:void 0}],Nh=[...X2,...uU],pU=Nh.filter(e=>!!e.affectsSemanticDiagnostics),fU=Nh.filter(e=>!!e.affectsEmit),mU=Nh.filter(e=>!!e.affectsDeclarationPath),V6=Nh.filter(e=>!!e.affectsModuleResolution),j6=Nh.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),_U=Nh.filter(e=>!!e.affectsProgramStructure),hU=Nh.filter(e=>rs(e,\"transpileOptionValue\")),gU=[{name:\"verbose\",shortName:\"v\",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:\"boolean\",defaultValueDescription:!1},{name:\"dry\",shortName:\"d\",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:\"boolean\",defaultValueDescription:!1},{name:\"force\",shortName:\"f\",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:\"boolean\",defaultValueDescription:!1},{name:\"clean\",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:\"boolean\",defaultValueDescription:!1}],U6=[...X2,...gU],$2=[{name:\"enable\",type:\"boolean\",defaultValueDescription:!1},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"}},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"}},{name:\"disableFilenameBasedTypeAcquisition\",type:\"boolean\",defaultValueDescription:!1}],S0e={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:VEe},H6={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Q2={alternateMode:S0e,getOptionsNameMap:Xx,optionDeclarations:Nh,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},A0e={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Xx},I0e={alternateMode:A0e,getOptionsNameMap:VEe,optionDeclarations:U6,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Jie={optionDeclarations:$2,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},q6={getOptionsNameMap:HEe,optionDeclarations:Yx,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},Z2={name:\"extends\",type:\"listOrElement\",element:{name:\"extends\",type:\"string\"},category:f.File_Management,disallowNullOrUndefined:!0},Kie={name:\"compilerOptions\",type:\"object\",elementOptions:qEe(),extraKeyDiagnostics:Q2},Xie={name:\"watchOptions\",type:\"object\",elementOptions:JEe(),extraKeyDiagnostics:q6},Yie={name:\"typeAcquisition\",type:\"object\",elementOptions:KEe(),extraKeyDiagnostics:Jie},J6=\"**/*\",N0e=/(^|\\/)\\*\\*\\/?$/,P0e=/^[^*?]*(?=\\/[^/]*[*?])/}});function to(e,t,...r){e.trace(SV(t,...r))}function cg(e,t){return!!e.traceResolution&&t.trace!==void 0}function yI(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name==\"string\"&&typeof i.version==\"string\"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Os.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function vU(e){return yI(void 0,e)}function M0e(e){if(e)return x.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function K6(e){let t=[];return e&1&&t.push(\"TypeScript\"),e&2&&t.push(\"JavaScript\"),e&4&&t.push(\"Declaration\"),e&8&&t.push(\"JSON\"),t.join(\", \")}function H4e(e){let t=[];return e&1&&t.push(...l2),e&2&&t.push(...Px),e&4&&t.push(...s2),e&8&&t.push(\".json\"),t}function Qie(e){if(e)return x.assert(mF(e.extension)),{fileName:e.path,packageId:e.packageId}}function L0e(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Ic(e)){let{resolvedFileName:h,originalPath:m}=w0e(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return k0e(t,r,i,o,s,l.resultFromCache,d,p)}function k0e(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:Zie(s.failedLookupLocations,r),affectingLocations:Zie(s.affectingLocations,i),resolutionDiagnostics:Zie(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=$x(s.failedLookupLocations,r),s.affectingLocations=$x(s.affectingLocations,i),s.resolutionDiagnostics=$x(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:xN(r),affectingLocations:xN(i),resolutionDiagnostics:xN(o),alternateResult:d}}function xN(e){return e.length?e:void 0}function $x(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Zie(e,t){return e?.length?t.length?[...e,...t]:e.slice():xN(t)}function O0e(e,t,r,i){if(!rs(e,t)){i.traceEnabled&&to(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&to(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?\"null\":typeof o);return}return o}function yU(e,t,r,i){let o=O0e(e,t,\"string\",i);if(o===void 0)return;if(!o){i.traceEnabled&&to(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=Yo(wr(r,o));return i.traceEnabled&&to(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function q4e(e,t,r){return yU(e,\"typings\",t,r)||yU(e,\"types\",t,r)}function J4e(e,t,r){return yU(e,\"tsconfig\",t,r)}function K4e(e,t,r){return yU(e,\"main\",t,r)}function X4e(e,t){let r=O0e(e,\"typesVersions\",\"object\",t);if(r!==void 0)return t.traceEnabled&&to(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y4e(e,t){let r=X4e(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)rs(r,l)&&!hM.tryParse(l)&&to(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=X6(r);if(!i){t.traceEnabled&&to(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,jm);return}let{version:o,paths:s}=i;if(typeof s!=\"object\"){t.traceEnabled&&to(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,\"object\",typeof s);return}return i}function X6(e){foe||(foe=new zf(bp));for(let t in e){if(!rs(e,t))continue;let r=hM.tryParse(t);if(r!==void 0&&r.test(foe))return{version:t,paths:e[t]}}}function RN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=Ur(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $4e(r)}function $4e(e){let t;return Vf(Yo(e),r=>{let i=wr(r,iSe);(t??(t=[])).push(i)}),t}function Q4e(e,t,r){let i=typeof r.useCaseSensitiveFileNames==\"function\"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Xh(e,t,!i)===0}function w0e(e,t,r){let i=d3e(e,t,r),o=Q4e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function W0e(e,t,r){let i=Zs(e,\"/node_modules/@types\")||Zs(e,\"/node_modules/@types/\")?tSe(t,r):t;return wr(e,i)}function eoe(e,t,r,i,o,s,l){x.assert(typeof e==\"string\",\"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.\");let d=cg(r,i);o&&(r=o.commandLine.options);let p=t?Ur(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Ic(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(to(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),to(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),F(h)),h;let m=RN(r,i);d&&(t===void 0?m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let v=[],E=[],S=toe(r);l!==void 0&&(S|=30);let A=zd(r);l===99&&3<=A&&A<=99&&(S|=32);let C=S&8?hy(r,l):[],R=[],L={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:v,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:C,requestContainingDirectory:p,reportDiagnostic:$=>void R.push($),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},G=oe(),U=!0;G||(G=W(),U=!1);let K;if(G){let{fileName:$,packageId:de}=G,fe=$,q;r.preserveSymlinks||({resolvedFileName:fe,originalPath:q}=w0e($,i,d)),K={primary:U,resolvedFileName:fe,originalPath:q,packageId:de,isExternalLibraryImport:Gb($)}}return h={resolvedTypeReferenceDirective:K,failedLookupLocations:xN(v),affectingLocations:xN(E),resolutionDiagnostics:xN(R)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Ic(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&F(h),h;function F($){var de;(de=$.resolvedTypeReferenceDirective)!=null&&de.resolvedFileName?$.resolvedTypeReferenceDirective.packageId?to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,$.resolvedTypeReferenceDirective.resolvedFileName,Qv($.resolvedTypeReferenceDirective.packageId),$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,$.resolvedTypeReferenceDirective.resolvedFileName,$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_not_resolved,e)}function oe(){if(m&&m.length)return d&&to(i,f.Resolving_with_primary_search_path_0,m.join(\", \")),ml(m,$=>{let de=W0e($,e,L),fe=gm($,i);if(!fe&&d&&to(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,$),r.typeRoots){let q=eR(4,de,!fe,L);if(q){let H=tk(q.path),ee=H?m0(H,!1,L):void 0;return Qie(yI(ee,q))}}return Qie(coe(4,de,!fe,L))});d&&to(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function W(){let $=t&&Ur(t);if($!==void 0){let de;if(!r.typeRoots||!Zs(t,lR))if(d&&to(i,f.Looking_up_in_node_modules_folder_initial_location_0,$),Ic(e)){let{path:fe}=j0e($,e);de=AU(4,fe,!1,L,!0)}else{let fe=$0e(4,e,$,L,void 0,void 0);de=fe&&fe.value}else d&&to(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Qie(de)}else d&&to(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function toe(e){let t=0;switch(zd(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function hy(e,t){let r=zd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?[\"import\"]:[\"require\"];return e.noDtsResolution||i.push(\"types\"),r!==100&&i.push(\"node\"),ro(i,e.customConditions)}function bU(e,t,r,i,o){let s=nk(o?.getPackageJsonInfoCache(),i,r);return Vf(t,l=>{if(Ll(l)!==\"node_modules\"){let d=wr(l,\"node_modules\"),p=wr(d,e);return m0(p,!1,s)}})}function Y6(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=RN(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=Yo(s),d=wr(o,l,\"package.json\");if(!(t.fileExists(d)&&kC(d,t).typings===null)){let h=Ll(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function $6(e){return!!e?.contents}function noe(e){return!!e&&!e.contents}function roe(e){var t;if(e===null||typeof e!=\"object\")return\"\"+e;if(oo(e))return`[${(t=e.map(i=>roe(i)))==null?void 0:t.join(\",\")}]`;let r=\"{\";for(let i in e)rs(e,i)&&(r+=`${i}: ${roe(e[i])}`);return r+\"}\"}function EU(e,t){return t.map(r=>roe(iF(e,r))).join(\"|\")+`|${e.pathsBasePath}`}function SU(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(v){return v?p(v.commandLine.options,!1):o}function l(v){return v?p(v.commandLine.options,!0):o}function d(v){e!==v&&(e?o=p(v,!0):r.set(v,o),e=v)}function p(v,E){let S=r.get(v);if(S)return S;let A=m(v);if(S=i.get(A),!S){if(e){let C=m(e);C===A?S=o:i.has(C)||i.set(C,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(v,S),S}function h(){let v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function m(v){let E=t.get(v);return E||t.set(v,E=EU(v,V6)),E}}function Z4e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(ks(d,e,t))}function o(d,p){(r||(r=new Map)).set(ks(d,e,t),p)}function s(){r=void 0}function l(){return r}}function F0e(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function e3e(e,t,r,i){let o=SU(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let v=ks(h,e,t);return F0e(o,m,v,()=>bI())}function p(h,m,v,E){var S,A;let C=ks(v,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(C))==null?void 0:A.get(h,m)}}function DN(e,t){return t===void 0?e:`${t}|${e}`}function bI(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=DN(o,s);return t.set(l,[o,s]),l}}function t3e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function n3e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function r3e(e,t,r,i,o){let s=SU(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(v){s.update(v)}function p(v,E,S,A){var C,R;return x.assert(!Ic(v)),(R=(C=s.getMapOfCacheRedirects(A))==null?void 0:C.get(DN(v,E)))==null?void 0:R.get(S)}function h(v,E,S){return x.assert(!Ic(v)),F0e(s,S,DN(v,E),m)}function m(){let v=new Map;return{get:E,set:S};function E(C){return v.get(ks(C,e,t))}function S(C,R){let L=ks(C,e,t);if(v.has(L))return;v.set(L,R);let G=i(R),U=G&&A(L,G),K=L;for(;K!==U;){let F=Ur(K);if(F===K||v.has(F))break;v.set(F,R),K=F}}function A(C,R){let L=ks(Ur(R),e,t),G=0,U=Math.min(C.length,L.length);for(;G<U&&C.charCodeAt(G)===L.charCodeAt(G);)G++;if(G===C.length&&(L.length===G||L[G]===Os))return C;let K=M_(C);if(G<K)return;let F=C.lastIndexOf(Os,G-1);if(F!==-1)return C.substr(0,Math.max(F,K))}}}function z0e(e,t,r,i,o,s){s??(s=new Map);let l=e3e(e,t,r,s),d=r3e(e,t,r,o,s);return i??(i=Z4e(e,t)),{...i,...l,...d,clear:p,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(v){l.update(v),d.update(v)}}function Qx(e,t,r,i,o){let s=z0e(e,t,r,i,t3e,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function Q6(e,t,r,i,o){return z0e(e,t,r,i,n3e,o)}function TU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Z6(e,t,r,i,o){return Zx(e,t,TU(r),i,o)}function B0e(e,t,r,i){let o=Ur(t);return r.getFromDirectoryCache(e,i,o,void 0)}function Zx(e,t,r,i,o,s,l){var d,p,h;let m=cg(r,i);s&&(r=s.commandLine.options),m&&(to(i,f.Resolving_module_0_from_1,e,t),s&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let v=Ur(t),E=o?.getFromDirectoryCache(e,l,v,s);if(E)m&&to(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,v);else{let S=r.moduleResolution;switch(S===void 0?(S=zd(r),m&&to(i,f.Module_resolution_kind_is_not_specified_using_0,O1[S])):m&&to(i,f.Explicitly_specified_module_resolution_kind_Colon_0,O1[S]),(d=Pd)==null||d.logStartResolveModule(e),S){case 3:E=s3e(e,t,r,i,o,s,l);break;case 99:E=l3e(e,t,r,i,o,s,l);break;case 2:E=aoe(e,t,r,i,o,s,l?hy(r,l):void 0);break;case 1:E=uoe(e,t,r,i,o,s);break;case 100:E=ooe(e,t,r,i,o,s,l?hy(r,l):void 0);break;default:return x.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=Pd)==null||p.logInfoEvent(`Module \"${e}\" resolved to \"${E.resolvedModule.resolvedFileName}\"`)),(h=Pd)==null||h.logStopResolveModule(E&&E.resolvedModule?\"\"+E.resolvedModule.resolvedFileName:\"null\"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(v,s).set(e,l,E),Ic(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(v,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?to(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,Qv(E.resolvedModule.packageId)):to(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):to(i,f.Module_name_0_was_not_resolved,e)),E}function G0e(e,t,r,i,o){let s=i3e(e,t,i,o);return s?s.value:Ic(t)?o3e(e,t,r,i,o):a3e(e,t,i,o)}function i3e(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!op(t)){i.traceEnabled&&(s&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),to(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=zW(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=fF(l)):void 0;return doe(e,t,p,l,h,r,!1,i)}}function o3e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&to(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=Yo(wr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=Yo(p);Zs(h,Os)||(h+=Os);let m=Ui(s,h)&&(d===void 0||d.length<h.length);o.traceEnabled&&to(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,m),m&&(d=h,l=p)}if(d){o.traceEnabled&&to(o.host,f.Longest_matching_prefix_for_0_is_1,s,d);let p=s.substr(d.length);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,d,s);let h=i(e,s,!gm(r,o.host),o);if(h)return h;o.traceEnabled&&to(o.host,f.Trying_other_entries_in_rootDirs);for(let m of o.compilerOptions.rootDirs){if(m===l)continue;let v=wr(Yo(m),p);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,m,v);let E=Ur(v),S=i(e,v,!gm(E,o.host),o);if(S)return S}o.traceEnabled&&to(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function a3e(e,t,r,i){let{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);let s=Yo(wr(o,t));return i.traceEnabled&&to(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!gm(Ur(s),i.host),i)}function ioe(e,t,r){let{resolvedModule:i,failedLookupLocations:o}=c3e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(\", \")}`);return i.resolvedFileName}function s3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function l3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function V0e(e,t,r,i,o,s,l,d,p){let h=Ur(r),m=d===99?32:0,v=i.noDtsResolution?3:7;return Mb(i)&&(v|=8),ek(e|m,t,h,i,o,s,v,!1,l,p)}function c3e(e,t,r){return ek(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function ooe(e,t,r,i,o,s,l){let d=Ur(t),p=r.noDtsResolution?3:7;return Mb(r)&&(p|=8),ek(toe(r),e,d,r,i,o,p,!1,s,l)}function aoe(e,t,r,i,o,s,l,d){let p;return d?p=8:r.noDtsResolution?(p=3,Mb(r)&&(p|=8)):p=Mb(r)?15:7,ek(l?30:0,e,Ur(t),r,i,o,p,!!d,s,l)}function soe(e,t,r){return ek(30,e,Ur(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function ek(e,t,r,i,o,s,l,d,p,h){var m,v,E,S,A;let C=cg(i,o),R=[],L=[],G=zd(i);h??(h=hy(i,G===100||G===2?void 0:e&32?99:1));let U=[],K={compilerOptions:i,host:o,traceEnabled:C,failedLookupLocations:R,affectingLocations:L,packageJsonInfoCache:s,features:e,conditions:h??je,requestContainingDirectory:r,reportDiagnostic:$=>void U.push($),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};C&&HA(G)&&to(o,f.Resolving_in_0_mode_with_conditions_1,e&32?\"ESM\":\"CJS\",K.conditions.map($=>`'${$}'`).join(\", \"));let F;if(G===2){let $=l&5,de=l&-6;F=$&&W($,K)||de&&W(de,K)||void 0}else F=W(l,K);let oe;if(K.resolvedPackageDirectory&&!d&&!Ic(t)){let $=F?.value&&l&5&&!K0e(5,F.value.resolved.extension);if((m=F?.value)!=null&&m.isExternalLibraryImport&&$&&e&8&&h?.includes(\"import\")){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let de={...K,features:K.features&-9,reportDiagnostic:Ca},fe=W(l&5,de);(v=fe?.value)!=null&&v.isExternalLibraryImport&&(oe=fe.value.resolved.path)}else if((!F?.value||$)&&G===2){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let de={...K.compilerOptions,moduleResolution:100},fe={...K,compilerOptions:de,features:30,conditions:hy(de),reportDiagnostic:Ca},q=W(l&5,fe);(E=q?.value)!=null&&E.isExternalLibraryImport&&(oe=q.value.resolved.path)}}return L0e(t,(S=F?.value)==null?void 0:S.resolved,(A=F?.value)==null?void 0:A.isExternalLibraryImport,R,L,U,K,s,oe);function W($,de){let q=G0e($,t,r,(H,ee,le,Ee)=>AU(H,ee,le,Ee,!0),de);if(q)return Rp({resolved:q,isExternalLibraryImport:Gb(q.path)});if(Ic(t)){let{path:H,parts:ee}=j0e(r,t),le=AU($,H,!1,de,!0);return le&&Rp({resolved:le,isExternalLibraryImport:To(ee,\"node_modules\")})}else{let H;if(e&2&&Ui(t,\"#\")&&(H=m3e($,t,r,de,s,p)),!H&&e&4&&(H=f3e($,t,r,de,s,p)),!H){if(t.includes(\":\")){C&&to(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,K6($));return}C&&to(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,K6($)),H=$0e($,t,r,de,s,p)}return $&4&&(H??(H=rSe(t,de))),H&&{value:H.value&&{resolved:H.value,isExternalLibraryImport:!0}}}}}function j0e(e,t){let r=wr(e,t),i=mc(r),o=Ns(i);return{path:o===\".\"||o===\"..\"?_c(Yo(r)):Yo(r),parts:i}}function d3e(e,t,r){if(!t.realpath)return e;let i=Yo(t.realpath(e));return r&&to(t,f.Resolving_real_path_for_0_result_1,e,i),i}function AU(e,t,r,i,o){if(i.traceEnabled&&to(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,K6(e)),!Jg(t)){if(!r){let l=Ur(t);gm(l,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=eR(e,t,r,i);if(s){let l=o?tk(s.path):void 0,d=l?m0(l,!1,i):void 0;return yI(d,s)}}if(r||gm(t,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return coe(e,t,r,i,o)}function Gb(e){return e.includes(q_)}function tk(e,t){let r=Yo(e),i=r.lastIndexOf(q_);if(i===-1)return;let o=i+q_.length,s=U0e(r,o,t);return r.charCodeAt(o)===64&&(s=U0e(r,s,t)),r.slice(0,s)}function U0e(e,t,r){let i=e.indexOf(Os,t+1);return i===-1?r?e.length:t:i}function loe(e,t,r,i){return vU(eR(e,t,r,i))}function eR(e,t,r,i){let o=H0e(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=q0e(t,e,\"\",r,i);if(s)return s}}function H0e(e,t,r,i){if(!Ll(t).includes(\".\"))return;let s=Yd(t);s===t&&(s=t.substring(0,t.lastIndexOf(\".\")));let l=t.substring(s.length);return i.traceEnabled&&to(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),q0e(s,e,l,r,i)}function IU(e,t,r,i){return e&1&&$l(t,l2)||e&4&&$l(t,s2)?xU(t,r,i)!==void 0?{path:t,ext:JW(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&el(t,\".json\")?xU(t,r,i)!==void 0?{path:t,ext:\".json\",resolvedUsingTsExtension:void 0}:void 0:H0e(e,t,r,i)}function q0e(e,t,r,i,o){if(!i){let l=Ur(e);l&&(i=!gm(l,o.host))}switch(r){case\".mjs\":case\".mts\":case\".d.mts\":return t&1&&s(\".mts\",r===\".mts\"||r===\".d.mts\")||t&4&&s(\".d.mts\",r===\".mts\"||r===\".d.mts\")||t&2&&s(\".mjs\")||void 0;case\".cjs\":case\".cts\":case\".d.cts\":return t&1&&s(\".cts\",r===\".cts\"||r===\".d.cts\")||t&4&&s(\".d.cts\",r===\".cts\"||r===\".d.cts\")||t&2&&s(\".cjs\")||void 0;case\".json\":return t&4&&s(\".d.json.ts\")||t&8&&s(\".json\")||void 0;case\".tsx\":case\".jsx\":return t&1&&(s(\".tsx\",r===\".tsx\")||s(\".ts\",r===\".tsx\"))||t&4&&s(\".d.ts\",r===\".tsx\")||t&2&&(s(\".jsx\")||s(\".js\"))||void 0;case\".ts\":case\".d.ts\":case\".js\":case\"\":return t&1&&(s(\".ts\",r===\".ts\"||r===\".d.ts\")||s(\".tsx\",r===\".ts\"||r===\".d.ts\"))||t&4&&s(\".d.ts\",r===\".ts\"||r===\".d.ts\")||t&2&&(s(\".js\")||s(\".jsx\"))||o.isConfigLookup&&s(\".json\")||void 0;default:return t&4&&!Yc(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=xU(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function xU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return J0e(e,t,r);let o=og(e)??\"\",s=o?QL(e,o):e;return an(r.compilerOptions.moduleSuffixes,l=>J0e(s+l+o,t,r))}function J0e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&to(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&to(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function coe(e,t,r,i,o=!0){let s=o?m0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&e4(s,i);return yI(s,DU(e,t,r,i,l,d))}function RU(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=toe(t),p=nk(i?.getPackageJsonInfoCache(),r,t);p.conditions=hy(t),p.requestContainingDirectory=e.packageDirectory;let h=DU(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,e4(e,p));if(s=pn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=NE([hy(t,99),hy(t,1)],mm);for(let v of m){let E={...p,failedLookupLocations:[],conditions:v,host:r},S=u3e(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=Kh(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function u3e(e,t,r,i){let o;if(oo(t))for(let l of t)s(l);else if(typeof t==\"object\"&&t!==null&&t4(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l==\"string\"&&Ui(l,\"./\"))if(l.includes(\"*\")&&r.host.readDirectory){if(l.indexOf(\"*\")!==l.lastIndexOf(\"*\"))return!1;r.host.readDirectory(e.packageDirectory,H4e(i),void 0,[pee(KA(l,\"**/*\"),\".*\")]).forEach(h=>{o=Kh(o,{path:h,ext:w1(h),resolvedUsingTsExtension:void 0})})}else{let h=mc(l).slice(2);if(h.includes(\"..\")||h.includes(\".\")||h.includes(\"node_modules\"))return!1;let m=wr(e.packageDirectory,l),v=Qi(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=IU(i,v,!1,r);if(E)return o=Kh(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l==\"object\"&&l!==null)return an(fh(l),h=>{if(h===\"default\"||To(r.conditions,h)||ok(r.conditions,h))return s(l[h]),!0})}}function nk(e,t,r){return{host:t,compilerOptions:r,traceEnabled:cg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:je,requestContainingDirectory:void 0,reportDiagnostic:Ca,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function rk(e,t){let r=mc(e);for(r.pop();r.length>0;){let i=m0(Vv(r),!1,t);if(i)return i;r.pop()}}function e4(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y4e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,v=wr(e,\"package.json\");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(E!==void 0){if($6(E))return m&&to(h,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&to(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}let S=gm(e,h);if(S&&h.fileExists(v)){let A=kC(v,h);m&&to(h,f.Found_package_json_at_0,v);let C={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,C),(d=r.affectingLocations)==null||d.push(v),C}else S&&m&&to(h,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(v)}function DU(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=J4e(o,t,i):l=e&4&&q4e(o,t,i)||e&7&&K4e(o,t,i)||void 0);let d=(E,S,A,C)=>{let R=IU(E,S,A,C);if(R)return vU(R);let L=E===4?5:E,G=C.features,U=C.candidateIsFromPackageJsonField;C.candidateIsFromPackageJsonField=!0,o?.type!==\"module\"&&(C.features&=-33);let K=AU(L,S,A,C,!1);return C.features=G,C.candidateIsFromPackageJsonField=U,K},p=l?!gm(Ur(l),i.host):void 0,h=r||!gm(t,i.host),m=wr(t,i.isConfigLookup?\"tsconfig\":\"index\");if(s&&(!l||Bf(t,l))){let E=Gf(t,l||m,!1);i.traceEnabled&&to(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,bp,E);let S=doe(e,E,t,s.paths,void 0,d,p||h,i);if(S)return M0e(S.value)}let v=l&&M0e(d(e,l,p,i));if(v)return v;if(!(i.features&32))return eR(e,m,h,i)}function K0e(e,t){return e&2&&(t===\".js\"||t===\".jsx\"||t===\".mjs\"||t===\".cjs\")||e&1&&(t===\".ts\"||t===\".tsx\"||t===\".mts\"||t===\".cts\")||e&4&&(t===\".d.ts\"||t===\".d.mts\"||t===\".d.cts\")||e&8&&t===\".json\"||!1}function ik(e){let t=e.indexOf(Os);return e[0]===\"@\"&&(t=e.indexOf(Os,t+1)),t===-1?{packageName:e,rest:\"\"}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function t4(e){return ji(fh(e),t=>Ui(t,\".\"))}function p3e(e){return!ct(fh(e),t=>Ui(t,\".\"))}function f3e(e,t,r,i,o,s){var l,d;let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!=\"string\")return;let m=mc(t),v=mc(h.contents.packageJsonContent.name);if(!ji(v,(R,L)=>m[L]===R))return;let E=m.slice(v.length),S=yn(E)?`.${Os}${E.join(Os)}`:\".\";if(sy(i.compilerOptions)&&!Gb(r))return CU(h,e,S,i,o,s);let A=e&5,C=e&-6;return CU(h,A,S,i,o,s)||CU(h,C,S,i,o,s)}function CU(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r===\".\"){let l;if(typeof e.contents.packageJsonContent.exports==\"string\"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports==\"object\"&&p3e(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:rs(e.contents.packageJsonContent.exports,\".\")&&(l=e.contents.packageJsonContent.exports[\".\"]),l)return Y0e(t,i,o,s,r,e,!1)(l,\"\",!1,\".\")}else if(t4(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!=\"object\")return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0);let l=X0e(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0)}}function m3e(e,t,r,i,o,s){var l,d;if(t===\"#\"||Ui(t,\"#/\"))return i.traceEnabled&&to(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),Rp(void 0);let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h)return i.traceEnabled&&to(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),Rp(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&to(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),Rp(void 0);let m=X0e(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&to(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),Rp(void 0))}function NU(e,t){let r=e.indexOf(\"*\"),i=t.indexOf(\"*\"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function X0e(e,t,r,i,o,s,l,d){let p=Y0e(e,t,r,i,o,l,d);if(!Zs(o,Os)&&!o.includes(\"*\")&&rs(s,o)){let v=s[o];return p(v,\"\",!1,o)}let h=uS(Cr(fh(s),v=>v.includes(\"*\")||Zs(v,\"/\")),NU);for(let v of h)if(t.features&16&&m(v,o)){let E=s[v],S=v.indexOf(\"*\"),A=o.substring(v.substring(0,S).length,o.length-(v.length-1-S));return p(E,A,!0,v)}else if(Zs(v,\"*\")&&Ui(o,v.substring(0,v.length-1))){let E=s[v],S=o.substring(v.length-1);return p(E,S,!0,v)}else if(Ui(o,v)){let E=s[v],S=o.substring(v.length);return p(E,S,!1,v)}function m(v,E){if(Zs(v,\"*\"))return!1;let S=v.indexOf(\"*\");return S===-1?!1:Ui(E,v.substring(0,S))&&Zs(E,v.substring(S+1))}}function Y0e(e,t,r,i,o,s,l){return d;function d(p,h,m,v){if(typeof p==\"string\"){if(!m&&h.length>0&&!Zs(p,\"/\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);if(!Ui(p,\"./\")){if(l&&!Ui(p,\"../\")&&!Ui(p,\"/\")&&!Ou(p)){let F=m?p.replace(/\\*/g,h):p+h;gy(t,f.Using_0_subpath_1_with_target_2,\"imports\",v,F),gy(t,f.Resolving_module_0_from_1,F,s.packageDirectory+\"/\");let oe=ek(t.features,F,s.packageDirectory+\"/\",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return Rp(oe.resolvedModule?{path:oe.resolvedModule.resolvedFileName,extension:oe.resolvedModule.extension,packageId:oe.resolvedModule.packageId,originalPath:oe.resolvedModule.originalPath,resolvedUsingTsExtension:oe.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0)}let R=(op(p)?mc(p).slice(1):mc(p)).slice(1);if(R.includes(\"..\")||R.includes(\".\")||R.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);let L=wr(s.packageDirectory,p),G=mc(h);if(G.includes(\"..\")||G.includes(\".\")||G.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);t.traceEnabled&&to(t.host,f.Using_0_subpath_1_with_target_2,l?\"imports\":\"exports\",v,m?p.replace(/\\*/g,h):p+h);let U=E(m?L.replace(/\\*/g,h):L+h),K=A(U,h,wr(s.packageDirectory,\"package.json\"),l);return K||Rp(yI(s,IU(e,U,!1,t)))}else if(typeof p==\"object\"&&p!==null)if(Array.isArray(p)){if(!yn(p))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);for(let C of p){let R=d(C,h,m,v);if(R)return R}}else{gy(t,f.Entering_conditional_exports);for(let C of fh(p))if(C===\"default\"||t.conditions.includes(C)||ok(t.conditions,C)){gy(t,f.Matched_0_condition_1,l?\"imports\":\"exports\",C);let R=p[C],L=d(R,h,m,v);if(L)return gy(t,f.Resolved_under_condition_0,C),gy(t,f.Exiting_conditional_exports),L;gy(t,f.Failed_to_resolve_under_condition_0,C)}else gy(t,f.Saw_non_matching_condition_0,C);gy(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&to(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),Rp(void 0);return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);function E(C){var R,L;return C===void 0?C:Qi(C,(L=(R=t.host).getCurrentDirectory)==null?void 0:L.call(R))}function S(C,R){return _c(wr(C,R))}function A(C,R,L,G){var U,K,F,oe;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!C.includes(\"/node_modules/\")&&(!t.compilerOptions.configFile||Bf(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!PU(t)))){let $=ev({useCaseSensitiveFileNames:()=>PU(t)}),de=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let fe=E(VN(t.compilerOptions,()=>[],((K=(U=t.host).getCurrentDirectory)==null?void 0:K.call(U))||\"\",$));de.push(fe)}else if(t.requestContainingDirectory){let fe=E(wr(t.requestContainingDirectory,\"index.ts\")),q=E(VN(t.compilerOptions,()=>[fe,E(L)],((oe=(F=t.host).getCurrentDirectory)==null?void 0:oe.call(F))||\"\",$));de.push(q);let H=_c(q);for(;H&&H.length>1;){let ee=mc(H);ee.pop();let le=Vv(ee);de.unshift(le),H=_c(le)}}de.length>1&&t.reportDiagnostic(bl(G?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,R===\"\"?\".\":R,L));for(let fe of de){let q=W(fe);for(let H of q)if(Bf(H,C,!PU(t))){let ee=C.slice(H.length+1),le=wr(fe,ee),Ee=[\".mjs\",\".cjs\",\".js\",\".json\",\".d.mts\",\".d.cts\",\".d.ts\"];for(let ce of Ee)if(el(le,ce)){let Z=une(le);for(let pe of Z){if(!K0e(e,pe))continue;let Ae=xM(le,pe,ce,!PU(t));if(t.host.fileExists(Ae))return Rp(yI(s,IU(e,Ae,!1,t)))}}}}}return;function W($){var de,fe;let q=t.compilerOptions.configFile?((fe=(de=t.host).getCurrentDirectory)==null?void 0:fe.call(de))||\"\":$,H=[];return t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.outDir))),H}}}}function ok(e,t){if(!e.includes(\"types\")||!Ui(t,\"types@\"))return!1;let r=hM.tryParse(t.substring(6));return r?r.test(bp):!1}function $0e(e,t,r,i,o,s){return Q0e(e,t,r,i,!1,o,s)}function _3e(e,t,r){return Q0e(4,e,t,r,!0,void 0,void 0)}function Q0e(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){gy(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,K6(p));let v=m(p);if(v)return v}if(h&&!o)return gy(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,K6(h)),m(h);function m(v){return Vf(ad(r),E=>{if(Ll(E)!==\"node_modules\"){let S=nSe(s,t,d,E,l,i);return S||Rp(Z0e(v,t,E,i,o,s,l))}})}}function Z0e(e,t,r,i,o,s,l){let d=wr(r,\"node_modules\"),p=gm(d,i.host);if(!p&&i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=eSe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=wr(d,\"@types\"),m=p;return p&&!gm(h,i.host)&&(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),eSe(4,tSe(t,i),h,m,i,s,l)}}function eSe(e,t,r,i,o,s,l){var d,p;let h=Yo(wr(r,t)),{packageName:m,rest:v}=ik(t),E=wr(r,m),S,A=m0(h,!i,o);if(v!==\"\"&&A&&(!(o.features&8)||!rs(((d=S=m0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??je,\"exports\"))){let L=eR(e,h,!i,o);if(L)return vU(L);let G=DU(e,h,!i,o,A.contents.packageJsonContent,e4(A,o));return yI(A,G)}let C=(L,G,U,K)=>{let F=(v||!(K.features&32))&&eR(L,G,U,K)||DU(L,G,U,K,A&&A.contents.packageJsonContent,A&&e4(A,K));return!F&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&K.features&32&&(F=eR(L,wr(G,\"index.js\"),U,K)),yI(A,F)};if(v!==\"\"&&(A=S??m0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=CU(A,e,wr(\".\",v),o,s,l))==null?void 0:p.value;let R=v!==\"\"&&A?e4(A,o):void 0;if(R){o.traceEnabled&&to(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,R.version,bp,v);let L=i&&gm(E,o.host),G=doe(e,v,E,R.paths,void 0,C,!L,o);if(G)return G.value}return C(e,h,!i,o)}function doe(e,t,r,i,o,s,l,d){o||(o=fF(i));let p=CV(o,t);if(p){let h=fo(p)?void 0:qZ(p,t),m=fo(p)?p:HZ(p);return d.traceEnabled&&to(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:an(i[m],E=>{let S=h?KA(E,h):E,A=Yo(wr(r,S));d.traceEnabled&&to(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let C=og(E);if(C!==void 0){let R=xU(A,l,d);if(R!==void 0)return vU({path:R,ext:C,resolvedUsingTsExtension:void 0})}return s(e,A,l||!gm(Ur(A),d.host),d)})}}}function tSe(e,t){let r=tR(e);return t.traceEnabled&&r!==e&&to(t.host,f.Scoped_package_detected_looking_in_0,r),r}function n4(e){return`@types/${tR(e)}`}function tR(e){if(Ui(e,\"@\")){let t=e.replace(Os,LU);if(t!==e)return t.slice(1)}return e}function CN(e){let t=jD(e,\"@types/\");return t!==e?ak(t):e}function ak(e){return e.includes(LU)?\"@\"+e.replace(LU,Os):e}function nSe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&to(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function uoe(e,t,r,i,o,s){let l=cg(r,i),d=[],p=[],h=Ur(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return L0e(e,E&&E.value,E?.value&&Gb(E.value.path),d,p,m,v,o);function S(A){let C=G0e(A,e,h,loe,v);if(C)return{value:C};if(Ic(e)){let R=Yo(wr(h,e));return Rp(loe(A,R,!1,v))}else{let R=Vf(h,L=>{let G=nSe(o,e,void 0,L,s,v);if(G)return G;let U=Yo(wr(L,e));return Rp(loe(A,U,!1,v))});if(R)return R;if(A&5){let L=_3e(e,h,v);return A&4&&(L??(L=rSe(e,v))),L}}}}function rSe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=W0e(r,e,t),o=gm(r,t.host);!o&&t.traceEnabled&&to(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=eR(4,i,!o,t);if(s){let d=tk(s.path),p=d?m0(d,!1,t):void 0;return Rp(yI(p,s))}let l=coe(4,i,!o,t);if(l)return Rp(l)}}function nR(e,t){return!!e.allowImportingTsExtensions||t&&Yc(t)}function poe(e,t,r,i,o,s){let l=cg(r,i);l&&to(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=Z0e(4,e,o,m,!1,void 0,void 0);return k0e(v,!0,d,p,h,m.resultFromCache,void 0)}function Rp(e){return e!==void 0?{value:e}:void 0}function gy(e,t,...r){e.traceEnabled&&to(e.host,t,...r)}function PU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames==\"boolean\"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var foe,iSe,MU,q_,LU,h3e=pt({\"src/compiler/moduleNameResolver.ts\"(){\"use strict\";wo(),iSe=wr(\"node_modules\",\"@types\"),MU=(e=>(e[e.None=0]=\"None\",e[e.Imports=2]=\"Imports\",e[e.SelfName=4]=\"SelfName\",e[e.Exports=8]=\"Exports\",e[e.ExportsPatternTrailers=16]=\"ExportsPatternTrailers\",e[e.AllFeatures=30]=\"AllFeatures\",e[e.Node16Default=30]=\"Node16Default\",e[e.NodeNextDefault=30]=\"NodeNextDefault\",e[e.BundlerDefault=30]=\"BundlerDefault\",e[e.EsmMode=32]=\"EsmMode\",e))(MU||{}),q_=\"/node_modules/\",LU=\"__\"}});function dg(e,t){return e.body&&!e.body.parent&&(Aa(e.body,e),oy(e.body,!1)),e.body?moe(e.body,t):1}function moe(e,t=new Map){let r=Fa(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=g3e(e,t);return t.set(r,i),i}function g3e(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(BE(e))return 2;break;case 272:case 271:if(!Wr(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=v3e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ao(e,o=>{let s=moe(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:x.assertNever(s)}}),i}case 267:return dg(e,t);case 80:if(e.flags&4096)return 0}return 1}function v3e(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Do(i)||n_(i)||Li(i)){let o=i.statements,s;for(let l of o)if(zM(l,r)){l.parent||(Aa(l,i),oy(l,!1));let d=moe(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function EI(e){return x.attachFlowNodeDebugInfo(e),e}function _oe(e,t){var r,i;Ls(\"beforeBind\"),(r=Pd)==null||r.logStartBindFile(\"\"+e.fileName),aSe(e,t),(i=Pd)==null||i.logStopBindFile(),Ls(\"afterBind\"),Sp(\"Bind\",\"beforeBind\",\"afterBind\")}function y3e(){var e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K,F,oe=!1,W=0,$,de,fe={flags:1},q={flags:1},H=V();return le;function ee(k,ge,...Xe){return vf(Nn(k)||e,k,ge,...Xe)}function le(k,ge){var Xe,Mt;e=k,t=ge,r=Wa(t),F=Ee(e,ge),de=new Set,W=0,$=wc.getSymbolConstructor(),x.attachFlowNodeDebugInfo(fe),x.attachFlowNodeDebugInfo(q),e.locals||((Xe=qn)==null||Xe.push(qn.Phase.Bind,\"bindSourceFile\",{path:e.path},!0),xe(e),(Mt=qn)==null||Mt.pop(),e.symbolCount=W,e.classifiableNames=de,Fc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,v=void 0,E=void 0,S=void 0,A=void 0,C=void 0,R=void 0,G=void 0,U=!1,oe=!1,K=0}function Ee(k,ge){return Fd(ge,\"alwaysStrict\")&&!k.isDeclarationFile?!0:!!k.externalModuleIndicator}function ce(k,ge){return W++,new $(k,ge)}function Z(k,ge,Xe){k.flags|=Xe,ge.symbol=k,k.declarations=Kh(k.declarations,ge),Xe&1955&&!k.exports&&(k.exports=Vo()),Xe&6240&&!k.members&&(k.members=Vo()),k.constEnumOnlyModule&&k.flags&304&&(k.constEnumOnlyModule=!1),Xe&111551&&IL(k,ge)}function pe(k){if(k.kind===277)return k.isExportEquals?\"export=\":\"default\";let ge=mo(k);if(ge){if(sd(k)){let Xe=Ef(ge);return Jm(k)?\"__global\":`\"${Xe}\"`}if(ge.kind===167){let Xe=ge.expression;if(Ap(Xe))return Hs(Xe.text);if(LW(Xe))return qo(Xe.operator)+Xe.operand.text;x.fail(\"Only computed properties with literal names have declaration names\")}if(Ci(ge)){let Xe=Oc(k);if(!Xe)return;let Mt=Xe.symbol;return wL(Mt,ge.escapedText)}return Em(ge)?JA(ge):Xm(ge)?AC(ge):void 0}switch(k.kind){case 176:return\"__constructor\";case 184:case 179:case 330:return\"__call\";case 185:case 180:return\"__new\";case 181:return\"__index\";case 278:return\"__export\";case 312:return\"export=\";case 226:if(hl(k)===2)return\"export=\";x.fail(\"Unknown binary declaration kind\");break;case 324:return dx(k)?\"__new\":\"__call\";case 169:return x.assert(k.parent.kind===324,\"Impossible parameter parent kind\",()=>`parent is: ${x.formatSyntaxKind(k.parent.kind)}, expected JSDocFunctionType`),\"arg\"+k.parent.parameters.indexOf(k)}}function Ae(k){return Ld(k)?is(k.name):Ii(x.checkDefined(pe(k)))}function Oe(k,ge,Xe,Mt,Vn,jr,Or){x.assert(Or||!ty(Xe));let zi=Wr(Xe,2048)||Ed(Xe)&&Xe.name.escapedText===\"default\",_a=Or?\"__computed\":zi&&ge?\"default\":pe(Xe),ha;if(_a===void 0)ha=ce(0,\"__missing\");else if(ha=k.get(_a),Mt&2885600&&de.add(_a),!ha)k.set(_a,ha=ce(0,_a)),jr&&(ha.isReplaceableByMethod=!0);else{if(jr&&!ha.isReplaceableByMethod)return ha;if(ha.flags&Vn){if(ha.isReplaceableByMethod)k.set(_a,ha=ce(0,_a));else if(!(Mt&3&&ha.flags&67108864)){Ld(Xe)&&Aa(Xe.name,Xe);let pl=ha.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Gc=!0;(ha.flags&384||Mt&384)&&(pl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Gc=!1);let nc=!1;yn(ha.declarations)&&(zi||ha.declarations&&ha.declarations.length&&Xe.kind===277&&!Xe.isExportEquals)&&(pl=f.A_module_cannot_have_multiple_default_exports,Gc=!1,nc=!0);let Xu=[];Xf(Xe)&&_l(Xe.type)&&Wr(Xe,32)&&ha.flags&2887656&&Xu.push(ee(Xe,f.Did_you_mean_0,`export type { ${Ii(Xe.name.escapedText)} }`));let _u=mo(Xe)||Xe;an(ha.declarations,(ja,em)=>{let tm=mo(ja)||ja,Ri=Gc?ee(tm,pl,Ae(ja)):ee(tm,pl);e.bindDiagnostics.push(nc?fa(Ri,ee(_u,em===0?f.Another_export_default_is_here:f.and_here)):Ri),nc&&Xu.push(ee(tm,f.The_first_export_default_is_here))});let Ay=Gc?ee(_u,pl,Ae(Xe)):ee(_u,pl);e.bindDiagnostics.push(fa(Ay,...Xu)),ha=ce(0,_a)}}}return Z(ha,Xe,Mt),ha.parent?x.assert(ha.parent===ge,\"Existing symbol parent should match new one\"):ha.parent=ge,ha}function _e(k,ge,Xe){let Mt=!!(gb(k)&32)||be(k);if(ge&2097152)return k.kind===281||k.kind===271&&Mt?Oe(o.symbol.exports,o.symbol,k,ge,Xe):(x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe));if(bf(k)&&x.assert(Jn(k)),!sd(k)&&(Mt||o.flags&128)){if(!L_(o)||!o.locals||Wr(k,2048)&&!pe(k))return Oe(o.symbol.exports,o.symbol,k,ge,Xe);let Vn=ge&111551?1048576:0,jr=Oe(o.locals,void 0,k,Vn,Xe);return jr.exportSymbol=Oe(o.symbol.exports,o.symbol,k,ge,Xe),k.localSymbol=jr,jr}else return x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}function be(k){if(k.parent&&Il(k)&&(k=k.parent),!bf(k))return!1;if(!C2(k)&&k.fullName)return!0;let ge=mo(k);return ge?!!(UL(ge.parent)&&Nl(ge.parent)||bd(ge.parent)&&gb(ge.parent)&32):!1}function Te(k,ge){let Xe=o,Mt=s,Vn=l;if(ge&1?(k.kind!==219&&(s=o),o=l=k,ge&32&&(o.locals=Vo(),jn(o))):ge&2&&(l=k,ge&32&&(l.locals=void 0)),ge&4){let jr=m,Or=v,zi=E,_a=S,ha=R,pl=G,Gc=U,nc=ge&16&&!Wr(k,1024)&&!k.asteriskToken&&!!RS(k)||k.kind===175;nc||(m=EI({flags:2}),ge&144&&(m.node=k)),S=nc||k.kind===176||Jn(k)&&(k.kind===262||k.kind===218)?gn():void 0,R=void 0,v=void 0,E=void 0,G=void 0,U=!1,Le(k),k.flags&=-5633,!(m.flags&1)&&ge&8&&gf(k.body)&&(k.flags|=512,U&&(k.flags|=1024),k.endFlowNode=m),k.kind===312&&(k.flags|=K,k.endFlowNode=m),S&&(Wt(S,m),m=Gn(S),(k.kind===176||k.kind===175||Jn(k)&&(k.kind===262||k.kind===218))&&(k.returnFlowNode=m)),nc||(m=jr),v=Or,E=zi,S=_a,R=ha,G=pl,U=Gc}else ge&64?(h=!1,Le(k),x.assertNotNode(k,Me),k.flags=h?k.flags|256:k.flags&-257):Le(k);o=Xe,s=Mt,l=Vn}function De(k){ft(k,ge=>ge.kind===262?xe(ge):void 0),ft(k,ge=>ge.kind!==262?xe(ge):void 0)}function ft(k,ge=xe){k!==void 0&&an(k,ge)}function he(k){Ao(k,xe,ft)}function Le(k){let ge=oe;if(oe=!1,Nt(k)){he(k),dt(k),oe=ge;return}switch(k.kind>=243&&k.kind<=259&&!t.allowUnreachableCode&&(k.flowNode=m),k.kind){case 247:ki(k);break;case 246:so(k);break;case 248:Jo(k);break;case 249:case 250:Ea(k);break;case 245:ln(k);break;case 253:case 257:Tn(k);break;case 252:case 251:tt(k);break;case 258:yt(k);break;case 255:re(k);break;case 269:Ce(k);break;case 296:et(k);break;case 244:z(k);break;case 256:_t(k);break;case 224:on(k);break;case 225:Qt(k);break;case 226:if(nv(k)){oe=ge,Zt(k);return}H(k);break;case 220:Re(k);break;case 227:St(k);break;case 260:te(k);break;case 211:case 212:ti(k);break;case 213:di(k);break;case 235:Cn(k);break;case 353:case 345:case 347:Ie(k);break;case 312:{De(k.statements),xe(k.endOfFileToken);break}case 241:case 268:De(k.statements);break;case 208:j(k);break;case 169:se(k);break;case 210:case 209:case 303:case 230:oe=ge;default:he(k);break}dt(k),oe=ge}function Ke(k){switch(k.kind){case 80:case 81:case 110:case 211:case 212:return st(k);case 213:return Ge(k);case 217:if(Ux(k))return!1;case 235:return Ke(k.expression);case 226:return Vt(k);case 224:return k.operator===54&&Ke(k.operand);case 221:return Ke(k.expression)}return!1}function Dt(k){return MC(k)||(Er(k)||dI(k)||uu(k))&&Dt(k.expression)||Zn(k)&&k.operatorToken.kind===28&&Dt(k.right)||Rs(k)&&(Ap(k.argumentExpression)||gl(k.argumentExpression))&&Dt(k.expression)||lc(k)&&Dt(k.left)}function st(k){return Dt(k)||yd(k)&&st(k.expression)}function Ge(k){if(k.arguments){for(let ge of k.arguments)if(st(ge))return!0}return!!(k.expression.kind===211&&st(k.expression.expression))}function ot(k,ge){return Wx(k)&&jt(k.expression)&&Ga(ge)}function Vt(k){switch(k.operatorToken.kind){case 64:case 76:case 77:case 78:return st(k.left);case 35:case 36:case 37:case 38:return jt(k.left)||jt(k.right)||ot(k.right,k.left)||ot(k.left,k.right)||sC(k.right)&&Ke(k.left)||sC(k.left)&&Ke(k.right);case 104:return jt(k.left);case 103:return Ke(k.right);case 28:return Ke(k.right)}return!1}function jt(k){switch(k.kind){case 217:return jt(k.expression);case 226:switch(k.operatorToken.kind){case 64:return jt(k.left);case 28:return jt(k.right)}}return st(k)}function gn(){return EI({flags:4,antecedents:void 0})}function On(){return EI({flags:8,antecedents:void 0})}function en(k,ge,Xe){return EI({flags:1024,target:k,antecedents:ge,antecedent:Xe})}function zt(k){k.flags|=k.flags&2048?4096:2048}function Wt(k,ge){!(ge.flags&1)&&!To(k.antecedents,ge)&&((k.antecedents||(k.antecedents=[])).push(ge),zt(ge))}function ei(k,ge,Xe){return ge.flags&1?ge:Xe?(Xe.kind===112&&k&64||Xe.kind===97&&k&32)&&!F8(Xe)&&!jG(Xe.parent)?fe:Ke(Xe)?(zt(ge),EI({flags:k,antecedent:ge,node:Xe})):ge:k&32?ge:fe}function Ki(k,ge,Xe,Mt){return zt(k),EI({flags:128,antecedent:k,switchStatement:ge,clauseStart:Xe,clauseEnd:Mt})}function gi(k,ge,Xe){zt(ge);let Mt=EI({flags:k,antecedent:ge,node:Xe});return R&&Wt(R,Mt),Mt}function io(k,ge){return zt(k),EI({flags:512,antecedent:k,node:ge})}function Gn(k){let ge=k.antecedents;return ge?ge.length===1?ge[0]:k:fe}function Nr(k){let ge=k.parent;switch(ge.kind){case 245:case 247:case 246:return ge.expression===k;case 248:case 227:return ge.condition===k}return!1}function cr(k){for(;;)if(k.kind===217)k=k.expression;else if(k.kind===224&&k.operator===54)k=k.operand;else return jL(k)}function Jt(k){return cV(Ka(k))}function Ue(k){for(;uu(k.parent)||fy(k.parent)&&k.parent.operator===54;)k=k.parent;return!Nr(k)&&!cr(k.parent)&&!(yd(k.parent)&&k.parent.expression===k)}function Rt(k,ge,Xe,Mt){let Vn=A,jr=C;A=Xe,C=Mt,k(ge),A=Vn,C=jr}function mn(k,ge,Xe){Rt(xe,k,ge,Xe),(!k||!Jt(k)&&!cr(k)&&!(yd(k)&&nC(k)))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function qr(k,ge,Xe){let Mt=v,Vn=E;v=ge,E=Xe,xe(k),v=Mt,E=Vn}function ni(k,ge){let Xe=G;for(;Xe&&k.parent.kind===256;)Xe.continueTarget=ge,Xe=Xe.next,k=k.parent;return ge}function ki(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();Wt(ge,m),m=ge,mn(k.expression,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),Wt(ge,m),m=Gn(Mt)}function so(k){let ge=On(),Xe=ni(k,gn()),Mt=gn();Wt(ge,m),m=ge,qr(k.statement,Mt,Xe),Wt(Xe,m),m=Gn(Xe),mn(k.expression,ge,Mt),m=Gn(Mt)}function Jo(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();xe(k.initializer),Wt(ge,m),m=ge,mn(k.condition,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),xe(k.incrementor),Wt(ge,m),m=Gn(Mt)}function Ea(k){let ge=ni(k,On()),Xe=gn();xe(k.expression),Wt(ge,m),m=ge,k.kind===250&&xe(k.awaitModifier),Wt(Xe,m),xe(k.initializer),k.initializer.kind!==261&&it(k.initializer),qr(k.statement,Xe,ge),Wt(ge,m),m=Gn(Xe)}function ln(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.expression,ge,Xe),m=Gn(ge),xe(k.thenStatement),Wt(Mt,m),m=Gn(Xe),xe(k.elseStatement),Wt(Mt,m),m=Gn(Mt)}function Tn(k){xe(k.expression),k.kind===253&&(U=!0,S&&Wt(S,m)),m=fe}function ke(k){for(let ge=G;ge;ge=ge.next)if(ge.name===k)return ge}function nt(k,ge,Xe){let Mt=k.kind===252?ge:Xe;Mt&&(Wt(Mt,m),m=fe)}function tt(k){if(xe(k.label),k.label){let ge=ke(k.label.escapedText);ge&&(ge.referenced=!0,nt(k,ge.breakTarget,ge.continueTarget))}else nt(k,v,E)}function yt(k){let ge=S,Xe=R,Mt=gn(),Vn=gn(),jr=gn();if(k.finallyBlock&&(S=Vn),Wt(jr,m),R=jr,xe(k.tryBlock),Wt(Mt,m),k.catchClause&&(m=Gn(jr),jr=gn(),Wt(jr,m),R=jr,xe(k.catchClause),Wt(Mt,m)),S=ge,R=Xe,k.finallyBlock){let Or=gn();Or.antecedents=ro(ro(Mt.antecedents,jr.antecedents),Vn.antecedents),m=Or,xe(k.finallyBlock),m.flags&1?m=fe:(S&&Vn.antecedents&&Wt(S,en(Or,Vn.antecedents,m)),R&&jr.antecedents&&Wt(R,en(Or,jr.antecedents,m)),m=Mt.antecedents?en(Or,Mt.antecedents,m):fe)}else m=Gn(Mt)}function re(k){let ge=gn();xe(k.expression);let Xe=v,Mt=L;v=ge,L=m,xe(k.caseBlock),Wt(ge,m);let Vn=an(k.caseBlock.clauses,jr=>jr.kind===297);k.possiblyExhaustive=!Vn&&!ge.antecedents,Vn||Wt(ge,Ki(L,k,0,0)),v=Xe,L=Mt,m=Gn(ge)}function Ce(k){let ge=k.clauses,Xe=k.parent.expression.kind===112||Ke(k.parent.expression),Mt=fe;for(let Vn=0;Vn<ge.length;Vn++){let jr=Vn;for(;!ge[Vn].statements.length&&Vn+1<ge.length;)Mt===fe&&(m=L),xe(ge[Vn]),Vn++;let Or=gn();Wt(Or,Xe?Ki(L,k.parent,jr,Vn+1):L),Wt(Or,Mt),m=Gn(Or);let zi=ge[Vn];xe(zi),Mt=m,!(m.flags&1)&&Vn!==ge.length-1&&t.noFallthroughCasesInSwitch&&(zi.fallthroughFlowNode=m)}}function et(k){let ge=m;m=L,xe(k.expression),m=ge,ft(k.statements)}function z(k){xe(k.expression),Je(k.expression)}function Je(k){if(k.kind===213){let ge=k;ge.expression.kind!==108&&MC(ge.expression)&&(m=io(m,ge))}}function _t(k){let ge=gn();G={next:G,name:k.label.escapedText,breakTarget:ge,continueTarget:void 0,referenced:!1},xe(k.label),xe(k.statement),!G.referenced&&!t.allowUnusedLabels&&tc(Kne(t),k.label,f.Unused_label),G=G.next,Wt(ge,m),m=Gn(ge)}function ze(k){k.kind===226&&k.operatorToken.kind===64?it(k.left):it(k)}function it(k){if(Dt(k))m=gi(16,m,k);else if(k.kind===209)for(let ge of k.elements)ge.kind===230?it(ge.expression):ze(ge);else if(k.kind===210)for(let ge of k.properties)ge.kind===303?ze(ge.initializer):ge.kind===304?it(ge.name):ge.kind===305&&it(ge.expression)}function Ct(k,ge,Xe){let Mt=gn();k.operatorToken.kind===56||k.operatorToken.kind===77?mn(k.left,Mt,Xe):mn(k.left,ge,Mt),m=Gn(Mt),xe(k.operatorToken),PC(k.operatorToken.kind)?(Rt(xe,k.right,ge,Xe),it(k.left),Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k))):mn(k.right,ge,Xe)}function on(k){if(k.operator===54){let ge=A;A=C,C=ge,he(k),C=A,A=ge}else he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Qt(k){he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Zt(k){oe?(oe=!1,xe(k.operatorToken),xe(k.right),oe=!0,xe(k.left)):(oe=!0,xe(k.left),oe=!1,xe(k.operatorToken),xe(k.right)),it(k.left)}function V(){return M6(k,ge,Xe,Mt,Vn,void 0);function k(Or,zi){if(zi){zi.stackIndex++,Aa(Or,i);let ha=F;tr(Or);let pl=i;i=Or,zi.skip=!1,zi.inStrictModeStack[zi.stackIndex]=ha,zi.parentStack[zi.stackIndex]=pl}else zi={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let _a=Or.operatorToken.kind;if(VL(_a)||PC(_a)){if(Ue(Or)){let ha=gn();Ct(Or,ha,ha),m=Gn(ha)}else Ct(Or,A,C);zi.skip=!0}return zi}function ge(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Xe(Or,zi,_a){zi.skip||xe(Or)}function Mt(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Vn(Or,zi){if(!zi.skip){let pl=Or.operatorToken.kind;if(tv(pl)&&!Sh(Or)&&(it(Or.left),pl===64&&Or.left.kind===212)){let Gc=Or.left;jt(Gc.expression)&&(m=gi(256,m,Or))}}let _a=zi.inStrictModeStack[zi.stackIndex],ha=zi.parentStack[zi.stackIndex];_a!==void 0&&(F=_a),ha!==void 0&&(i=ha),zi.skip=!1,zi.stackIndex--}function jr(Or){if(Or&&Zn(Or)&&!nv(Or))return Or;xe(Or)}}function Re(k){he(k),k.expression.kind===211&&it(k.expression)}function St(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.condition,ge,Xe),m=Gn(ge),xe(k.questionToken),xe(k.whenTrue),Wt(Mt,m),m=Gn(Xe),xe(k.colonToken),xe(k.whenFalse),Wt(Mt,m),m=Gn(Mt)}function M(k){let ge=vc(k)?void 0:k.name;if(ko(ge))for(let Xe of ge.elements)M(Xe);else m=gi(16,m,k)}function te(k){he(k),(k.initializer||H1(k.parent.parent))&&M(k)}function j(k){xe(k.dotDotDotToken),xe(k.propertyName),Pe(k.initializer),xe(k.name)}function se(k){ft(k.modifiers),xe(k.dotDotDotToken),xe(k.questionToken),xe(k.type),Pe(k.initializer),xe(k.name)}function Pe(k){if(!k)return;let ge=m;if(xe(k),ge===fe||ge===m)return;let Xe=gn();Wt(Xe,ge),Wt(Xe,m),m=Gn(Xe)}function Ie(k){xe(k.tagName),k.kind!==347&&k.fullName&&(Aa(k.fullName,k),oy(k.fullName,!1)),typeof k.comment!=\"string\"&&ft(k.comment)}function gt(k){he(k);let ge=xb(k);ge&&ge.kind!==174&&Z(ge.symbol,ge,32)}function bt(k,ge,Xe){Rt(xe,k,ge,Xe),(!yd(k)||nC(k))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function Ot(k){switch(k.kind){case 211:xe(k.questionDotToken),xe(k.name);break;case 212:xe(k.questionDotToken),xe(k.argumentExpression);break;case 213:xe(k.questionDotToken),ft(k.typeArguments),ft(k.arguments);break}}function dn(k,ge,Xe){let Mt=tC(k)?gn():void 0;bt(k.expression,Mt||ge,Xe),Mt&&(m=Gn(Mt)),Rt(Ot,k,ge,Xe),nC(k)&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function An(k){if(Ue(k)){let ge=gn();dn(k,ge,ge),m=Gn(ge)}else dn(k,A,C)}function Cn(k){yd(k)?An(k):he(k)}function ti(k){yd(k)?An(k):he(k)}function di(k){if(yd(k))An(k);else{let ge=Ka(k.expression);ge.kind===218||ge.kind===219?(ft(k.typeArguments),ft(k.arguments),xe(k.expression)):(he(k),k.expression.kind===108&&(m=io(m,k)))}if(k.expression.kind===211){let ge=k.expression;Me(ge.name)&&jt(ge.expression)&&K9(ge.name)&&(m=gi(256,m,k))}}function jn(k){d&&(d.nextContainer=k),d=k}function Ar(k,ge,Xe){switch(o.kind){case 267:return _e(k,ge,Xe);case 312:return _i(k,ge,Xe);case 231:case 263:return Zi(k,ge,Xe);case 266:return Oe(o.symbol.exports,o.symbol,k,ge,Xe);case 187:case 329:case 210:case 264:case 292:return Oe(o.symbol.members,o.symbol,k,ge,Xe);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}}function Zi(k,ge,Xe){return zo(k)?Oe(o.symbol.exports,o.symbol,k,ge,Xe):Oe(o.symbol.members,o.symbol,k,ge,Xe)}function _i(k,ge,Xe){return wl(e)?_e(k,ge,Xe):Oe(e.locals,void 0,k,ge,Xe)}function ui(k){let ge=Li(k)?k:Vr(k.body,n_);return!!ge&&ge.statements.some(Xe=>xl(Xe)||dl(Xe))}function Mr(k){k.flags&33554432&&!ui(k)?k.flags|=128:k.flags&=-129}function lo(k){if(Mr(k),sd(k))if(Wr(k,32)&&ls(k,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),_9(k))_n(k);else{let ge;if(k.name.kind===11){let{text:Mt}=k.name;ge=xx(Mt),ge===void 0&&ls(k.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Mt)}let Xe=Ar(k,512,110735);e.patternAmbientModules=pn(e.patternAmbientModules,ge&&!fo(ge)?{pattern:ge,symbol:Xe}:void 0)}else{let ge=_n(k);if(ge!==0){let{symbol:Xe}=k;Xe.constEnumOnlyModule=!(Xe.flags&304)&&ge===2&&Xe.constEnumOnlyModule!==!1}}}function _n(k){let ge=dg(k),Xe=ge!==0;return Ar(k,Xe?512:1024,Xe?110735:0),ge}function ms(k){let ge=ce(131072,pe(k));Z(ge,k,131072);let Xe=ce(2048,\"__type\");Z(Xe,k,2048),Xe.members=Vo(),Xe.members.set(ge.escapedName,ge)}function Dl(k){return vs(k,4096,\"__object\")}function _o(k){return vs(k,4096,\"__jsxAttributes\")}function Va(k,ge,Xe){return Ar(k,ge,Xe)}function vs(k,ge,Xe){let Mt=ce(ge,Xe);return ge&106508&&(Mt.parent=o.symbol),Z(Mt,k,ge),Mt}function Js(k,ge,Xe){switch(l.kind){case 267:_e(k,ge,Xe);break;case 312:if(sp(o)){_e(k,ge,Xe);break}default:x.assertNode(l,L_),l.locals||(l.locals=Vo(),jn(l)),Oe(l.locals,void 0,k,ge,Xe)}}function Fc(){if(!p)return;let k=o,ge=d,Xe=l,Mt=i,Vn=m;for(let jr of p){let Or=jr.parent.parent;o=S9(Or)||e,l=w_(Or)||e,m=EI({flags:2}),i=jr,xe(jr.typeExpression);let zi=mo(jr);if((C2(jr)||!jr.fullName)&&zi&&UL(zi.parent)){let _a=Nl(zi.parent);if(_a){Ks(e.symbol,zi.parent,_a,!!Rn(zi,pl=>Er(pl)&&pl.name.escapedText===\"prototype\"),!1);let ha=o;switch(TL(zi.parent)){case 1:case 2:sp(e)?o=e:o=void 0;break;case 4:o=zi.parent.expression;break;case 3:o=zi.parent.expression.name;break;case 5:o=_0(e,zi.parent.expression)?e:Er(zi.parent.expression)?zi.parent.expression.name:zi.parent.expression;break;case 0:return x.fail(\"Shouldn't have detected typedef or enum on non-assignment declaration\")}o&&_e(jr,524288,788968),o=ha}}else C2(jr)||!jr.fullName||jr.fullName.kind===80?(i=jr.parent,Js(jr,524288,788968)):xe(jr.fullName)}o=k,d=ge,l=Xe,i=Mt,m=Vn}function $i(k){if(!e.parseDiagnostics.length&&!(k.flags&33554432)&&!(k.flags&16777216)&&!rne(k)){let ge=vb(k);if(ge===void 0)return;F&&ge>=119&&ge<=127?e.bindDiagnostics.push(ee(k,Uo(k),is(k))):ge===135?wl(e)&&hW(k)?e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,is(k))):k.flags&65536&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k))):ge===127&&k.flags&16384&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k)))}}function Uo(k){return Oc(k)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function zc(k){k.escapedText===\"#constructor\"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ee(k,f.constructor_is_a_reserved_word,is(k))))}function ts(k){F&&Tu(k.left)&&tv(k.operatorToken.kind)&&Wl(k,k.left)}function ua(k){F&&k.variableDeclaration&&Wl(k,k.variableDeclaration.name)}function Us(k){if(F&&k.expression.kind===80){let ge=IS(e,k.expression);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function tf(k){return Me(k)&&(k.escapedText===\"eval\"||k.escapedText===\"arguments\")}function Wl(k,ge){if(ge&&ge.kind===80){let Xe=ge;if(tf(Xe)){let Mt=IS(e,ge);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,il(k),ar(Xe)))}}}function il(k){return Oc(k)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function zs(k){F&&Wl(k,k.name)}function ho(k){return Oc(k)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ut(k){if(r<2&&l.kind!==312&&l.kind!==267&&!U1(l)){let ge=IS(e,k);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,ho(k)))}}function ys(k){F&&Wl(k,k.operand)}function Pc(k){F&&(k.operator===46||k.operator===47)&&Wl(k,k.operand)}function Bc(k){F&&ls(k,f.with_statements_are_not_allowed_in_strict_mode)}function Ju(k){F&&Wa(t)>=2&&(ate(k.statement)||cl(k.statement))&&ls(k.label,f.A_label_is_not_allowed_here)}function ls(k,ge,...Xe){let Mt=W_(e,k.pos);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,ge,...Xe))}function tc(k,ge,Xe){ae(k,ge,ge,Xe)}function ae(k,ge,Xe,Mt){X(k,{pos:Tb(ge,e),end:Xe.end},Mt)}function X(k,ge,Xe){let Mt=Rc(e,ge.pos,ge.end-ge.pos,Xe);k?e.bindDiagnostics.push(Mt):e.bindSuggestionDiagnostics=pn(e.bindSuggestionDiagnostics,{...Mt,category:2})}function xe(k){if(!k)return;Aa(k,i),qn&&(k.tracingPath=e.path);let ge=F;if(tr(k),k.kind>165){let Xe=i;i=k;let Mt=kU(k);Mt===0?Le(k):Te(k,Mt),i=Xe}else{let Xe=i;k.kind===1&&(i=k),dt(k),i=Xe}F=ge}function dt(k){if(ap(k))if(Jn(k))for(let ge of k.jsDoc)xe(ge);else for(let ge of k.jsDoc)Aa(ge,k),oy(ge,!1)}function $t(k){if(!F)for(let ge of k){if(!Hf(ge))return;if(sr(ge)){F=!0;return}}}function sr(k){let ge=FE(e,k.expression);return ge==='\"use strict\"'||ge===\"'use strict'\"}function tr(k){switch(k.kind){case 80:if(k.flags&4096){let Or=k.parent;for(;Or&&!bf(Or);)Or=Or.parent;Js(Or,524288,788968);break}case 110:return m&&(lt(k)||i.kind===304)&&(k.flowNode=m),$i(k);case 166:m&&EW(k)&&(k.flowNode=m);break;case 236:case 108:k.flowNode=m;break;case 81:return zc(k);case 211:case 212:let ge=k;m&&Dt(ge)&&(ge.flowNode=m),Yte(ge)&&Ln(ge),Jn(ge)&&e.commonJsModuleIndicator&&Eh(ge)&&!r4(l,\"module\")&&Oe(e.locals,void 0,ge.expression,134217729,111550);break;case 226:switch(hl(k)){case 1:Du(k);break;case 2:pc(k);break;case 3:Oo(k.left,k);break;case 6:eo(k);break;case 4:Vd(k);break;case 5:let Or=k.left.expression;if(Jn(k)&&Me(Or)){let zi=r4(l,Or.escapedText);if(gW(zi?.valueDeclaration)){Vd(k);break}}Kl(k);break;case 0:break;default:x.fail(\"Unknown binary expression special property assignment kind\")}return ts(k);case 299:return ua(k);case 220:return Us(k);case 225:return ys(k);case 224:return Pc(k);case 254:return Bc(k);case 256:return Ju(k);case 197:h=!0;return;case 182:break;case 168:return Ye(k);case 169:return mg(k);case 260:return fd(k);case 208:return k.flowNode=m,fd(k);case 172:case 171:return Ir(k);case 303:case 304:return mu(k,4,0);case 306:return mu(k,8,900095);case 179:case 180:case 181:return Ar(k,131072,0);case 174:case 173:return mu(k,8192|(k.questionToken?16777216:0),qf(k)?0:103359);case 262:return Ku(k);case 176:return Ar(k,16384,0);case 177:return mu(k,32768,46015);case 178:return mu(k,65536,78783);case 184:case 324:case 330:case 185:return ms(k);case 187:case 329:case 200:return pi(k);case 339:return gt(k);case 210:return Dl(k);case 218:case 219:return Lh(k);case 213:switch(hl(k)){case 7:return Cl(k);case 8:return Ec(k);case 9:return Po(k);case 0:break;default:return x.fail(\"Unknown call expression assignment declaration kind\")}Jn(k)&&u_(k);break;case 231:case 263:return F=!0,X_(k);case 264:return Js(k,64,788872);case 265:return Js(k,524288,788968);case 266:return fg(k);case 267:return lo(k);case 292:return _o(k);case 291:return Va(k,4,0);case 271:case 274:case 276:case 281:return Ar(k,2097152,2097152);case 270:return bc(k);case 273:return Jl(k);case 278:return bs(k);case 277:return Qs(k);case 312:return $t(k.statements),hr();case 241:if(!U1(k.parent))return;case 268:return $t(k.statements);case 348:if(k.parent.kind===330)return mg(k);if(k.parent.kind!==329)break;case 355:let Vn=k,jr=Vn.isBracketed||Vn.typeExpression&&Vn.typeExpression.type.kind===323?16777220:4;return Ar(Vn,jr,0);case 353:case 345:case 347:return(p||(p=[])).push(k);case 346:return xe(k.typeExpression)}}function Ir(k){let ge=su(k),Xe=ge?98304:4,Mt=ge?13247:0;return mu(k,Xe|(k.questionToken?16777216:0),Mt)}function pi(k){return vs(k,2048,\"__type\")}function hr(){if(Mr(e),wl(e))No();else if(yf(e)){No();let k=e.symbol;Oe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=k}}function No(){vs(e,512,`\"${Yd(e.fileName)}\"`)}function Qs(k){if(!o.symbol||!o.symbol.exports)vs(k,111551,pe(k));else{let ge=px(k)?2097152:4,Xe=Oe(o.symbol.exports,o.symbol,k,ge,-1);k.isExportEquals&&IL(Xe,k)}}function bc(k){ct(k.modifiers)&&e.bindDiagnostics.push(ee(k,f.Modifiers_cannot_appear_here));let ge=Li(k.parent)?wl(k.parent)?k.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;ge?e.bindDiagnostics.push(ee(k,ge)):(e.symbol.globalExports=e.symbol.globalExports||Vo(),Oe(e.symbol.globalExports,e.symbol,k,2097152,2097152))}function bs(k){!o.symbol||!o.symbol.exports?vs(k,8388608,pe(k)):k.exportClause?j_(k.exportClause)&&(Aa(k.exportClause,k),Oe(o.symbol.exports,o.symbol,k.exportClause,2097152,2097152)):Oe(o.symbol.exports,o.symbol,k,8388608,0)}function Jl(k){k.name&&Ar(k,2097152,2097152)}function Za(k){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=k,e.externalModuleIndicator||No()),!0)}function Ec(k){if(!Za(k))return;let ge=nf(k.arguments[0],void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));ge&&Oe(ge.exports,ge,k,1048580,0)}function Du(k){if(!Za(k))return;let ge=nf(k.left.expression,void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));if(ge){let Mt=kL(k.right)&&(DS(k.left.expression)||Eh(k.left.expression))?2097152:1048580;Aa(k.left,k),Oe(ge.exports,ge,k.left,Mt,0)}}function pc(k){if(!Za(k))return;let ge=bL(k.right);if(fV(ge)||o===e&&_0(e,ge))return;if(ma(ge)&&ji(ge.properties,xu)){an(ge.properties,Nf);return}let Xe=px(k)?2097152:1049092,Mt=Oe(e.symbol.exports,e.symbol,k,Xe|67108864,0);IL(Mt,k)}function Nf(k){Oe(e.symbol.exports,e.symbol,k,69206016,0)}function Vd(k){if(x.assert(Jn(k)),Zn(k)&&Er(k.left)&&Ci(k.left.name)||Er(k)&&Ci(k.name))return;let Xe=lu(k,!1,!1);switch(Xe.kind){case 262:case 218:let Mt=Xe.symbol;if(Zn(Xe.parent)&&Xe.parent.operatorToken.kind===64){let Or=Xe.parent.left;UE(Or)&&ry(Or.expression)&&(Mt=tu(Or.expression.expression,s))}Mt&&Mt.valueDeclaration&&(Mt.members=Mt.members||Vo(),ty(k)?Se(k,Mt,Mt.members):Oe(Mt.members,Mt,k,67108868,0),Z(Mt,Mt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Vn=Xe.parent,jr=zo(Xe)?Vn.symbol.exports:Vn.symbol.members;ty(k)?Se(k,Vn.symbol,jr):Oe(jr,Vn.symbol,k,67108868,0,!0);break;case 312:if(ty(k))break;Xe.commonJsModuleIndicator?Oe(Xe.symbol.exports,Xe.symbol,k,1048580,0):Ar(k,1,111550);break;case 267:break;default:x.failBadSyntaxKind(Xe)}}function Se(k,ge,Xe){Oe(Xe,ge,k,4,0,!0,!0),At(k,ge)}function At(k,ge){ge&&(ge.assignmentDeclarationMembers||(ge.assignmentDeclarationMembers=new Map)).set(Fa(k),k)}function Ln(k){k.expression.kind===110?Vd(k):UE(k)&&k.parent.parent.kind===312&&(ry(k.expression)?Oo(k,k.parent):Bs(k))}function eo(k){Aa(k.left,k),Aa(k.right,k),Sc(k.left.expression,k.left,!1,!0)}function Po(k){let ge=tu(k.arguments[0].expression);ge&&ge.valueDeclaration&&Z(ge,ge.valueDeclaration,32),vl(k,ge,!0)}function Oo(k,ge){let Xe=k.expression,Mt=Xe.expression;Aa(Mt,Xe),Aa(Xe,k),Aa(k,ge),Sc(Mt,k,!0,!0)}function Cl(k){let ge=tu(k.arguments[0]),Xe=k.parent.parent.kind===312;ge=Ks(ge,k.arguments[0],Xe,!1,!1),vl(k,ge,!1)}function Kl(k){var ge;let Xe=tu(k.left.expression,l)||tu(k.left.expression,o);if(!Jn(k)&&!$te(Xe))return;let Mt=Tx(k.left);if(!(Me(Mt)&&((ge=r4(o,Mt.escapedText))==null?void 0:ge.flags)&2097152))if(Aa(k.left,k),Aa(k.right,k),Me(k.left.expression)&&o===e&&_0(e,k.left.expression))Du(k);else if(ty(k)){vs(k,67108868,\"__computed\");let Vn=Ks(Xe,k.left.expression,Nl(k.left),!1,!1);At(k,Vn)}else Bs(Fo(k.left,NS))}function Bs(k){x.assert(!Me(k)),Aa(k.expression,k),Sc(k.expression,k,!1,!1)}function Ks(k,ge,Xe,Mt,Vn){return k?.flags&2097152||(Xe&&!Mt&&(k=nf(ge,k,(zi,_a,ha)=>{if(_a)return Z(_a,zi,67110400),_a;{let pl=ha?ha.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Vo());return Oe(pl,ha,zi,67110400,110735)}})),Vn&&k&&k.valueDeclaration&&Z(k,k.valueDeclaration,32)),k}function vl(k,ge,Xe){if(!ge||!kp(ge))return;let Mt=Xe?ge.members||(ge.members=Vo()):ge.exports||(ge.exports=Vo()),Vn=0,jr=0;hs(LA(k))?(Vn=8192,jr=103359):Bo(k)&&CS(k)&&(ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"set\"})&&(Vn|=65540,jr|=78783),ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"get\"})&&(Vn|=32772,jr|=46015)),Vn===0&&(Vn=4,jr=0),Oe(Mt,ge,k,Vn|67108864,jr&-67108865)}function Nl(k){return Zn(k.parent)?fu(k.parent).parent.kind===312:k.parent.parent.kind===312}function Sc(k,ge,Xe,Mt){let Vn=tu(k,l)||tu(k,o),jr=Nl(ge);Vn=Ks(Vn,ge.expression,jr,Xe,Mt),vl(ge,Vn,Xe)}function kp(k){if(k.flags&1072)return!0;let ge=k.valueDeclaration;if(ge&&Bo(ge))return!!LA(ge);let Xe=ge?yi(ge)?ge.initializer:Zn(ge)?ge.right:Er(ge)&&Zn(ge.parent)?ge.parent.right:void 0:void 0;if(Xe=Xe&&bL(Xe),Xe){let Mt=ry(yi(ge)?ge.name:Zn(ge)?ge.left:ge);return!!Ib(Zn(Xe)&&(Xe.operatorToken.kind===57||Xe.operatorToken.kind===61)?Xe.right:Xe,Mt)}return!1}function fu(k){for(;Zn(k.parent);)k=k.parent;return k.parent}function tu(k,ge=o){if(Me(k))return r4(ge,k.escapedText);{let Xe=tu(k.expression);return Xe&&Xe.exports&&Xe.exports.get(tg(k))}}function nf(k,ge,Xe){if(_0(e,k))return e.symbol;if(Me(k))return Xe(k,tu(k),ge);{let Mt=nf(k.expression,ge,Xe),Vn=SL(k);return Ci(Vn)&&x.fail(\"unexpected PrivateIdentifier\"),Xe(Vn,Mt&&Mt.exports&&Mt.exports.get(tg(k)),Mt)}}function u_(k){!e.commonJsModuleIndicator&&Xd(k,!1)&&Za(k)}function X_(k){if(k.kind===263)Js(k,32,899503);else{let Vn=k.name?k.name.escapedText:\"__class\";vs(k,32,Vn),k.name&&de.add(k.name.escapedText)}let{symbol:ge}=k,Xe=ce(4194308,\"prototype\"),Mt=ge.exports.get(Xe.escapedName);Mt&&(k.name&&Aa(k.name,k),e.bindDiagnostics.push(ee(Mt.declarations[0],f.Duplicate_identifier_0,$s(Xe)))),ge.exports.set(Xe.escapedName,Xe),Xe.parent=ge}function fg(k){return BE(k)?Js(k,128,899967):Js(k,256,899327)}function fd(k){if(F&&Wl(k,k.name),!ko(k.name)){let ge=k.kind===260?k:k.parent.parent;Jn(k)&&jE(ge)&&!yb(k)&&!(gb(k)&32)?Ar(k,2097152,2097152):p9(k)?Js(k,2,111551):JE(k)?Ar(k,1,111551):Ar(k,1,111550)}}function mg(k){if(!(k.kind===348&&o.kind!==330)&&(F&&!(k.flags&33554432)&&Wl(k,k.name),ko(k.name)?vs(k,1,\"__\"+k.parent.parameters.indexOf(k)):Ar(k,1,111551),wu(k,k.parent))){let ge=k.parent.parent;Oe(ge.symbol.members,ge.symbol,k,4|(k.questionToken?16777216:0),0)}}function Ku(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),zs(k),F?(Ut(k),Js(k,16,110991)):Ar(k,16,110991)}function Lh(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&(k.flowNode=m),zs(k);let ge=k.name?k.name.escapedText:\"__function\";return vs(k,16,ge)}function mu(k,ge,Xe){return!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&pW(k)&&(k.flowNode=m),ty(k)?vs(k,ge,\"__computed\"):Ar(k,ge,Xe)}function Y(k){let ge=Rn(k,Xe=>Xe.parent&&lI(Xe.parent)&&Xe.parent.extendsType===Xe);return ge&&ge.parent}function Ye(k){if(Df(k.parent)){let ge=NW(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):Ar(k,262144,526824)}else if(k.parent.kind===195){let ge=Y(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):vs(k,262144,pe(k))}else Ar(k,262144,526824)}function xt(k){let ge=dg(k);return ge===1||ge===2&&n0(t)}function Nt(k){if(!(m.flags&1))return!1;if(m===fe&&(QM(k)&&k.kind!==242||k.kind===263||k.kind===267&&xt(k))&&(m=q,!t.allowUnreachableCode)){let Xe=Jne(t)&&!(k.flags&33554432)&&(!cl(k)||!!(Xg(k.declarationList)&7)||k.declarationList.declarations.some(Mt=>!!Mt.initializer));b3e(k,(Mt,Vn)=>ae(Xe,Mt,Vn,f.Unreachable_code_detected))}return!0}}function b3e(e,t){if(Di(e)&&oSe(e)&&Do(e.parent)){let{statements:r}=e.parent,i=NV(r,e);Z5(i,oSe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function oSe(e){return!Ql(e)&&!E3e(e)&&!kb(e)&&!(cl(e)&&!(Xg(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function E3e(e){switch(e.kind){case 264:case 265:return!0;case 267:return dg(e)!==1;case 266:return Wr(e,4096);default:return!1}}function _0(e,t){let r=0,i=mM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),DS(t)||Eh(t))return!0;if(Me(t)){let o=r4(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),lc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function kU(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(pW(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Lo(e.parent)||nl(e.parent)?0:34}return 0}function r4(e,t){var r,i,o,s;let l=(i=(r=Vr(e,L_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(qm(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var OU,wU,aSe,S3e=pt({\"src/compiler/binder.ts\"(){\"use strict\";wo(),mS(),OU=(e=>(e[e.NonInstantiated=0]=\"NonInstantiated\",e[e.Instantiated=1]=\"Instantiated\",e[e.ConstEnumOnly=2]=\"ConstEnumOnly\",e))(OU||{}),wU=(e=>(e[e.None=0]=\"None\",e[e.IsContainer=1]=\"IsContainer\",e[e.IsBlockScopedContainer=2]=\"IsBlockScopedContainer\",e[e.IsControlFlowContainer=4]=\"IsControlFlowContainer\",e[e.IsFunctionLike=8]=\"IsFunctionLike\",e[e.IsFunctionExpression=16]=\"IsFunctionExpression\",e[e.HasLocals=32]=\"HasLocals\",e[e.IsInterface=64]=\"IsInterface\",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]=\"IsObjectLiteralOrClassExpressionMethodOrAccessor\",e))(wU||{}),aSe=y3e()}});function hoe(e,t,r,i,o,s,l,d,p,h){return m;function m(v=()=>!0){let E=[],S=[];return{walkType:de=>{try{return A(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}},walkSymbol:de=>{try{return $(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}}};function A(de){if(!(!de||E[de.id]||(E[de.id]=de,$(de.symbol)))){if(de.flags&524288){let q=de,H=q.objectFlags;H&4&&C(de),H&32&&K(de),H&3&&oe(de),H&24&&W(q)}de.flags&262144&&R(de),de.flags&3145728&&L(de),de.flags&4194304&&G(de),de.flags&8388608&&U(de)}}function C(de){A(de.target),an(h(de),A)}function R(de){A(d(de))}function L(de){an(de.types,A)}function G(de){A(de.type)}function U(de){A(de.objectType),A(de.indexType),A(de.constraint)}function K(de){A(de.typeParameter),A(de.constraintType),A(de.templateType),A(de.modifiersType)}function F(de){let fe=t(de);fe&&A(fe.type),an(de.typeParameters,A);for(let q of de.parameters)$(q);A(e(de)),A(r(de))}function oe(de){W(de),an(de.typeParameters,A),an(i(de),A),A(de.thisType)}function W(de){let fe=o(de);for(let q of fe.indexInfos)A(q.keyType),A(q.type);for(let q of fe.callSignatures)F(q);for(let q of fe.constructSignatures)F(q);for(let q of fe.properties)$(q)}function $(de){if(!de)return!1;let fe=na(de);if(S[fe])return!1;if(S[fe]=de,!v(de))return!0;let q=s(de);return A(q),de.exports&&de.exports.forEach($),an(de.declarations,H=>{if(H.type&&H.type.kind===186){let ee=H.type,le=l(p(ee.exprName));$(le)}}),!1}}}var T3e=pt({\"src/compiler/symbolWalker.ts\"(){\"use strict\";wo()}});function sk({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Ic(o)?0:1:e===\"relative\"?0:e===\"non-relative\"?1:e===\"project-relative\"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return nR(r,i.fileName)?[3,2]:[2];if(zd(r)===1)return p===2?[2,1]:[1,2];let h=nR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:x.assertNever(p)}}};function l(d){if(o!==void 0){if(QE(o))return 2;if(Zs(o,\"/index\"))return 1}return nre(t,d??i.impliedNodeFormat,r,i)}}function A3e(e,t,r,i,o,s,l={}){let d=sSe(e,t,r,i,o,sk({},e,t,s),{},l);if(d!==s)return d}function i4(e,t,r,i,o,s={}){return sSe(e,t,r,i,o,sk({},e,t),{},s)}function I3e(e,t,r,i,o,s={}){let l=WU(t.fileName,i),d=mSe(l,r,i,o,s);return ml(d,p=>voe(p,l,t,i,e,o,!0,s.overrideImportMode))}function sSe(e,t,r,i,o,s,l,d={}){let p=WU(r,o),h=mSe(p,i,o,l,d);return ml(h,m=>voe(m,p,t,o,e,l,void 0,d.overrideImportMode))||uSe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function x3e(e,t,r,i,o={}){return lSe(e,t,r,i,o)[0]}function lSe(e,t,r,i,o={}){var s;let l=eW(e);if(!l)return je;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function cSe(e,t,r,i,o,s,l={}){return dSe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function dSe(e,t,r,i,o,s,l={},d){let p=!1,h=C3e(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,v,E,S]=lSe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!v)return{moduleSpecifiers:je,computedWithoutCache:p};p=!0,E||(E=_Se(WU(i.fileName,o),v.originalFileName,o));let A=R3e(E,r,i,o,s,l,d);return S?.set(i.path,v.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function R3e(e,t,r,i,o,s={},l){let d=WU(r.fileName,i),p=sk(o,t,r),h=an(e,C=>an(i.getFileIncludeReasons().get(ks(C.path,i.getCurrentDirectory(),d.getCanonicalFileName)),R=>{if(R.kind!==3||R.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Dae(r,R.index,t))return;let L=Ak(r,R.index).text;return p.relativePreference!==1||!op(L)?L:void 0}));if(h)return[h];let m=ct(e,C=>C.isInNodeModules),v,E,S,A;for(let C of e){let R=C.isInNodeModules?voe(C,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(v=pn(v,R),R&&C.isRedirect)return v;if(!R){let L=uSe(C.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,C.isRedirect);if(!L)continue;C.isRedirect?S=pn(S,L):RG(L)?Gb(L)?A=pn(A,L):E=pn(E,L):(l||!m||C.isInNodeModules)&&(A=pn(A,L))}}return E?.length?E:S?.length?S:v?.length?v:x.checkDefined(A)}function WU(e,t){e=Qi(e,t.getCurrentDirectory());let r=od(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Ur(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function uSe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:v,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),C=m&&M3e(m,e,v,S,A,r)||lk(ME(Gf(v,e,S)),A,r);if(!p&&!h&&!DF(r)||l===0)return d?void 0:C;let R=Qi(zW(r,i)||p,i.getCurrentDirectory()),L=ySe(e,R,S);if(!L)return d?void 0:C;let G=d?void 0:P3e(e,v,r,i,o),U=d||G===void 0?h&&hSe(L,h,A,i,r):void 0;if(d)return U;let K=G??(U===void 0&&p!==void 0?lk(L,A,r):U);if(!K)return C;if(l===1&&!op(K))return K;if(l===3&&!op(K)){let F=r.configFilePath?ks(Ur(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),oe=ks(e,F,S),W=Ui(E,F),$=Ui(oe,F);if(W&&!$||!W&&$)return K;let de=goe(i,Ur(oe)),fe=goe(i,v),q=!yx(i);return D3e(de,fe,q)?C:K}return bSe(K)||o4(C)<o4(K)?C:K}function D3e(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Xh(e,t,r)===0}function o4(e){let t=0;for(let r=Ui(e,\"./\")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function pSe(e,t){return zv(t.isRedirect,e.isRedirect)||$L(e.path,t.path)}function goe(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Vf(t,r=>e.fileExists(wr(r,\"package.json\"))?r:void 0)}function fSe(e,t,r,i,o){var s;let l=ev(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=ks(t,d,l),m=r.redirectTargetsMap.get(h)||je,E=[...p?[p]:je,t,...m].map(L=>Qi(L,d)),S=!ji(E,KC);if(!i){let L=an(E,G=>!(S&&KC(G))&&o(G,p===G));if(L)return L}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),C=Qi(t,d);return A&&Vf(Ur(C),L=>{let G=A.get(_c(ks(L,d,l)));if(G)return CG(e,L,l)?!1:an(E,U=>{if(!CG(U,L,l))return;let K=Gf(L,U,l);for(let F of G){let oe=jv(F,K),W=o(oe,U===p);if(S=!0,W)return W}})})||(i?an(E,L=>S&&KC(L)?void 0:o(L,L===p)):void 0)}function mSe(e,t,r,i,o={}){var s;let l=ks(e.importingSourceFileName,r.getCurrentDirectory(),ev(r)),d=ks(t,r.getCurrentDirectory(),ev(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=_Se(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function _Se(e,t,r){let i=new Map,o=!1;fSe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=Gb(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=_c(l),p;i.forEach(({path:m,isRedirect:v,isInNodeModules:E},S)=>{Ui(m,d)&&((p||(p=[])).push({path:S,isRedirect:v,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(pSe),s.push(...p));let h=Ur(l);if(h===l)break;l=h}if(i.size){let l=bo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(pSe),s.push(...l)}return s}function C3e(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>m9(l)&&(!zE(l)||!Ic(Ef(l.name))));if(i)return i.name.text;let s=Fi(e.declarations,l=>{var d,p,h,m;if(!Il(l))return;let v=C(l);if(!((d=v?.parent)!=null&&d.parent&&n_(v.parent)&&sd(v.parent.parent)&&Li(v.parent.parent.parent)))return;let E=(m=(h=(p=v.parent.parent.symbol.exports)==null?void 0:p.get(\"export=\"))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return v.parent.parent;function C(R){for(;R.flags&8;)R=R.parent;return R}})[0];if(s)return s.name.text}function hSe(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=Yo(d),h=p.indexOf(\"*\"),m=r.map(v=>({ending:v,value:lk(e,[v],o)}));if(og(p)&&m.push({ending:void 0,value:e}),h!==-1){let v=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=v.length+E.length&&Ui(A,v)&&Zs(A,E)&&s({ending:S,value:A})){let C=A.substring(v.length,A.length-E.length);if(!op(C))return KA(l,C)}}else if(ct(m,v=>v.ending!==0&&p===v.value)||ct(m,v=>v.ending===0&&p===v.value&&s(v)))return l}function s({ending:l,value:d}){return l!==0||d===lk(e,[l],o,i)}}function a4(e,t,r,i,o,s,l,d,p){if(typeof s==\"string\"){let h=!yx(t),m=()=>t.getCommonSourceDirectory(),v=p&&fH(r,e,h,m),E=p&&pH(r,e,h,m),S=Qi(wr(i,s),void 0),A=qA(r)?Yd(r)+boe(r,e):void 0;switch(d){case 0:if(A&&Xh(A,S,h)===0||Xh(r,S,h)===0||v&&Xh(v,S,h)===0||E&&Xh(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&Bf(S,A,h)){let G=Gf(S,A,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(Bf(S,r,h)){let G=Gf(S,r,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(v&&Bf(S,v,h)){let G=Gf(S,v,!1);return{moduleFileToTry:wr(o,G)}}if(E&&Bf(S,E,h)){let G=Gf(S,E,!1);return{moduleFileToTry:wr(o,G)}}break;case 2:let C=S.indexOf(\"*\"),R=S.slice(0,C),L=S.slice(C+1);if(A&&Ui(A,R,h)&&Zs(A,L,h)){let G=A.slice(R.length,A.length-L.length);return{moduleFileToTry:KA(o,G)}}if(Ui(r,R,h)&&Zs(r,L,h)){let G=r.slice(R.length,r.length-L.length);return{moduleFileToTry:KA(o,G)}}if(v&&Ui(v,R,h)&&Zs(v,L,h)){let G=v.slice(R.length,v.length-L.length);return{moduleFileToTry:KA(o,G)}}if(E&&Ui(E,R,h)&&Zs(E,L,h)){let G=E.slice(R.length,E.length-L.length);return{moduleFileToTry:KA(o,G)}}break}}else{if(Array.isArray(s))return an(s,h=>a4(e,t,r,i,o,h,l,d,p));if(typeof s==\"object\"&&s!==null){for(let h of fh(s))if(h===\"default\"||l.indexOf(h)>=0||ok(l,h)){let m=s[h],v=a4(e,t,r,i,o,m,l,d,p);if(v)return v}}}}function N3e(e,t,r,i,o,s,l){return typeof s==\"object\"&&s!==null&&!Array.isArray(s)&&t4(s)?an(fh(s),d=>{let p=Qi(wr(o,d),void 0),h=Zs(d,\"/\")?1:d.includes(\"*\")?2:0;return a4(e,t,r,i,p,s[d],l,h,!1)}):a4(e,t,r,i,o,s,l,0,!1)}function P3e(e,t,r,i,o){var s,l,d;if(!i.readFile||!DF(r))return;let p=goe(i,t);if(!p)return;let h=wr(p,\"package.json\"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(noe(m)||!i.fileExists(h))return;let v=m?.contents.packageJsonContent||KW(i.readFile(h)),E=v?.imports;if(!E)return;let S=hy(r,o);return(d=an(fh(E),A=>{if(!Ui(A,\"#\")||A===\"#\"||Ui(A,\"#/\"))return;let C=Zs(A,\"/\")?1:A.includes(\"*\")?2:0;return a4(r,i,e,p,A,E[A],S,C,!0)}))==null?void 0:d.moduleFileToTry}function M3e(e,t,r,i,o,s){let l=gSe(t,e,i);if(l===void 0)return;let d=gSe(r,e,i),p=ta(d,m=>nn(l,v=>ME(Gf(m,v,i)))),h=cB(p,$L);if(h)return lk(h,o,s)}function voe({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=yF(e);if(!m)return;let E=sk(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let K=m.packageRootIndex,F;for(;;){let{moduleFileToTry:oe,packageRootPath:W,blockedByExports:$,verbatimFromExports:de}=U(K);if(zd(l)!==1){if($)return;if(de)return oe}if(W){S=W,A=!0;break}if(F||(F=oe),K=e.indexOf(Os,K+1),K===-1){S=lk(F,E,l,s);break}}}if(t&&!A)return;let C=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),R=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(Ui(i,R)||C&&Ui(r(C),R)))return;let L=S.substring(m.topLevelPackageNameIndex+1),G=CN(L);return zd(l)===1&&G===L?void 0:G;function U(K){var F,oe;let W=e.substring(0,K),$=wr(W,\"package.json\"),de=e,fe=!1,q=(oe=(F=s.getPackageJsonInfoCache)==null?void 0:F.call(s))==null?void 0:oe.getPackageJsonInfo($);if($6(q)||q===void 0&&s.fileExists($)){let H=q?.contents.packageJsonContent||KW(s.readFile($)),ee=h||o.impliedNodeFormat;if(RF(l)){let ce=W.substring(m.topLevelPackageNameIndex+1),Z=CN(ce),pe=hy(l,ee),Ae=H?.exports?N3e(l,s,e,W,Z,H.exports,pe):void 0;if(Ae)return{...Ae,verbatimFromExports:!0};if(H?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let le=H?.typesVersions?X6(H.typesVersions):void 0;if(le){let ce=e.slice(W.length+1),Z=hSe(ce,le.paths,E,s,l);Z===void 0?fe=!0:de=wr(W,Z)}let Ee=H?.typings||H?.types||H?.main||\"index.js\";if(fo(Ee)&&!(fe&&CV(fF(le.paths),Ee))){let ce=ks(Ee,W,r),Z=r(de);if(Yd(ce)===Yd(Z))return{packageRootPath:W,moduleFileToTry:de};if(H?.type!==\"module\"&&!$l(Z,c2)&&Ui(Z,ce)&&Ur(Z)===fb(ce)&&Yd(Ll(Z))===\"index\")return{packageRootPath:W,moduleFileToTry:de}}}else{let H=r(de.substring(m.packageRootIndex+1));if(H===\"index.d.ts\"||H===\"index.js\"||H===\"index.ts\"||H===\"index.tsx\")return{moduleFileToTry:de,packageRootPath:W}}return{moduleFileToTry:de}}}function L3e(e,t){if(!e.fileExists)return;let r=Ff(GC({allowJs:!0},[{extension:\"node\",isMixedContent:!1},{extension:\"json\",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function gSe(e,t,r){return Fi(t,i=>{let o=ySe(e,i,r);return o!==void 0&&bSe(o)?void 0:o})}function lk(e,t,r,i){if($l(e,[\".json\",\".mjs\",\".cjs\"]))return e;let o=Yd(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if($l(e,[\".mts\",\".cts\"])&&l!==-1&&l<s)return e;if($l(e,[\".d.mts\",\".mts\",\".d.cts\",\".cts\"]))return o+yoe(e,r);if(!$l(e,[\".d.ts\"])&&$l(e,[\".ts\"])&&e.includes(\".d.\"))return vSe(e);switch(t[0]){case 0:let d=C1(o,\"/index\");return i&&d!==o&&L3e(i,d)?o:d;case 1:return o;case 2:return o+yoe(e,r);case 3:if(Yc(e)){let p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+yoe(e,r)}return e;default:return x.assertNever(t[0])}}function vSe(e){let t=Ll(e);if(!Zs(e,\".ts\")||!t.includes(\".d.\")||$l(t,[\".d.ts\"]))return;let r=QL(e,\".ts\"),i=r.substring(r.lastIndexOf(\".\"));return r.substring(0,r.indexOf(\".d.\"))+i}function yoe(e,t){return boe(e,t)??x.fail(`Extension ${jC(e)} is unsupported:: FileName:: ${e}`)}function boe(e,t){let r=og(e);switch(r){case\".ts\":case\".d.ts\":return\".js\";case\".tsx\":return t.jsx===1?\".jsx\":\".js\";case\".js\":case\".jsx\":case\".json\":return r;case\".d.mts\":case\".mts\":case\".mjs\":return\".mjs\";case\".d.cts\":case\".cts\":case\".cjs\":return\".cjs\";default:return}}function ySe(e,t,r){let i=AA(t,e,t,r,!1);return Ou(i)?void 0:i}function bSe(e){return Ui(e,\"..\")}var Eoe,Soe=pt({\"src/compiler/moduleSpecifiers.ts\"(){\"use strict\";wo(),Eoe=(e=>(e[e.Relative=0]=\"Relative\",e[e.NonRelative=1]=\"NonRelative\",e[e.Shortest=2]=\"Shortest\",e[e.ExternalNonRelative=3]=\"ExternalNonRelative\",e))(Eoe||{})}}),h0={};la(h0,{RelativePreference:()=>Eoe,countPathComponents:()=>o4,forEachFileNameOfModule:()=>fSe,getModuleSpecifier:()=>i4,getModuleSpecifierPreferences:()=>sk,getModuleSpecifiers:()=>cSe,getModuleSpecifiersWithCacheInfo:()=>dSe,getNodeModulesPackageName:()=>I3e,tryGetJSExtensionForFile:()=>boe,tryGetModuleSpecifiersFromCache:()=>x3e,tryGetRealFileNameForNonJsDeclarationFileName:()=>vSe,updateModuleSpecifier:()=>A3e});var Toe=pt({\"src/compiler/_namespaces/ts.moduleSpecifiers.ts\"(){\"use strict\";Soe()}});function k3e(){this.flags=0}function Fa(e){return e.id||(e.id=xoe,xoe++),e.id}function na(e){return e.id||(e.id=Ioe,Ioe++),e.id}function FU(e,t){let r=dg(e);return r===1||t&&r===2}function Aoe(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=wc.getSymbolConstructor(),p=wc.getTypeConstructor(),h=wc.getSignatureConstructor(),m=0,v=0,E=0,S=0,A=0,C=0,R,L,G=!1,U=Vo(),K=[1],F=e.getCompilerOptions(),oe=Wa(F),W=ld(F),$=!!F.experimentalDecorators,de=nN(F),fe=Xne(F),q=zS(F),H=Fd(F,\"strictNullChecks\"),ee=Fd(F,\"strictFunctionTypes\"),le=Fd(F,\"strictBindCallApply\"),Ee=Fd(F,\"strictPropertyInitialization\"),ce=Fd(F,\"noImplicitAny\"),Z=Fd(F,\"noImplicitThis\"),pe=Fd(F,\"useUnknownInCatchVariables\"),Ae=!!F.keyofStringsOnly,Oe=Ae?1:0,_e=F.suppressExcessPropertyErrors?0:8192,be=F.exactOptionalPropertyTypes,Te=plt(),De=Hut(),ft=h_(),he=Vo(),Le=Ra(4,\"undefined\");Le.declarations=[];var Ke=Ra(1536,\"globalThis\",8);Ke.exports=he,Ke.declarations=[],he.set(Ke.escapedName,Ke);var Dt=Ra(4,\"arguments\"),st=Ra(4,\"require\"),Ge=F.verbatimModuleSyntax?\"verbatimModuleSyntax\":\"isolatedModules\",ot=!F.verbatimModuleSyntax||!!F.importsNotUsedAsValues,Vt,jt,gn=0,On,en=0;let zt={getNodeCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,v),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:hu.size,identity:Cu.size,subtype:Y_.size,strictSubtype:rf.size}),isUndefinedSymbol:n=>n===Le,isArgumentsSymbol:n=>n===Dt,isUnknownSymbol:n=>n===tt,getMergedSymbol:Oa,getDiagnostics:V8e,getGlobalDiagnostics:sut,getRecursionIdentity:dQ,getUnmatchedProperties:ehe,getTypeOfSymbolAtLocation:(n,a)=>{let c=uo(a);return c?eot(n,c):it},getTypeOfSymbol:Yn,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=uo(n,ao);return c===void 0?x.fail(\"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.\"):(x.assert(wu(c,c.parent)),TP(c,Hs(a)))},getDeclaredTypeOfSymbol:Cs,getPropertiesOfType:Xa,getPropertyOfType:(n,a)=>Qo(n,Hs(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=uo(c);if(!u)return;let _=Hs(a),g=GQ(_,u);return g?zhe(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Fe(n,Hs(a)),getIndexInfoOfType:(n,a)=>Uh(n,a===0?Ie:gt),getIndexInfosOfType:Ud,getIndexInfosOfIndexSymbol:Kme,getSignaturesOfType:Co,getIndexTypeOfType:(n,a)=>yE(n,a===0?Ie:gt),getIndexType:n=>y_(n),getBaseTypes:ep,getBaseTypeOfLiteralType:wg,getWidenedType:gp,getTypeFromTypeNode:n=>{let a=uo(n,xi);return a?si(a):it},getParameterType:zm,getParameterIdentifierInfoAtPosition:Nst,getPromisedTypeOfPromise:kw,getAwaitedType:n=>pA(n),getReturnTypeOfSignature:Ha,isNullableType:h5,getNullableType:e5,getNonNullableType:Wg,getNonOptionalType:mQ,getTypeArguments:Ts,typeToTypeNode:ft.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ft.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ft.signatureToSignatureDeclaration,symbolToEntityName:ft.symbolToEntityName,symbolToExpression:ft.symbolToExpression,symbolToNode:ft.symbolToNode,symbolToTypeParameterDeclarations:ft.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ft.symbolToParameterDeclaration,typeParameterToDeclaration:ft.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=uo(n);return c?lut(c,a):[]},getSymbolAtLocation:n=>{let a=uo(n);return a?um(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=uo(n);return a?hut(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=uo(n);return a?gut(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=uo(n,Ed);return a?vut(a):void 0},getExportSymbolOfSymbol(n){return Oa(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=uo(n);return a?S1(a):it},getTypeOfAssignmentPattern:n=>{let a=uo(n,lC);return a&&gZ(a)||it},getPropertySymbolOfDestructuringAssignment:n=>{let a=uo(n,Me);return a?yut(a):void 0},signatureToString:(n,a,c,u)=>th(n,uo(a),c,u),typeToString:(n,a,c)=>Pn(n,uo(a),c),symbolToString:(n,a,c,u)=>ai(n,uo(a),c,u),typePredicateToString:(n,a,c)=>nh(n,uo(a),c),writeSignature:(n,a,c,u,_)=>th(n,uo(a),c,u,_),writeType:(n,a,c,u)=>Pn(n,uo(a),c,u),writeSymbol:(n,a,c,u,_)=>ai(n,uo(a),c,u,_),writeTypePredicate:(n,a,c,u)=>nh(n,uo(a),c,u),getAugmentedPropertiesOfType:Bge,getRootSymbols:Y8e,getSymbolOfExpando:YQ,getContextualType:(n,a)=>{let c=uo(n,lt);if(c)return a&4?Ki(c,()=>bu(c,a)):bu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=uo(n,Zh);return a?Ihe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=uo(n,WE);return c&&Ahe(c,a)},getContextualTypeForJsxAttribute:n=>{let a=uo(n,H8);return a&&dOe(a,void 0)},isContextSensitive:uf,getTypeOfPropertyOfContextualType:DE,getFullyQualifiedName:mp,getResolvedSignature:(n,a,c)=>gi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Wt,getResolvedSignatureForSignatureHelp:(n,a,c)=>ei(n,()=>gi(n,a,c,16)),getExpandedParameters:uLe,hasEffectiveRestParameter:dh,containsArgumentsReference:Hme,getConstantValue:n=>{let a=uo(n,tWe);return a?Gge(a):void 0},isValidPropertyAccess:(n,a)=>{let c=uo(n,$ee);return!!c&&zat(c,Hs(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=uo(n,Er);return!!u&&BOe(u,a,c)},getSignatureFromDeclaration:n=>{let a=uo(n,Lo);return a?kf(a):void 0},isImplementationOfOverload:n=>{let a=uo(n,Lo);return a?Z8e(a):void 0},getImmediateAliasedSymbol:Nhe,getAliasedSymbol:fc,getEmitResolver:Ev,getExportsOfModule:wT,getExportsAndPropertiesOfModule:eD,forEachExportAndPropertyOfModule:tD,getSymbolWalker:hoe(Stt,df,Ha,ep,Om,Yn,cm,iu,dp,Ts),getAmbientModules:kpt,getJsxIntrinsicTagNamesAt:vat,isOptionalParameter:n=>{let a=uo(n,ao);return a?ow(a):!1},tryGetMemberInModuleExports:(n,a)=>WT(Hs(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>nD(Hs(n),a),tryFindAmbientModule:n=>w$(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>w$(n,!1),getApparentType:ou,getUnionType:Br,isTypeAssignableTo:ea,createAnonymousType:cs,createSignature:jh,createSymbol:Ra,createIndexInfo:sh,getAnyType:()=>z,getStringType:()=>Ie,getStringLiteralType:yu,getNumberType:()=>gt,getNumberLiteralType:Wm,getBigIntType:()=>bt,createPromiseType:R5,createArrayType:_d,getElementTypeOfArrayType:Z7,getBooleanType:()=>ti,getFalseType:n=>n?Ot:dn,getTrueType:n=>n?An:Cn,getVoidType:()=>jn,getUndefinedType:()=>Re,getNullType:()=>se,getESSymbolType:()=>di,getNeverType:()=>Ar,getOptionalType:()=>j,getPromiseType:()=>W7(!1),getPromiseLikeType:()=>QLe(!1),getAsyncIterableType:()=>{let n=q$(!1);if(n!==ho)return n},isSymbolAccessible:vi,isArrayType:ff,isTupleType:ga,isArrayLikeType:Lv,isEmptyAnonymousObjectType:ch,isTypeInvalidDueToUnionDiscriminant:rtt,getExactOptionalProperties:Nrt,getAllPossiblePropertiesOfTypes:itt,getSuggestedSymbolForNonexistentProperty:Vhe,getSuggestionForNonexistentProperty:jhe,getSuggestedSymbolForNonexistentJSXAttribute:FOe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Uhe(n,Hs(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Oat(n,Hs(a),c),getSuggestedSymbolForNonexistentModule:jQ,getSuggestionForNonexistentExport:wat,getSuggestedSymbolForNonexistentClassMember:WOe,getBaseConstraintOfType:md,getDefaultFromTypeParameter:n=>n&&n.flags&262144?KT(n):void 0,resolveName(n,a,c,u){return Xs(a,Hs(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Ii(tE(n)),getJsxFragmentFactory:n=>{let a=jge(n);return a&&Ii(dp(a).escapedText)},getAccessibleSymbolChain:Wy,getTypePredicateOfSignature:df,resolveExternalModuleName:n=>{let a=uo(n,lt);return a&&jd(a,a,!0)},resolveExternalModuleSymbol:$u,tryGetThisTypeAt:(n,a,c)=>{let u=uo(n);return u&&bhe(u,a,c)},getTypeArgumentConstraint:n=>{let a=uo(n,xi);return a&&Ult(a)},getSuggestionDiagnostics:(n,a)=>{let c=uo(n,Li)||x.fail(\"Could not determine parsed source file.\");if(UC(c,F,e))return je;let u;try{return i=a,Fge(c),x.assert(!!(Fr(c).flags&1)),u=Pr(u,yT.getDiagnostics(c.fileName)),i8e(G8e(c),(_,g,T)=>{!X1(_)&&!B8e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||je}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(zt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:gr,isDeclarationVisible:Pm,isPropertyAccessible:qhe,getTypeOnlyAliasDeclaration:of,getMemberOverrideModifierStatus:Sdt,isTypeParameterPossiblyReferenced:U7,typeHasCallOrConstructSignatures:vZ};function Wt(n,a){let c=new Set,u=[];Ki(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,ei(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);return bo(c)}function ei(n,a){if(n=Rn(n,ZG),n){let c=[],u=[];for(;n;){let g=Fr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,e0(n)){let T=Pi(dr(n)),N=T.type;u.push([T,N]),T.type=void 0}n=Rn(n.parent,ZG)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function Ki(n,a){let c=Rn(n,WE);if(c){let _=n;do Fr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}G=!0;let u=ei(n,a);if(G=!1,c){let _=n;do Fr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function gi(n,a,c,u){let _=uo(n,WE);Vt=c;let g=_?xD(_,a,u):void 0;return Vt=void 0,g}var io=new Map,Gn=new Map,Nr=new Map,cr=new Map,Jt=new Map,Ue=new Map,Rt=new Map,mn=new Map,qr=new Map,ni=new Map,ki=new Map,so=new Map,Jo=new Map,Ea=new Map,ln=new Map,Tn=[],ke=new Map,nt=new Set,tt=Ra(4,\"unknown\"),yt=Ra(0,\"__resolving__\"),re=new Map,Ce=new Map,et=new Set,z=Fl(1,\"any\"),Je=Fl(1,\"any\",262144,\"auto\"),_t=Fl(1,\"any\",void 0,\"wildcard\"),ze=Fl(1,\"any\",void 0,\"blocked string\"),it=Fl(1,\"error\"),Ct=Fl(1,\"unresolved\"),on=Fl(1,\"any\",65536,\"non-inferrable\"),Qt=Fl(1,\"intrinsic\"),Zt=Fl(2,\"unknown\"),V=Fl(2,\"unknown\",void 0,\"non-null\"),Re=Fl(32768,\"undefined\"),St=H?Re:Fl(32768,\"undefined\",65536,\"widening\"),M=Fl(32768,\"undefined\",void 0,\"missing\"),te=be?M:Re,j=Fl(32768,\"undefined\",void 0,\"optional\"),se=Fl(65536,\"null\"),Pe=H?se:Fl(65536,\"null\",65536,\"widening\"),Ie=Fl(4,\"string\"),gt=Fl(8,\"number\"),bt=Fl(64,\"bigint\"),Ot=Fl(512,\"false\",void 0,\"fresh\"),dn=Fl(512,\"false\"),An=Fl(512,\"true\",void 0,\"fresh\"),Cn=Fl(512,\"true\");An.regularType=Cn,An.freshType=An,Cn.regularType=Cn,Cn.freshType=An,Ot.regularType=dn,Ot.freshType=Ot,dn.regularType=dn,dn.freshType=Ot;var ti=Br([dn,Cn]),di=Fl(4096,\"symbol\"),jn=Fl(16384,\"void\"),Ar=Fl(131072,\"never\"),Zi=Fl(131072,\"never\",262144,\"silent\"),_i=Fl(131072,\"never\",void 0,\"implicit\"),ui=Fl(131072,\"never\",void 0,\"unreachable\"),Mr=Fl(67108864,\"object\"),lo=Br([Ie,gt]),_n=Br([Ie,gt,di]),ms=Ae?Ie:_n,Dl=Br([gt,bt]),_o=Br([Ie,gt,ti,bt,se,Re]),Va=YT([\"\",\"\"],[gt]),vs=j7(n=>n.flags&262144?rrt(n):n,()=>\"(restrictive mapper)\"),Js=j7(n=>n.flags&262144?_t:n,()=>\"(permissive mapper)\"),Fc=Fl(131072,\"never\",void 0,\"unique literal\"),$i=j7(n=>n.flags&262144?Fc:n,()=>\"(unique literal mapper)\"),Uo,zc=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!0),n),()=>\"(unmeasurable reporter)\"),ts=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!1),n),()=>\"(unreliable reporter)\"),ua=cs(void 0,U,je,je,je),Us=cs(void 0,U,je,je,je);Us.objectFlags|=2048;var tf=Ra(2048,\"__type\");tf.members=Vo();var Wl=cs(tf,U,je,je,je),il=cs(void 0,U,je,je,je),zs=H?Br([Re,se,il]):Zt,ho=cs(void 0,U,je,je,je);ho.instantiations=new Map;var Ut=cs(void 0,U,je,je,je);Ut.objectFlags|=262144;var ys=cs(void 0,U,je,je,je),Pc=cs(void 0,U,je,je,je),Bc=cs(void 0,U,je,je,je),Ju=Bp(),ls=Bp();ls.constraint=Ju;var tc=Bp(),ae=Bp(),X=Bp();X.constraint=ae;var xe=O7(1,\"<<unresolved>>\",0,z),dt=jh(void 0,void 0,void 0,je,z,void 0,0,0),$t=jh(void 0,void 0,void 0,je,it,void 0,0,0),sr=jh(void 0,void 0,void 0,je,z,void 0,0,0),tr=jh(void 0,void 0,void 0,je,Zi,void 0,0,0),Ir=sh(gt,Ie,!0),pi=new Map,hr={get yieldType(){return x.fail(\"Not supported\")},get returnType(){return x.fail(\"Not supported\")},get nextType(){return x.fail(\"Not supported\")}},No=wv(z,z,z),Qs=wv(z,z,Zt),bc=wv(Ar,z,Re),bs={iterableCacheKey:\"iterationTypesOfAsyncIterable\",iteratorCacheKey:\"iterationTypesOfAsyncIterator\",iteratorSymbolName:\"asyncIterator\",getGlobalIteratorType:Wtt,getGlobalIterableType:q$,getGlobalIterableIteratorType:Ftt,getGlobalGeneratorType:ztt,resolveIterationType:(n,a)=>pA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Jl={iterableCacheKey:\"iterationTypesOfIterable\",iteratorCacheKey:\"iterationTypesOfIterator\",iteratorSymbolName:\"iterator\",getGlobalIteratorType:Btt,getGlobalIterableType:a_e,getGlobalIterableIteratorType:Gtt,getGlobalGeneratorType:Vtt,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Za,Ec=new Map,Du=[],pc,Nf,Vd,Se,At,Ln,eo,Po,Oo,Cl,Kl,Bs,Ks,vl,Nl,Sc,kp,fu,tu,nf,u_,X_,fg,fd,mg,Ku,Lh,mu,Y,Ye,xt,Nt,k,ge,Xe,Mt,Vn,jr,Or,zi,_a,ha,pl,Gc,nc,Xu,_u,Ay,ja,em,tm,Ri,_g,yv,nm,D0,C0,Op=new Map,p_=0,wp=0,hg=0,Ne=!1,Ve=0,Tt,Pt,rn,wn=[],tn=[],Wn=[],Qr=0,Kn=[],Gr=[],Qn=0,Mo=yu(\"\"),xa=Wm(0),xd=$$({negative:!1,base10Value:\"0\"}),Vc=[],gg=[],$b=[],UI=0,Qb=!1,GR=0,VR=10,jR=[],gT=[],N0=[],HI=[],UR=[],qI=[],JI=[],KI=[],XI=[],vT=[],YI=[],P0=[],M0=[],Iy=[],xy=[],kh=[],Zb=[],La=hx(),yT=hx(),HR=eh(),eE,vg,Y_=new Map,rf=new Map,hu=new Map,Yu=new Map,Cu=new Map,bv=new Map,bT=Vo();bT.set(Le.escapedName,Le);var qR=[[\".mts\",\".mjs\"],[\".ts\",\".js\"],[\".cts\",\".cjs\"],[\".mjs\",\".mjs\"],[\".js\",\".js\"],[\".cjs\",\".cjs\"],[\".tsx\",F.jsx===1?\".jsx\":\".js\"],[\".jsx\",\".jsx\"],[\".json\",\".json\"]];return qut(),zt;function $I(n){return n?ln.get(n):void 0}function Ry(n,a){return n&&ln.set(n,a),a}function tE(n){if(n){let a=Nn(n);if(a)if(fI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get(\"jsxfrag\");if(c){let _=oo(c)?c[0]:c;if(a.localJsxFragmentFactory=gI(_.arguments.factory,oe),He(a.localJsxFragmentFactory,Xl,Su),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=dp(a.localJsxFragmentFactory).escapedText}let u=jge(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=dp(u).escapedText}else{let c=QI(a);if(c)return a.localJsxNamespace=c}}return eE||(eE=\"React\",F.jsxFactory?(vg=gI(F.jsxFactory,oe),He(vg,Xl),vg&&(eE=dp(vg).escapedText)):F.reactNamespace&&(eE=Hs(F.reactNamespace))),vg||(vg=P.createQualifiedName(P.createIdentifier(Ii(eE)),\"createElement\")),eE}function QI(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get(\"jsx\");if(a){let c=oo(a)?a[0]:a;if(n.localJsxFactory=gI(c.arguments.factory,oe),He(n.localJsxFactory,Xl,Su),n.localJsxFactory)return n.localJsxNamespace=dp(n.localJsxFactory).escapedText}}function Xl(n){return F_(n,-1,-1),un(n,Xl,void 0)}function Ev(n,a){return V8e(n,a),De}function ZI(n,a,...c){let u=n?vr(n,a,...c):bl(a,...c),_=La.lookup(u);return _||(La.add(u),u)}function xm(n,a,c,...u){let _=we(a,c,...u);return _.skippedOn=n,_}function ET(n,a,...c){return n?vr(n,a,...c):bl(a,...c)}function we(n,a,...c){let u=ET(n,a,...c);return La.add(u),u}function Rm(n,a){n?La.add(a):yT.add({...a,category:2})}function jc(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Nn(a);Rm(n,\"message\"in c?Rc(_,0,0,c,...u):T9(_,c));return}Rm(n,\"message\"in c?vr(a,c,...u):eg(Nn(a),a,c))}function nE(n,a,c,...u){let _=we(n,c,...u);if(a){let g=vr(n,f.Did_you_forget_to_use_await);fa(_,g)}return _}function e1(n,a){let c=Array.isArray(n)?an(n,zG):zG(n);return c&&fa(a,vr(c,f.The_declaration_was_marked_as_deprecated_here)),yT.add(a),a}function Dy(n){let a=nu(n);return a&&yn(n.declarations)>1?a.flags&64?ct(n.declarations,Sv):ji(n.declarations,Sv):!!n.valueDeclaration&&Sv(n.valueDeclaration)||yn(n.declarations)&&ji(n.declarations,Sv)}function Sv(n){return!!(lS(n)&536870912)}function Tv(n,a,c){let u=vr(n,f._0_is_deprecated,c);return e1(a,u)}function SP(n,a,c,u){let _=c?vr(n,f.The_signature_0_of_1_is_deprecated,u,c):vr(n,f._0_is_deprecated,u);return e1(a,_)}function Ra(n,a,c){v++;let u=new d(n|33554432,a);return u.links=new Coe,u.links.checkFlags=c||0,u}function Dm(n,a){let c=Ra(1,n);return c.links.type=a,c}function ST(n,a){let c=Ra(4,n);return c.links.type=a,c}function TT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function rE(n,a){a.mergeId||(a.mergeId=Roe,Roe++),jR[a.mergeId]=n}function AT(n){let a=Ra(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),rE(a,n),a}function Pf(n,a,c=!1){if(!(n.flags&TT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=yl(n);if(_===tt)return a;n=AT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&IL(n,a.valueDeclaration),Pr(n.declarations,a.declarations),a.members&&(n.members||(n.members=Vo()),Cm(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=Vo()),Cm(n.exports,a.exports,c)),c||rE(n,a)}else if(n.flags&1024)n!==Ke&&we(a.declarations&&mo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ai(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,N=a.declarations&&Nn(a.declarations[0]),O=n.declarations&&Nn(n.declarations[0]),B=nL(N,F.checkJs),Q=nL(O,F.checkJs),me=ai(a);if(N&&O&&Za&&!_&&N!==O){let ue=Xh(N.path,O.path)===-1?N:O,We=ue===N?O:N,at=FD(Za,`${ue.path}|${We.path}`,()=>({firstFile:ue,secondFile:We,conflictingSymbols:new Map})),ht=FD(at.conflictingSymbols,me,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));B||u(ht.firstFileLocations,a),Q||u(ht.secondFileLocations,n)}else B||Mf(a,T,me,n),Q||Mf(n,T,me,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)jp(_,T)}}function Mf(n,a,c,u){an(n.declarations,_=>{yg(_,a,c,u.declarations)})}function yg(n,a,c,u){let _=(Ib(n,!1)?L9(n):mo(n))||n,g=ZI(_,a,c);for(let T of u||je){let N=(Ib(T,!1)?L9(T):mo(T))||T;if(N===_)continue;g.relatedInformation=g.relatedInformation||[];let O=vr(N,f._0_was_also_declared_here,c),B=vr(N,f.and_here);yn(g.relatedInformation)>=5||ct(g.relatedInformation,Q=>zC(Q,B)===0||zC(Q,O)===0)||fa(g,yn(g.relatedInformation)?B:O)}}function t1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=Vo();return Cm(c,n),Cm(c,a),c}function Cm(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?Pf(g,u,c):Oa(u))})}function JR(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){x.assert(_.symbol.declarations.length>1);return}if(Jm(_))Cm(he,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=Tg(n,n,g,!0);if(!T)return;if(T=$u(T),T.flags&1920)if(ct(Nf,N=>T===N.symbol)){let N=Pf(_.symbol,T,!0);Vd||(Vd=new Map),Vd.set(n.text,N)}else{if((c=T.exports)!=null&&c.get(\"__export\")&&((u=_.symbol.exports)!=null&&u.size)){let N=Dme(T,\"resolvedExports\");for(let[O,B]of bo(_.symbol.exports.entries()))N.has(O)&&!T.exports.has(O)&&Pf(N.get(O),B)}Pf(T,_.symbol)}else we(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function L0(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?an(T.declarations,u(Ii(g),c)):n.set(g,_)});function u(_,g){return T=>La.add(vr(T,g,_))}}function Pi(n){if(n.flags&33554432)return n.links;let a=na(n);return gT[a]??(gT[a]=new Coe)}function Fr(n){let a=Fa(n);return N0[a]||(N0[a]=new k3e)}function $_(n){return n.kind===312&&!sp(n)}function gu(n,a,c){if(c){let u=Oa(n.get(a));if(u&&(x.assert((tl(u)&1)===0,\"Should never get an instantiated symbol here.\"),u.flags&c||u.flags&2097152&&Qc(u)&c))return u}}function TP(n,a){let c=n.parent,u=n.parent.parent,_=gu(c.locals,a,111551),g=gu(Ky(u.symbol),a,111551);return _&&g?[_,g]:x.fail(\"There should exist two symbols, one as property declaration and one as parameter declaration\")}function bg(n,a){let c=Nn(n),u=Nn(a),_=w_(n);if(c!==u){if(W&&(c.externalModuleIndicator||u.externalModuleIndicator)||!ss(F)||OS(a)||n.flags&33554432||T(a,n))return!0;let O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(u)}if(a.flags&16777216||OS(a)||she(a))return!0;if(n.pos<=a.pos&&!(xo(n)&&fL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let O=Db(a,208);return O?Rn(O,Na)!==Rn(n,Na)||n.pos<O.pos:bg(Db(n,260),a)}else{if(n.kind===260)return!g(n,a);if(Kr(n))return!Rn(a,O=>Pa(O)&&O.parent.parent===n);if(xo(n))return!N(n,a,!1);if(wu(n,n.parent))return!(fe&&Oc(n)===Oc(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return fe&&Oc(n)&&(xo(n)||wu(n,n.parent))?!N(n,a,!0):!0;return!1;function g(O,B){switch(O.parent.parent.kind){case 243:case 248:case 250:if(O0(B,O,_))return!0;break}let Q=O.parent.parent;return H1(Q)&&O0(B,Q.expression,_)}function T(O,B){return!!Rn(O,Q=>{if(Q===_)return\"quit\";if(Lo(Q))return!0;if(nl(Q))return B.pos<O.pos;let me=Vr(Q.parent,xo);if(me&&me.initializer===Q){if(zo(Q.parent)){if(B.kind===174)return!0;if(xo(B)&&Oc(O)===Oc(B)){let We=B.name;if(Me(We)||Ci(We)){let at=Yn(dr(B)),ht=Cr(B.parent.members,nl);if(Ddt(We,at,ht,B.parent.pos,Q.pos))return!0}}}else if(!(B.kind===172&&!zo(B))||Oc(O)!==Oc(B))return!0}return!1})}function N(O,B,Q){return B.end>O.end?!1:Rn(B,ue=>{if(ue===O)return\"quit\";switch(ue.kind){case 219:return!0;case 172:return Q&&(xo(O)&&ue.parent===O.parent||wu(O,O.parent)&&ue.parent===O.parent.parent)?\"quit\":!0;case 241:switch(ue.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function AP(n,a,c){let u=Wa(F),_=a;if(ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let N=Fr(_);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=an(_.parameters,g)||!1),!N.declarationRequiresScopeChange}return!1;function g(N){return T(N.name)||!!N.initializer&&T(N.initializer)}function T(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(N.name);case 172:return jl(N)?!fe:T(N.name);default:return jG(N)||yd(N)?u<7:Na(N)&&N.dotDotDotToken&&Rf(N.parent)?u<4:xi(N)?!1:Ao(N,T)||!1}}}function Cy(n){return ES(n)&&Qh(n.type)||gN(n)&&Qh(n.typeExpression)}function Xs(n,a,c,u,_,g,T=!1,N=!0){return pp(n,a,c,u,_,g,T,N,gu)}function pp(n,a,c,u,_,g,T,N,O){var B,Q,me;let ue=n,We,at,ht,qt,Xt,Hn=!1,En=n,Kt,In=!1;e:for(;n;){if(a===\"const\"&&Cy(n))return;if($M(n)&&at&&n.name===at&&(at=n,n=n.parent),L_(n)&&n.locals&&!$_(n)&&(We=O(n.locals,a,c))){let zn=!0;if(Lo(n)&&at&&at!==n.body?(c&We.flags&788968&&at.kind!==327&&(zn=We.flags&262144?at===n.type||at.kind===169||at.kind===348||at.kind===349||at.kind===168:!1),c&We.flags&3&&(AP(We,n,at)?zn=!1:We.flags&1&&(zn=at.kind===169||at===n.type&&!!Rn(We.valueDeclaration,ao)))):n.kind===194&&(zn=at===n.trueType),zn)break e;We=void 0}switch(Hn=Hn||Lf(n,at),n.kind){case 312:if(!sp(n))break;In=!0;case 267:let zn=((B=dr(n))==null?void 0:B.exports)||U;if(n.kind===312||Il(n)&&n.flags&33554432&&!Jm(n)){if(We=zn.get(\"default\")){let co=Ex(We);if(co&&We.flags&c&&co.escapedName===a)break e;We=void 0}let Bn=zn.get(a);if(Bn&&Bn.flags===2097152&&(Vs(Bn,281)||Vs(Bn,280)))break}if(a!==\"default\"&&(We=O(zn,a,c&2623475)))if(Li(n)&&n.commonJsModuleIndicator&&!((Q=We.declarations)!=null&&Q.some(bf)))We=void 0;else break e;break;case 266:if(We=O(((me=dr(n))==null?void 0:me.exports)||U,a,c&8)){u&&xf(F)&&!(n.flags&33554432)&&Nn(n)!==Nn(We.valueDeclaration)&&we(En,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ii(a),Ge,`${Ii(Fp(n).escapedName)}.${Ii(a)}`);break e}break;case 172:if(!zo(n)){let Bn=Ag(n.parent);Bn&&Bn.locals&&O(Bn.locals,a,c&111551)&&(x.assertNode(n,xo),qt=n)}break;case 263:case 231:case 264:if(We=O(dr(n).members||U,a,c&788968)){if(!Eg(We,n)){We=void 0;break}if(at&&zo(at)){u&&we(En,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Dc(n)&&c&32){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 233:if(at===n.expression&&n.parent.token===96){let Bn=n.parent.parent;if(Kr(Bn)&&(We=O(dr(Bn).members,a,c&788968))){u&&we(En,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Kt=n.parent.parent,(Kr(Kt)||Kt.kind===264)&&(We=O(dr(Kt).members,a,c&788968))){u&&we(En,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Wa(F)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a===\"arguments\"){We=Dt;break e}break;case 218:if(c&3&&a===\"arguments\"){We=Dt;break e}if(c&16){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(xc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let Mn=ux(n);Mn&&(n=Mn.parent);break;case 169:at&&(at===n.initializer||at===n.name&&ko(at))&&(Xt||(Xt=n));break;case 208:at&&(at===n.initializer||at===n.name&&ko(at))&&JE(n)&&!Xt&&(Xt=n);break;case 195:if(c&262144){let Bn=n.typeParameter.name;if(Bn&&a===Bn.escapedText){We=n.typeParameter.symbol;break e}}break;case 281:at&&at===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Ny(n)&&(ht=n),at=n,n=Df(n)?NW(n)||n.parent:(Tm(n)||T6(n))&&xb(n)||n.parent}if(g&&We&&(!ht||We!==ht.symbol)&&(We.isReferenced|=c),!We){if(at&&(x.assertNode(at,Li),at.commonJsModuleIndicator&&a===\"exports\"&&c&at.symbol.flags))return at.symbol;T||(We=O(he,a,c))}if(!We&&ue&&Jn(ue)&&ue.parent&&Xd(ue.parent,!1))return st;function Sn(){return qt&&!fe?(we(En,En&&qt.type&&wM(qt.type,En.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,is(qt.name),rm(_)),!0):!1}if(We){if(u&&Sn())return}else{u&&r(()=>{if(!En||En.parent.kind!==331&&!k0(En,a,_)&&!Sn()&&!IT(En)&&!n1(En,a,c)&&!Av(En,a)&&!xT(En,a,c)&&!KR(En,a,c)&&!Wh(En,a,c)){let zn,Mn;if(_&&(Mn=Lat(_),Mn&&we(En,u,rm(_),Mn)),!Mn&&N&&GR<VR&&(zn=Uhe(ue,a,c),zn?.valueDeclaration&&sd(zn.valueDeclaration)&&Jm(zn.valueDeclaration)&&(zn=void 0),zn)){let co=ai(zn),no=Ghe(ue,zn,!1),Eo=c===1920||_&&typeof _!=\"string\"&&xs(_)?f.Cannot_find_namespace_0_Did_you_mean_1:no?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,Yi=ET(En,Eo,rm(_),co);Rm(!no,Yi),zn.valueDeclaration&&fa(Yi,vr(zn.valueDeclaration,f._0_is_declared_here,co))}!zn&&!Mn&&_&&we(En,u,rm(_)),GR++}});return}return u&&r(()=>{var zn;if(En&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Mn=zp(We);(Mn.flags&2||Mn.flags&32||Mn.flags&384)&&Ds(Mn,En)}if(We&&In&&(c&111551)===111551&&!(ue.flags&16777216)){let Mn=Oa(We);yn(Mn.declarations)&&ji(Mn.declarations,Bn=>D2(Bn)||Li(Bn)&&!!Bn.symbol.globalExports)&&jc(!F.allowUmdGlobalAccess,En,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ii(a))}if(We&&Xt&&!Hn&&(c&111551)===111551){let Mn=Oa(L$(We)),Bn=Ym(Xt);Mn===dr(Xt)?we(En,f.Parameter_0_cannot_reference_itself,is(Xt.name)):Mn.valueDeclaration&&Mn.valueDeclaration.pos>Xt.pos&&Bn.parent.locals&&O(Bn.parent.locals,Mn.escapedName,c)===Mn&&we(En,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,is(Xt.name),is(En))}if(We&&En&&c&111551&&We.flags&2097152&&!(We.flags&111551)&&!Pb(En)){let Mn=of(We,111551);if(Mn){let Bn=Mn.kind===281||Mn.kind===278||Mn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,co=Ii(a);Oh(we(En,Bn,co),Mn,co)}}if(F.isolatedModules&&We&&In&&(c&111551)===111551){let Bn=O(he,a,c)===We&&Li(at)&&at.locals&&O(at.locals,a,-111552);if(Bn){let co=(zn=Bn.declarations)==null?void 0:zn.find(no=>no.kind===276||no.kind===273||no.kind===274||no.kind===271);co&&!UM(co)&&we(co,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ii(a))}}}),We}function Oh(n,a,c){return a?fa(n,vr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function Lf(n,a){return n.kind!==219&&n.kind!==218?oI(n)||(hs(n)||n.kind===172&&!zo(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Wr(n,1024)?!0:!RS(n)}function Ny(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function rm(n){return fo(n)?Ii(n):is(n)}function Eg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(Df(c.parent)?PS(c.parent):c.parent)===a)return!(Df(c.parent)&&Dr(c.parent.parent.tags,bf))}return!1}function k0(n,a,c){if(!Me(n)||n.escapedText!==a||j8e(n)||OS(n))return!1;let u=lu(n,!1,!1),_=u;for(;_;){if(Kr(_.parent)){let g=dr(_.parent);if(!g)break;let T=Yn(g);if(Qo(T,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,rm(c),ai(g)),!0;if(_===u&&!zo(_)){let N=Cs(g).thisType;if(Qo(N,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,rm(c)),!0}}_=_.parent}return!1}function IT(n){let a=wh(n);return a&&Es(a,64,!0)?(we(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Vl(a)),!0):!1}function wh(n){switch(n.kind){case 80:case 211:return n.parent?wh(n.parent):void 0;case 233:if(gl(n.expression))return n.expression;default:return}}function n1(n,a,c){let u=1920|(Jn(n)?111551:0);if(c===u){let _=yl(Xs(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if($d(g)){x.assert(g.left===n,\"Should only be resolving left side of qualified name as a namespace\");let T=g.right.escapedText;if(Qo(Cs(_),T))return we(g,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ii(a),Ii(T)),!0}return we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ii(a)),!0}}return!1}function Wh(n,a,c){if(c&788584){let u=yl(Xs(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return we(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ii(a)),!0}return!1}function f_(n){return n===\"any\"||n===\"string\"||n===\"number\"||n===\"boolean\"||n===\"never\"||n===\"unknown\"}function Av(n,a){return f_(a)&&n.parent.kind===281?(we(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function KR(n,a,c){if(c&111551){if(f_(a)){let g=n.parent.parent;if(g&&g.parent&&xp(g)){let T=g.token,N=g.parent.kind;N===264&&T===96?we(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ii(a)):N===263&&T===96?we(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ii(a)):N===263&&T===119&&we(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ii(a))}else we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ii(a));return!0}let u=yl(Xs(n,a,788544,void 0,void 0,!1)),_=u&&Qc(u);if(u&&_!==void 0&&!(_&111551)){let g=Ii(a);return YR(a)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):XR(n,u)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g===\"K\"?\"P\":\"K\"):we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function XR(n,a){let c=Rn(n.parent,u=>Pa(u)||Gu(u)?!1:ju(u)||\"quit\");if(c&&c.members.length===1){let u=Cs(a);return!!(u.flags&1048576)&&N5(u,384,!0)}return!1}function YR(n){switch(n){case\"Promise\":case\"Symbol\":case\"Map\":case\"WeakMap\":case\"Set\":case\"WeakSet\":return!0}return!1}function xT(n,a,c){if(c&111127){if(yl(Xs(n,a,1024,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_value,Ii(a)),!0}else if(c&788544&&yl(Xs(n,a,1536,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_type,Ii(a)),!0;return!1}function Ds(n,a){var c;if(x.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>p9(_)||Kr(_)||_.kind===266);if(u===void 0)return x.fail(\"checkResolvedBlockScopedVariable could not find block-scoped declaration\");if(!(u.flags&33554432)&&!bg(u,a)){let _,g=is(mo(u));n.flags&2?_=we(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=we(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=we(a,f.Enum_0_used_before_its_declaration,g):(x.assert(!!(n.flags&128)),xf(F)&&(_=we(a,f.Enum_0_used_before_its_declaration,g))),_&&fa(_,vr(u,f._0_is_declared_here,g))}}function O0(n,a,c){return!!a&&!!Rn(n,u=>u===a||(u===c||Lo(u)&&(!RS(u)||gc(u)&3)?\"quit\":!1))}function RT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function im(n){return n.declarations&&hA(n.declarations,Py)}function Py(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&px(n)||Zn(n)&&hl(n)===2&&px(n)||us(n)&&Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&$R(n.parent.right)||n.kind===304||n.kind===303&&$R(n.initializer)||n.kind===260&&jE(n)||n.kind===208&&jE(n.parent.parent)}function $R(n){return kL(n)||ps(n)&&T_(n)}function DT(n,a){let c=Ly(n);if(c){let _=Tx(c.expression).arguments[0];return Me(c.name)?yl(Qo(PLe(_),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===283){let _=jd(n,N9(n)||gC(n)),g=$u(_);return Nu(n,_,g,!1),g}let u=i1(n.moduleReference,a);return IP(n,u),u}function IP(n,a){if(Nu(n,void 0,a,!1)&&!n.isTypeOnly){let c=of(dr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?\"*\":Ii(c.name.escapedText);fa(we(n.moduleReference,_),vr(c,g,T))}}function nr(n,a,c,u){let _=n.exports.get(\"export=\"),g=_?Qo(Yn(_),a,!0):n.exports.get(a),T=yl(g,u);return Nu(c,g,T,!1),T}function Mc(n){return dl(n)&&!n.isExportEquals||Wr(n,2048)||Ed(n)||j_(n)}function Oi(n){return Ga(n)?e.getModeForUsageLocation(Nn(n),n):void 0}function Wp(n,a){return n===99&&a===1}function Iv(n){return Oi(n)===99&&Zs(n.text,\".json\")}function m_(n,a,c,u){let _=n&&Oi(u);if(n&&_!==void 0&&100<=W&&W<=199){let g=Wp(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=nr(a,\"default\",void 0,!0);return!(g&&ct(g.declarations,Mc)||nr(a,Hs(\"__esModule\"),void 0,c))}return wd(n)?typeof n.externalModuleIndicator!=\"object\"&&!nr(a,Hs(\"__esModule\"),void 0,c):xv(a)}function Xn(n,a){let c=jd(n,n.parent.moduleSpecifier);if(c)return CT(c,n,a)}function CT(n,a,c){var u;let _;pC(n)?_=n:_=nr(n,\"default\",a,c);let g=(u=n.declarations)==null?void 0:u.find(Li),T=iE(a);if(!T)return _;let N=Iv(T),O=m_(g,n,c,T);if(!_&&!O&&!N)if(xv(n)&&!q){let B=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\",me=n.exports.get(\"export=\").valueDeclaration,ue=we(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,ai(n),B);me&&fa(ue,vr(me,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,B))}else V_(a)?Tc(n,a):NT(n,n,a,RA(a)&&a.propertyName||a.name);else if(O||N){let B=$u(n,c)||yl(n,c);return Nu(a,n,B,!1),B}return Nu(a,_,void 0,!1),_}function iE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return U_(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return x.assertNever(n)}}function Tc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))we(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ai(n),ai(a.symbol));else{let g=we(a.name,f.Module_0_has_no_default_export,ai(n)),T=(u=n.exports)==null?void 0:u.get(\"__export\");if(T){let N=(_=T.declarations)==null?void 0:_.find(O=>{var B,Q;return!!(xl(O)&&O.moduleSpecifier&&((Q=(B=jd(O,O.moduleSpecifier))==null?void 0:B.exports)!=null&&Q.has(\"default\")))});N&&fa(g,vr(N,f.export_Asterisk_does_not_re_export_a_default))}}}function Q_(n,a){let c=n.parent.parent.moduleSpecifier,u=jd(n,c),_=Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function om(n,a){let c=n.parent.moduleSpecifier,u=c&&jd(n,c),_=c&&Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function w0(n,a){if(n===tt&&a===tt)return tt;if(n.flags&790504)return n;let c=Ra(n.flags|a.flags,n.escapedName);return x.assert(n.declarations||a.declarations),c.declarations=NE(ro(n.declarations,a.declarations),Hg),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function W0(n,a,c,u){var _;if(n.flags&1536){let g=Qu(n).get(a.escapedText),T=yl(g,u),N=(_=Pi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return Nu(c,g,T,!1,N,a.escapedText),T}}function My(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return yl(Qo(si(c),a))}}function Sg(n,a,c=!1){var u;let _=N9(n)||n.moduleSpecifier,g=jd(n,_),T=!Er(a)&&a.propertyName||a.name;if(!Me(T))return;let N=T.escapedText===\"default\"&&q,O=Pu(g,_,!1,N);if(O&&T.escapedText){if(pC(g))return g;let B;g&&g.exports&&g.exports.get(\"export=\")?B=Qo(Yn(O),T.escapedText,!0):B=My(O,T.escapedText),B=yl(B,c);let Q=W0(O,T,a,c);if(Q===void 0&&T.escapedText===\"default\"){let ue=(u=g.declarations)==null?void 0:u.find(Li);(Iv(_)||m_(ue,g,c,_))&&(Q=$u(g,c)||yl(g,c))}let me=Q&&B&&Q!==B?w0(B,Q):Q||B;return me||NT(g,O,n,T),me}}function NT(n,a,c,u){var _;let g=mp(n,c),T=is(u),N=jQ(u,a);if(N!==void 0){let O=ai(N),B=we(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,O);N.valueDeclaration&&fa(B,vr(N.valueDeclaration,f._0_is_declared_here,O))}else(_=n.exports)!=null&&_.has(\"default\")?we(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):am(c,u,T,n,g)}function am(n,a,c,u,_){var g,T;let N=(T=(g=Vr(u.valueDeclaration,L_))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),O=u.exports;if(N){let B=O?.get(\"export=\");if(B)Nm(B,N)?oE(n,a,c,_):we(a,f.Module_0_has_no_exported_member_1,_,c);else{let Q=O?Dr(Ume(O),ue=>!!Nm(ue,N)):void 0,me=Q?we(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,ai(Q)):we(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);N.declarations&&fa(me,...nn(N.declarations,(ue,We)=>vr(ue,We===0?f._0_is_declared_here:f.and_here,c)))}}else we(a,f.Module_0_has_no_exported_member_1,_,c)}function oE(n,a,c,u){if(W>=5){let _=z_(F)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else if(Jn(n)){let _=z_(F)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else{let _=z_(F)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c,c,u)}}function Fh(n,a){if(Iu(n)&&ar(n.propertyName||n.name)===\"default\"){let T=iE(n),N=T&&jd(n,T);if(N)return CT(N,n,a)}let c=Na(n)?Ym(n):n.parent.parent.parent,u=Ly(c),_=Sg(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Me(g)?yl(Qo(Yn(_),g.escapedText),a):(Nu(n,void 0,_,!1),_)}function Ly(n){if(yi(n)&&n.initializer&&Er(n.initializer))return n.initializer}function r1(n,a){if(qm(n.parent)){let c=$u(n.parent.symbol,a);return Nu(n,void 0,c,!1),c}}function aE(n,a,c){if(ar(n.propertyName||n.name)===\"default\"){let _=iE(n),g=_&&jd(n,_);if(g)return CT(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?Sg(n.parent.parent,n,c):Es(n.propertyName||n.name,a,!1,c);return Nu(n,void 0,u,!1),u}function QR(n,a){let c=dl(n)?n.expression:n.right,u=F0(c,a);return Nu(n,void 0,u,!1),u}function F0(n,a){if(Dc(n))return Ml(n).symbol;if(!Su(n)&&!gl(n))return;let c=Es(n,901119,!0,a);return c||(Ml(n),Fr(n).resolvedSymbol)}function PT(n,a){if(Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return F0(n.parent.right,a)}function fp(n,a=!1){switch(n.kind){case 271:case 260:return DT(n,a);case 273:return Xn(n,a);case 274:return Q_(n,a);case 280:return om(n,a);case 276:case 208:return Fh(n,a);case 281:return aE(n,901119,a);case 277:case 226:return QR(n,a);case 270:return r1(n,a);case 304:return Es(n.name,901119,!0,a);case 303:return F0(n.initializer,a);case 212:case 211:return PT(n,a);default:return x.fail()}}function MT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function yl(n,a){return!a&&MT(n)?fc(n):n}function fc(n){x.assert((n.flags&2097152)!==0,\"Should only get Alias here.\");let a=Pi(n);if(a.aliasTarget)a.aliasTarget===yt&&(a.aliasTarget=tt);else{a.aliasTarget=yt;let c=im(n);if(!c)return x.fail();let u=fp(c);a.aliasTarget===yt?a.aliasTarget=u||tt:we(c,f.Circular_definition_of_import_alias_0,ai(n))}return a.aliasTarget}function LT(n){if(Pi(n).aliasTarget!==yt)return fc(n)}function Qc(n,a,c){let u=a&&of(n),_=u&&xl(u),g=u&&(_?jd(u.moduleSpecifier,u.moduleSpecifier,!0):fc(u.symbol)),T=_&&g?Z_(g):void 0,N=c?0:n.flags,O;for(;n.flags&2097152;){let B=zp(fc(n));if(!_&&B===g||T?.get(B.escapedName)===B)break;if(B===tt)return-1;if(B===n||O?.has(B))break;B.flags&2097152&&(O?O.add(B):O=new Set([n,B])),N|=B.flags,n=B}return N}function Nu(n,a,c,u,_,g){if(!n||Er(n))return!1;let T=dr(n);if(Sb(n)){let O=Pi(T);return O.typeOnlyDeclaration=n,!0}if(_){let O=Pi(T);return O.typeOnlyDeclaration=_,T.escapedName!==g&&(O.typeOnlyExportStarName=g),!0}let N=Pi(T);return sE(N,a,u)||sE(N,c,u)}function sE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get(\"export=\"))??a,g=_.declarations&&Dr(_.declarations,Sb);n.typeOnlyDeclaration=g??Pi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function of(n,a){if(!(n.flags&2097152))return;let c=Pi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?yl(Z_(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):fc(c.typeOnlyDeclaration.symbol);return Qc(u)&a?c.typeOnlyDeclaration:void 0}}function ky(n){if(!ot)return;let a=dr(n),c=fc(a);c&&(c===tt||Qc(a,!0)&111551&&!Bw(c))&&Oy(a)}function Oy(n){x.assert(ot);let a=Pi(n);if(!a.referenced){a.referenced=!0;let c=im(n);if(!c)return x.fail();ox(c)&&Qc(yl(n))&111551&&Ml(c.moduleReference)}}function Lc(n){let a=Pi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function i1(n,a){return n.kind===80&&LC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Es(n,1920,!1,a):(x.assert(n.parent.kind===271),Es(n,901119,!1,a))}function mp(n,a){return n.parent?mp(n.parent,a)+\".\"+ai(n):ai(n,a,void 0,36)}function kT(n){for(;$d(n.parent);)n=n.parent;return n}function OT(n){let a=dp(n),c=Xs(a,a.escapedText,111551,void 0,a,!0);if(c){for(;$d(a.parent);){let u=Yn(c);if(c=Qo(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Es(n,a,c,u,_){if(_l(n))return;let g=1920|(Jn(n)?a&111551:0),T;if(n.kind===80){let N=a===g||xs(n)?f.Cannot_find_namespace_0:Ake(dp(n)),O=Jn(n)&&!xs(n)?ZR(n,a):void 0;if(T=Oa(Xs(_||n,n.escapedText,a,c||O?void 0:N,n,!0,!1)),!T)return Oa(O)}else if(n.kind===166||n.kind===211){let N=n.kind===166?n.left:n.expression,O=n.kind===166?n.right:n.name,B=Es(N,g,c,!1,_);if(!B||_l(O))return;if(B===tt)return B;if(B.valueDeclaration&&Jn(B.valueDeclaration)&&zd(F)!==100&&yi(B.valueDeclaration)&&B.valueDeclaration.initializer&&lwe(B.valueDeclaration.initializer)){let Q=B.valueDeclaration.initializer.arguments[0],me=jd(Q,Q);if(me){let ue=$u(me);ue&&(B=ue)}}if(T=Oa(gu(Qu(B),O.escapedText,a)),!T&&B.flags&2097152&&(T=Oa(gu(Qu(fc(B)),O.escapedText,a))),!T){if(!c){let Q=mp(B),me=is(O),ue=jQ(O,B);if(ue){we(O,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,me,ai(ue));return}let We=$d(n)&&kT(n);if(Se&&a&788968&&We&&!Wx(We.parent)&&OT(We)){we(We,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Wu(We));return}if(a&1920&&$d(n.parent)){let ht=Oa(gu(Qu(B),O.escapedText,788968));if(ht){we(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ai(ht),Ii(n.parent.right.escapedText));return}}we(O,f.Namespace_0_has_no_exported_member_1,Q,me)}return}}else x.assertNever(n,\"Unknown entity name kind.\");return x.assert((tl(T)&1)===0,\"Should never get an instantiated symbol here.\"),!xs(n)&&Su(n)&&(T.flags&2097152||n.parent.kind===277)&&Nu(V9(n),T,void 0,!0),T.flags&a||u?T:fc(T)}function ZR(n,a){if(U$(n.parent)){let c=lE(n.parent);if(c)return Xs(c,n.escapedText,a,void 0,n,!0)}}function lE(n){if(Rn(n,_=>q1(_)||_.flags&16777216?bf(_):\"quit\"))return;let c=PS(n);if(c&&Cc(c)&&AL(c.expression)){let _=dr(c.expression.left);if(_)return z0(_)}if(c&&ps(c)&&AL(c.parent)&&Cc(c.parent.parent)){let _=dr(c.parent.left);if(_)return z0(_)}if(c&&(qf(c)||Hl(c))&&Zn(c.parent.parent)&&hl(c.parent.parent)===6){let _=dr(c.parent.parent.left);if(_)return z0(_)}let u=Rb(n);if(u&&Lo(u)){let _=dr(u);return _&&_.valueDeclaration}}function z0(n){let a=n.parent.valueDeclaration;return a?(vC(a)?LA(a):SS(a)?yL(a):void 0)||a:void 0}function xP(n){let a=n.valueDeclaration;if(!a||!Jn(a)||n.flags&524288||Ib(a,!1))return;let c=yi(a)?yL(a):LA(a);if(c){let u=Fp(c);if(u)return Zhe(u,n)}}function jd(n,a,c){let _=zd(F)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return Tg(n,a,c?void 0:_)}function Tg(n,a,c,u=!1){return Ga(a)?__(n,a.text,c,a,u):void 0}function __(n,a,c,u,_=!1){var g,T,N,O,B,Q,me,ue,We,at,ht;if(Ui(a,\"@types/\")){let Bn=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,co=jD(a,\"@types/\");we(u,Bn,co,a)}let qt=w$(a,!0);if(qt)return qt;let Xt=Nn(n),Hn=Ga(n)?n:((g=Il(n)?n:n.parent&&Il(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=ey(n)?n:void 0)==null?void 0:T.argument.literal)||(yi(n)&&n.initializer&&Xd(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((N=Rn(n,lp))==null?void 0:N.arguments[0])||((O=Rn(n,cc))==null?void 0:O.moduleSpecifier)||((B=Rn(n,Ab))==null?void 0:B.moduleReference.expression)||((Q=Rn(n,xl))==null?void 0:Q.moduleSpecifier),En=Hn&&Ga(Hn)?e.getModeForUsageLocation(Xt,Hn):Xt.impliedNodeFormat,Kt=zd(F),In=(me=e.getResolvedModule(Xt,a,En))==null?void 0:me.resolvedModule,Sn=In&&FH(F,In,Xt),zn=In&&(!Sn||Sn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(In.resolvedFileName);if(zn){if(Sn&&we(u,Sn,a,In.resolvedFileName),In.resolvedUsingTsExtension&&Yc(a)){let Bn=((ue=Rn(n,cc))==null?void 0:ue.importClause)||Rn(n,hm(Nc,xl));(Bn&&!Bn.isTypeOnly||Rn(n,lp))&&we(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Mn(x.checkDefined(JW(a))))}else if(In.resolvedUsingTsExtension&&!nR(F,Xt.fileName)){let Bn=((We=Rn(n,cc))==null?void 0:We.importClause)||Rn(n,hm(Nc,xl));if(!(Bn?.isTypeOnly||Rn(n,Dh))){let co=x.checkDefined(JW(a));we(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,co)}}if(zn.symbol){if(In.isExternalLibraryImport&&!VC(In.extension)&&o1(!1,u,Xt,En,In,a),Kt===3||Kt===99){let Bn=Xt.impliedNodeFormat===1&&!Rn(n,lp)||!!Rn(n,Nc),co=Rn(n,no=>Dh(no)||xl(no)||cc(no));if(Bn&&zn.impliedNodeFormat===99&&!hre(co))if(Rn(n,Nc))we(u,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let no,Eo=og(Xt.fileName);if(Eo===\".ts\"||Eo===\".js\"||Eo===\".tsx\"||Eo===\".jsx\"){let Yi=Xt.packageJsonScope,ic=Eo===\".ts\"?\".mts\":Eo===\".js\"?\".mjs\":void 0;Yi&&!Yi.contents.packageJsonContent.type?ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,ic,wr(Yi.packageDirectory,\"package.json\")):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,wr(Yi.packageDirectory,\"package.json\")):ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,ic):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}La.add(eg(Nn(u),u,So(no,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return Oa(zn.symbol)}c&&we(u,f.File_0_is_not_a_module,zn.fileName);return}if(Nf){let Bn=pB(Nf,co=>co.pattern,a);if(Bn){let co=Vd&&Vd.get(a);return Oa(co||Bn.symbol)}}if(In&&!VC(In.extension)&&Sn===void 0||Sn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let Bn=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;we(u,Bn,a,In.resolvedFileName)}else o1(ce&&!!c,u,Xt,En,In,a);return}if(c){if(In){let Bn=e.getProjectReferenceRedirect(In.resolvedFileName);if(Bn){we(u,f.Output_file_0_has_not_been_built_from_source_file_1,Bn,In.resolvedFileName);return}}if(Sn)we(u,Sn,a,In.resolvedFileName);else{let Bn=op(a)&&!TA(a),co=Kt===3||Kt===99;if(!Mb(F)&&el(a,\".json\")&&Kt!==1&&rF(F))we(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(En===99&&co&&Bn){let no=Qi(a,Ur(Xt.path)),Eo=(at=qR.find(([Yi,ic])=>e.fileExists(no+Yi)))==null?void 0:at[1];Eo?we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Eo):we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((ht=e.getResolvedModule(Xt,a,En))!=null&&ht.alternateResult){let no=Q8(Xt,e,a,En,a);jc(!0,u,So(no,c,a))}else we(u,c,a)}}return;function Mn(Bn){let co=QL(a,Bn);if(nF(W)||En===99){let no=Yc(a)&&nR(F);return co+(Bn===\".mts\"||Bn===\".d.mts\"?no?\".mts\":\".mjs\":Bn===\".cts\"||Bn===\".d.mts\"?no?\".cts\":\".cjs\":no?\".ts\":\".js\")}return co}}function o1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let N;!Ic(T)&&_&&(N=Q8(c,e,T,u,_.name)),jc(n,a,So(N,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function $u(n,a){if(n?.exports){let c=yl(n.exports.get(\"export=\"),a),u=a1(Oa(c),Oa(n));return Oa(u)||n}}function a1(n,a){if(!n||n===tt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=Pi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:AT(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=Vo()),a.exports.forEach((_,g)=>{g!==\"export=\"&&u.exports.set(g,u.exports.has(g)?Pf(u.exports.get(g),_):_)}),u===n&&(Pi(u).resolvedExports=void 0,Pi(u).resolvedMembers=void 0),Pi(u).cjsExportMerged=u,c.cjsExportMerged=u}function Pu(n,a,c,u){var _;let g=$u(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!Vs(g,312)){let N=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\";return we(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),g}let T=a.parent;if(cc(T)&&cx(T)||lp(T)){let N=lp(T)?T.arguments[0]:T.moduleSpecifier,O=Yn(g),B=awe(O,g,n,N);if(B)return s1(g,B,T);let Q=(_=n?.declarations)==null?void 0:_.find(Li),me=Q&&Wp(Oi(N),Q.impliedNodeFormat);if(z_(F)||me){let ue=k7(O,0);if((!ue||!ue.length)&&(ue=k7(O,1)),ue&&ue.length||Qo(O,\"default\",!0)||me){let We=O.flags&3670016?swe(O,g,n,N):ege(g,g.parent);return s1(g,We,T)}}}}return g}function s1(n,a,c){let u=Ra(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=Om(a);return u.links.type=cs(u,_.members,je,je,_.indexInfos),u}function xv(n){return n.exports.get(\"export=\")!==void 0}function wT(n){return Ume(Z_(n))}function eD(n){let a=wT(n),c=$u(n);if(c!==n){let u=Yn(c);wy(u)&&Pr(a,Xa(u))}return a}function tD(n,a){Z_(n).forEach((_,g)=>{V0(g)||a(_,g)});let u=$u(n);if(u!==n){let _=Yn(u);wy(_)&&ntt(_,(g,T)=>{a(g,T)})}}function WT(n,a){let c=Z_(a);if(c)return c.get(n)}function nD(n,a){let c=WT(n,a);if(c)return c;let u=$u(a);if(u===a)return;let _=Yn(u);return wy(_)?Qo(_,n):void 0}function wy(n){return!(n.flags&402784252||br(n)&1||ff(n)||ga(n))}function Qu(n){return n.flags&6256?Dme(n,\"resolvedExports\"):n.flags&1536?Z_(n):n.exports||U}function Z_(n){let a=Pi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=FT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function rD(n,a,c,u){a&&a.forEach((_,g)=>{if(g===\"default\")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:Vl(u.moduleSpecifier)});else if(c&&u&&T&&yl(T)!==yl(_)){let N=c.get(g);N.exportsWithDuplicate?N.exportsWithDuplicate.push(u):N.exportsWithDuplicate=[u]}})}function FT(n){let a=[],c,u=new Set;n=$u(n);let _=g(n)||U;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,N,O){if(!O&&T?.exports&&T.exports.forEach((me,ue)=>u.add(ue)),!(T&&T.exports&&jp(a,T)))return;let B=new Map(T.exports),Q=T.exports.get(\"__export\");if(Q){let me=Vo(),ue=new Map;if(Q.declarations)for(let We of Q.declarations){let at=jd(We,We.moduleSpecifier),ht=g(at,We,O||We.isTypeOnly);rD(me,ht,ue,We)}ue.forEach(({exportsWithDuplicate:We},at)=>{if(!(at===\"export=\"||!(We&&We.length)||B.has(at)))for(let ht of We)La.add(vr(ht,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ue.get(at).specifierText,Ii(at)))}),rD(B,me)}return N?.isTypeOnly&&(c??(c=new Map),B.forEach((me,ue)=>c.set(ue,N))),B}}function Oa(n){let a;return n&&n.mergeId&&(a=jR[n.mergeId])?a:n}function dr(n){return Oa(n.symbol&&L$(n.symbol))}function Fp(n){return qm(n)?dr(n):void 0}function nu(n){return Oa(n.parent&&L$(n.parent))}function B0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&Fp(n.valueDeclaration.parent)||n}function iD(n,a){let c=Nn(a),u=Fa(c),_=Pi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let N of c.imports){if(xs(N))continue;let O=jd(a,N,!0);!O||!zh(O,n)||(g=pn(g,O))}if(yn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let N of T){if(!wl(N))continue;let O=dr(N);zh(O,n)&&(g=pn(g,O))}return _.extendedContainers=g||je}function cE(n,a,c){let u=nu(n);if(u&&!(n.flags&262144))return O(u);let _=Fi(n.declarations,Q=>{if(!sd(Q)&&Q.parent){if(Rd(Q.parent))return dr(Q.parent);if(n_(Q.parent)&&Q.parent.parent&&$u(dr(Q.parent.parent))===n)return dr(Q.parent.parent)}if(Dc(Q)&&Zn(Q.parent)&&Q.parent.operatorToken.kind===64&&us(Q.parent.left)&&gl(Q.parent.left.expression))return Eh(Q.parent.left)||DS(Q.parent.left.expression)?dr(Nn(Q)):(Ml(Q.parent.left.expression),Fr(Q.parent.left.expression).resolvedSymbol)});if(!yn(_))return;let g=Fi(_,Q=>zh(Q,n)?Q:void 0),T=[],N=[];for(let Q of g){let[me,...ue]=O(Q);T=pn(T,me),N=Pr(N,ue)}return ro(T,N);function O(Q){let me=Fi(Q.declarations,B),ue=a&&iD(n,a),We=G0(Q,c);if(a&&Q.flags&Ig(c)&&Wy(Q,a,1920,!1))return pn(ro(ro([Q],me),ue),We);let at=!(Q.flags&Ig(c))&&Q.flags&788968&&Cs(Q).flags&524288&&c===111551?U0(a,qt=>hc(qt,Xt=>{if(Xt.flags&Ig(c)&&Yn(Xt)===Cs(Q))return Xt})):void 0,ht=at?[at,...me,Q]:[...me,Q];return ht=pn(ht,We),ht=Pr(ht,ue),ht}function B(Q){return u&&zT(Q,u)}}function G0(n,a){let c=!!yn(n.declarations)&&Ta(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(ma(c)&&c===c.parent.initializer||ju(c)&&c===c.parent.type))return dr(c.parent)}function zT(n,a){let c=wi(n),u=c&&c.exports&&c.exports.get(\"export=\");return u&&Nm(u,a)?c:void 0}function zh(n,a){if(n===nu(a))return a;let c=n.exports&&n.exports.get(\"export=\");if(c&&Nm(c,a))return n;let u=Qu(n),_=u.get(a.escapedName);return _&&Nm(_,a)?_:hc(u,g=>{if(Nm(g,a))return g})}function Nm(n,a){if(Oa(yl(Oa(n)))===Oa(yl(Oa(a))))return n}function zp(n){return Oa(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function sm(n,a){return!!(n.flags&111551||n.flags&2097152&&Qc(n,!a)&111551)}function Ag(n){let a=n.members;for(let c of a)if(c.kind===176&&gf(c.body))return c}function Bh(n){var a;let c=new p(zt,n);return m++,c.id=m,(a=qn)==null||a.recordType(c),c}function Gh(n,a){let c=Bh(n);return c.symbol=a,c}function l1(n){return new p(zt,n)}function Fl(n,a,c=0,u){oD(a,u);let _=Bh(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function oD(n,a){let c=`${n},${a??\"\"}`;et.has(c)&&x.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:\"\"}; you may need to pass a name to createIntrinsicType.`),et.add(c)}function af(n,a){let c=Gh(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function eh(){return Br(bo(GU.keys(),yu))}function Bp(n){return Gh(262144,n)}function V0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function dE(n){let a;return n.forEach((c,u)=>{c1(c,u)&&(a||(a=[])).push(c)}),a||je}function c1(n,a){return!V0(a)&&sm(n)}function BT(n){let a=dE(n),c=z$(n);return c?ro(a,[c]):a}function Gp(n,a,c,u,_){let g=n;return g.members=a,g.properties=je,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==U&&(g.properties=dE(a)),g}function cs(n,a,c,u,_){return Gp(af(16,n),a,c,u,_)}function j0(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Cr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=cs(n.symbol,n.members,n.callSignatures,ct(a)?a:je,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function U0(n,a){let c;for(let u=n;u;u=u.parent){if(L_(u)&&u.locals&&!$_(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!sp(u))break;case 267:let _=dr(u);if(c=a(_?.exports||U,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((dr(u).members||U).forEach((T,N)=>{T.flags&788968&&(g||(g=Vo())).set(N,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(he,void 0,!0)}function Ig(n){return n===111551?111551:1920}function Wy(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=Pi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),N=U0(a,(Xt,Hn,En,Kt)=>Kt),O=`${u?0:1}|${N&&Fa(N)}|${c}`;if(T.has(O))return T.get(O);let B=na(n),Q=_.get(B);Q||_.set(B,Q=[]);let me=U0(a,ue);return T.set(O,me),me;function ue(Xt,Hn,En){if(!jp(Q,Xt))return;let Kt=ht(Xt,Hn,En);return Q.pop(),Kt}function We(Xt,Hn){return!uE(Xt,a,Hn)||!!Wy(Xt.parent,a,Ig(Hn),u,_)}function at(Xt,Hn,En){return(n===(Hn||Xt)||Oa(n)===Oa(Hn||Xt))&&!ct(Xt.declarations,Rd)&&(En||We(Oa(Xt),c))}function ht(Xt,Hn,En){return at(Xt.get(n.escapedName),void 0,Hn)?[n]:hc(Xt,In=>{if(In.flags&2097152&&In.escapedName!==\"export=\"&&In.escapedName!==\"default\"&&!(QW(In)&&a&&wl(Nn(a)))&&(!u||ct(In.declarations,Ab))&&(!En||!ct(In.declarations,Jte))&&(Hn||!Vs(In,281))){let Sn=fc(In),zn=qt(In,Sn,Hn);if(zn)return zn}if(In.escapedName===n.escapedName&&In.exportSymbol&&at(Oa(In.exportSymbol),void 0,Hn))return[n]})||(Xt===he?qt(Ke,Ke,Hn):void 0)}function qt(Xt,Hn,En){if(at(Xt,Hn,En))return[Xt];let Kt=Qu(Hn),In=Kt&&ue(Kt,!0);if(In&&We(Xt,Ig(c)))return[Xt].concat(In)}}function uE(n,a,c){let u=!1;return U0(a,_=>{let g=Oa(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!Vs(g,281);return g=T?fc(g):g,(T?Qc(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ne(n,a){return ri(n,a,788968,!1,!0).accessibility===0}function rt(n,a){return ri(n,a,111551,!1,!0).accessibility===0}function Ht(n,a,c){return ri(n,a,c,!1,!1).accessibility===0}function yr(n,a,c,u,_,g){if(!yn(n))return;let T,N=!1;for(let O of n){let B=Wy(O,a,u,!1);if(B){T=O;let ue=ru(B[0],_);if(ue)return ue}if(g&&ct(O.declarations,Rd)){if(_){N=!0;continue}return{accessibility:0}}let Q=cE(O,a,u),me=yr(Q,a,c,c===O?Ig(u):u,_,g);if(me)return me}if(N)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ai(c,a,u),errorModuleName:T!==c?ai(T,a,1920):void 0}}function vi(n,a,c,u){return ri(n,a,c,u,!0)}function ri(n,a,c,u,_){if(n&&a){let g=yr([n],a,n,c,u,_);if(g)return g;let T=an(n.declarations,wi);if(T){let N=wi(a);if(T!==N)return{accessibility:2,errorSymbolName:ai(n,a,c),errorModuleName:ai(T),errorNode:Jn(a)?a:void 0}}return{accessibility:1,errorSymbolName:ai(n,a,c)}}return{accessibility:0}}function wi(n){let a=Rn(n,$o);return a&&dr(a)}function $o(n){return sd(n)||n.kind===312&&sp(n)}function Rd(n){return iW(n)||n.kind===312&&sp(n)}function ru(n,a){let c;if(!ji(Cr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,N;if(!Pm(g)){let O=RT(g);if(O&&!Wr(O,32)&&Pm(O.parent))return _(g,O);if(yi(g)&&cl(g.parent.parent)&&!Wr(g.parent.parent,32)&&Pm(g.parent.parent.parent))return _(g,g.parent.parent);if(oW(g)&&!Wr(g,32)&&Pm(g.parent))return _(g,g);if(Na(g)){if(n.flags&2097152&&Jn(g)&&((T=g.parent)!=null&&T.parent)&&yi(g.parent.parent)&&((N=g.parent.parent.parent)!=null&&N.parent)&&cl(g.parent.parent.parent.parent)&&!Wr(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&Pm(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let B=Rn(g,cl);return Wr(B,32)?!0:Pm(B.parent)?_(g,B):!1}}return!1}return!0}function _(g,T){return a&&(Fr(g).isVisible=!0,c=Kh(c,T)),!0}}function sf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!yh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Fy(n,a){let c=sf(n),u=dp(n),_=Xs(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&YE(u)&&vi(dr(lu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&ru(_,!0)||{accessibility:1,errorSymbolName:Vl(u),errorNode:u}}function ai(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?ft.symbolToNode:ft.symbolToEntityName;return _?N(_).getText():dC(N);function N(O){let B=T(n,c,a,g),Q=a?.kind===312?hH():y0(),me=a&&Nn(a);return Q.writeNode(4,B,me,O),O}}function th(n,a,c=0,u,_){return _?g(_).getText():dC(g);function g(T){let N;c&262144?N=u===1?185:184:N=u===1?180:179;let O=ft.signatureToSignatureDeclaration(n,N,a,GT(c)|70221824|512),B=hk(),Q=a&&Nn(a);return B.writeNode(4,O,Q,nV(T)),T}}function Pn(n,a,c=1064960,u=GL(\"\")){let _=F.noErrorTruncation||c&1,g=ft.typeToTypeNode(n,a,GT(c)|70221824|(_?1:0));if(g===void 0)return x.fail(\"should always get typenode\");let T=n!==Ct?y0():_H(),N=a&&Nn(a);T.writeNode(4,g,N,u);let O=u.getText(),B=_?AF*2:i2*2;return B&&O&&O.length>=B?O.substr(0,B-3)+\"...\":O}function d1(n,a){let c=By(n.symbol)?Pn(n,n.symbol.valueDeclaration):Pn(n),u=By(a.symbol)?Pn(a,a.symbol.valueDeclaration):Pn(a);return c===u&&(c=zy(n),u=zy(a)),[c,u]}function zy(n){return Pn(n,void 0,64)}function By(n){return n&&!!n.valueDeclaration&&lt(n.valueDeclaration)&&!uf(n.valueDeclaration)}function GT(n=0){return n&848330095}function H0(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===cf(n.symbol)||!!(n.flags&524288)&&!!(br(n)&16777216))}function h_(){return{typeToTypeNode:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>u(Qe,Xr)),indexInfoToIndexSignatureDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>Q(Qe,Xr,void 0)),signatureToSignatureDeclaration:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>me(Qe,ve,li)),symbolToEntityName:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>Yi(Qe,li,ve,!1)),symbolToExpression:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>ic(Qe,li,ve)),symbolToTypeParameterDeclarations:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>In(Qe,Xr)),symbolToParameterDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>qt(Qe,Xr)),typeParameterToDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>at(Qe,Xr)),symbolTableToDeclarationStatements:(Qe,ve,vn,_r,Xr)=>a(ve,vn,_r,li=>Ys(Qe,li,Xr)),symbolToNode:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>n(Qe,li,ve))};function n(Qe,ve,vn){if(ve.flags&1073741824){if(Qe.valueDeclaration){let Xr=mo(Qe.valueDeclaration);if(Xr&&Pa(Xr))return Xr}let _r=Pi(Qe).nameType;if(_r&&_r.flags&9216)return ve.enclosingDeclaration=_r.symbol.valueDeclaration,P.createComputedPropertyName(ic(_r.symbol,ve,vn))}return ic(Qe,ve,vn)}function a(Qe,ve,vn,_r){x.assert(Qe===void 0||(Qe.flags&16)===0);let Xr=vn?.trackSymbol?vn.moduleResolverHost:ve&134217728?w3e(e):void 0,li={enclosingDeclaration:Qe,flags:ve||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};li.tracker=new VU(li,vn,Xr);let ci=_r(li);return li.truncating&&li.flags&1&&li.tracker.reportTruncationError(),li.encounteredError?void 0:ci}function c(Qe){return Qe.truncating?Qe.truncating:Qe.truncating=Qe.approximateLength>(Qe.flags&1?AF:i2)}function u(Qe,ve){let vn=ve.flags,_r=_(Qe,ve);return ve.flags=vn,_r}function _(Qe,ve){var vn,_r;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xr=ve.flags&8388608;if(ve.flags&=-8388609,!Qe){if(!(ve.flags&262144)){ve.encounteredError=!0;return}return ve.approximateLength+=3,P.createKeywordTypeNode(133)}if(ve.flags&536870912||(Qe=wm(Qe)),Qe.flags&1)return Qe.aliasSymbol?P.createTypeReferenceNode(Bn(Qe.aliasSymbol),O(Qe.aliasTypeArguments,ve)):Qe===Ct?iN(P.createKeywordTypeNode(133),3,\"unresolved\"):(ve.approximateLength+=3,P.createKeywordTypeNode(Qe===Qt?141:133));if(Qe.flags&2)return P.createKeywordTypeNode(159);if(Qe.flags&4)return ve.approximateLength+=6,P.createKeywordTypeNode(154);if(Qe.flags&8)return ve.approximateLength+=6,P.createKeywordTypeNode(150);if(Qe.flags&64)return ve.approximateLength+=6,P.createKeywordTypeNode(163);if(Qe.flags&16&&!Qe.aliasSymbol)return ve.approximateLength+=7,P.createKeywordTypeNode(136);if(Qe.flags&1056){if(Qe.symbol.flags&8){let fn=nu(Qe.symbol),zr=co(fn,ve,788968);if(Cs(fn)===Qe)return zr;let Ai=$s(Qe.symbol);return Tp(Ai,0)?ii(zr,P.createTypeReferenceNode(Ai,void 0)):Dh(zr)?(zr.isTypeOf=!0,P.createIndexedAccessTypeNode(zr,P.createLiteralTypeNode(P.createStringLiteral(Ai)))):Yp(zr)?P.createIndexedAccessTypeNode(P.createTypeQueryNode(zr.typeName),P.createLiteralTypeNode(P.createStringLiteral(Ai))):x.fail(\"Unhandled type node kind returned from `symbolToTypeNode`.\")}return co(Qe.symbol,ve,788968)}if(Qe.flags&128)return ve.approximateLength+=Qe.value.length+2,P.createLiteralTypeNode($n(P.createStringLiteral(Qe.value,!!(ve.flags&268435456)),16777216));if(Qe.flags&256){let fn=Qe.value;return ve.approximateLength+=(\"\"+fn).length,P.createLiteralTypeNode(fn<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-fn)):P.createNumericLiteral(fn))}if(Qe.flags&2048)return ve.approximateLength+=ZE(Qe.value).length+1,P.createLiteralTypeNode(P.createBigIntLiteral(Qe.value));if(Qe.flags&512)return ve.approximateLength+=Qe.intrinsicName.length,P.createLiteralTypeNode(Qe.intrinsicName===\"true\"?P.createTrue():P.createFalse());if(Qe.flags&8192){if(!(ve.flags&1048576)){if(rt(Qe.symbol,ve.enclosingDeclaration))return ve.approximateLength+=6,co(Qe.symbol,ve,111551);ve.tracker.reportInaccessibleUniqueSymbolError&&ve.tracker.reportInaccessibleUniqueSymbolError()}return ve.approximateLength+=13,P.createTypeOperatorNode(158,P.createKeywordTypeNode(155))}if(Qe.flags&16384)return ve.approximateLength+=4,P.createKeywordTypeNode(116);if(Qe.flags&32768)return ve.approximateLength+=9,P.createKeywordTypeNode(157);if(Qe.flags&65536)return ve.approximateLength+=4,P.createLiteralTypeNode(P.createNull());if(Qe.flags&131072)return ve.approximateLength+=5,P.createKeywordTypeNode(146);if(Qe.flags&4096)return ve.approximateLength+=6,P.createKeywordTypeNode(155);if(Qe.flags&67108864)return ve.approximateLength+=6,P.createKeywordTypeNode(151);if(YC(Qe))return ve.flags&4194304&&(!ve.encounteredError&&!(ve.flags&32768)&&(ve.encounteredError=!0),(_r=(vn=ve.tracker).reportInaccessibleThisError)==null||_r.call(vn)),ve.approximateLength+=4,P.createThisTypeNode();if(!Xr&&Qe.aliasSymbol&&(ve.flags&16384||ne(Qe.aliasSymbol,ve.enclosingDeclaration))){let fn=O(Qe.aliasTypeArguments,ve);return V0(Qe.aliasSymbol.escapedName)&&!(Qe.aliasSymbol.flags&32)?P.createTypeReferenceNode(P.createIdentifier(\"\"),fn):yn(fn)===1&&Qe.aliasSymbol===Po.symbol?P.createArrayTypeNode(fn[0]):co(Qe.aliasSymbol,ve,788968,fn)}let li=br(Qe);if(li&4)return x.assert(!!(Qe.flags&524288)),Qe.node?Ft(Qe,xn):xn(Qe);if(Qe.flags&262144||li&3){if(Qe.flags&262144&&To(ve.inferTypeParameters,Qe)){ve.approximateLength+=$s(Qe.symbol).length+6;let zr,Ai=iu(Qe);if(Ai){let Ji=OLe(Qe,!0);Ji&&kg(Ai,Ji)||(ve.approximateLength+=9,zr=Ai&&u(Ai,ve))}return P.createInferTypeNode(We(Qe,ve,zr))}if(ve.flags&4&&Qe.flags&262144){let zr=Eo(Qe,ve);return ve.approximateLength+=ar(zr).length,P.createTypeReferenceNode(P.createIdentifier(ar(zr)),void 0)}if(Qe.symbol)return co(Qe.symbol,ve,788968);let fn=(Qe===ae||Qe===X)&&L&&L.symbol?(Qe===X?\"sub-\":\"super-\")+$s(L.symbol):\"?\";return P.createTypeReferenceNode(P.createIdentifier(fn),void 0)}if(Qe.flags&1048576&&Qe.origin&&(Qe=Qe.origin),Qe.flags&3145728){let fn=Qe.flags&1048576?aD(Qe.types):Qe.types;if(yn(fn)===1)return u(fn[0],ve);let zr=O(fn,ve,!0);if(zr&&zr.length>0)return Qe.flags&1048576?P.createUnionTypeNode(zr):P.createIntersectionTypeNode(zr);!ve.encounteredError&&!(ve.flags&262144)&&(ve.encounteredError=!0);return}if(li&48)return x.assert(!!(Qe.flags&524288)),Gt(Qe);if(Qe.flags&4194304){let fn=Qe.type;ve.approximateLength+=6;let zr=u(fn,ve);return P.createTypeOperatorNode(143,zr)}if(Qe.flags&134217728){let fn=Qe.texts,zr=Qe.types,Ai=P.createTemplateHead(fn[0]),Ji=P.createNodeArray(nn(zr,(Ho,Yl)=>P.createTemplateLiteralTypeSpan(u(Ho,ve),(Yl<zr.length-1?P.createTemplateMiddle:P.createTemplateTail)(fn[Yl+1]))));return ve.approximateLength+=2,P.createTemplateLiteralType(Ai,Ji)}if(Qe.flags&268435456){let fn=u(Qe.type,ve);return co(Qe.symbol,ve,788968,[fn])}if(Qe.flags&8388608){let fn=u(Qe.objectType,ve),zr=u(Qe.indexType,ve);return ve.approximateLength+=2,P.createIndexedAccessTypeNode(fn,zr)}if(Qe.flags&16777216)return Ft(Qe,fn=>ci(fn));if(Qe.flags&33554432){let fn=u(Qe.baseType,ve),zr=wP(Qe)&&r_e(\"NoInfer\",!1);return zr?co(zr,ve,788968,[fn]):fn}return x.fail(\"Should be unreachable.\");function ci(fn){let zr=u(fn.checkType,ve);if(ve.approximateLength+=15,ve.flags&4&&fn.root.isDistributive&&!(fn.checkType.flags&262144)){let al=Bp(Ra(262144,\"T\")),Ba=Eo(al,ve),oc=P.createTypeReferenceNode(Ba);ve.approximateLength+=37;let As=eA(fn.root.checkType,al,fn.mapper),Gm=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let qe=u(Gi(fn.root.extendsType,As),ve);ve.inferTypeParameters=Gm;let ut=xr(Gi(si(fn.root.node.trueType),As)),Bt=xr(Gi(si(fn.root.node.falseType),As));return P.createConditionalTypeNode(zr,P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(oc.typeName))),P.createConditionalTypeNode(P.createTypeReferenceNode(P.cloneNode(Ba)),u(fn.checkType,ve),P.createConditionalTypeNode(oc,qe,ut,Bt),P.createKeywordTypeNode(146)),P.createKeywordTypeNode(146))}let Ai=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let Ji=u(fn.extendsType,ve);ve.inferTypeParameters=Ai;let Ho=xr(EE(fn)),Yl=xr(SE(fn));return P.createConditionalTypeNode(zr,Ji,Ho,Yl)}function xr(fn){var zr,Ai,Ji;return fn.flags&1048576?(zr=ve.visitedTypes)!=null&&zr.has(Hd(fn))?(ve.flags&131072||(ve.encounteredError=!0,(Ji=(Ai=ve.tracker)==null?void 0:Ai.reportCyclicStructureError)==null||Ji.call(Ai)),g(ve)):Ft(fn,Ho=>u(Ho,ve)):u(fn,ve)}function ur(fn){return!!fw(fn)}function $e(fn){return!!fn.target&&ur(fn.target)&&!ur(fn)}function It(fn){var zr;x.assert(!!(fn.flags&524288));let Ai=fn.declaration.readonlyToken?P.createToken(fn.declaration.readonlyToken.kind):void 0,Ji=fn.declaration.questionToken?P.createToken(fn.declaration.questionToken.kind):void 0,Ho,Yl,al=!fD(fn)&&!(HT(fn).flags&2)&&ve.flags&4&&!(Vp(fn).flags&262144&&((zr=iu(Vp(fn)))==null?void 0:zr.flags)&4194304);if(fD(fn)){if($e(fn)&&ve.flags&4){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt)}Ho=P.createTypeOperatorNode(143,Yl||u(HT(fn),ve))}else if(al){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt),Ho=Yl}else Ho=u(Vp(fn),ve);let Ba=We(km(fn),ve,Ho),oc=fn.declaration.nameType?u(Dv(fn),ve):void 0,As=u(ob(Ng(fn),!!(oh(fn)&4)),ve),Gm=P.createMappedTypeNode(Ai,Ba,oc,Ji,As,void 0);ve.approximateLength+=10;let qe=$n(Gm,1);if($e(fn)&&ve.flags&4){let ut=Gi(iu(si(fn.declaration.typeParameter.constraint.type))||Zt,fn.mapper);return P.createConditionalTypeNode(u(HT(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),ut.flags&2?void 0:u(ut,ve))),qe,P.createKeywordTypeNode(146))}else if(al)return P.createConditionalTypeNode(u(Vp(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),P.createTypeOperatorNode(143,u(HT(fn),ve)))),qe,P.createKeywordTypeNode(146));return qe}function Gt(fn){var zr,Ai;let Ji=fn.id,Ho=fn.symbol;if(Ho){if(!!(br(fn)&8388608)){let As=fn.node;if(oI(As)&&si(As)===fn){let Gm=fl(ve,As);if(Gm)return Gm}return(zr=ve.visitedTypes)!=null&&zr.has(Ji)?g(ve):Ft(fn,Yt)}let Ba=H0(fn)?788968:111551;if(T_(Ho.valueDeclaration))return co(Ho,ve,Ba);if(Ho.flags&32&&!D$(Ho)&&!(Ho.valueDeclaration&&Kr(Ho.valueDeclaration)&&ve.flags&2048&&(!Zl(Ho.valueDeclaration)||vi(Ho,ve.enclosingDeclaration,Ba,!1).accessibility!==0))||Ho.flags&896||Yl())return co(Ho,ve,Ba);if((Ai=ve.visitedTypes)!=null&&Ai.has(Ji)){let oc=S7(fn);return oc?co(oc,ve,788968):g(ve)}else return Ft(fn,Yt)}else return Yt(fn);function Yl(){var al;let Ba=!!(Ho.flags&8192)&&ct(Ho.declarations,As=>zo(As)),oc=!!(Ho.flags&16)&&(Ho.parent||an(Ho.declarations,As=>As.parent.kind===312||As.parent.kind===268));if(Ba||oc)return(!!(ve.flags&4096)||((al=ve.visitedTypes)==null?void 0:al.has(Ji)))&&(!(ve.flags&8)||rt(Ho,ve.enclosingDeclaration))}}function Ft(fn,zr){var Ai,Ji,Ho;let Yl=fn.id,al=br(fn)&16&&fn.symbol&&fn.symbol.flags&32,Ba=br(fn)&4&&fn.node?\"N\"+Fa(fn.node):fn.flags&16777216?\"N\"+Fa(fn.root.node):fn.symbol?(al?\"+\":\"\")+na(fn.symbol):void 0;ve.visitedTypes||(ve.visitedTypes=new Set),Ba&&!ve.symbolDepth&&(ve.symbolDepth=new Map);let oc=ve.enclosingDeclaration&&Fr(ve.enclosingDeclaration),As=`${Hd(fn)}|${ve.flags}`;oc&&(oc.serializedTypes||(oc.serializedTypes=new Map));let Gm=(Ai=oc?.serializedTypes)==null?void 0:Ai.get(As);if(Gm)return(Ji=Gm.trackedSymbols)==null||Ji.forEach(([Rr,Si,yo])=>ve.tracker.trackSymbol(Rr,Si,yo)),Gm.truncating&&(ve.truncating=!0),ve.approximateLength+=Gm.addedLength,cn(Gm.node);let qe;if(Ba){if(qe=ve.symbolDepth.get(Ba)||0,qe>10)return g(ve);ve.symbolDepth.set(Ba,qe+1)}ve.visitedTypes.add(Yl);let ut=ve.trackedSymbols;ve.trackedSymbols=void 0;let Bt=ve.approximateLength,kn=zr(fn),pr=ve.approximateLength-Bt;return!ve.reportedDiagnostic&&!ve.encounteredError&&((Ho=oc?.serializedTypes)==null||Ho.set(As,{node:kn,truncating:ve.truncating,addedLength:pr,trackedSymbols:ve.trackedSymbols})),ve.visitedTypes.delete(Yl),Ba&&ve.symbolDepth.set(Ba,qe),ve.trackedSymbols=ut,kn;function cn(Rr){return!xs(Rr)&&uo(Rr)===Rr?Rr:Ze(P.cloneNode(un(Rr,cn,void 0,rr)),Rr)}function rr(Rr,Si,yo,Ko,Xo){return Rr&&Rr.length===0?Ze(P.createNodeArray(void 0,Rr.hasTrailingComma),Rr):Dn(Rr,Si,yo,Ko,Xo)}}function Yt(fn){if(vu(fn)||fn.containsError)return It(fn);let zr=Om(fn);if(!zr.properties.length&&!zr.indexInfos.length){if(!zr.callSignatures.length&&!zr.constructSignatures.length)return ve.approximateLength+=2,$n(P.createTypeLiteralNode(void 0),1);if(zr.callSignatures.length===1&&!zr.constructSignatures.length){let al=zr.callSignatures[0];return me(al,184,ve)}if(zr.constructSignatures.length===1&&!zr.callSignatures.length){let al=zr.constructSignatures[0];return me(al,185,ve)}}let Ai=Cr(zr.constructSignatures,al=>!!(al.flags&4));if(ct(Ai)){let al=nn(Ai,XT);return zr.callSignatures.length+(zr.constructSignatures.length-Ai.length)+zr.indexInfos.length+(ve.flags&2048?Wv(zr.properties,oc=>!(oc.flags&4194304)):yn(zr.properties))&&al.push(j0(zr)),u(Zo(al),ve)}let Ji=ve.flags;ve.flags|=4194304;let Ho=qi(zr);ve.flags=Ji;let Yl=P.createTypeLiteralNode(Ho);return ve.approximateLength+=2,$n(Yl,ve.flags&1024?0:1),Yl}function xn(fn){let zr=Ts(fn);if(fn.target===Po||fn.target===Oo){if(ve.flags&2){let Ho=u(zr[0],ve);return P.createTypeReferenceNode(fn.target===Po?\"Array\":\"ReadonlyArray\",[Ho])}let Ai=u(zr[0],ve),Ji=P.createArrayTypeNode(Ai);return fn.target===Po?Ji:P.createTypeOperatorNode(148,Ji)}else if(fn.target.objectFlags&8){if(zr=sc(zr,(Ai,Ji)=>ob(Ai,!!(fn.target.elementFlags[Ji]&2))),zr.length>0){let Ai=Nv(fn),Ji=O(zr.slice(0,Ai),ve);if(Ji){let{labeledElementDeclarations:Ho}=fn.target;for(let al=0;al<Ji.length;al++){let Ba=fn.target.elementFlags[al],oc=Ho?.[al];oc?Ji[al]=P.createNamedTupleMember(Ba&12?P.createToken(26):void 0,P.createIdentifier(Ii(ige(oc))),Ba&2?P.createToken(58):void 0,Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ji[al]=Ba&12?P.createRestTypeNode(Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ba&2?P.createOptionalTypeNode(Ji[al]):Ji[al]}let Yl=$n(P.createTupleTypeNode(Ji),1);return fn.target.readonly?P.createTypeOperatorNode(148,Yl):Yl}}if(ve.encounteredError||ve.flags&524288){let Ai=$n(P.createTupleTypeNode([]),1);return fn.target.readonly?P.createTypeOperatorNode(148,Ai):Ai}ve.encounteredError=!0;return}else{if(ve.flags&2048&&fn.symbol.valueDeclaration&&Kr(fn.symbol.valueDeclaration)&&!rt(fn.symbol,ve.enclosingDeclaration))return Gt(fn);{let Ai=fn.target.outerTypeParameters,Ji=0,Ho;if(Ai){let oc=Ai.length;for(;Ji<oc;){let As=Ji,Gm=wLe(Ai[Ji]);do Ji++;while(Ji<oc&&wLe(Ai[Ji])===Gm);if(!nB(Ai,zr,As,Ji)){let qe=O(zr.slice(As,Ji),ve),ut=ve.flags;ve.flags|=16;let Bt=co(Gm,ve,788968,qe);ve.flags=ut,Ho=Ho?ii(Ho,Bt):Bt}}}let Yl;if(zr.length>0){let oc=(fn.target.typeParameters||je).length;Yl=O(zr.slice(Ji,oc),ve)}let al=ve.flags;ve.flags|=16;let Ba=co(fn.symbol,ve,788968,Yl);return ve.flags=al,Ho?ii(Ho,Ba):Ba}}}function ii(fn,zr){if(Dh(fn)){let Ai=fn.typeArguments,Ji=fn.qualifier;Ji&&(Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai)))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=Ji?P.createQualifiedName(Ji,Yl):Yl;return P.updateImportTypeNode(fn,fn.argument,fn.attributes,Ji,Ai,fn.isTypeOf)}else{let Ai=fn.typeArguments,Ji=fn.typeName;Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=P.createQualifiedName(Ji,Yl);return P.updateTypeReferenceNode(fn,Ji,Ai)}}function Yr(fn){let zr=fn.typeName,Ai=[];for(;!Me(zr);)Ai.unshift(zr.right),zr=zr.left;return Ai.unshift(zr),Ai}function qi(fn){if(c(ve))return[P.createPropertySignature(void 0,\"...\",void 0,void 0)];let zr=[];for(let Ho of fn.callSignatures)zr.push(me(Ho,179,ve));for(let Ho of fn.constructSignatures)Ho.flags&4||zr.push(me(Ho,180,ve));for(let Ho of fn.indexInfos)zr.push(Q(Ho,ve,fn.objectFlags&1024?g(ve):void 0));let Ai=fn.properties;if(!Ai)return zr;let Ji=0;for(let Ho of Ai){if(Ji++,ve.flags&2048){if(Ho.flags&4194304)continue;Kp(Ho)&6&&ve.tracker.reportPrivateInBaseOfClassExpression&&ve.tracker.reportPrivateInBaseOfClassExpression(Ii(Ho.escapedName))}if(c(ve)&&Ji+2<Ai.length-1){zr.push(P.createPropertySignature(void 0,`... ${Ai.length-Ji} more ...`,void 0,void 0)),N(Ai[Ai.length-1],ve,zr);break}N(Ho,ve,zr)}return zr.length?zr:void 0}}function g(Qe){return Qe.approximateLength+=3,Qe.flags&1?P.createKeywordTypeNode(133):P.createTypeReferenceNode(P.createIdentifier(\"...\"),void 0)}function T(Qe,ve){var vn;return!!(tl(Qe)&8192)&&(To(ve.reverseMappedStack,Qe)||((vn=ve.reverseMappedStack)==null?void 0:vn[0])&&!(br(Da(ve.reverseMappedStack).links.propertyType)&16))}function N(Qe,ve,vn){var _r;let Xr=!!(tl(Qe)&8192),li=T(Qe,ve)?z:qy(Qe),ci=ve.enclosingDeclaration;if(ve.enclosingDeclaration=void 0,ve.tracker.canTrackSymbol&&nw(Qe.escapedName))if(Qe.declarations){let Yt=Ta(Qe.declarations);if(D7(Yt))if(Zn(Yt)){let xn=mo(Yt);xn&&Rs(xn)&&UL(xn.argumentExpression)&&Hn(xn.argumentExpression,ci,ve)}else Hn(Yt.name.expression,ci,ve)}else ve.tracker.reportNonSerializableProperty(ai(Qe));ve.enclosingDeclaration=Qe.valueDeclaration||((_r=Qe.declarations)==null?void 0:_r[0])||ci;let xr=bn(Qe,ve);if(ve.enclosingDeclaration=ci,ve.approximateLength+=$s(Qe).length+1,Qe.flags&98304){let Yt=q0(Qe);if(li!==Yt&&!Lt(li)&&!Lt(Yt)){let xn=Vs(Qe,177),ii=kf(xn);vn.push(Ol(me(ii,177,ve,{name:xr}),xn));let Yr=Vs(Qe,178),qi=kf(Yr);vn.push(Ol(me(qi,178,ve,{name:xr}),Yr));return}}let ur=Qe.flags&16777216?P.createToken(58):void 0;if(Qe.flags&8208&&!Xy(li).length&&!Bm(Qe)){let Yt=Co(Bl(li,xn=>!(xn.flags&32768)),0);for(let xn of Yt){let ii=me(xn,173,ve,{name:xr,questionToken:ur});vn.push(Ft(ii))}if(Yt.length||!ur)return}let $e;T(Qe,ve)?$e=g(ve):(Xr&&(ve.reverseMappedStack||(ve.reverseMappedStack=[]),ve.reverseMappedStack.push(Qe)),$e=li?es(ve,li,Qe,ci):P.createKeywordTypeNode(133),Xr&&ve.reverseMappedStack.pop());let It=Bm(Qe)?[P.createToken(148)]:void 0;It&&(ve.approximateLength+=9);let Gt=P.createPropertySignature(It,xr,ur,$e);vn.push(Ft(Gt));function Ft(Yt){var xn;let ii=(xn=Qe.declarations)==null?void 0:xn.find(Yr=>Yr.kind===355);if(ii){let Yr=VM(ii.comment);Yr&&Lb(Yt,[{kind:3,text:`*","vulnerability":{}},{"path":"dify-agent-runtime/internal/server/config.go","start_line":31,"end_line":31,"snippet":"\tDefaultAuthTokenEnv                  = \"SHELLCTL_AUTH_TOKEN\"","vulnerability":{"severity":"HIGH"}},{"path":"api/clients/agent_backend/factory.py","start_line":44,"end_line":51,"snippet":"    return DifyAgentBackendRunClient(\n        create_agent_backend_client(\n            base_url=base_url,\n            api_token=api_token,\n            stream_timeout=stream_read_timeout_seconds,\n        ),\n        stream_max_reconnects=stream_max_reconnects,\n    )","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":32,"end_line":32,"snippet":"        valid_password(new_password)","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":37,"end_line":37,"snippet":"    application_services().accounts.lifecycle.reset_password(account.id, new_password, email=normalized_email)","vulnerability":{"severity":"WARNING"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0003","rule_version":"1.3.0","rule_name":"Runtime Command Injection via Process Execution","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"medium","rationale":"The dify-agent / dify-agent-runtime component's declared purpose is to run arbitrary user-submitted shell scripts/commands as a sandboxed agent tool (shellctl), so argv-based exec is within its declared contract rather than an injection bug. Tracing the sinks: (1) dify-agent-runtime/cmd/runner/main.go uses exec.Command(self, childArgs...) / syscall.Exec(binary, argv, ...) with a fixed, hardcoded self-reexec argv (binary + '--exec' + script_path + cwd) -- the actual user-supplied SCRIPT CONTENT is never concatenated into a shell string for this sink; it is written as file content at scriptPath and only the fixed path string is passed as an argv element, with shebang/`sh <path>` dispatch (buildExecArgv) -- the semgrep LOW-confidence 'non-static command' flags are the exec of the controller's OWN re-exec'd binary, not attacker-constructed shell text. (2) dify-agent-runtime/internal/server/tmux.go wraps user script execution via tmux using shellJoin/shellQuote helpers that quote each argument before composing the wrapper script, and the user's script itself runs inside a Landlock-restricted (default SHELLCTL_ENABLE_PATH_ISOLATION=true, envvar.go:34-40) sandboxed process tree that confines filesystem access -- i.e. arbitrary command execution is the TOOL'S DECLARED JOB, with sandboxing as the mitigating control, not a hidden injection flaw. api/libs/helper.py:127-128 run(script) (subprocess.getstatusoutput('source /root/.bashrc && '+script), a real shell-injection-shaped sink) has NO callers anywhere in the api/ runtime tree (grep confirms only this definition, zero call sites) -- dead code, not reachable from any HTTP/tool-call path, so it does not establish execution_reachability for a VULNERABLE verdict.","vulnerability_details":null,"fix_guidance":"Remove the unreferenced api/libs/helper.py:run() dead code to eliminate future-reachability risk; keep SHELLCTL_ENABLE_PATH_ISOLATION defaulted to true and do not allow it to be disabled in multi-tenant deployments.","why_this_matters":"Unsanitized command construction in shipped runtime code can give a remote attacker arbitrary code execution with the application's privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":108,"end_line":117,"snippet":"\tself, _ := os.Executable()\n\tchildArgs := []string{\"--exec\", scriptPath, cwd}\n\tif enableIsolation {\n\t\tchildArgs = append([]string{\"--exec\", \"--landlock\"}, childArgs[1:]...)\n\t}\n\n\tcmd := exec.Command(self, childArgs...)\n\tcmd.Env = env\n\tcmd.Dir = cwd"},{"path":"dify-agent-runtime/internal/envvar/envvar.go","start_line":33,"end_line":40,"snippet":"// PathIsolationEnabled returns whether Landlock filesystem isolation is active.\nfunc PathIsolationEnabled() bool {\n\tv, ok := os.LookupEnv(EnvEnablePathIsolation)\n\tif !ok {\n\t\treturn true\n\t}\n\treturn v == \"true\"\n}"},{"path":"api/libs/helper.py","start_line":127,"end_line":128,"snippet":"def run(script):\n    return subprocess.getstatusoutput(\"source /root/.bashrc && \" + script)"},{"path":"dify-agent-runtime/internal/server/tmux.go","start_line":246,"end_line":246,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":320,"end_line":320,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":115,"end_line":115,"snippet":null,"vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0004","rule_version":"1.2.0","rule_name":"DoS Protections: Timeouts, Concurrency, Streaming Limits","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The codebase implements layered DoS protections: (1) a generic rate-limit decorator/library (api/libs/rate_limit.py) with per-IP/session/account/email/token sliding-window limits applied to auth-sensitive endpoints (device code, SSO initiate, bearer token validation, etc.); (2) the outbound SSRF-protected HTTP client enforces connect/read/write/total timeouts by default (SSRF_DEFAULT_TIME_OUT family) and a bounded buffer_response() that raises ResponseTooLargeError once decoded bytes exceed a configured cap, preventing unbounded streaming responses from exhausting memory; (3) upload size limits are enforced per content type (UPLOAD_FILE_SIZE_LIMIT, UPLOAD_IMAGE_FILE_SIZE_LIMIT, UPLOAD_VIDEO_FILE_SIZE_LIMIT, UPLOAD_AUDIO_FILE_SIZE_LIMIT, UPLOAD_SKILL_FILE_SIZE_LIMIT) in api/configs/feature/__init__.py and enforced in FileService.is_file_size_within_limit before any save() call.","vulnerability_details":null,"fix_guidance":"Continue to audit newly added external-facing endpoints to ensure they are decorated with an appropriate RateLimit spec; consider a global default body-size limit at the WSGI/reverse-proxy layer as defense in depth.","why_this_matters":"Resource exhaustion can crash or stall MCP.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/helper/ssrf_proxy.py","start_line":287,"end_line":300,"snippet":"def buffer_response(response: httpx.Response, *, max_response_bytes: int) -> httpx.Response:\n    \"\"\"Consume one open identity response under a decoded byte limit and close its stream.\"\"\"\n    if max_response_bytes <= 0:\n        raise ValueError(\"max_response_bytes must be positive\")\n    try:\n        content_encoding = response.headers.get(\"content-encoding\", \"identity\").strip().lower()\n        if content_encoding not in {\"\", \"identity\"}:\n            raise UnsupportedResponseEncodingError(...)\n        content = bytearray()\n        for chunk in response.iter_bytes():\n            if len(content) + len(chunk) > max_response_bytes:\n                raise ResponseTooLargeError(f\"response exceeded {max_response_bytes} bytes\")\n            content.extend(chunk)"},{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_DEVICE_FLOW_APPROVE = RateLimit(...)\nLIMIT_LOOKUP_PUBLIC = RateLimit(60, timedelta(minutes=5), (RateLimitScope.IP,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/configs/feature/__init__.py","start_line":458,"end_line":488,"snippet":"    UPLOAD_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    KNOWLEDGE_UPLOAD_FILE_SIZE_LIMIT_FOR_PAID_PLAN: NonNegativeInt = Field(...)\n    UPLOAD_IMAGE_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_VIDEO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_AUDIO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_SKILL_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0005","rule_version":"1.2.0","rule_name":"Logging Hygiene (No Secrets/PII/Tokens) & Audit Trail","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"api/libs/helper.py's TokenManager.get_token_data() logs the FULL raw token value at WARNING level (enabled by default under LOG_LEVEL=INFO) whenever a lookup misses. TokenManager mints these tokens for password-reset and other auth flows, so a reset-password token lands in application logs verbatim, with no central redaction filter in place.","vulnerability_details":"api/libs/helper.py line 549: `logger.warning(\"%s token %s not found with key %s\", token_type, token, key)` logs the raw `token` argument (a UUID minted by TokenManager.generate_token for sensitive flows including password reset, api/services/account/login_adapters.py:328) at WARNING level, enabled under the default LOG_LEVEL=INFO. Anyone with read access to application logs (log-aggregation/SIEM access, a separate log-exposure bug, or an insider) can harvest live password-reset tokens straight from this log line and use them to take over the corresponding account before the token's TTL expires -- turning a routine 'token not found' debug log into an account-takeover credential leak.","fix_guidance":"Change helper.py:549 to log only a hash/prefix of the token (e.g. token[:8]+'...') or omit it entirely and log the Redis key alone; add a logging filter/formatter that redacts known credential-shaped fields project-wide as defense in depth.","why_this_matters":"Prevents sensitive data leakage; enables forensics.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0005 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"api/libs/helper.py","start_line":544,"end_line":551,"snippet":"    @classmethod\n    def get_token_data(cls, token: str, token_type: str) -> dict[str, Any] | None:\n        key = cls._get_token_key(token, token_type)\n        token_data_json = redis_client.get(key)\n        if token_data_json is None:\n            logger.warning(\"%s token %s not found with key %s\", token_type, token, key)\n            return None\n        return dict(_token_data_adapter.validate_json(token_data_json))"},{"path":"api/services/account/login_adapters.py","start_line":325,"end_line":330,"snippet":"            token = TokenManager.generate_token(\n                account_id=account_id,\n                email=email,"},{"path":"api/configs/feature/__init__.py","start_line":804,"end_line":807,"snippet":"    LOG_LEVEL: str = Field(\n        description=\"Logging level, default to INFO. Set to ERROR for production environments.\",\n        default=\"INFO\",\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0006","rule_version":"1.2.0","rule_name":"Container/Runtime Hardening","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"Trivy config scan identifies concrete hardening gaps: docker/couchbase-server/Dockerfile uses the floating ':latest' tag (DS-0001) and never sets a non-root USER (DS-0002, HIGH) -- confirmed by manual read, no USER directive exists so the container runs as root by inheritance from the base image. .devcontainer/Dockerfile also runs as root (DS-0002) and misses --no-install-recommends on apt-get install (DS-0029, HIGH). All Dockerfiles lack HEALTHCHECK (DS-0026, LOW). The two internet-facing production images (api/Dockerfile, web/Dockerfile) DO create and switch to a non-root 'dify' user, so the primary attack surface is hardened; the finding is scoped to the auxiliary Couchbase and dev-container images.","vulnerability_details":"docker/couchbase-server/Dockerfile runs its vector-DB backing service container as root (no USER directive) with an unpinned FROM couchbase/server:latest base. If an attacker achieves any code-execution foothold inside that container (e.g. via a future Couchbase CVE pulled in silently by the floating tag, or a vulnerability in init-cbserver.sh), running as root removes the standard UID-separation barrier, giving the attacker root-equivalent privileges inside the container and a larger blast radius for container-breakout primitives (e.g. abusing any mounted docker.sock, writable host paths, or kernel-level capabilities available to root but not to an unprivileged UID). The floating :latest tag means a rebuild can silently pull a newer and differently-vulnerable image without the change being reviewed.","fix_guidance":"Pin docker/couchbase-server/Dockerfile to a specific Couchbase version tag (not :latest) and add a non-root USER switch after setup; add USER directives to .devcontainer/Dockerfile and use --no-install-recommends there; add HEALTHCHECK instructions to all shipped Dockerfiles.","why_this_matters":"Reduces blast radius of exploits.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0006 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM couchbase/server:latest AS stage_base\n# FROM couchbase:latest AS stage_base\nCOPY init-cbserver.sh /opt/couchbase/init/\nRUN chmod +x /opt/couchbase/init/init-cbserver.sh"},{"path":".devcontainer/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM mcr.microsoft.com/devcontainers/python:3.13-bookworm\n\nRUN apt-get update && export DEBIAN_FRONTEND=noninteractive \\\n     && apt-get -y install libgmp-dev libmpfr-dev libmpc-dev"},{"path":"api/Dockerfile","start_line":125,"end_line":125,"snippet":"USER dify"},{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":1,"snippet":"FROM couchbase/server:latest AS stage_base"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0007","rule_version":"1.2.0","rule_name":"Dependency Risk & Supply Chain","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"Trivy's scan of the committed lockfiles (api/uv.lock, dify-agent/uv.lock, pnpm-lock.yaml, dify-agent-runtime/go.mod) found 23 known CVEs in pinned, locked dependency versions, including chromadb==0.5.20 (pinned in api/uv.lock as the Chroma vector-store provider's declared runtime dependency) mapped to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH), and CVE-2026-45831 (HIGH) with no fixed version yet published, alongside other HIGH/MEDIUM findings (e.g. pydantic-ai-slim, golang.org/x/mod, socket.io-parser) that do have published fixed versions the project has not yet adopted. The presence of these scanner-confirmed, unpatched CVEs in exact pinned dependency versions constitutes a supply-chain risk on its own; this finding does not assert a specific demonstrated remote-exploit path through the Chroma vector-store API, only that the vulnerable versions are locked and declared as runtime dependencies.","vulnerability_details":"api/uv.lock pins chromadb to exact version 0.5.20, which Trivy's vulnerability database maps to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH) and CVE-2026-45831 (HIGH) with no fixed version yet published. chromadb is Dify's vector-database client, used by the RAG/knowledge-base subsystem that ingests and queries attacker-influenceable document content; a deployment that enables the Chroma vector-store provider runs this vulnerable client code against untrusted document/query content, exposing whatever remote-code-execution/data-exposure primitive CVE-2026-45833 represents to any user who can trigger a knowledge-base query or ingest a document into a Chroma-backed dataset.","fix_guidance":"Upgrade or replace chromadb beyond 0.5.20 once a patched release addressing CVE-2026-45833/45830/45831 is available (or pin to a patched fork / disable the Chroma vector-store provider until then); separately upgrade pydantic-ai-slim to >=2.53.0, bump the vulnerable golang.org/x/mod dependency, and update socket.io-parser to a fixed release; add a scheduled dependency CVE scan to CI to catch newly disclosed CVEs in already-pinned packages.","why_this_matters":"Prevents typosquat and malicious update compromise.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0007 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The scan reported mitigation_present but the independent adjudication did not corroborate it; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/uv.lock","start_line":880,"end_line":883,"snippet":"name = \"chromadb\"\nversion = \"0.5.20\"\nsource = { registry = \"https://pypi.org/simple\" }\ndependencies = ["},{"path":"Makefile","start_line":170,"end_line":1,"snippet":"(go.mod pins golang.org/x/mod to a version affected by CVE-2026-56864 HIGH / CVE-2026-56865 HIGH, per trivy-fs.json Results[] for Target=='dify-agent-runtime/go.mod')"},{"path":"web/package.json","start_line":29,"end_line":29,"snippet":"\"preinstall\": \"npx only-allow pnpm\","},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45833","pkg_name":"chromadb","severity":"CRITICAL","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45830","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45831","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107286","pkg_name":"pydantic-ai-slim","severity":"HIGH","installed_version":"2.31.0","fixed_version":"2.53.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-69185","pkg_name":"socket.io-parser","severity":"HIGH","installed_version":"4.2.6","fixed_version":"4.2.7, 3.4.5, 3.3.6"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-102991","pkg_name":"mako","severity":"MEDIUM","installed_version":"1.3.12","fixed_version":"1.4.2"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-104874","pkg_name":"multidict","severity":"MEDIUM","installed_version":"6.7.0","fixed_version":"6.9.1"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49264","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49265","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107287","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.7, 2.52.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107289","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107290","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107291","pkg_name":"pydantic-ai-slim","severity":"LOW","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-103923","pkg_name":"katex","severity":"LOW","installed_version":"0.16.47","fixed_version":"0.18.2"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0008","rule_version":"1.2.0","rule_name":"Missing or Inadequate Input Validation","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Dify's console/service/web API controllers consistently validate request bodies against typed schemas before use: console endpoints use flask-restx `@console_ns.expect(...)` model bindings plus a `model_validate(SomeModel)` decorator pattern (e.g. api/controllers/console/auth/login.py `@console_ns.expect(console_ns.models[EmailPayload.__name__])` + `@model_validate(EmailPayload)`) backed by Pydantic models, and service-api / inner-api endpoints use Pydantic `TypeAdapter`/`BaseModel.model_validate_json` for structured payload validation (e.g. api/services/data_source/notion_oauth_gateway.py uses `_NOTION_SOURCE_INFO_ADAPTER`/`_NOTION_PAGE_SUMMARY_ADAPTER` TypeAdapters to validate even third-party OAuth provider responses before use). File-upload input is explicitly constrained (extension blacklist, size limits, filename character blacklist) in FileService before any filesystem write. This is the rule's documented negative-indicator pattern (strict schema validation; type/length checks) applied broadly across the controller surface.","vulnerability_details":null,"fix_guidance":"Keep enforcing Pydantic/TypeAdapter schema validation for all new endpoints and third-party response parsing; add `.strict()`/reject-unknown-fields where the framework supports it.","why_this_matters":"Frontline control to prevent multiple classes of vulns.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/services/file_service.py","start_line":100,"end_line":113,"snippet":"        extension = os.path.splitext(filename)[1].lstrip(\".\").lower()\n        if any(c in filename for c in [\"/\", \"\\\\\"]):\n            raise ValueError(\"Filename contains invalid characters\")\n        if len(filename) > 200:\n            filename = filename.split(\".\")[0][:200] + \".\" + extension\n        if extension and extension in dify_config.UPLOAD_FILE_EXTENSION_BLACKLIST:\n            raise BlockedFileExtensionError(f\"File extension '.{extension}' is not allowed for security reasons\")\n        if source == \"datasets\" and extension not in DOCUMENT_EXTENSIONS:\n            raise UnsupportedFileTypeError()"},{"path":"api/services/data_source/notion_oauth_gateway.py","start_line":25,"end_line":34,"snippet":"class _NotionSourceInfo(TypedDict):\n    workspace_name: str | None\n    workspace_icon: str | None\n    workspace_id: str | None\n    pages: list[_NotionPageSummary]\n    total: int\n\n_NOTION_SOURCE_INFO_ADAPTER = TypeAdapter(_NotionSourceInfo)\n_NOTION_PAGE_SUMMARY_ADAPTER = TypeAdapter(_NotionPageSummary)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0009","rule_version":"1.2.0","rule_name":"Insecure Deserialization","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"pickle is used to serialize/deserialize RAG embedding vectors (api/models/dataset.py:744-747, api/core/rag/embedding/cached_embedding.py:115,198), but tracing the write path shows embedding bytes are produced exclusively by CacheEmbedding, which pickles the FLOAT LIST returned directly from the configured embedding model's own invoke_text_embedding()/invoke_multimodal_embedding() output -- there is no code path where externally-supplied bytes (an uploaded file, an HTTP body, a tool argument) are passed to pickle.loads. Reaching the sink with attacker-chosen bytes would require an independent primitive (e.g. direct DB write access or a different injection bug) that is not present in this codebase, so the required attacker_controlled_source and continuous source_to_sink_flow this rule demands cannot be established from the cited code; the evaluation_rubric's 'Deserialization of constants only' false_positive_guard class applies by analogy (model-generated, not request-controlled). Separately, api/services/agent/roster_package_reader.py:352-379 deserializes untrusted Roster Agent package YAML using a hardened yaml.SafeLoader subclass (_PackageYamlLoader) that explicitly rejects YAML aliases and non-string mapping keys -- the one YAML-deserialization sink that DOES take externally-supplied (uploaded package) content uses the safe loader, which is the rule's documented negative indicator.","vulnerability_details":null,"fix_guidance":"Defense-in-depth: replace pickle with numpy .tobytes()/np.frombuffer (fixed dtype) or a JSON float array for the Embedding.embedding column so this stored blob can never become a code-execution primitive even if a future bug (SQLi, bulk-import, compromised worker) lets an attacker write to that column directly.","why_this_matters":"Can lead to arbitrary code execution.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/rag/embedding/cached_embedding.py","start_line":107,"end_line":119,"snippet":"                cache_embeddings = []\n                try:\n                    for i, n_embedding in zip(embedding_queue_indices, embedding_queue_embeddings):\n                        text_embeddings[i] = n_embedding\n                        hash = helper.generate_text_hash(texts[i])\n                        if hash not in cache_embeddings:\n                            embedding_cache = Embedding(\n                                model_name=self._model_instance.model_name,\n                                hash=hash,\n                                provider_name=self._model_instance.provider,\n                                embedding=pickle.dumps(n_embedding, protocol=pickle.HIGHEST_PROTOCOL),\n                            )"},{"path":"api/models/dataset.py","start_line":743,"end_line":747,"snippet":"    def set_embedding(self, embedding_data: list[float]):\n        self.embedding = pickle.dumps(embedding_data, protocol=pickle.HIGHEST_PROTOCOL)\n\n    def get_embedding(self) -> list[float]:\n        return cast(list[float], pickle.loads(self.embedding))  # noqa: S301"},{"path":"api/services/agent/roster_package_reader.py","start_line":352,"end_line":379,"snippet":"            return yaml.load(payload, Loader=_PackageYamlLoader), size  # noqa: S506\n        except (UnicodeDecodeError, yaml.YAMLError, ValueError, RecursionError) as exc:\n            raise InvalidRosterAgentPackageError(...)\n                f\"Roster Agent package {path.removesuffix('.yaml')} is invalid\"\n            ) from exc\n\n\nclass _PackageYamlLoader(yaml.SafeLoader):\n    \"\"\"Reject ambiguous mappings and aliases in untrusted package documents.\"\"\"\n\n    @override"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0010","rule_version":"1.2.0","rule_name":"Lack of Output Encoding/Sanitization","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The semgrep XSS-shaped hits (python.flask.security.audit.xss.make-response-with-unknown-content, 8 occurrences across login.py, agent_config_inspector.py, recommended_app.py, tool_providers.py, trigger_providers.py) all resolve on inspection to `make_response(dump_response(SomeTypedModel, {...}))` calls -- i.e. a structured, schema-typed JSON-shaped payload serialized through a typed response-dump helper, not raw/unescaped user input written into an HTML content-type response. The project's web frontend (React/Next.js in web/) uses JSX's default auto-escaping for rendered text and the two `render-template-string` hits (api/libs/email_template_renderer.py, api/tasks/mail_inner_task.py) go through a Jinja2 `ImmutableSandboxedEnvironment` in SANDBOX mode by default (MAIL_TEMPLATING_MODE default = SANDBOX), which blocks template-level code/attribute-traversal exploitation even if the template string itself were attacker-influenced.","vulnerability_details":null,"fix_guidance":"Keep MAIL_TEMPLATING_MODE defaulted to SANDBOX (never UNSAFE) in production configuration guidance; continue returning typed/serialized model objects from make_response rather than raw string concatenation.","why_this_matters":"Prevents UI-level injection and operator compromise.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/controllers/console/auth/login.py","start_line":173,"end_line":177,"snippet":"        response = make_response(dump_response(SimpleResultResponse, {\"result\": \"success\"}))\n        clear_access_token_from_cookie(response)\n        clear_refresh_token_from_cookie(response)\n        clear_csrf_token_from_cookie(response)\n        return response"},{"path":"api/libs/email_template_renderer.py","start_line":17,"end_line":28,"snippet":"class SandboxedEnvironment(ImmutableSandboxedEnvironment):\n    \"\"\"Sandboxed environment with execution timeout.\"\"\"\n    def __init__(self, timeout: int, *args: Any, **kwargs: Any):\n        self._deadline = time.time() + timeout if timeout else None\n        super().__init__(*args, **kwargs)\n    @override\n    def call(self, context: Context, obj: Any, *args: Any, **kwargs: Any) -> Any:\n        if self._deadline is not None and time.time() > self._deadline:\n            raise TimeoutError(\"Template rendering timeout\")\n        return super().call(context, obj, *args, **kwargs)"},{"path":"api/configs/feature/__init__.py","start_line":1155,"end_line":1158,"snippet":"    MAIL_TEMPLATING_MODE: TemplateMode = Field(\n        description=\"Template mode for email services\",\n        default=TemplateMode.SANDBOX,\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0011","rule_version":"1.4.0","rule_name":"Path Traversal & Symlink Bypass (Filesystem Tools)","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The agent CLI's skill-pull flow (dify-agent-runtime/internal/agentcli/config.go) builds the download archive path and extraction directory directly from a skill name supplied via CLI argument or a downloaded manifest, using filepath.Join(targetDir, name+\".zip\") and a matching skillDir, without checking for path separators, absolute paths, or containment within targetDir. filepath.Join normalizes '../' segments, so a name such as '../../outside' causes the resulting path to escape targetDir, and the subsequent MkdirAll/os.WriteFile calls can then create or overwrite files outside the intended skills directory. The earlier SECURE verdict considered only the UUID-keyed API upload path (which is safely indirected) and did not examine this separate CLI/manifest-driven skill-pull flow, which has no equivalent indirection or validation before the filesystem sink.","vulnerability_details":null,"fix_guidance":"Validate the skill name before it is used to build any filesystem path in config.go's skill-pull flow: reject names containing path separators or '..' segments, or that resolve (after filepath.Clean/filepath.Abs) outside targetDir, before calling filepath.Join/MkdirAll/os.WriteFile.","why_this_matters":"Traversal exposes arbitrary host files; can lead to code execution.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":56,"end_line":63,"snippet":"// RunConfigSkillsPull executes the `config skills pull` command.\nfunc RunConfigSkillsPull(env *Environment, names []string, localDir string, jsonOutput bool) error {\n\tclient, err := NewStubClient(env)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer func() { _ = client.Close() }()\n"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":76,"end_line":83,"snippet":"\t\t\t\t} `json:\"items\"`\n\t\t\t} `json:\"skills\"`\n\t\t}\n\t\tif err := json.Unmarshal(body, &manifest); err != nil {\n\t\t\treturn fmt.Errorf(\"parse manifest: %w\", err)\n\t\t}\n\t\tfor _, item := range manifest.Skills.Items {\n\t\t\tnames = append(names, item.Name)"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":104,"end_line":123,"snippet":"\t}\n\n\terr = runConfigPulls(len(names), func(index int) error {\n\t\tname := names[index]\n\t\tdownload, err := client.CreateConfigDownloadURL(ctx, \"skill\", name)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"request config skill %q download URL: %w\", name, err)\n\t\t}\n\t\tarchiveBytes, err := client.DownloadFromURL(download.DownloadURL)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"download config skill %q: %w\", name, err)\n\t\t}\n\n\t\tarchivePath := filepath.Join(targetDir, name+\".zip\")\n\t\tskillDir := filepath.Join(targetDir, name)\n\t\tif err := os.MkdirAll(skillDir, 0o755); err != nil {\n\t\t\treturn fmt.Errorf(\"create skill directory: %w\", err)\n\t\t}\n\t\tif err := os.WriteFile(archivePath, archiveBytes, 0o644); err != nil {\n\t\t\treturn fmt.Errorf(\"write archive: %w\", err)"},{"path":"dify-agent-runtime/internal/snapshot/save.go","start_line":83,"end_line":83,"snippet":"\t\t\tf, err := os.Open(p)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":763,"end_line":763,"snippet":"\tendedAtRaw, err := os.ReadFile(endedAtPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":759,"end_line":759,"snippet":"\texitCodeRaw, err := os.ReadFile(exitCodePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":106,"end_line":106,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":38,"end_line":38,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/sanitize/sanitize.go","start_line":155,"end_line":155,"snippet":"\t\tf, err := os.Create(readyFile)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/httpclient.go","start_line":72,"end_line":72,"snippet":"\treturn os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":548,"end_line":548,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":471,"end_line":471,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":133,"end_line":133,"snippet":"\t\tif data, err := os.ReadFile(skillMDPath); err == nil {","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":120,"end_line":120,"snippet":"\t\toutFile, err := os.Create(destPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":71,"end_line":71,"snippet":"\t\tfile, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":15,"end_line":15,"snippet":"\toutFile, err := os.Create(archivePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":343,"end_line":343,"snippet":"\tdata, err := os.ReadFile(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":325,"end_line":325,"snippet":"\tf, err := os.Open(scriptPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":254,"end_line":254,"snippet":"\tfile, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0600)","vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0012","rule_version":"1.2.0","rule_name":"Denial of Wallet / Cost Controls","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"Model/tool invocation paths are protected by multiple quota/budget layers: api/libs/rate_limit.py provides per-IP/account/session/email/token sliding-window rate limits applied to auth and API-bearer-token validation; FeatureService (api/services/feature_service.py referenced throughout controllers, e.g. human_input_delivery_test_service.py's `features.human_input_email_delivery_enabled` gate) enforces plan-based feature/quota gating before billable operations execute; and dataset/knowledge upload size limits (UPLOAD_FILE_SIZE_LIMIT family) bound the cost of ingestion-triggered embedding calls. The SSRF-protected HTTP client additionally bounds retries (SSRF_DEFAULT_MAX_RETRIES) and response size (buffer_response max_response_bytes), preventing unbounded retry storms or oversized-response costs on outbound calls to paid third-party APIs/model providers.","vulnerability_details":null,"fix_guidance":"Continue enforcing plan-based quotas (FeatureService) on any newly added billable/model-invocation endpoint; ensure per-tenant model-call quotas are consistently checked before each LLM/tool invocation.","why_this_matters":"Prevents cost-based disruption.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/core/helper/ssrf_proxy.py","start_line":226,"end_line":284,"snippet":"    retries = 0\n    while retries <= max_retries:\n        ...\n        retries += 1\n        if retries <= max_retries:\n            time.sleep(BACKOFF_FACTOR * (2 ** (retries - 1)))\n    raise MaxRetriesExceededError(f\"Reached maximum retries ({max_retries}) for URL {url}\")"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0013","rule_version":"1.1.0","rule_name":"Tool Output Sanitization & Injection Containment","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"low","rationale":"Dify's CoT agent runner assigns tool invocation results verbatim to scratchpad.observation and then interpolates that value verbatim into the 'Observation:' section of model-visible assistant history (api/core/agent/cot_agent_runner.py), with no sanitization, escaping, role-marker stripping, or untrusted-return annotation applied anywhere between the tool-output assignment and the point it re-enters the model's context. This allows tool-sourced content (e.g. a malicious web page or API response surfaced through a fetch/scrape-style tool) to inject text that the model treats as part of its own reasoning history, with no host-enforced trust boundary on that path.","vulnerability_details":null,"fix_guidance":"Add a sanitization/escaping layer for tool outputs before they are concatenated into the agent scratchpad: strip or neutralize control characters and fake role/system markers, and wrap tool output in an explicit untrusted-content envelope before it is interpolated into the Observation: section in cot_agent_runner.py and fc_agent_runner.py.","why_this_matters":"Tool outputs are a primary prompt-injection vector. Third-party content (web pages, files, API responses) may contain text crafted to override instructions or impersonate system/tool messages. Without a host-enforced envelope, sanitization, and an explicit untrusted-return signal, the model can be coerced into executing attacker-controlled directives, leaking secrets, or chaining further tool calls on behalf of the adversary.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0013 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/agent/cot_agent_runner.py","start_line":244,"end_line":252,"snippet":"                    tool_invoke_response, tool_invoke_meta = self._handle_invoke_action(\n                        session=session,\n                        action=scratchpad.action,\n                        tool_instances=tool_instances,\n                        message_file_ids=message_file_ids,\n                        trace_manager=trace_manager,\n                    )\n                    scratchpad.observation = tool_invoke_response\n                    scratchpad.agent_response = tool_invoke_response"},{"path":"api/core/agent/cot_agent_runner.py","start_line":400,"end_line":413,"snippet":"    def _format_assistant_message(self, agent_scratchpad: list[AgentScratchpadUnit]) -> str:\n        \"\"\"\n        format assistant message\n        \"\"\"\n        message = \"\"\n        for scratchpad in agent_scratchpad:\n            if scratchpad.is_final():\n                message += f\"Final Answer: {scratchpad.agent_response}\"\n            else:\n                message += f\"Thought: {scratchpad.thought}\\n\\n\"\n                if scratchpad.action_str:\n                    message += f\"Action: {scratchpad.action_str}\\n\\n\"\n                if scratchpad.observation:\n                    message += f\"Observation: {scratchpad.observation}\\n\\n\""}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0014","rule_version":"1.2.0","rule_name":"CI/CD Workflow Script Injection","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Reviewed all workflows using dangerous triggers (workflow_run, repository_dispatch, workflow_dispatch) for attacker-controlled interpolation into shell run blocks. The i18n translation pipeline (trigger-i18n-sync.yml -> translate-i18n-claude.yml) passes attacker-influenceable data (PR/commit content) only through typed client_payload fields consumed as quoted shell variables (BASE_SHA=\"...\"), and the PR-coverage-comment workflows (pyrefly-diff-comment.yml, pyrefly-type-coverage-comment.yml) using workflow_run only check out the DEFAULT branch (trusted code) and fetch data via the GitHub API/artifacts rather than interpolating untrusted strings directly into a run: block. The 12 semgrep yaml.github-actions.security.run-shell-injection hits (accessibility-e2e.yml, cli-e2e.yml, pyrefly-diff.yml, pyrefly-type-coverage.yml, style.yml, translate-i18n-claude.yml) all resolve to either workflow_dispatch 'choice' inputs enforced by a fixed options list, maintainer-only manual dispatch, values interpolated only within an already-double-quoted shell string consumed as data (not re-parsed/eval'd), or SHA values resolved via git/GitHub Actions context rather than free-form attacker text. No case shows a continuous source-to-sink path from an untrusted field to an unguarded shell execution with secrets/write-token exposure.","vulnerability_details":null,"fix_guidance":"Continue pinning actions by SHA (already done); keep workflow_dispatch choice-type inputs server-enforced; avoid ever switching the i18n pipeline to pull_request_target without validating client_payload fields against a strict allowlist/regex before use.","why_this_matters":"CI/CD script injection can execute attacker-controlled commands with workflow tokens, repository secrets, trusted-runner access, artifact or cache authority, and release or deployment privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":".github/workflows/translate-i18n-claude.yml","start_line":75,"end_line":95,"snippet":"if [ \"${{ github.event_name }}\" = \"repository_dispatch\" ]; then\n  BASE_SHA=\"${{ github.event.client_payload.base_sha }}\"\n  HEAD_SHA=\"${{ github.event.client_payload.head_sha }}\"\n  CHANGED_FILES=\"${{ github.event.client_payload.changed_files }}\"\n  ...\n  if [ -n \"${{ github.event.client_payload.changes_base64 }}\" ]; then\n    printf '%s' '${{ github.event.client_payload.changes_base64 }}' | base64 -d > /tmp/i18n-changes.json"},{"path":".github/workflows/pyrefly-type-coverage-comment.yml","start_line":20,"end_line":29,"snippet":"if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.pull_requests[0].head.repo.full_name != github.repository }}\nsteps:\n  - name: Checkout default branch (trusted code)\n    uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-R0001","rule_version":"1.3.0","rule_name":"Weaponization: Malicious-Purpose Artifact (Offensive Capability by Design)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Investigated all 3 YARA matches flagged repo-wide. (1) api/configs/remote_settings_sources/apollo/utils.py:46-47 'Zeus_Malware_Reverse_Shell' -- this is a UDP connect()-to-8.8.8.8 trick used purely to discover the machine's outbound-facing local IP address for Apollo remote-config client registration; there is no socket-to-shell wiring, no subprocess/exec, no network listener -- a benign, extremely common Python idiom misidentified by the socket+connect co-occurrence heuristic. (2) dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py:57-61 -- a pytest fixture that spawns a throwaway, loopback-bound (127.0.0.1) redis-server subprocess for an integration test and tears it down in a finally block; it is test infrastructure, not an operational reverse shell (no socket piped to a shell, no attacker-facing listener). (3) e2e/AGENTS.md:26-56 'tool_poisoning secondary-objective wide-span' match itself carries confidence 25 and is explicitly annotated by the scanner as 'likely ordinary prose, not a poisoned tool description' -- reading the cited span confirms it is contributor-facing documentation about E2E test runner architecture (tags, seeds, cleanup) with zero instructions directing model/agent behavior, no injected directives, and no secondary objective. Dify's overall product is a LLM app-development/agent-orchestration platform (not an offensive-security tool), and none of its shipped code, skills, or agent instructions direct generation of malware/exploits/credential theft or mass-abuse tooling.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact whose purpose is to weaponize the agent -- to produce malware, steal credentials, evade defenses, or run attacks at scale -- is dangerous regardless of how securely it is built; posture controls (auth, input validation, least privilege) cannot make a weapon safe, which is why a confirmed weaponization finding caps the trust verdict to `blocked` rather than being averaged against a good posture score. Catching malicious PURPOSE is a distinct safety control, and it must be conservative because offensive capability is dual-use: legitimate pentest, CTF, defensive, and research work must abstain (UNKNOWN), never block -- unless the artifact itself hides from the people who install, run or audit it.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"api/configs/remote_settings_sources/apollo/utils.py","start_line":42,"end_line":52,"snippet":"def init_ip() -> str:\n    ip = \"\"\n    s = None\n    try:\n        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n        s.connect((\"8.8.8.8\", 53))\n        ip = s.getsockname()[0]\n    finally:\n        if s:\n            s.close()\n    return ip","vulnerability":{}},{"path":"dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py","start_line":50,"end_line":76,"snippet":"@pytest.fixture\ndef redis_url() -> Iterator[str]:\n    \"\"\"Start an isolated Redis when the binary is available locally.\"\"\"\n    redis_server = shutil.which(\"redis-server\")\n    if redis_server is None:\n        pytest.skip(\"redis-server is required for run terminal integration tests\")\n    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as probe:\n        probe.bind((\"127.0.0.1\", 0))\n        port = probe.getsockname()[1]\n    process = subprocess.Popen(  # noqa: S603\n        [redis_server, \"--bind\", \"127.0.0.1\", \"--port\", str(port), \"--save\", \"\", \"--appendonly\", \"no\"],\n        stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT,\n    )","vulnerability":{}},{"path":"e2e/AGENTS.md","start_line":26,"end_line":56,"snippet":"- Generate disposable resource names through `support/naming.ts` with an `E2E` prefix.\n- Keep deterministic upload material in `fixtures/test-materials/`...\n- Seed scripts own shared long-lived fixtures; scenarios own disposable resources...\n- Use typed `DifyWorld` cleanup fields... Registered callbacks run LIFO after typed cleanup queues.\n- Remove child and referencing resources before owners. Attach cleanup failures to the report instead of swallowing them.\n(contributor-facing E2E test architecture doc; no agent-directed secondary objective)","vulnerability":{}}],"affected_tools":null,"component_name":null}],"component_tools":[],"summary":{"high_level_risks":["Known CVEs in pinned dependency versions, notably chromadb==0.5.20 (CVE-2026-45833 CRITICAL, plus two HIGH CVEs) with no fix currently available, and additional HIGH CVEs in pydantic-ai-slim, golang.org/x/mod, and socket.io-parser (ATR-C0007, HIGH).","Hardcoded default secrets shipped in docker-compose.yaml/docker-compose-template.yaml (PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY, DIFY_AGENT_SERVER_SECRET_KEY, MINIO_SECRET_KEY) take effect on any deployment that does not override them, giving a publicly-known static credential for internal plugin-daemon/inner-API/object-storage channels (ATR-C0002, HIGH).","Dify's app-as-MCP-server feature (api/controllers/mcp/mcp.py, api/core/mcp/server/streamable_http.py) exposes a remote streamable-HTTP MCP endpoint gated solely by a 16-char CSPRNG 'server_code' embedded in the URL path -- there is no standard Authorization/Bearer check, no OAuth 2.1/PKCE flow, and no rate limiting on the server_code lookup, making it a bearer-URL style credential with brute-force risk and typical URL-secret leakage via proxy/access logs and Referer headers.","The `mcp` Flask blueprint is the only blueprint registered in extensions/ext_blueprints.py with NO CORS/Origin policy applied, leaving no Origin/Host validation in front of a host-side-effectful endpoint that invokes full Dify app generation.","A password-reset / sensitive auth token is logged in full at WARNING level in api/libs/helper.py TokenManager.get_token_data, exposing a usable account-takeover credential to anyone with log access (ATR-C0005, MEDIUM).","The reference deployment ships insecure-by-default transport settings: the API container's gunicorn process binds 0.0.0.0 with no TLS, and NGINX_HTTPS_ENABLED defaults to false in docker/docker-compose.yaml / docker/.env.example, making TLS opt-in rather than mandatory.","Insecure deserialization (pickle) used for the RAG embedding cache column; the stored BLOB has no integrity binding, so any future write primitive against that column becomes an RCE vector (ATR-C0009).","Auxiliary/dev container images (docker/couchbase-server/Dockerfile, .devcontainer/Dockerfile) run as root and/or use a floating ':latest' base tag, unlike the hardened production api/Dockerfile and web/Dockerfile (ATR-C0006, MEDIUM).","Tool-output-to-LLM-context sanitization (ATR-C0013) could not be fully verified across the plugin-daemon boundary; the agent scratchpad/Observation concatenation path and plugin-daemon tool-result boundary lack confirmed control-character/injection-marker stripping.","skills/difyctl destructive operations (remove/revoke) have no enforced confirmation prompt, relying on the model volunteering confirmation rather than enforcing it in the agent harness."],"top_remediations":["Upgrade or disable the chromadb vector-store provider pending a fix for CVE-2026-45833/45830/45831; upgrade pydantic-ai-slim, golang.org/x/mod, and socket.io-parser to patched versions.","Remove hardcoded fallback secret values from docker-compose*.yaml; fail-fast or auto-generate random secrets on first run instead.","Add OAuth 2.1 (with PKCE) as the primary authorization mechanism for the inbound MCP server endpoint, or at minimum require a standard Authorization header bearer token in addition to server_code, plus rate limiting/lockout on failed server_code lookups.","Apply an explicit CORS/Origin allowlist (or host-based validation) to the `mcp` Flask blueprint consistent with the other blueprints in extensions/ext_blueprints.py.","Stop logging raw token values in api/libs/helper.py TokenManager.get_token_data; log only a hash/prefix or the Redis key.","Make TLS mandatory (NGINX_HTTPS_ENABLED default true) for any deployment exposing MCP/API endpoints beyond localhost, and default DIFY_BIND_ADDRESS to loopback for standalone (non-compose) runs.","Replace pickle-based embedding serialization with a safe format (numpy tobytes/JSON) as defense-in-depth against any future write-path compromise.","Add non-root USER directives and pin a specific (non-'latest') base image tag for docker/couchbase-server/Dockerfile and .devcontainer/Dockerfile; add HEALTHCHECK to all shipped Dockerfiles.","Conduct a focused audit of the tool-output-to-context concatenation path (agent scratchpad Observation field) and the plugin-daemon boundary for control-character/prompt-injection-marker sanitization.","Harden skills/difyctl's destructive-operation guidance into an enforced confirmation gate in the surrounding agent harness."]},"rollup":{"component_findings_count":{"vulnerable":0,"secure":6,"not_applicable":2},"repo_findings_inherited_count":{"vulnerable":7,"secure":8,"not_applicable":0},"component_tools_count":{},"worst_case_severity":"HIGH"},"trust_scores":{"repo_level":{"score":25,"tier":"critical","capability_band":"extreme","score_confidence":"low","score_interval":{"low":8,"high":42},"factors":["ATR-M0003 HIGH","ATR-M0009 HIGH","ATR-C0001 HIGH","ATR-C0002 HIGH","ATR-C0005 MEDIUM","ATR-C0006 MEDIUM","ATR-C0007 HIGH","ATR-C0011 HIGH","ATR-C0013 HIGH"]},"component_level":{"score":100,"tier":"high","capability_band":"minimal","score_confidence":"high","score_interval":{"low":96,"high":100},"factors":[]}}},{"artifact_version":"2.0","component":{"component_type":"skill","component_name":"skills-plugins/.agents/skills/frontend-testing","component_path":".agents/skills/frontend-testing","metadata":{"manifest":"SKILL.md"}},"scan_provenance":{"scanned_at":"2026-10-14T23:52:06.135Z","resolved_ref":"f77facfe6520ed379d723288aed0b4806ad76143","resolved_ver":null},"repo_context":{"repo_url":"https://github.com/langgenius/dify","languages":["Python","TypeScript","JavaScript","Go","Dockerfile"],"transports_detected":["stdio","sse","streamable_http"],"deployment_artifacts":["docker/docker-compose.yaml","docker/Dockerfile","api/Dockerfile","web/Dockerfile","docker/docker-compose.middleware.yaml"],"provenance":{"publisher":"langgenius","publisher_verified":true,"signed_build":false,"dependency_cve_count":34,"maintenance_active":true,"declared_policy":false}},"component_findings":[{"rule_id":"ATR-P0001","rule_version":"1.0.0","rule_name":"Capability Transparency: Declared Purpose vs. Actual Behavior (Shadow Features)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Short skill that only routes to web/docs/test.md or packages/dify-ui/docs/testing.md for test-writing guidance; content matches declared scope with no hidden behavior.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Install-time trust is granted from the artifact's self-description, so any bundled capability the description does not disclose -- network egress, credential reads, or subprocess execution -- runs as an unconsented backdoor with the host agent's full privileges.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-testing/SKILL.md","start_line":1,"end_line":13,"snippet":"---\nname: frontend-testing\ndescription: Use when writing or changing Vitest or React Testing Library tests under `web/` or `packages/dify-ui/`, or when the user explicitly requests frontend test strategy, including evaluation of an existing strategy. Do not use for frontend code-review-only requests, general testability discussion, Python tests, or Cucumber/Playwright E2E.\n---\n\n# Frontend Testing\n\nRead the testing policy for the package that owns the changed tests:\n\n- `web/`: `web/docs/test.md` owns Web test boundaries, environments, and commands.\n- `packages/dify-ui/`: `packages/dify-ui/docs/testing.md` owns primitive test boundaries, environments, Storybook, and commands."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-testing"},{"rule_id":"ATR-P0002","rule_version":"1.0.0","rule_name":"Consent Suppression and Guardrail / Human-in-the-Loop Subversion via Trusted Instructions","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"No instructions related to suppressing confirmations or guardrails; it only routes to the owning doc's test policy and explicitly says to report any material verification gap rather than hide it.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Because a skill/plugin instruction body is ingested as trusted first-party context, consent- or oversight-suppressing prose inherits the host's full authority and turns a passive package into a self-authorizing backdoor that strips the human-in-the-loop control from every action it can reach.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-testing/SKILL.md","start_line":11,"end_line":13,"snippet":"This skill adds no parallel policy or check sequence. Follow the selected owner's requirements, including its validation commands. Recommend deleting low-value tests as readily as adding missing behavior coverage, and report the contract verified and any material verification gap."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-testing"},{"rule_id":"ATR-P0003","rule_version":"1.2.0","rule_name":"Host-Credential and Conversation-Context Harvesting and Exfiltration","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"The skill performs no host-credential or conversation/memory read paired with an outbound channel; it only routes to local testing-policy documents under web/ and packages/dify-ui/. Because the harvest subject this rule evaluates does not exist in this component, NOT_APPLICABLE is the correct classification.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin that couples a host-credential or live-conversation read with an outbound channel turns an ostensibly benign helper into an autonomous exfiltration agent, leaking long-lived secrets, session tokens, and confidential prompt context to an attacker on every invocation across every tool the artifact serves.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-testing/SKILL.md","start_line":6,"end_line":13,"snippet":"# Frontend Testing\n\nRead the testing policy for the package that owns the changed tests:\n\n- `web/`: `web/docs/test.md` owns Web test boundaries, environments, and commands.\n- `packages/dify-ui/`: `packages/dify-ui/docs/testing.md` owns primitive test boundaries, environments, Storybook, and commands.\n\nThis skill adds no parallel policy or check sequence. Follow the selected owner's requirements, including its validation commands. Recommend deleting low-value tests as readily as adding missing behavior coverage, and report the contract verified and any material verification gap."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-testing"},{"rule_id":"ATR-P0004","rule_version":"1.1.0","rule_name":"Format-Native Out-of-Band Execution and Host Control-Plane Persistence","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"The component ships only SKILL.md prose and invokes no bundled script, hook, entry point, host configuration, executable environment assignment, or persistence channel, so the format-native execution primitive this rule evaluates is absent, making NOT_APPLICABLE the correct classification.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Format-native execution and control-plane writes bypass the model's reasoning loop, converting a single install approval into durable, self-reinjecting code execution that can MITM the host agent's own model endpoint and silently subvert every subsequent tool call.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-testing/SKILL.md","start_line":6,"end_line":13,"snippet":"# Frontend Testing\n\nRead the testing policy for the package that owns the changed tests:\n\n- `web/`: `web/docs/test.md` owns Web test boundaries, environments, and commands.\n- `packages/dify-ui/`: `packages/dify-ui/docs/testing.md` owns primitive test boundaries, environments, Storybook, and commands.\n\nThis skill adds no parallel policy or check sequence."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-testing"},{"rule_id":"ATR-P0005","rule_version":"1.0.0","rule_name":"Over-Declared / Over-Privileged Artifact Manifest Scope","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"Narrowly scoped to Vitest/RTL test authoring under web/ or packages/dify-ui/.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact that self-declares host privilege far beyond its stated function -- or hides executable reach inside a passive-looking package -- gives a single install a blast radius the operator never scoped, so any later mistake, compromise, or misconfiguration detonates across resources the artifact never needed.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-testing/SKILL.md","start_line":3,"end_line":3,"snippet":"description: Use when writing or changing Vitest or React Testing Library tests under `web/` or `packages/dify-ui/`, or when the user explicitly requests frontend test strategy, including evaluation of an existing strategy. Do not use for frontend code-review-only requests, general testability discussion, Python tests, or Cucumber/Playwright E2E."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-testing"},{"rule_id":"ATR-P0006","rule_version":"1.1.0","rule_name":"Injection and Concealed Directives in Skill/Plugin Manifest and Instruction Text","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"low","rationale":"No concealed/injected directives found; short routing skill.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin's always-loaded manifest and instruction carriers (frontmatter/body, `description_for_model`, Gemini `FunctionDeclaration.description` / Vertex AI extension `manifest` / ADK agent `instruction`, tool docstrings, JSON-Schema descriptions) are concatenated into the host agent prompt at operator privilege, so a directive that is hidden with non-printing codepoints, disguised with a homoglyph, forged with role-control tokens, or masked from the rendered view silently commandeers model behavior toward attacker-chosen actions across every tool the artifact serves -- with no code execution required and nothing visible to a reviewer reading the rendered text.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-testing/SKILL.md","start_line":1,"end_line":13,"snippet":"(full file reviewed; plain markdown prose, no hidden/zero-width characters or concealed directives found)"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-testing"},{"rule_id":"ATR-P0007","rule_version":"1.0.0","rule_name":"Skill/Plugin Package Provenance, Integrity, and Post-Approval Mutation (Rug-Pull)","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"In-tree skill versioned with the repo; no separate distribution/update channel.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill/plugin reviewed once and then trusted indefinitely becomes a rug-pull vector when its OWN model-facing instruction body, declared scope, or manifest can be live-swapped or silently mutated after approval -- without an approval-time digest that is re-compared on load and re-consent on any change, a publisher (or an attacker who compromises the distribution channel) can rewrite the artifact's trusted instructions or widen its tool scope under authority the host already granted, turning an approved package into an exfiltration or unauthorized-action backdoor.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-testing/SKILL.md","start_line":1,"end_line":4,"snippet":"---\nname: frontend-testing\ndescription: Use when writing or changing Vitest or React Testing Library tests under `web/` or `packages/dify-ui/`, or when the user explicitly requests frontend test strategy, including evaluation of an existing strategy. Do not use for frontend code-review-only requests, general testability discussion, Python tests, or Cucumber/Playwright E2E.\n---"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-testing"},{"rule_id":"ATR-P0008","rule_version":"1.0.0","rule_name":"Skill/Plugin Impersonation, Typosquatting & Publisher Spoofing","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"First-party, in-tree skill with a plain descriptive name; no impersonation.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Impersonation is the entry point of the agentic supply chain (OWASP LLM ASI04 / MITRE ATT&CK T1195): a skill or plugin installed on the strength of a familiar name inherits the host agent's execution context before any payload runs. The deception front-runs trust, so catching the identity lie breaks the chain at the cheapest point -- and it is independent of whether the current code is benign, because the same trusted-looking name can ship a payload in the next version.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/frontend-testing/SKILL.md","start_line":2,"end_line":2,"snippet":"name: frontend-testing"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/frontend-testing"}],"repo_findings_inherited":[{"rule_id":"ATR-C0001","rule_version":"1.2.0","rule_name":"Unrestricted Network Fetch / SSRF","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The outbound HTTP client used for custom tool invocations and HTTP Request nodes falls back to a direct httpx client whenever SSRF_PROXY_HTTP_URL/SSRF_PROXY_HTTPS_URL are unset (they default to None in api/core/helper/ssrf_proxy.py), meaning the SSRF-blocking Squid proxy is an opt-in deployment choice rather than a code-enforced control. The custom-tool invocation path (api/core/tools/custom_tool/tool.py) dispatches the tool's configured server URL through this client with no in-code destination gate (no check against private/loopback/link-local ranges) before the request is sent. A deployment that does not explicitly configure the SSRF proxy environment variables -- which is possible under the project's supported configuration surface, not just the shipped Compose example -- allows a custom tool's configured URL to reach internal or private network destinations unguarded.","vulnerability_details":null,"fix_guidance":"Enforce SSRF protection in code rather than relying solely on an external proxy default: add a destination-validation check (reject private/loopback/link-local IP ranges) directly in the HTTP client construction path in api/core/helper/ssrf_proxy.py so protection applies even when SSRF_PROXY_HTTP_URL/HTTPS_URL are unset, and add an explicit gate in the custom-tool dispatch path in api/core/tools/custom_tool/tool.py before the configured server URL is fetched.","why_this_matters":"Enables internal pivoting and data exfiltration.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/tools/custom_tool/tool.py","start_line":65,"end_line":76,"snippet":"        self, credentials: dict[str, Any], parameters: dict[str, Any], format_only: bool = False\n    ) -> str:\n        \"\"\"\n        validate the credentials for Api tool\n        \"\"\"\n        # assemble validate request and request parameters\n        headers = self.assembling_request(parameters)\n\n        if format_only:\n            return \"\"\n\n        response = self.do_http_request(self.api_bundle.server_url, self.api_bundle.method, headers, parameters)"},{"path":"api/configs/feature/__init__.py","start_line":725,"end_line":738,"snippet":"    SSRF_PROXY_ALL_URL: str | None = Field(\n        description=\"Proxy URL for HTTP or HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTP_URL: str | None = Field(\n        description=\"Proxy URL for HTTP requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTPS_URL: str | None = Field(\n        description=\"Proxy URL for HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )"},{"path":"api/core/helper/ssrf_proxy.py","start_line":86,"end_line":101,"snippet":"def _build_ssrf_client(verify: bool) -> httpx.Client:\n    if dify_config.SSRF_PROXY_ALL_URL:\n        return httpx.Client(\n            proxy=dify_config.SSRF_PROXY_ALL_URL,\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    if dify_config.SSRF_PROXY_HTTP_URL and dify_config.SSRF_PROXY_HTTPS_URL:\n        return httpx.Client(\n            mounts=_create_proxy_mounts(verify=verify),\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    return httpx.Client(verify=verify, limits=_SSRF_CLIENT_LIMITS)"},{"path":"api/core/tools/custom_tool/tool.py","start_line":292,"end_line":306,"snippet":"            raise ValueError(f\"Invalid http method {method}\")\n        response: httpx.Response = _METHOD_MAP[\n            method_lc\n        ](  # https://discuss.python.org/t/type-inference-for-function-return-types/42926\n            url,\n            max_retries=0,\n            params=params,\n            headers=headers,\n            cookies=cookies,\n            data=body,\n            files=files,\n            timeout=API_TOOL_DEFAULT_TIMEOUT,\n            follow_redirects=True,\n        )\n        return response"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0002","rule_version":"1.3.2","rule_name":"Static Secrets","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"docker-compose.yaml and docker-compose-template.yaml ship REAL-LOOKING hardcoded default secret VALUES for inter-service authentication that take effect the moment an operator runs `docker compose up` without overriding the env vars: PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY default to the fixed base64-looking string 'lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi' / 'QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1' (identical across every public clone of the repo), DIFY_AGENT_SERVER_SECRET_KEY defaults to the fixed hex string '0123456789abcdef0123456789abcdef', and MINIO_SECRET_KEY defaults to 'minioadmin'. These are not placeholder/empty values in a .env.example (which would be the negative case) -- they are live fallback defaults baked directly into the shipped docker-compose YAML that is the project's documented one-command quick-start path, so any internet-reachable deployment that forgets to override them authenticates its internal plugin-daemon/inner-API channel and MinIO object storage with a publicly known static secret. This matches the rule's positive_indicator 'default changeme-style value' and its CWE-798/312 class directly.","vulnerability_details":"docker/docker-compose.yaml uses shell-style `${VAR:-default}` substitution where `default` is a concrete, realistic-looking secret baked into the committed YAML (not a placeholder like 'changeme' or empty string), for PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY/INNER_API_KEY_FOR_PLUGIN, DIFY_AGENT_SERVER_SECRET_KEY, and MINIO_SECRET_KEY. Any deployment that does not explicitly set these environment variables before `docker compose up` will run with these known-to-the-public credentials protecting the plugin-daemon <-> API inner channel and the MinIO backing store, letting anyone with network access to those internal ports (e.g. via SSRF, container escape, or a misconfigured network) authenticate as a trusted internal service.","fix_guidance":"Remove hardcoded fallback values from docker-compose for PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY/DIFY_AGENT_SERVER_SECRET_KEY/MINIO_SECRET_KEY; instead fail fast (or auto-generate a random secret at first-run via an init script) when the operator has not supplied a value, so no installation ever runs with a secret value that is identical and publicly known across every Dify deployment.","why_this_matters":"Plaintext secrets are easily exfiltrated.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0002 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/docker-compose.yaml","start_line":600,"end_line":604,"snippet":"      SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}\n      ...\n      DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":688,"end_line":688,"snippet":"      DIFY_AGENT_SERVER_SECRET_KEY: ${DIFY_AGENT_SERVER_SECRET_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":1104,"end_line":1104,"snippet":"      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}"},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":16,"end_line":17,"snippet":"PLUGIN_DAEMON_KEY=[REDACTED]\nPLUGIN_DIFY_INNER_API_KEY=[REDACTED]"},{"path":"api/Dockerfile","start_line":57,"end_line":57,"snippet":"ARG NODESOURCE_KEY_FPR=6F71F525282841EEDAF851B42F59B5F99B1BE0B4","vulnerability":{}},{"path":"api/.env.example","start_line":239,"end_line":239,"snippet":"# Prefix used to create collection name in vector database","vulnerability":{}},{"path":"api/.env.example","start_line":701,"end_line":701,"snippet":"POSITION_TOOL_EXCLUDES=","vulnerability":{}},{"path":"api/.env.example","start_line":715,"end_line":715,"snippet":"PLUGIN_MODEL_PROVIDERS_CACHE_TTL=86400","vulnerability":{}},{"path":"api/knowledge-fs-contract.lock.json","start_line":3,"end_line":3,"snippet":"  \"openapiSha256\": \"f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb\",","vulnerability":{}},{"path":"api/providers/vdb/vdb-alibabacloud-mysql/pyproject.toml","start_line":10,"end_line":10,"snippet":"alibabacloud_mysql = \"dify_vdb_alibabacloud_mysql.alibabacloud_mysql_vector:AlibabaCloudMySQLVectorFactory\"","vulnerability":{}},{"path":"api/services/agent/package_resource_exporter.py","start_line":257,"end_line":257,"snippet":"                    try:","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":30,"end_line":30,"snippet":"DIFY_AGENT_PLUGIN_DAEMON_API_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":36,"end_line":36,"snippet":"DIFY_AGENT_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":91,"end_line":91,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"dify-agent/docs/dify-agent/guide/index.md","start_line":151,"end_line":151,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/worker.env.example","start_line":10,"end_line":10,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/api.env.example","start_line":13,"end_line":13,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":165,"end_line":165,"snippet":"WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":174,"end_line":174,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":224,"end_line":224,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/.env.example","start_line":234,"end_line":234,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":280,"end_line":280,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":17,"end_line":17,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/dify-agent.env.example","start_line":118,"end_line":118,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/security.env.example","start_line":28,"end_line":29,"snippet":"OTLP_API_KEY=\nBAIDU_VECTOR_DB_API_KEY=dify","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":133,"end_line":133,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":166,"end_line":166,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":179,"end_line":179,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/vectorstores/weaviate.env.example","start_line":11,"end_line":11,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":204,"end_line":205,"snippet":"SENDGRID_API_KEY=\nINVITE_EXPIRY_HOURS=72","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":495,"end_line":495,"snippet":"VECTOR_STORE=weaviate","vulnerability":{}},{"path":"docker/docker-compose.yaml","start_line":1273,"end_line":1273,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"docker/docker-compose-template.yaml","start_line":1267,"end_line":1267,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"packages/contracts/generated/knowledge-fs/metadata.gen.ts","start_line":4,"end_line":5,"snippet":"export const knowledgeFsSourceOpenapiSha256 =\n  'f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb'","vulnerability":{}},{"path":"web/public/vs/editor/editor.main.js","start_line":631,"end_line":631,"snippet":"`))}}e.Trace=t}),define(ne[689],se([1,0,8,247,140]),function(oe,e,d,k,I){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.BaseResolvedKeybinding=void 0;class E extends I.ResolvedKeybinding{constructor(m,_){if(super(),_.length===0)throw(0,d.illegalArgument)(\"chords\");this._os=m,this._chords=_}getLabel(){return k.UILabelProvider.toLabel(this._os,this._chords,m=>this._getLabel(m))}getAriaLabel(){return k.AriaLabelProvider.toLabel(this._os,this._chords,m=>this._getAriaLabel(m))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:k.ElectronAcceleratorLabelProvider.toLabel(this._os,this._chords,m=>this._getElectronAccelerator(m))}getUserSettingsLabel(){return k.UserSettingsLabelProvider.toLabel(this._os,this._chords,m=>this._getUserSettingsLabel(m))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(m=>this._getChord(m))}_getChord(m){return new I.ResolvedChord(m.ctrlKey,m.shiftKey,m.altKey,m.metaKey,this._getLabel(m),this._getAriaLabel(m))}getDispatchChords(){return this._chords.map(m=>this._getChordDispatch(m))}getSingleModifierDispatchChords(){return this._chords.map(m=>this._getSingleModifierChordDispatch(m))}}e.BaseResolvedKeybinding=E}),define(ne[31],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,d.createDecorator)(\"keybindingService\")}),define(ne[391],se([1,0,5,174,2,31]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorHoverStatusBar=void 0;const y=d.$;let m=class extends I.Disposable{get hasContent(){return this._hasContent}constructor(b){super(),this._keybindingService=b,this.actions=[],this._hasContent=!1,this.hoverElement=y(\"div.hover-row.status-bar\"),this.hoverElement.tabIndex=0,this.actionsElement=d.append(this.hoverElement,y(\"div.actions\"))}addAction(b){const p=this._keybindingService.lookupKeybinding(b.commandId),n=p?p.getLabel():null;this._hasContent=!0;const o=this._register(k.HoverAction.render(this.actionsElement,b,n));return this.actions.push(o),o}append(b){const p=d.append(this.actionsElement,b);return this._hasContent=!0,p}};e.EditorHoverStatusBar=m,e.EditorHoverStatusBar=m=ke([ce(0,E.IKeybindingService)],m)}),define(ne[690],se([1,0,5,31,670,12,28,61,20,174,6]),function(oe,e,d,k,I,E,y,m,_,b,p){\"use strict\";var n;Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContentHoverWidget=void 0;const o=30,t=6;let i=class extends I.ResizableContentWidget{static{n=this}static{this.ID=\"editor.contrib.resizableContentHoverWidget\"}static{this._lastDimensions=new d.Dimension(0,0)}get isVisibleFromKeyboard(){return this._renderedHover?.source===1}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(c,l,a,r,u){const C=c.getOption(67)+8,f=150,h=new d.Dimension(f,C);super(c,h),this._configurationService=a,this._accessibilityService=r,this._keybindingService=u,this._hover=this._register(new b.HoverWidget),this._onDidResize=this._register(new p.Emitter),this.onDidResize=this._onDidResize.event,this._minimumSize=h,this._hoverVisibleKey=_.EditorContextKeys.hoverVisible.bindTo(l),this._hoverFocusedKey=_.EditorContextKeys.hoverFocused.bindTo(l),d.append(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex=\"50\",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(w=>{w.hasChanged(50)&&this._updateFont()}));const v=this._register(d.trackFocus(this._resizableNode.domNode));this._register(v.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(v.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return n.ID}static _applyDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.width=r,c.style.height=u}_setContentsDomNodeDimensions(c,l){const a=this._hover.contentsDomNode;return n._applyDimensions(a,c,l)}_setContainerDomNodeDimensions(c,l){const a=this._hover.containerDomNode;return n._applyDimensions(a,c,l)}_setHoverWidgetDimensions(c,l){this._setContentsDomNodeDimensions(c,l),this._setContainerDomNodeDimensions(c,l),this._layoutContentWidget()}static _applyMaxDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.maxWidth=r,c.style.maxHeight=u}_setHoverWidgetMaxDimensions(c,l){n._applyMaxDimensions(this._hover.contentsDomNode,c,l),n._applyMaxDimensions(this._hover.containerDomNode,c,l),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-maxWidth\",typeof c==\"number\"?`${c}px`:c),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(c){this._setHoverWidgetMaxDimensions(\"none\",\"none\");const l=c.width,a=c.height;this._setHoverWidgetDimensions(l,a)}_updateResizableNodeMaxDimensions(){const c=this._findMaximumRenderingWidth()??1/0,l=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new d.Dimension(c,l),this._setHoverWidgetMaxDimensions(c,l)}_resize(c){n._lastDimensions=new d.Dimension(c.width,c.height),this._setAdjustedHoverWidgetDimensions(c),this._resizableNode.layout(c.height,c.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const c=this._renderedHover?.showAtPosition;if(c)return this._positionPreference===1?this._availableVerticalSpaceAbove(c):this._availableVerticalSpaceBelow(c)}_findMaximumRenderingHeight(){const c=this._findAvailableSpaceVertically();if(!c)return;let l=t;return Array.from(this._hover.contentsDomNode.children).forEach(a=>{l+=a.clientHeight}),Math.min(c,l)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty(\"--vscode-hover-whiteSpace\",\"nowrap\"),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-sourceWhiteSpace\",\"nowrap\");const c=Array.from(this._hover.contentsDomNode.children).some(l=>l.scrollWidth>l.clientWidth);return this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-whiteSpace\"),this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-sourceWhiteSpace\"),c}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const c=this._isHoverTextOverflowing(),l=typeof this._contentWidth>\"u\"?0:this._contentWidth-2;return c||this._hover.containerDomNode.clientWidth<l?d.getClientArea(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(c,l){if(!this._renderedHover)return!1;if(this._renderedHover.initialMousePosX===void 0||this._renderedHover.initialMousePosY===void 0)return this._renderedHover.initialMousePosX=c,this._renderedHover.initialMousePosY=l,!1;const a=d.getDomNodePagePosition(this.getDomNode());this._renderedHover.closestMouseDistance===void 0&&(this._renderedHover.closestMouseDistance=s(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,a.left,a.top,a.width,a.height));const r=s(c,l,a.left,a.top,a.width,a.height);return r>this._renderedHover.closestMouseDistance+4?!1:(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,r),!0)}_setRenderedHover(c){this._renderedHover?.dispose(),this._renderedHover=c,this._hoverVisibleKey.set(!!c),this._hover.containerDomNode.classList.toggle(\"hidden\",!c)}_updateFont(){const{fontSize:c,lineHeight:l}=this._editor.getOption(50),a=this._hover.contentsDomNode;a.style.fontSize=`${c}px`,a.style.lineHeight=`${l/c}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName(\"code\")).forEach(u=>this._editor.applyFontInfo(u))}_updateContent(c){const l=this._hover.contentsDomNode;l.style.paddingBottom=\"\",l.textContent=\"\",l.appendChild(c)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const c=Math.max(this._editor.getLayoutInfo().height/4,250,n._lastDimensions.height),l=Math.max(this._editor.getLayoutInfo().width*.66,500,n._lastDimensions.width);this._setHoverWidgetMaxDimensions(l,c)}_render(c){this._setRenderedHover(c),this._updateFont(),this._updateContent(c.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(c){if(!this._editor||!this._editor.hasModel())return;this._render(c);const l=d.getTotalHeight(this._hover.containerDomNode),a=c.showAtPosition;this._positionPreference=this._findPositionPreference(l,a)??1,this.onContentsChanged(),c.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const u=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,b.getHoverAccessibleViewHint)(this._configurationService.getValue(\"accessibility.verbosity.hover\")===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding(\"editor.action.accessibleView\")?.getAriaLabel()??\"\");u&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+\", \"+u)}hide(){if(!this._renderedHover)return;const c=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new d.Dimension(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),c&&this._editor.focus()}_removeConstraintsRenderNormally(){const c=this._editor.getLayoutInfo();this._resizableNode.layout(c.height,c.width),this._setHoverWidgetDimensions(\"auto\",\"auto\")}setMinimumDimensions(c){this._minimumSize=new d.Dimension(Math.max(this._minimumSize.width,c.width),Math.max(this._minimumSize.height,c.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const c=typeof this._contentWidth>\"u\"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new d.Dimension(c,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const c=this._hover.containerDomNode;let l=d.getTotalHeight(c),a=d.getTotalWidth(c);if(this._resizableNode.layout(l,a),this._setHoverWidgetDimensions(a,l),l=d.getTotalHeight(c),a=d.getTotalWidth(c),this._contentWidth=a,this._updateMinimumWidth(),this._resizableNode.layout(l,a),this._renderedHover?.showAtPosition){const r=d.getTotalHeight(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(r,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c-l.lineHeight})}scrollDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c+l.lineHeight})}scrollLeft(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c-o})}scrollRight(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c+o})}pageUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c-l})}pageDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c+l})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};e.ContentHoverWidget=i,e.ContentHoverWidget=i=n=ke([ce(1,E.IContextKeyService),ce(2,y.IConfigurationService),ce(3,m.IAccessibilityService),ce(4,k.IKeybindingService)],i);function s(g,c,l,a,r,u){const C=l+r/2,f=a+u/2,h=Math.max(Math.abs(g-C)-r/2,0),v=Math.max(Math.abs(c-f)-u/2,0);return Math.sqrt(h*h+v*v)}}),define(ne[392],se([1,0,12]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.KeybindingResolver=e.NoMatchingKb=void 0,e.NoMatchingKb={kind:0};const k={kind:1};function I(_,b,p){return{kind:2,commandId:_,commandArgs:b,isBubble:p}}class E{constructor(b,p,n){this._log=n,this._defaultKeybindings=b,this._defaultBoundCommands=new Map;for(const o of b){const t=o.command;t&&t.charAt(0)!==\"-\"&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=E.handleRemovals([].concat(b).concat(p));for(let o=0,t=this._keybindings.length;o<t;o++){const i=this._keybindings[o];if(i.chords.length===0)continue;const s=i.when?.substituteConstants();s&&s.type===0||this._addKeyPress(i.chords[0],i)}}static _isTargetedForRemoval(b,p,n){if(p){for(let o=0;o<p.length;o++)if(p[o]!==b.chords[o])return!1}return!(n&&n.type!==1&&(!b.when||!(0,d.expressionsAreEqualWithConstantSubstitution)(n,b.when)))}static handleRemovals(b){const p=new Map;for(let o=0,t=b.length;o<t;o++){const i=b[o];if(i.command&&i.command.charAt(0)===\"-\"){const s=i.command.substring(1);p.has(s)?p.get(s).push(i):p.set(s,[i])}}if(p.size===0)return b;const n=[];for(let o=0,t=b.length;o<t;o++){const i=b[o];if(!i.command||i.command.length===0){n.push(i);continue}if(i.command.charAt(0)===\"-\")continue;const s=p.get(i.command);if(!s||!i.isDefault){n.push(i);continue}let g=!1;for(const c of s){const l=c.when;if(this._isTargetedForRemoval(i,c.chords,l)){g=!0;break}}if(!g){n.push(i);continue}}return n}_addKeyPress(b,p){const n=this._map.get(b);if(typeof n>\"u\"){this._map.set(b,[p]),this._addToLookupMap(p);return}for(let o=n.length-1;o>=0;o--){const t=n[o];if(t.command===p.command)continue;let i=!0;for(let s=1;s<t.chords.length&&s<p.chords.length;s++)if(t.chords[s]!==p.chords[s]){i=!1;break}i&&E.whenIsEntirelyIncluded(t.when,p.when)&&this._removeFromLookupMap(t)}n.push(p),this._addToLookupMap(p)}_addToLookupMap(b){if(!b.command)return;let p=this._lookupMap.get(b.command);typeof p>\"u\"?(p=[b],this._lookupMap.set(b.command,p)):p.push(b)}_removeFromLookupMap(b){if(!b.command)return;const p=this._lookupMap.get(b.command);if(!(typeof p>\"u\")){for(let n=0,o=p.length;n<o;n++)if(p[n]===b){p.splice(n,1);return}}}static whenIsEntirelyIncluded(b,p){return!p||p.type===1?!0:!b||b.type===1?!1:(0,d.implies)(b,p)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(b,p){const n=this._lookupMap.get(b);if(typeof n>\"u\"||n.length===0)return null;if(n.length===1)return n[0];for(let o=n.length-1;o>=0;o--){const t=n[o];if(p.contextMatchesRules(t.when))return t}return n[n.length-1]}resolve(b,p,n){const o=[...p,n];this._log(`| Resolving ${o}`);const t=this._map.get(o[0]);if(t===void 0)return this._log(\"\\\\ No keybinding entries.\"),e.NoMatchingKb;let i=null;if(o.length<2)i=t;else{i=[];for(let g=0,c=t.length;g<c;g++){const l=t[g];if(o.length>l.chords.length)continue;let a=!0;for(let r=1;r<o.length;r++)if(l.chords[r]!==o[r]){a=!1;break}a&&i.push(l)}}const s=this._findCommand(b,i);return s?o.length<s.chords.length?(this._log(`\\\\ From ${i.length} keybinding entries, awaiting ${s.chords.length-o.length} more chord(s), when: ${y(s.when)}, source: ${m(s)}.`),k):(this._log(`\\\\ From ${i.length} keybinding entries, matched ${s.command}, when: ${y(s.when)}, source: ${m(s)}.`),I(s.command,s.commandArgs,s.bubble)):(this._log(`\\\\ From ${i.length} keybinding entries, no when clauses matched the context.`),e.NoMatchingKb)}_findCommand(b,p){for(let n=p.length-1;n>=0;n--){const o=p[n];if(E._contextMatchesRules(b,o.when))return o}return null}static _contextMatchesRules(b,p){return p?p.evaluate(b):!0}}e.KeybindingResolver=E;function y(_){return _?`${_.serialize()}`:\"no when condition\"}function m(_){return _.extensionId?_.isBuiltinExtension?`built-in extension ${_.extensionId}`:`user extension ${_.extensionId}`:_.isDefault?\"built-in\":\"user\"}}),define(ne[691],se([1,0,14,8,6,300,2,3,392]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractKeybindingService=void 0;const b=/^(cursor|delete|undo|redo|tab|editor\\.action\\.clipboard)/;class p extends y.Disposable{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:I.Event.None}get inChordMode(){return this._currentChords.length>0}constructor(t,i,s,g,c){super(),this._contextKeyService=t,this._commandService=i,this._telemetryService=s,this._notificationService=g,this._logService=c,this._onDidUpdateKeybindings=this._register(new I.Emitter),this._currentChords=[],this._currentChordChecker=new d.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new d.TimeoutTimer,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(t){this._logging&&this._logService.info(`[KeybindingService]: ${t}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(t,i){const s=this._getResolver().lookupPrimaryKeybinding(t,i||this._contextKeyService);if(s)return s.resolvedKeybinding}dispatchEvent(t,i){return this._dispatch(t,i)}softDispatch(t,i){this._log(\"/ Soft dispatching keyboard event\");const s=this.resolveKeyboardEvent(t);if(s.hasMultipleChords())return console.warn(\"keyboard event should not be mapped to multiple chords\"),_.NoMatchingKb;const[g]=s.getDispatchChords();if(g===null)return this._log(\"\\\\ Keyboard event cannot be dispatched\"),_.NoMatchingKb;const c=this._contextKeyService.getContext(i),l=this._currentChords.map(({keypress:a})=>a);return this._getResolver().resolve(c,l,g)}_scheduleLeaveChordMode(){const t=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-t>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(t,i){switch(this._currentChords.push({keypress:t,label:i}),this._currentChords.length){case 0:throw(0,k.illegalState)(\"impossible\");case 1:this._currentChordStatusMessage=this._notificationService.status(m.localize(1538,\"({0}) was pressed. Waiting for second key of chord...\",i));break;default:{const s=this._currentChords.map(({label:g})=>g).join(\", \");this._currentChordStatusMessage=this._notificationService.status(m.localize(1539,\"({0}) was pressed. Waiting for next key of chord...\",s))}}this._scheduleLeaveChordMode(),E.IME.enabled&&E.IME.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],E.IME.enable()}_dispatch(t,i){return this._doDispatch(this.resolveKeyboardEvent(t),i,!1)}_singleModifierDispatch(t,i){const s=this.resolveKeyboardEvent(t),[g]=s.getSingleModifierDispatchChords();if(g)return this._ignoreSingleModifiers.has(g)?(this._log(`+ Ignoring single modifier ${g} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${g}.`),this._currentSingleModifier=g,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log(\"+ Clearing single modifier due to 300ms elapsed.\"),this._currentSingleModifier=null},300),!1):g===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${g} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(s,i,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[c]=s.getChords();return this._ignoreSingleModifiers=new n(c),this._currentSingleModifier!==null&&this._log(\"+ Clearing single modifier due to other key up.\"),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(t,i,s=!1){let g=!1;if(t.hasMultipleChords())return console.warn(\"Unexpected keyboard event mapped to multiple chords\"),!1;let c=null,l=null;if(s){const[C]=t.getSingleModifierDispatchChords();c=C,l=C?[C]:[]}else[c]=t.getDispatchChords(),l=this._currentChords.map(({keypress:C})=>C);if(c===null)return this._log(\"\\\\ Keyboard event cannot be dispatched in keydown phase.\"),g;const a=this._contextKeyService.getContext(i),r=t.getLabel(),u=this._getResolver().resolve(a,l,c);switch(u.kind){case 0:{if(this._logService.trace(\"KeybindingService#dispatch\",r,\"[ No matching keybinding ]\"),this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving multi-chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1540,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}return g}case 1:return this._logService.trace(\"KeybindingService#dispatch\",r,\"[ Several keybindings match - more chords needed ]\"),g=!0,this._expectAnotherChord(c,r),this._log(this._currentChords.length===1?\"+ Entering multi-chord mode...\":\"+ Continuing multi-chord mode...\"),g;case 2:{if(this._logService.trace(\"KeybindingService#dispatch\",r,`[ Will dispatch command ${u.commandId} ]`),u.commandId===null||u.commandId===\"\"){if(this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1541,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}}else{this.inChordMode&&this._leaveChordMode(),u.isBubble||(g=!0),this._log(`+ Invoking command ${u.commandId}.`),this._currentlyDispatchingCommandId=u.commandId;try{typeof u.commandArgs>\"u\"?this._commandService.executeCommand(u.commandId).then(void 0,C=>this._notificationService.warn(C)):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,C=>this._notificationService.warn(C))}finally{this._currentlyDispatchingCommandId=null}b.test(u.commandId)||this._telemetryService.publicLog2(\"workbenchActionExecuted\",{id:u.commandId,from:\"keybinding\",detail:t.getUserSettingsLabel()??void 0})}return g}}}mightProducePrintableCharacter(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30}}e.AbstractKeybindingService=p;class n{static{this.EMPTY=new n(null)}constructor(t){this._ctrlKey=t?t.ctrlKey:!1,this._shiftKey=t?t.shiftKey:!1,this._altKey=t?t.altKey:!1,this._metaKey=t?t.metaKey:!1}has(t){switch(t){case\"ctrl\":return this._ctrlKey;case\"shift\":return this._shiftKey;case\"alt\":return this._altKey;case\"meta\":return this._metaKey}}}}),define(ne[393],se([1,0]),function(oe,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ResolvedKeybindingItem=void 0,e.toEmptyArrayIfContainsNull=k;class d{constructor(E,y,m,_,b,p,n){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=E,this.chords=E?k(E.getDispatchChords()):[],E&&this.chords.length===0&&(this.chords=k(E.getSingleModifierDispatchChords())),this.bubble=y?y.charCodeAt(0)===94:!1,this.command=this.bubble?y.substr(1):y,this.commandArgs=m,this.when=_,this.isDefault=b,this.extensionId=p,this.isBuiltinExtension=n}}e.ResolvedKeybindingItem=d;function k(I){const E=[];for(let y=0,m=I.length;y<m;y++){const _=I[y];if(!_)return[];E.push(_)}return E}}),define(ne[692],se([1,0,72,140,689,393]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.USLayoutResolvedKeybinding=void 0;class y extends I.BaseResolvedKeybinding{constructor(_,b){super(b,_)}_keyCodeToUILabel(_){if(this._os===2)switch(_){case 15:return\"\\u2190\";case 16:return\"\\u2191\";case 17:return\"\\u2192\";case 18:return\"\\u2193\"}return d.KeyCodeUtils.toString(_)}_getLabel(_){return _.isDuplicateModifierCase()?\"\":this._keyCodeToUILabel(_.keyCode)}_getAriaLabel(_){return _.isDuplicateModifierCase()?\"\":d.KeyCodeUtils.toString(_.keyCode)}_getElectronAccelerator(_){return d.KeyCodeUtils.toElectronAccelerator(_.keyCode)}_getUserSettingsLabel(_){if(_.isDuplicateModifierCase())return\"\";const b=d.KeyCodeUtils.toUserSettingsUS(_.keyCode);return b&&b.toLowerCase()}_getChordDispatch(_){return y.getDispatchStr(_)}static getDispatchStr(_){if(_.isModifierKey())return null;let b=\"\";return _.ctrlKey&&(b+=\"ctrl+\"),_.shiftKey&&(b+=\"shift+\"),_.altKey&&(b+=\"alt+\"),_.metaKey&&(b+=\"meta+\"),b+=d.KeyCodeUtils.toString(_.keyCode),b}_getSingleModifierChordDispatch(_){return _.keyCode===5&&!_.shiftKey&&!_.altKey&&!_.metaKey?\"ctrl\":_.keyCode===4&&!_.ctrlKey&&!_.altKey&&!_.metaKey?\"shift\":_.keyCode===6&&!_.ctrlKey&&!_.shiftKey&&!_.metaKey?\"alt\":_.keyCode===57&&!_.ctrlKey&&!_.shiftKey&&!_.altKey?\"meta\":null}static _scanCodeToKeyCode(_){const b=d.IMMUTABLE_CODE_TO_KEY_CODE[_];if(b!==-1)return b;switch(_){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(_){if(!_)return null;if(_ instanceof k.KeyCodeChord)return _;const b=this._scanCodeToKeyCode(_.scanCode);return b===0?null:new k.KeyCodeChord(_.ctrlKey,_.shiftKey,_.altKey,_.metaKey,b)}static resolveKeybinding(_,b){const p=(0,E.toEmptyArrayIfContainsNull)(_.chords.map(n=>this._toKeyCodeChord(n)));return p.length>0?[new y(p,b)]:[]}}e.USLayoutResolvedKeybinding=y}),define(ne[181],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,d.createDecorator)(\"labelService\")}),define(ne[119],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILayoutService=void 0,e.ILayoutService=(0,d.createDecorator)(\"layoutService\")}),define(ne[394],se([1,0,5,52,13,6,34,49,119]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorScopedLayoutService=void 0;let b=class{get mainContainer(){return(0,I.firstOrDefault)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??k.mainWindow.document.body}get activeContainer(){return(this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor())?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return d.getClientArea(this.mainContainer)}get activeContainerDimension(){return d.getClientArea(this.activeContainer)}get containers(){return(0,I.coalesce)(this._codeEditorService.listCodeEditors().map(o=>o.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(o){this._codeEditorService=o,this.onDidLayoutMainContainer=E.Event.None,this.onDidLayoutActiveContainer=E.Event.None,this.onDidLayoutContainer=E.Event.None,this.onDidChangeActiveContainer=E.Event.None,this.onDidAddContainer=E.Event.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};b=ke([ce(0,y.ICodeEditorService)],b);let p=class extends b{get mainContainer(){return this._container}constructor(o,t){super(t),this._container=o}};e.EditorScopedLayoutService=p,e.EditorScopedLayoutService=p=ke([ce(1,y.ICodeEditorService)],p),(0,m.registerSingleton)(_.ILayoutService,b,1)}),define(ne[693],se([1,0,5,52,6,2,61,28,12,119]),function(oe,e,d,k,I,E,y,m,_,b){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AccessibilityService=void 0;let p=class extends E.Disposable{constructor(o,t,i){super(),this._contextKeyService=o,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new I.Emitter,this._onDidChangeReducedMotion=new I.Emitter,this._onDidChangeLinkUnderline=new I.Emitter,this._accessibilityModeEnabledContext=y.CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration(\"editor.accessibilitySupport\")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),c.affectsConfiguration(\"workbench.reduceMotion\")&&(this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._onDidChangeReducedMotion.fire())})),s(),this._register(this.onDidChangeScreenReaderOptimized(()=>s()));const g=k.mainWindow.matchMedia(\"(prefers-reduced-motion: reduce)\");this._systemMotionReduced=g.matches,this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._linkUnderlinesEnabled=this._configurationService.getValue(\"accessibility.underlineLinks\"),this.initReducedMotionListeners(g),this.initLinkUnderlineListeners()}initReducedMotionListeners(o){this._register((0,d.addDisposableListener)(o,\"change\",()=>{this._systemMotionReduced=o.matches,this._configMotionReduced===\"auto\"&&this._onDidChangeReducedMotion.fire()}));const t=()=>{const i=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle(\"reduce-motion\",i),this._layoutService.mainContainer.classList.toggle(\"enable-motion\",!i)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration(t=>{if(t.affectsConfiguration(\"accessibility.underlineLinks\")){const i=this._configurationService.getValue(\"accessibility.underlineLinks\");this._linkUnderlinesEnabled=i,this._onDidChangeLinkUnderline.fire()}}));const o=()=>{const t=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle(\"underline-links\",t)};o(),this._register(this.onDidChangeLinkUnderlines(()=>o()))}onDidChangeLinkUnderlines(o){return this._onDidChangeLinkUnderline.event(o)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const o=this._configurationService.getValue(\"editor.accessibilitySupport\");return o===\"on\"||o===\"auto\"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const o=this._configMotionReduced;return o===\"on\"||o===\"auto\"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};e.AccessibilityService=p,e.AccessibilityService=p=ke([ce(0,_.IContextKeyService),ce(1,b.ILayoutService),ce(2,m.IConfigurationService)],p)}),define(ne[395],se([1,0,353,2,119,5]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContextViewService=e.ContextViewHandler=void 0;let y=class extends k.Disposable{constructor(b){super(),this.layoutService=b,this.contextView=this._register(new d.ContextView(this.layoutService.mainContainer,1)),this.layout(),this._register(b.onDidLayoutContainer(()=>this.layout()))}showContextView(b,p,n){let o;p?p===this.layoutService.getContainer((0,E.getWindow)(p))?o=1:n?o=3:o=2:o=1,this.contextView.setContainer(p??this.layoutService.activeContainer,o),this.contextView.show(b);const t={close:()=>{this.openContextView===t&&this.hideContextView()}};return this.openContextView=t,t}layout(){this.contextView.layout()}hideContextView(b){this.contextView.hide(b),this.openContextView=void 0}};e.ContextViewHandler=y,e.ContextViewHandler=y=ke([ce(0,I.ILayoutService)],y);class m extends y{getContextViewElement(){return this.contextView.getViewElement()}}e.ContextViewService=m}),define(ne[62],se([1,0,6,2,12,7]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.CONTEXT_LOG_LEVEL=e.MultiplexLogger=e.ConsoleLogger=e.AbstractLogger=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILogService=void 0,e.LogLevelToString=p,e.ILogService=(0,E.createDecorator)(\"logService\");var y;(function(n){n[n.Off=0]=\"Off\",n[n.Trace=1]=\"Trace\",n[n.Debug=2]=\"Debug\",n[n.Info=3]=\"Info\",n[n.Warning=4]=\"Warning\",n[n.Error=5]=\"Error\"})(y||(e.LogLevel=y={})),e.DEFAULT_LOG_LEVEL=y.Info;class m extends k.Disposable{constructor(){super(...arguments),this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new d.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(o){this.level!==o&&(this.level=o,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(o){return this.level!==y.Off&&this.level<=o}}e.AbstractLogger=m;class _ extends m{constructor(o=e.DEFAULT_LOG_LEVEL,t=!0){super(),this.useColors=t,this.setLevel(o)}trace(o,...t){this.checkLogLevel(y.Trace)&&(this.useColors?console.log(\"%cTRACE\",\"color: #888\",o,...t):console.log(o,...t))}debug(o,...t){this.checkLogLevel(y.Debug)&&(this.useColors?console.log(\"%cDEBUG\",\"background: #eee; color: #888\",o,...t):console.log(o,...t))}info(o,...t){this.checkLogLevel(y.Info)&&(this.useColors?console.log(\"%c INFO\",\"color: #33f\",o,...t):console.log(o,...t))}warn(o,...t){this.checkLogLevel(y.Warning)&&(this.useColors?console.log(\"%c WARN\",\"color: #993\",o,...t):console.log(o,...t))}error(o,...t){this.checkLogLevel(y.Error)&&(this.useColors?console.log(\"%c  ERR\",\"color: #f33\",o,...t):console.error(o,...t))}}e.ConsoleLogger=_;class b extends m{constructor(o){super(),this.loggers=o,o.length&&this.setLevel(o[0].getLevel())}setLevel(o){for(const t of this.loggers)t.setLevel(o);super.setLevel(o)}trace(o,...t){for(const i of this.loggers)i.trace(o,...t)}debug(o,...t){for(const i of this.loggers)i.debug(o,...t)}info(o,...t){for(const i of this.loggers)i.info(o,...t)}warn(o,...t){for(const i of this.loggers)i.warn(o,...t)}error(o,...t){for(const i of this.loggers)i.error(o,...t)}dispose(){for(const o of this.loggers)o.dispose();super.dispose()}}e.MultiplexLogger=b;function p(n){switch(n){case y.Trace:return\"trace\";case y.Debug:return\"debug\";case y.Info:return\"info\";case y.Warning:return\"warn\";case y.Error:return\"error\";case y.Off:return\"off\"}}e.CONTEXT_LOG_LEVEL=new I.RawContextKey(\"logLevel\",p(y.Info))}),define(ne[212],se([1,0,64,5,93,47,296,14,6,2,128,11,310,23,61,62]),function(oe,e,d,k,I,E,y,m,_,b,p,n,o,t,i,s){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.TextAreaWrapper=e.ClipboardEventUtils=e.TextAreaInput=e.InMemoryClipboardMetadataManager=e.CopyOptions=e.TextAreaSyntethicEvents=void 0;var g;(function(u){u.Tap=\"-monaco-textarea-synthetic-tap\"})(g||(e.TextAreaSyntethicEvents=g={})),e.CopyOptions={forceCopyWithSyntaxHighlighting:!1};class c{static{this.INSTANCE=new c}constructor(){this._lastState=null}set(C,f){this._lastState={lastCopiedValue:C,data:f}}get(C){return this._lastState&&this._lastState.lastCopiedValue===C?this._lastState.data:(this._lastState=null,null)}}e.InMemoryClipboardMetadataManager=c;class l{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(C){C=C||\"\";const f={text:C,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=C.length,f}}let a=class extends b.Disposable{get textAreaState(){return this._textAreaState}constructor(C,f,h,v,w,S){super(),this._host=C,this._textArea=f,this._OS=h,this._browser=v,this._accessibilityService=w,this._logService=S,this._onFocus=this._register(new _.Emitter),this.onFocus=this._onFocus.event,this._onBlur=this._register(new _.Emitter),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new _.Emitter),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new _.Emitter),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new _.Emitter),this.onCut=this._onCut.event,this._onPaste=this._register(new _.Emitter),this.onPaste=this._onPaste.event,this._onType=this._register(new _.Emitter),this.onType=this._onType.event,this._onCompositionStart=this._register(new _.Emitter),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new _.Emitter),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new _.Emitter),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new _.Emitter),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new b.MutableDisposable),this._asyncTriggerCut=this._register(new m.RunOnceScheduler(()=>this._onCut.fire(),0)),this._textAreaState=o.TextAreaState.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent(\"ctor\"),this._register(_.Event.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let L=null;this._register(this._textArea.onKeyDown(D=>{const T=new E.StandardKeyboardEvent(D);(T.keyCode===114||this._currentComposition&&T.keyCode===1)&&T.stopPropagation(),T.equals(9)&&T.preventDefault(),L=T,this._onKeyDown.fire(T)})),this._register(this._textArea.onKeyUp(D=>{const T=new E.StandardKeyboardEvent(D);this._onKeyUp.fire(T)})),this._register(this._textArea.onCompositionStart(D=>{o._debugComposition&&console.log(\"[compositionstart]\",D);const T=new l;if(this._currentComposition){this._currentComposition=T;return}if(this._currentComposition=T,this._OS===2&&L&&L.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===D.data&&(L.code===\"ArrowRight\"||L.code===\"ArrowLeft\")){o._debugComposition&&console.log(\"[compositionstart] Handling long press case on macOS + arrow key\",D),T.handleCompositionUpdate(\"x\"),this._onCompositionStart.fire({data:D.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:D.data});return}this._onCompositionStart.fire({data:D.data})})),this._register(this._textArea.onCompositionUpdate(D=>{o._debugComposition&&console.log(\"[compositionupdate]\",D);const T=this._currentComposition;if(!T)return;if(this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionUpdate.fire(D);return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionUpdate.fire(D)})),this._register(this._textArea.onCompositionEnd(D=>{o._debugComposition&&console.log(\"[compositionend]\",D);const T=this._currentComposition;if(!T)return;if(this._currentComposition=null,this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionEnd.fire();return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(D=>{if(o._debugComposition&&console.log(\"[input]\",D),this._textArea.setIgnoreSelectionChangeTime(\"received input event\"),this._currentComposition)return;const T=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),M=o.TextAreaState.deduceInput(this._textAreaState,T,this._OS===2);M.replacePrevCharCnt===0&&M.text.length===1&&(n.isHighSurrogate(M.text.charCodeAt(0))||M.text.charCodeAt(0)===127)||(this._textAreaState=T,(M.text!==\"\"||M.replacePrevCharCnt!==0||M.replaceNextCharCnt!==0||M.positionDelta!==0)&&this._onType.fire(M))})),this._register(this._textArea.onCut(D=>{this._textArea.setIgnoreSelectionChangeTime(\"received cut event\"),this._ensureClipboardGetsEditorSelection(D),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(D=>{this._ensureClipboardGetsEditorSelection(D)})),this._register(this._textArea.onPaste(D=>{if(this._textArea.setIgnoreSelectionChangeTime(\"received paste event\"),D.preventDefault(),!D.clipboardData)return;let[T,M]=e.ClipboardEventUtils.getTextData(D.clipboardData);T&&(M=M||c.INSTANCE.get(T),this._onPaste.fire({text:T,metadata:M}))})),this._register(this._textArea.onFocus(()=>{const D=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!D&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"blurWithoutCompositionEnd\"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"tapWithoutCompositionEnd\"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let C=0;return k.addDisposableListener(this._textArea.ownerDocument,\"selectionchange\",f=>{if(y.inputLatency.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const h=Date.now(),v=h-C;if(C=h,v<5)return;const w=h-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),w<100||!this._textAreaState.selection)return;const S=this._textArea.getValue();if(this._textAreaState.value!==S)return;const L=this._textArea.getSelectionStart(),D=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===L&&this._textAreaState.selectionEnd===D)return;const T=this._textAreaState.deduceEditorPosition(L),M=this._host.deduceModelPosition(T[0],T[1],T[2]),A=this._textAreaState.deduceEditorPosition(D),P=this._host.deduceModelPosition(A[0],A[1],A[2]),N=new t.Selection(M.lineNumber,M.column,P.lineNumber,P.column);this._onSelectionChangeRequest.fire(N)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(C){this._hasFocus!==C&&(this._hasFocus=C,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent(\"focusgain\"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(C,f){this._hasFocus||(f=f.collapseSelection()),f.writeToTextArea(C,this._textArea,this._hasFocus),this._textAreaState=f}writeNativeTextAreaContent(C){!this._accessibilityService.isScreenReaderOptimized()&&C===\"render\"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${C})`),this._setAndWriteTextAreaState(C,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(C){const f=this._host.getDataToCopy(),h={version:1,isFromEmptySelection:f.isFromEmptySelection,multicursorText:f.multicursorText,mode:f.mode};c.INSTANCE.set(this._browser.isFirefox?f.text.replace(/\\r\\n/g,`","vulnerability":{}},{"path":"web/public/vs/language/typescript/tsWorker.js","start_line":320,"end_line":320,"snippet":"`||hn[0]===\"\\r\");)hn.shift()}function CP(hn){for(;hn.length;){let Tr=hn[hn.length-1].trimEnd();if(Tr===\"\")hn.pop();else if(Tr.length<hn[hn.length-1].length){hn[hn.length-1]=Tr;break}else break}}function fE(){for(;;){if(gt(),j()===1)return!0;if(!(j()===5||j()===4))return!1}}function Dg(){if(!((j()===5||j()===4)&&_i(fE)))for(;j()===5||j()===4;)gt()}function jy(){if((j()===5||j()===4)&&_i(fE))return\"\";let hn=t.hasPrecedingLineBreak(),Tr=!1,gr=\"\";for(;hn&&j()===42||j()===5||j()===4;)gr+=t.getTokenText(),j()===4?(hn=!0,Tr=!0,gr=\"\"):j()===42&&(hn=!1),gt();return Tr?gr:\"\"}function lD(hn){x.assert(j()===60);let Tr=t.getTokenStart();gt();let gr=gE(void 0),Ei=jy(),hi;switch(gr.escapedText){case\"author\":hi=Ss(Tr,gr,hn,Ei);break;case\"implements\":hi=Hy(Tr,gr,hn,Ei);break;case\"augments\":case\"extends\":hi=lm(Tr,gr,hn,Ei);break;case\"class\":case\"constructor\":hi=hE(Tr,m.createJSDocClassTag,gr,hn,Ei);break;case\"public\":hi=hE(Tr,m.createJSDocPublicTag,gr,hn,Ei);break;case\"private\":hi=hE(Tr,m.createJSDocPrivateTag,gr,hn,Ei);break;case\"protected\":hi=hE(Tr,m.createJSDocProtectedTag,gr,hn,Ei);break;case\"readonly\":hi=hE(Tr,m.createJSDocReadonlyTag,gr,hn,Ei);break;case\"override\":hi=hE(Tr,m.createJSDocOverrideTag,gr,hn,Ei);break;case\"deprecated\":Nr=!0,hi=hE(Tr,m.createJSDocDeprecatedTag,gr,hn,Ei);break;case\"this\":hi=T7(Tr,gr,hn,Ei);break;case\"enum\":hi=D$(Tr,gr,hn,Ei);break;case\"arg\":case\"argument\":case\"param\":return w(Tr,gr,2,hn);case\"return\":case\"returns\":hi=Be(Tr,gr,hn,Ei);break;case\"template\":hi=Jy(Tr,gr,hn,Ei);break;case\"type\":hi=kt(Tr,gr,hn,Ei);break;case\"typedef\":hi=MP(Tr,gr,hn,Ei);break;case\"callback\":hi=Ame(Tr,gr,hn,Ei);break;case\"overload\":hi=Ime(Tr,gr,hn,Ei);break;case\"satisfies\":hi=_E(Tr,gr,hn,Ei);break;case\"see\":hi=ir(Tr,gr,hn,Ei);break;case\"exception\":case\"throws\":hi=Wi(Tr,gr,hn,Ei);break;default:hi=Uy(Tr,gr,hn,Ei);break}return hi}function _p(hn,Tr,gr,Ei){return Ei||(gr+=Tr-hn),Sa(gr,Ei.slice(gr))}function Sa(hn,Tr){let gr=M(),Ei=[],hi=[],wa,ns=0,Dd;function ih(Cg){Dd||(Dd=hn),Ei.push(Cg),hn+=Cg.length}Tr!==void 0&&(Tr!==\"\"&&ih(Tr),ns=1);let Zu=j();e:for(;;){switch(Zu){case 4:ns=0,Ei.push(t.getTokenText()),hn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:x.assert(ns!==2&&ns!==3,\"whitespace shouldn't come from the scanner while saving comment text\");let Cg=t.getTokenText();Dd!==void 0&&hn+Cg.length>Dd&&(Ei.push(Cg.slice(Dd-hn)),ns=2),hn+=Cg.length;break;case 19:ns=2;let ep=t.getTokenFullStart(),uD=t.getTokenEnd()-1,tw=zl(uD);tw?(hi.push(Ut(m.createJSDocText(Ei.join(\"\")),wa??gr,ep)),hi.push(tw),Ei=[],wa=t.getTokenEnd()):ih(t.getTokenText());break;case 62:ns===3?ns=2:ns=3,ih(t.getTokenText());break;case 82:ns!==3&&(ns=2),ih(t.getTokenValue());break;case 42:if(ns===0){ns=1,hn+=1;break}default:ns!==3&&(ns=2),ih(t.getTokenText());break}ns===2||ns===3?Zu=bt(ns===3):Zu=gt()}DP(Ei);let Lm=Ei.join(\"\").trimEnd();if(hi.length)return Lm.length&&hi.push(Ut(m.createJSDocText(Lm),wa??gr)),ho(hi,gr,t.getTokenEnd());if(Lm.length)return Lm}function zl(hn){let Tr=ui(p1);if(!Tr)return;gt(),Dg();let gr=mE(),Ei=[];for(;j()!==20&&j()!==4&&j()!==1;)Ei.push(t.getTokenText()),gt();let hi=Tr===\"link\"?m.createJSDocLink:Tr===\"linkcode\"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return Ut(hi(gr,Ei.join(\"\")),hn,t.getTokenEnd())}function mE(){if(Md(j())){let hn=M(),Tr=tc();for(;$i(25);)Tr=Ut(m.createQualifiedName(Tr,j()===81?ys(80,!1):ls()),hn);for(;j()===81;)ti(),gt(),Tr=Ut(m.createJSDocMemberName(Tr,ls()),hn);return Tr}}function p1(){if(jy(),j()===19&&gt()===60&&Md(gt())){let hn=t.getTokenValue();if(NP(hn))return hn}}function NP(hn){return hn===\"link\"||hn===\"linkcode\"||hn===\"linkplain\"}function Uy(hn,Tr,gr,Ei){return Ut(m.createJSDocUnknownTag(Tr,_p(hn,M(),gr,Ei)),hn)}function PP(hn){hn&&(Ma?Ma.push(hn):(Ma=[hn],lf=hn.pos),v_=hn.end)}function Un(){return jy(),j()===19?Fe():void 0}function y(){let hn=Rv(23);hn&&Dg();let Tr=Rv(62),gr=dD();return Tr&&ua(62),hn&&(Dg(),Uo(64)&&we(),_n(24)),{name:gr,isBracketed:hn}}function D(hn){switch(hn.kind){case 151:return!0;case 188:return D(hn.elementType);default:return Yp(hn)&&Me(hn.typeName)&&hn.typeName.escapedText===\"Object\"&&!hn.typeArguments}}function w(hn,Tr,gr,Ei){let hi=Un(),wa=!hi;jy();let{name:ns,isBracketed:Dd}=y(),ih=jy();wa&&!_i(p1)&&(hi=Un());let Zu=_p(hn,M(),Ei,ih),Lm=ie(hi,ns,gr,Ei);Lm&&(hi=Lm,wa=!0);let Cg=gr===1?m.createJSDocPropertyTag(Tr,ns,Dd,hi,wa,Zu):m.createJSDocParameterTag(Tr,ns,Dd,hi,wa,Zu);return Ut(Cg,hn)}function ie(hn,Tr,gr,Ei){if(hn&&D(hn.type)){let hi=M(),wa,ns;for(;wa=ui(()=>I7(gr,Ei,Tr));)wa.kind===348||wa.kind===355?ns=pn(ns,wa):wa.kind===352&&Re(wa.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ns){let Dd=Ut(m.createJSDocTypeLiteral(ns,hn.type.kind===188),hi);return Ut(m.createJSDocTypeExpression(Dd),hi)}}}function Be(hn,Tr,gr,Ei){ct(Ma,T6)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Un();return Ut(m.createJSDocReturnTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function kt(hn,Tr,gr,Ei){ct(Ma,gN)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Fe(!0),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocTypeTag(Tr,hi,wa),hn)}function ir(hn,Tr,gr,Ei){let wa=j()===23||_i(()=>gt()===60&&Md(gt())&&NP(t.getTokenValue()))?void 0:mt(),ns=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSeeTag(Tr,wa,ns),hn)}function Wi(hn,Tr,gr,Ei){let hi=Un(),wa=_p(hn,M(),gr,Ei);return Ut(m.createJSDocThrowsTag(Tr,hi,wa),hn)}function Ss(hn,Tr,gr,Ei){let hi=M(),wa=Mm(),ns=t.getTokenFullStart(),Dd=_p(hn,ns,gr,Ei);Dd||(ns=t.getTokenFullStart());let ih=typeof Dd!=\"string\"?ho(ro([Ut(wa,hi,ns)],Dd),hi):wa.text+Dd;return Ut(m.createJSDocAuthorTag(Tr,ih),hn)}function Mm(){let hn=[],Tr=!1,gr=t.getToken();for(;gr!==1&&gr!==4;){if(gr===30)Tr=!0;else{if(gr===60&&!Tr)break;if(gr===32&&Tr){hn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}hn.push(t.getTokenText()),gr=gt()}return m.createJSDocText(hn.join(\"\"))}function Hy(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocImplementsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function lm(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocAugmentsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function _E(hn,Tr,gr,Ei){let hi=Fe(!1),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSatisfiesTag(Tr,hi,wa),hn)}function R$(){let hn=$i(19),Tr=M(),gr=Tme();t.setInJSDocType(!0);let Ei=uE();t.setInJSDocType(!1);let hi=m.createExpressionWithTypeArguments(gr,Ei),wa=Ut(hi,Tr);return hn&&_n(20),wa}function Tme(){let hn=M(),Tr=gE();for(;$i(25);){let gr=gE();Tr=Ut(K(Tr,gr),hn)}return Tr}function hE(hn,Tr,gr,Ei,hi){return Ut(Tr(gr,_p(hn,M(),Ei,hi)),hn)}function T7(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocThisTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function D$(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocEnumTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function MP(hn,Tr,gr,Ei){let hi=Un();jy();let wa=A7();Dg();let ns=Sa(gr),Dd;if(!hi||D(hi.type)){let Zu,Lm,Cg,ep=!1;for(;(Zu=ui(()=>P$(gr)))&&Zu.kind!==352;)if(ep=!0,Zu.kind===351)if(Lm){let uD=Qt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);uD&&fa(uD,Ix(_e,Te,0,0,f.The_tag_was_first_specified_here));break}else Lm=Zu;else Cg=pn(Cg,Zu);if(ep){let uD=hi&&hi.type.kind===188,tw=m.createJSDocTypeLiteral(Cg,uD);hi=Lm&&Lm.typeExpression&&!D(Lm.typeExpression.type)?Lm.typeExpression:Ut(tw,hn),Dd=hi.end}}Dd=Dd||ns!==void 0?M():(wa??hi??Tr).end,ns||(ns=_p(hn,Dd,gr,Ei));let ih=m.createJSDocTypedefTag(Tr,hi,wa,ns);return Ut(ih,hn,Dd)}function A7(hn){let Tr=t.getTokenStart();if(!Md(j()))return;let gr=gE();if($i(25)){let Ei=A7(!0),hi=m.createModuleDeclaration(void 0,gr,Ei,hn?8:void 0);return Ut(hi,Tr)}return hn&&(gr.flags|=4096),gr}function C$(hn){let Tr=M(),gr,Ei;for(;gr=ui(()=>I7(4,hn));){if(gr.kind===352){Re(gr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ei=pn(Ei,gr)}return ho(Ei||[],Tr)}function N$(hn,Tr){let gr=C$(Tr),Ei=ui(()=>{if(Rv(60)){let hi=lD(Tr);if(hi&&hi.kind===349)return hi}});return Ut(m.createJSDocSignature(void 0,gr,Ei),hn)}function Ame(hn,Tr,gr,Ei){let hi=A7();Dg();let wa=Sa(gr),ns=N$(hn,gr);wa||(wa=_p(hn,M(),gr,Ei));let Dd=wa!==void 0?M():ns.end;return Ut(m.createJSDocCallbackTag(Tr,ns,hi,wa),hn,Dd)}function Ime(hn,Tr,gr,Ei){Dg();let hi=Sa(gr),wa=N$(hn,gr);hi||(hi=_p(hn,M(),gr,Ei));let ns=hi!==void 0?M():wa.end;return Ut(m.createJSDocOverloadTag(Tr,wa,hi),hn,ns)}function cD(hn,Tr){for(;!Me(hn)||!Me(Tr);)if(!Me(hn)&&!Me(Tr)&&hn.right.escapedText===Tr.right.escapedText)hn=hn.left,Tr=Tr.left;else return!1;return hn.escapedText===Tr.escapedText}function P$(hn){return I7(1,hn)}function I7(hn,Tr,gr){let Ei=!0,hi=!1;for(;;)switch(gt()){case 60:if(Ei){let wa=q0(hn,Tr);return wa&&(wa.kind===348||wa.kind===355)&&gr&&(Me(wa.name)||!cD(gr,wa.name.left))?!1:wa}hi=!1;break;case 4:Ei=!0,hi=!1;break;case 42:hi&&(Ei=!1),hi=!0;break;case 80:Ei=!1;break;case 1:return!1}}function q0(hn,Tr){x.assert(j()===60);let gr=t.getTokenFullStart();gt();let Ei=gE(),hi=jy(),wa;switch(Ei.escapedText){case\"type\":return hn===1&&kt(gr,Ei);case\"prop\":case\"property\":wa=1;break;case\"arg\":case\"argument\":case\"param\":wa=6;break;case\"template\":return Jy(gr,Ei,Tr,hi);case\"this\":return T7(gr,Ei,Tr,hi);default:return!1}return hn&wa?w(gr,Ei,hn,Tr):!1}function Yn(){let hn=M(),Tr=Rv(23);Tr&&Dg();let gr=eh(!1,!0),Ei=gE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),hi;if(Tr&&(Dg(),_n(64),hi=Ea(16777216,nm),_n(24)),!_l(Ei))return Ut(m.createTypeParameterDeclaration(gr,Ei,void 0,hi),hn)}function qy(){let hn=M(),Tr=[];do{Dg();let gr=Yn();gr!==void 0&&Tr.push(gr),jy()}while(Rv(28));return ho(Tr,hn)}function Jy(hn,Tr,gr,Ei){let hi=j()===19?Fe():void 0,wa=qy();return Ut(m.createJSDocTemplateTag(Tr,hi,wa,_p(hn,M(),gr,Ei)),hn)}function Rv(hn){return j()===hn?(gt(),!0):!1}function dD(){let hn=gE();for($i(23)&&_n(24);$i(25);){let Tr=gE();$i(23)&&_n(24),hn=Ye(hn,Tr)}return hn}function gE(hn){if(!Md(j()))return ys(80,!hn,hn||f.Identifier_expected);Vt++;let Tr=t.getTokenStart(),gr=t.getTokenEnd(),Ei=j(),hi=Pc(t.getTokenValue()),wa=Ut(C(hi,Ei),Tr,gr);return gt(),wa}}})(g_=e.JSDocParser||(e.JSDocParser={}))})(zb||(zb={})),(e=>{function t(S,A,C,R){if(R=R||x.shouldAssert(2),m(S,A,C,R),Iee(C))return S;if(S.statements.length===0)return zb.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let L=S;x.assert(!L.hasBeenIncrementallyParsed),L.hasBeenIncrementallyParsed=!0,zb.fixupParentReferences(L);let G=S.text,U=v(S),K=p(S,C);m(S,A,K,R),x.assert(K.span.start<=C.span.start),x.assert(Al(K.span)===Al(C.span)),x.assert(Al(ZD(K))===Al(ZD(C)));let F=ZD(K).length-K.span.length;d(L,K.span.start,Al(K.span),Al(ZD(K)),F,G,A,R);let oe=zb.parseSourceFile(S.fileName,A,S.languageVersion,U,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return oe.commentDirectives=r(S.commentDirectives,oe.commentDirectives,K.span.start,Al(K.span),F,G,A,R),oe.impliedNodeFormat=S.impliedNodeFormat,oe}e.updateSourceFile=t;function r(S,A,C,R,L,G,U,K){if(!S)return A;let F,oe=!1;for(let $ of S){let{range:de,type:fe}=$;if(de.end<C)F=pn(F,$);else if(de.pos>R){W();let q={range:{pos:de.pos+L,end:de.end+L},type:fe};F=pn(F,q),K&&x.assert(G.substring(de.pos,de.end)===U.substring(q.range.pos,q.range.end))}}return W(),F;function W(){oe||(oe=!0,F?A&&F.push(...A):F=A)}}function i(S,A,C,R,L,G){A?K(S):U(S);return;function U(F){let oe=\"\";if(G&&o(F)&&(oe=R.substring(F.pos,F.end)),F._children&&(F._children=void 0),F_(F,F.pos+C,F.end+C),G&&o(F)&&x.assert(oe===L.substring(F.pos,F.end)),Ao(F,U,K),ap(F))for(let W of F.jsDoc)U(W);l(F,G)}function K(F){F._children=void 0,F_(F,F.pos+C,F.end+C);for(let oe of F)U(oe)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,C,R,L){x.assert(S.end>=A,\"Adjusting an element that was entirely before the change range\"),x.assert(S.pos<=C,\"Adjusting an element that was entirely after the change range\"),x.assert(S.pos<=S.end);let G=Math.min(S.pos,R),U=S.end>=C?S.end+L:Math.min(S.end,R);x.assert(G<=U),S.parent&&(x.assertGreaterThanOrEqual(G,S.parent.pos),x.assertLessThanOrEqual(U,S.parent.end)),F_(S,G,U)}function l(S,A){if(A){let C=S.pos,R=L=>{x.assert(L.pos>=C),C=L.end};if(ap(S))for(let L of S.jsDoc)R(L);Ao(S,R),x.assert(C<=S.end)}}function d(S,A,C,R,L,G,U,K){F(S);return;function F(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!1,L,G,U,K);return}let $=W.end;if($>=A){if(W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L),Ao(W,F,oe),ap(W))for(let de of W.jsDoc)F(de);l(W,K);return}x.assert($<A)}function oe(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!0,L,G,U,K);return}let $=W.end;if($>=A){W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L);for(let de of W)F(de);return}x.assert($<A)}}function p(S,A){let R=A.span.start;for(let U=0;R>0&&U<=1;U++){let K=h(S,R);x.assert(K.pos<=R);let F=K.pos;R=Math.max(0,F-1)}let L=Gl(R,Al(A.span)),G=A.newLength+(A.span.start-R);return FM(L,G)}function h(S,A){let C=S,R;if(Ao(S,G),R){let U=L(R);U.pos>C.pos&&(C=U)}return C;function L(U){for(;;){let K=yV(U);if(K)U=K;else return U}}function G(U){if(!_l(U))if(U.pos<=A){if(U.pos>=C.pos&&(C=U),A<U.end)return Ao(U,G),!0;x.assert(U.end<=A),R=U}else return x.assert(U.pos>A),!0}}function m(S,A,C,R){let L=S.text;if(C&&(x.assert(L.length-C.span.length+C.newLength===A.length),R||x.shouldAssert(3))){let G=L.substr(0,C.span.start),U=A.substr(0,C.span.start);x.assert(G===U);let K=L.substring(Al(C.span),L.length),F=A.substring(Al(ZD(C)),A.length);x.assert(K===F)}}function v(S){let A=S.statements,C=0;x.assert(C<A.length);let R=A[C],L=-1;return{currentNode(U){return U!==L&&(R&&R.end===U&&C<A.length-1&&(C++,R=A[C]),(!R||R.pos!==U)&&G(U)),L=U,x.assert(!R||R.pos===U),R}};function G(U){A=void 0,C=-1,R=void 0,Ao(S,K,F);return;function K(oe){return U>=oe.pos&&U<oe.end?(Ao(oe,K,F),!0):!1}function F(oe){if(U>=oe.pos&&U<oe.end)for(let W=0;W<oe.length;W++){let $=oe[W];if($){if($.pos===U)return A=oe,C=W,R=$,!0;if($.pos<U&&U<$.end)return Ao($,K,F),!0}}return!1}}}e.createSyntaxCursor=v;let E;(S=>{S[S.Value=-1]=\"Value\"})(E||(E={}))})(Zj||(Zj={})),eU=new Map,wEe=/^\\/\\/\\/\\s*<(\\S+)\\s.*?\\/>/im,WEe=/^\\/\\/\\/?\\s*@([^\\s:]+)(.*)\\s*$/im}});function O6(e){let t=new Map,r=new Map;return an(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function Xx(){return E0e||(E0e=O6(Nh))}function Mie(e){return FEe(e,bl)}function FEe(e,t){let r=bo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(\", \");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function w6(e,t,r){return h0e(e,(t??\"\").trim(),r)}function Lie(e,t=\"\",r){if(t=t.trim(),Ui(t,\"-\"))return;if(e.type===\"listOrElement\"&&!t.includes(\",\"))return vI(e,t,r);if(t===\"\")return[];let i=t.split(\",\");switch(e.element.type){case\"number\":return Fi(i,o=>vI(e.element,parseInt(o),r));case\"string\":return Fi(i,o=>vI(e.element,o||\"\",r));case\"boolean\":case\"object\":return x.fail(`List of ${e.element.type} is not yet supported.`);default:return Fi(i,o=>w6(e.element,o,r))}}function zEe(e){return e.name}function kie(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return Bb(o,i,t.alternateMode.diagnostic,e);let l=VD(e,t.optionDeclarations,zEe);return l?Bb(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):Bb(o,i,t.unknownOptionDiagnostic,r||e)}function tU(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;m<h.length;){let v=h[m];if(m++,v.charCodeAt(0)===64)p(v.slice(1));else if(v.charCodeAt(0)===45){let E=v.slice(v.charCodeAt(1)===45?2:1),S=Oie(e.getOptionsNameMap,E,!0);if(S)m=BEe(h,m,e,S,i,l);else{let A=Oie(q6.getOptionsNameMap,E,!0);A?m=BEe(h,m,q6,A,o||(o={}),l):l.push(kie(E,e,v))}}else s.push(v)}}function p(h){let m=SN(h,r||(S=>Hc.readFile(S)));if(!fo(m)){l.push(m);return}let v=[],E=0;for(;;){for(;E<m.length&&m.charCodeAt(E)<=32;)E++;if(E>=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E<m.length&&m.charCodeAt(E)!==34;)E++;E<m.length?(v.push(m.substring(S+1,E)),E++):l.push(bl(f.Unterminated_quoted_string_in_response_file_0,h))}else{for(;m.charCodeAt(E)>32;)E++;v.push(m.substring(S,E))}}d(v)}}function BEe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l===\"null\"?(o[i.name]=void 0,t++):i.type===\"boolean\"?l===\"false\"?(o[i.name]=vI(i,!1,s),t++):(l===\"true\"&&t++,s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!Ui(l,\"-\")&&t++)}else if(!e[t]&&i.type!==\"boolean\"&&s.push(bl(r.optionTypeMismatchDiagnostic,i.name,oU(i))),e[t]!==\"null\")switch(i.type){case\"number\":o[i.name]=vI(i,parseInt(e[t]),s),t++;break;case\"boolean\":let l=e[t];o[i.name]=vI(i,l!==\"false\",s),(l===\"false\"||l===\"true\")&&t++;break;case\"string\":o[i.name]=vI(i,e[t]||\"\",s),t++;break;case\"list\":let d=Lie(i,e[t],s);o[i.name]=d||[],d&&t++;break;case\"listOrElement\":x.fail(\"listOrElement not supported here\");break;default:o[i.name]=w6(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function GEe(e,t){return tU(Q2,e,t)}function nU(e,t){return Oie(Xx,e,t)}function Oie(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function VEe(){return T0e||(T0e=O6(U6))}function jEe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=tU(I0e,e),s=t;return i.length===0&&i.push(\".\"),s.clean&&s.force&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"force\")),s.clean&&s.verbose&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"verbose\")),s.clean&&s.watch&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"watch\")),s.watch&&s.dry&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"watch\",\"dry\")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function UEe(e,...t){return Fo(bl(e,...t).messageText,fo)}function V2(e,t,r,i,o,s){let l=SN(e,h=>r.readFile(h));if(!fo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=G2(e,l),p=r.getCurrentDirectory();return d.path=ks(e,p,od(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,H2(d,r,Qi(Ur(e),p),t,Qi(e,p),void 0,s,i,o)}function j2(e,t){let r=SN(e,t);return fo(r)?rU(e,r):{config:{},error:r}}function rU(e,t){let r=G2(e,t);return{config:XEe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function wie(e,t){let r=SN(e,t);return fo(r)?G2(e,r):{fileName:e,parseDiagnostics:[r]}}function SN(e,t){let r;try{r=t(e)}catch(i){return bl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?bl(f.Cannot_read_file_0,e):r}function iU(e){return PE(e,zEe)}function HEe(){return x0e||(x0e=O6(Yx))}function qEe(){return R0e||(R0e=iU(Nh))}function JEe(){return D0e||(D0e=iU(Yx))}function KEe(){return C0e||(C0e=iU($2))}function R4e(){return $ie===void 0&&($ie={name:void 0,type:\"object\",elementOptions:iU([Kie,Xie,Yie,Z2,{name:\"references\",type:\"list\",element:{name:\"references\",type:\"object\"},category:f.Projects},{name:\"files\",type:\"list\",element:{name:\"files\",type:\"string\"},category:f.File_Management},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},J2])}),$ie}function XEe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(vf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,Ll(e.fileName)===\"jsconfig.json\"?\"jsconfig.json\":\"tsconfig.json\")),Bd(o)){let s=Dr(o.elements,ma);if(s)return U2(e,s,t,!0,r)}return{}}return U2(e,o,t,!0,r)}function Wie(e,t){var r;return U2(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function U2(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var v;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(vf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(vf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,\"?\")),p(S.name)||r.push(vf(e,S.name,f.String_literal_with_double_quotes_expected));let A=aL(S.name)?void 0:$1(S.name),C=A&&Ii(A),R=C?(v=m?.elementOptions)==null?void 0:v.get(C):void 0,L=d(S.initializer,R);typeof C<\"u\"&&(i&&(E[C]=L),o?.onPropertySet(C,L,S,m,R))}return E}function l(h,m){if(!i){h.forEach(v=>d(v,m));return}return Cr(h.map(v=>d(v,m)),v=>v!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(vf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(vf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,oU(m))):r.push(vf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return da(h)&&IW(h,e)}}function oU(e){return e.type===\"listOrElement\"?`${oU(e.element)} or Array`:e.type===\"list\"?\"Array\":fo(e.type)?e.type:\"string\"}function YEe(e,t){if(e){if(q2(t))return!e.disallowNullOrUndefined;if(e.type===\"list\")return oo(t);if(e.type===\"listOrElement\")return oo(t)||YEe(e.element,t);let r=fo(e.type)?e.type:\"string\";return typeof t===r}return!1}function $Ee(e,t,r){var i,o,s;let l=od(r.useCaseSensitiveFileNames),d=nn(Cr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?C4e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ug),A=>RM(Qi(t,r.getCurrentDirectory()),Qi(A,r.getCurrentDirectory()),l)),p={configFilePath:Qi(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=F6(e.options,p),m=e.watchOptions&&N4e(e.watchOptions),v={compilerOptions:{...W6(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&W6(m),references:nn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:\"\",originalPath:void 0})),files:yn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:D4e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in Ul)if(!E.has(A)&&ct(Ul[A].dependencies,C=>E.has(C))){let C=Ul[A].computeValue(e.options),R=Ul[A].computeValue({});C!==R&&(S[A]=Ul[A].computeValue(e.options))}return R1(v.compilerOptions,W6(F6(S,p))),v}function W6(e){return{...bo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function D4e(e){if(yn(e)){if(yn(e)!==1)return e;if(e[0]!==J6)return e}}function C4e(e,t,r,i){if(!t)return Ug;let o=dF(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&iy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&iy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ug}function QEe(e){switch(e.type){case\"string\":case\"number\":case\"boolean\":case\"object\":return;case\"list\":case\"listOrElement\":return QEe(e.element);default:return e.type}}function aU(e,t){return hc(t,(r,i)=>{if(r===e)return i})}function F6(e,t){return ZEe(e,Xx(),t)}function N4e(e){return ZEe(e,HEe())}function ZEe(e,{optionsNameMap:t},r){let i=new Map,o=r&&od(r.useCaseSensitiveFileNames);for(let s in e)if(rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){x.assert(d.type!==\"listOrElement\");let p=QEe(d);p?d.type===\"list\"?i.set(s,l.map(h=>aU(h,p))):i.set(s,aU(l,p)):r&&d.isFilePath?i.set(s,RM(r.configFilePath,Qi(l,Ur(r.configFilePath)),o)):i.set(s,l)}}return i}function e0e(e,t){let r=t0e(e);return o();function i(s){return Array(s+1).join(\" \")}function o(){let s=[],l=i(2);return uU.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=Uie(d);p!==h?s.push(`${l}${d.name}: ${p}`):rs(H6,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function t0e(e){let t=Xw(e,H6);return F6(t)}function n0e(e,t,r){let i=t0e(e);return l();function o(d){return Array(d+1).join(\" \")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of Nh)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:\"\"}),m.push({value:`/* ${vo(A)} */`});for(let C of S){let R;i.has(C.name)?R=`\"${C.name}\": ${JSON.stringify(i.get(C.name))}${(h+=1)===i.size?\"\":\",\"}`:R=`// \"${C.name}\": ${JSON.stringify(Uie(C))},`,m.push({value:R,description:`/* ${C.description&&vo(C.description)||C.name} */`}),p=Math.max(R.length,p)}});let v=o(2),E=[];E.push(\"{\"),E.push(`${v}\"compilerOptions\": {`),E.push(`${v}${v}/* ${vo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push(\"\");for(let S of m){let{value:A,description:C=\"\"}=S;E.push(A&&`${v}${v}${A}${C&&o(p-A.length+2)+C}`)}if(t.length){E.push(`${v}},`),E.push(`${v}\"files\": [`);for(let S=0;S<t.length;S++)E.push(`${v}${v}${JSON.stringify(t[S])}${S===t.length-1?\"\":\",\"}`);E.push(`${v}]`)}else E.push(`${v}}`);return E.push(\"}\"),E.join(r)+r}}function sU(e,t){let r={},i=Xx().optionsNameMap;for(let o in e)rs(e,o)&&(r[o]=P4e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function P4e(e,t,r){if(e&&!q2(t)){if(e.type===\"list\"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);x.assert(e.type!==\"listOrElement\")}return t}function r0e(e,t,r,i,o,s,l,d,p){return o0e(e,void 0,t,r,i,p,o,s,l,d)}function H2(e,t,r,i,o,s,l,d,p){var h,m;(h=qn)==null||h.push(qn.Phase.Parse,\"parseJsonSourceFileConfigFileContent\",{path:e.fileName});let v=o0e(void 0,e,t,r,i,p,o,s,l,d);return(m=qn)==null||m.pop(),v}function lU(e,t){t&&Object.defineProperty(e,\"configFile\",{enumerable:!1,writable:!1,value:t})}function q2(e){return e==null}function i0e(e,t){return Ur(Qi(e,t))}function o0e(e,t,r,i,o={},s,l,d=[],p=[],h){x.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let m=[],v=l0e(e,t,r,i,l,d,m,h),{raw:E}=v,S=Xw(o,v.options||{}),A=s&&v.watchOptions?Xw(s,v.watchOptions):v.watchOptions||s;S.configFilePath=l&&ad(l);let C=L();t&&(t.configFileSpecs=C),lU(S,t);let R=Yo(l?i0e(l,i):i);return{options:S,watchOptions:A,fileNames:G(R),projectReferences:U(R),typeAcquisition:v.typeAcquisition||cU(),raw:E,errors:m,wildcardDirectories:B4e(C,R,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function L(){let $=oe(\"references\",ce=>typeof ce==\"object\",\"object\"),de=K(F(\"files\"));if(de){let ce=$===\"no-prop\"||oo($)&&$.length===0,Z=rs(E,\"extends\");if(de.length===0&&ce&&!Z)if(t){let pe=l||\"tsconfig.json\",Ae=f.The_files_list_in_config_file_0_is_empty,Oe=uL(t,\"files\",be=>be.initializer),_e=Bb(t,Oe,Ae,pe);m.push(_e)}else W(f.The_files_list_in_config_file_0_is_empty,l||\"tsconfig.json\")}let fe=K(F(\"include\")),q=F(\"exclude\"),H=!1,ee=K(q);if(q===\"no-prop\"&&E.compilerOptions){let ce=E.compilerOptions.outDir,Z=E.compilerOptions.declarationDir;(ce||Z)&&(ee=[ce,Z].filter(pe=>!!pe))}de===void 0&&fe===void 0&&(fe=[J6],H=!0);let le,Ee;return fe&&(le=b0e(fe,m,!0,t,\"include\")),ee&&(Ee=b0e(ee,m,!1,t,\"exclude\")),{filesSpecs:de,includeSpecs:fe,excludeSpecs:ee,validatedFilesSpec:Cr(de,fo),validatedIncludeSpecs:le,validatedExcludeSpecs:Ee,pathPatterns:void 0,isDefaultIncludeSpec:H}}function G($){let de=AN(C,$,S,r,p);return s0e(de,TN(E),d)&&m.push(a0e(C,l)),de}function U($){let de,fe=oe(\"references\",q=>typeof q==\"object\",\"object\");if(oo(fe))for(let q of fe)typeof q.path!=\"string\"?W(f.Compiler_option_0_requires_a_value_of_type_1,\"reference.path\",\"string\"):(de||(de=[])).push({path:Qi(q.path,$),originalPath:q.path,prepend:q.prepend,circular:q.circular});return de}function K($){return oo($)?$:void 0}function F($){return oe($,fo,\"string\")}function oe($,de,fe){if(rs(E,$)&&!q2(E[$]))if(oo(E[$])){let q=E[$];return!t&&!ji(q,de)&&m.push(bl(f.Compiler_option_0_requires_a_value_of_type_1,$,fe)),q}else return W(f.Compiler_option_0_requires_a_value_of_type_1,$,\"Array\"),\"not-array\";return\"no-prop\"}function W($,...de){t||m.push(bl($,...de))}}function M4e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function a0e({includeSpecs:e,excludeSpecs:t},r){return bl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||\"tsconfig.json\",JSON.stringify(e||[]),JSON.stringify(t||[]))}function s0e(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function TN(e){return!rs(e,\"files\")&&!rs(e,\"references\")}function z6(e,t,r,i,o){let s=i.length;return s0e(e,o)?i.push(a0e(r,t)):X5(i,l=>!M4e(l)),s!==i.length}function L4e(e){return!!e.options}function l0e(e,t,r,i,o,s,l,d){var p;i=ad(i);let h=Qi(o||\"\",i);if(s.includes(h))return l.push(bl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(\" -> \"))),{raw:e||Wie(t,l)};let m=e?k4e(e,r,i,o,l):O4e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};fo(m.extendedConfigPath)?v(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>v(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=bo(E.extendedSourceFiles.keys())),m.options=R1(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?R1(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function v(E,S){let A=w4e(t,S,r,s,l,d,E);if(A&&L4e(A)){let C=A.raw,R,L=G=>{C[G]&&(E[G]=nn(C[G],U=>Ou(U)?U:wr(R||(R=KD(Ur(S),i,od(r.useCaseSensitiveFileNames))),U)))};L(\"include\"),L(\"exclude\"),L(\"files\"),C.compileOnSave!==void 0&&(E.compileOnSave=C.compileOnSave),R1(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?R1({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function k4e(e,t,r,i,o){rs(e,\"excludes\")&&o.push(bl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=m0e(e.compilerOptions,r,o,i),l=_0e(e.typeAcquisition,r,o,i),d=F4e(e.watchOptions,r,o);e.compileOnSave=W4e(e,r,o);let p=e.extends||e.extends===\"\"?c0e(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function c0e(e,t,r,i,o,s,l,d){let p,h=i?i0e(i,r):r;if(fo(e))p=d0e(e,t,h,o,l,d);else if(oo(e)){p=[];for(let m=0;m<e.length;m++){let v=e[m];fo(v)?p=pn(p,d0e(v,t,h,o,l?.elements[m],d)):eT(Z2.element,e,r,o,s,l?.elements[m],d)}}else eT(Z2,e,r,o,s,l,d);return p}function O4e(e,t,r,i,o){let s=f0e(i),l,d,p,h,m=R4e(),v=XEe(e,o,{rootOptions:m,onPropertySet:E});return l||(l=cU(i)),h&&v&&v.compilerOptions===void 0&&o.push(vf(e,h[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,$1(h[0]))),{raw:v,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p};function E(S,A,C,R,L){if(L&&L!==Z2&&(A=eT(L,A,r,o,C,C.initializer,e)),R?.name)if(L){let G;R===Kie?G=s:R===Xie?G=d??(d={}):R===Yie?G=l??(l=cU(i)):x.fail(\"Unknown option\"),G[L.name]=A}else S&&R?.extraKeyDiagnostics&&(R.elementOptions?o.push(kie(S,R.extraKeyDiagnostics,void 0,C.name,e)):o.push(vf(e,C.name,R.extraKeyDiagnostics.unknownOptionDiagnostic,S)));else R===m&&(L===Z2?p=c0e(A,t,r,i,o,C,C.initializer,e):L||(S===\"excludes\"&&o.push(vf(e,C.name,f.Unknown_option_excludes_Did_you_mean_exclude)),Dr(uU,G=>G.name===S)&&(h=pn(h,C.name))))}}function d0e(e,t,r,i,o,s){if(e=ad(e),Ou(e)||Ui(e,\"./\")||Ui(e,\"../\")){let d=Qi(e,r);if(!t.fileExists(d)&&!Zs(d,\".json\")&&(d=`${d}.json`,!t.fileExists(d))){i.push(Bb(s,o,f.File_0_not_found,e));return}return d}let l=soe(e,wr(r,\"tsconfig.json\"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===\"\"?i.push(Bb(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,\"extends\")):i.push(Bb(s,o,f.File_0_not_found,e))}function w4e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:C_(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=wie(t,v=>r.readFile(v)),h.parseDiagnostics.length||(m=l0e(void 0,h,r,Ur(t),Ll(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let v of h.extendedSourceFiles)l.extendedSourceFiles.add(v);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function W4e(e,t,r){if(!rs(e,J2.name))return!1;let i=eT(J2,e.compileOnSave,t,r);return typeof i==\"boolean\"&&i}function u0e(e,t,r){let i=[];return{options:m0e(e,t,i,r),errors:i}}function p0e(e,t,r){let i=[];return{options:_0e(e,t,i,r),errors:i}}function f0e(e){return e&&Ll(e)===\"jsconfig.json\"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function m0e(e,t,r,i){let o=f0e(i);return Fie(qEe(),e,t,o,Q2,r),i&&(o.configFilePath=ad(i)),o}function cU(e){return{enable:!!e&&Ll(e)===\"jsconfig.json\",include:[],exclude:[]}}function _0e(e,t,r,i){let o=cU(i);return Fie(KEe(),e,t,o,Jie,r),o}function F4e(e,t,r){return Fie(JEe(),e,t,void 0,q6,r)}function Fie(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=eT(d,t[l],r,s):s.push(kie(l,o))}return i}}function Bb(e,t,r,...i){return e&&t?vf(e,t,r,...i):bl(r,...i)}function eT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(Bb(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(YEe(e,t)){let d=e.type;if(d===\"list\"&&oo(t))return g0e(e,t,r,i,o,s,l);if(d===\"listOrElement\")return oo(t)?g0e(e,t,r,i,o,s,l):eT(e.element,t,r,i,o,s,l);if(!fo(e.type))return h0e(e,t,i,s,l);let p=vI(e,t,i,s,l);return q2(p)?p:z4e(e,r,p)}else i.push(Bb(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,oU(e)))}function z4e(e,t,r){return e.isFilePath&&(r=Qi(r,t),r===\"\"&&(r=\".\")),r}function vI(e,t,r,i,o){var s;if(q2(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(Bb(o,i,...l))}function h0e(e,t,r,i,o){if(q2(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return vI(e,l,r,i,o);r.push(FEe(e,(d,...p)=>Bb(o,i,d,...p)))}function g0e(e,t,r,i,o,s,l){return Cr(nn(t,(d,p)=>eT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function AN(e,t,r,i,o=je){t=Yo(t);let s=od(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,E=GC(r,o),S=YL(r,E);if(h)for(let L of h){let G=Qi(L,t);l.set(s(G),G)}let A;if(m&&m.length>0)for(let L of i.readDirectory(t,Ff(S),v,m,void 0)){if(el(L,\".json\")){if(!A){let K=m.filter(oe=>Zs(oe,\".json\")),F=nn(lF(K,t,\"files\"),oe=>`^${oe}$`);A=F?F.map(oe=>iy(oe,i.useCaseSensitiveFileNames)):je}if(Tl(A,K=>K.test(L))!==-1){let K=s(L);!l.has(K)&&!p.has(K)&&p.set(K,L)}continue}if(V4e(L,l,d,E,s))continue;j4e(L,d,E,s);let G=s(L);!l.has(G)&&!d.has(G)&&d.set(G,L)}let C=bo(l.values()),R=bo(d.values());return C.concat(R,bo(p.values()))}function zie(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!yn(l)||!yn(d))return!1;r=Yo(r);let p=od(i);if(s){for(let h of s)if(p(Qi(h,r))===e)return!1}return y0e(e,d,i,o,r)}function v0e(e){let t=Ui(e,\"**/\")?0:e.indexOf(\"/**/\");return t===-1?!1:(Zs(e,\"/..\")?e.length:e.lastIndexOf(\"/../\"))>t}function B6(e,t,r,i){return y0e(e,Cr(t,o=>!v0e(o)),r,i)}function y0e(e,t,r,i,o){let s=BC(t,wr(Yo(i),o),\"exclude\"),l=s&&iy(s,r);return l?l.test(e)?!0:!TA(e)&&l.test(_c(e)):!1}function b0e(e,t,r,i,o){return e.filter(l=>{if(!fo(l))return!1;let d=Bie(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=fW(i,o,d);return Bb(i,p,l,d)}}function Bie(e,t){if(x.assert(typeof e==\"string\"),t&&N0e.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(v0e(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B4e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=BC(t,r,\"exclude\"),s=o&&new RegExp(o,i?\"\":\"i\"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=Yo(wr(r,h));if(s&&s.test(m))continue;let v=G4e(m,i);if(v){let{key:E,path:S,flags:A}=v,C=d.get(E),R=C!==void 0?l[C]:void 0;(R===void 0||R<A)&&(l[C!==void 0?C:S]=A,C===void 0&&d.set(E,S),A===1&&p.push(E))}}for(let h in l)if(rs(l,h))for(let m of p){let v=Gie(h,i);v!==m&&Bf(m,v,r,!i)&&delete l[h]}}return l}function Gie(e,t){return t?e:C_(e)}function G4e(e,t){let r=P0e.exec(e);if(r){let i=e.indexOf(\"?\"),o=e.indexOf(\"*\"),s=e.lastIndexOf(Os);return{key:Gie(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(RV(e.substring(e.lastIndexOf(Os)+1))){let i=fb(e);return{key:Gie(i,t),path:i,flags:1}}}function V4e(e,t,r,i,o){let s=an(i,l=>$l(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(el(e,l)&&(l!==\".ts\"||!el(e,\".d.ts\")))return!1;let d=o(Nb(e,l));if(t.has(d)||r.has(d)){if(l===\".d.ts\"&&(el(e,\".js\")||el(e,\".jsx\")))continue;return!0}}return!1}function j4e(e,t,r,i){let o=an(r,s=>$l(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(el(e,l))return;let d=i(Nb(e,l));t.delete(d)}}function Vie(e){let t={};for(let r in e)if(rs(e,r)){let i=nU(r);i!==void 0&&(t[r]=jie(e[r],i))}return t}function jie(e,t){if(e===void 0)return e;switch(t.type){case\"object\":return\"\";case\"string\":return\"\";case\"number\":return typeof e==\"number\"?e:\"\";case\"boolean\":return typeof e==\"boolean\"?e:\"\";case\"listOrElement\":if(!oo(e))return jie(e,t.element);case\"list\":let r=t.element;return oo(e)?Fi(e,i=>jie(i,r)):\"\";default:return hc(t.type,(i,o)=>{if(i===e)return o})}}function Uie(e){switch(e.type){case\"number\":return 1;case\"boolean\":return!0;case\"string\":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t==\"string\"?t:\"\"}`:\"\";case\"list\":return[];case\"listOrElement\":return Uie(e.element);case\"object\":return{};default:let r=qw(e.type.keys());return r!==void 0?r:x.fail(\"Expected 'option.type' to have entries.\")}}var J2,Hie,IN,qie,K2,G6,Yx,X2,Y2,dU,uU,Nh,pU,fU,mU,V6,j6,_U,hU,gU,U6,$2,E0e,S0e,H6,Q2,T0e,A0e,I0e,Jie,x0e,q6,R0e,D0e,C0e,Z2,Kie,Xie,Yie,$ie,J6,N0e,P0e,U4e=pt({\"src/compiler/commandLineParser.ts\"(){\"use strict\";wo(),J2={name:\"compileOnSave\",type:\"boolean\",defaultValueDescription:!1},Hie=new Map(Object.entries({preserve:1,\"react-native\":3,react:2,\"react-jsx\":4,\"react-jsxdev\":5})),IN=new Map(OD(Hie.entries(),([e,t])=>[\"\"+t,e])),qie=[[\"es5\",\"lib.es5.d.ts\"],[\"es6\",\"lib.es2015.d.ts\"],[\"es2015\",\"lib.es2015.d.ts\"],[\"es7\",\"lib.es2016.d.ts\"],[\"es2016\",\"lib.es2016.d.ts\"],[\"es2017\",\"lib.es2017.d.ts\"],[\"es2018\",\"lib.es2018.d.ts\"],[\"es2019\",\"lib.es2019.d.ts\"],[\"es2020\",\"lib.es2020.d.ts\"],[\"es2021\",\"lib.es2021.d.ts\"],[\"es2022\",\"lib.es2022.d.ts\"],[\"es2023\",\"lib.es2023.d.ts\"],[\"esnext\",\"lib.esnext.d.ts\"],[\"dom\",\"lib.dom.d.ts\"],[\"dom.iterable\",\"lib.dom.iterable.d.ts\"],[\"dom.asynciterable\",\"lib.dom.asynciterable.d.ts\"],[\"webworker\",\"lib.webworker.d.ts\"],[\"webworker.importscripts\",\"lib.webworker.importscripts.d.ts\"],[\"webworker.iterable\",\"lib.webworker.iterable.d.ts\"],[\"webworker.asynciterable\",\"lib.webworker.asynciterable.d.ts\"],[\"scripthost\",\"lib.scripthost.d.ts\"],[\"es2015.core\",\"lib.es2015.core.d.ts\"],[\"es2015.collection\",\"lib.es2015.collection.d.ts\"],[\"es2015.generator\",\"lib.es2015.generator.d.ts\"],[\"es2015.iterable\",\"lib.es2015.iterable.d.ts\"],[\"es2015.promise\",\"lib.es2015.promise.d.ts\"],[\"es2015.proxy\",\"lib.es2015.proxy.d.ts\"],[\"es2015.reflect\",\"lib.es2015.reflect.d.ts\"],[\"es2015.symbol\",\"lib.es2015.symbol.d.ts\"],[\"es2015.symbol.wellknown\",\"lib.es2015.symbol.wellknown.d.ts\"],[\"es2016.array.include\",\"lib.es2016.array.include.d.ts\"],[\"es2016.intl\",\"lib.es2016.intl.d.ts\"],[\"es2017.date\",\"lib.es2017.date.d.ts\"],[\"es2017.object\",\"lib.es2017.object.d.ts\"],[\"es2017.sharedmemory\",\"lib.es2017.sharedmemory.d.ts\"],[\"es2017.string\",\"lib.es2017.string.d.ts\"],[\"es2017.intl\",\"lib.es2017.intl.d.ts\"],[\"es2017.typedarrays\",\"lib.es2017.typedarrays.d.ts\"],[\"es2018.asyncgenerator\",\"lib.es2018.asyncgenerator.d.ts\"],[\"es2018.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"es2018.intl\",\"lib.es2018.intl.d.ts\"],[\"es2018.promise\",\"lib.es2018.promise.d.ts\"],[\"es2018.regexp\",\"lib.es2018.regexp.d.ts\"],[\"es2019.array\",\"lib.es2019.array.d.ts\"],[\"es2019.object\",\"lib.es2019.object.d.ts\"],[\"es2019.string\",\"lib.es2019.string.d.ts\"],[\"es2019.symbol\",\"lib.es2019.symbol.d.ts\"],[\"es2019.intl\",\"lib.es2019.intl.d.ts\"],[\"es2020.bigint\",\"lib.es2020.bigint.d.ts\"],[\"es2020.date\",\"lib.es2020.date.d.ts\"],[\"es2020.promise\",\"lib.es2020.promise.d.ts\"],[\"es2020.sharedmemory\",\"lib.es2020.sharedmemory.d.ts\"],[\"es2020.string\",\"lib.es2020.string.d.ts\"],[\"es2020.symbol.wellknown\",\"lib.es2020.symbol.wellknown.d.ts\"],[\"es2020.intl\",\"lib.es2020.intl.d.ts\"],[\"es2020.number\",\"lib.es2020.number.d.ts\"],[\"es2021.promise\",\"lib.es2021.promise.d.ts\"],[\"es2021.string\",\"lib.es2021.string.d.ts\"],[\"es2021.weakref\",\"lib.es2021.weakref.d.ts\"],[\"es2021.intl\",\"lib.es2021.intl.d.ts\"],[\"es2022.array\",\"lib.es2022.array.d.ts\"],[\"es2022.error\",\"lib.es2022.error.d.ts\"],[\"es2022.intl\",\"lib.es2022.intl.d.ts\"],[\"es2022.object\",\"lib.es2022.object.d.ts\"],[\"es2022.sharedmemory\",\"lib.es2022.sharedmemory.d.ts\"],[\"es2022.string\",\"lib.es2022.string.d.ts\"],[\"es2022.regexp\",\"lib.es2022.regexp.d.ts\"],[\"es2023.array\",\"lib.es2023.array.d.ts\"],[\"es2023.collection\",\"lib.es2023.collection.d.ts\"],[\"esnext.array\",\"lib.es2023.array.d.ts\"],[\"esnext.collection\",\"lib.esnext.collection.d.ts\"],[\"esnext.symbol\",\"lib.es2019.symbol.d.ts\"],[\"esnext.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"esnext.intl\",\"lib.esnext.intl.d.ts\"],[\"esnext.disposable\",\"lib.esnext.disposable.d.ts\"],[\"esnext.bigint\",\"lib.es2020.bigint.d.ts\"],[\"esnext.string\",\"lib.es2022.string.d.ts\"],[\"esnext.promise\",\"lib.esnext.promise.d.ts\"],[\"esnext.weakref\",\"lib.es2021.weakref.d.ts\"],[\"esnext.decorators\",\"lib.esnext.decorators.d.ts\"],[\"esnext.object\",\"lib.esnext.object.d.ts\"],[\"decorators\",\"lib.decorators.d.ts\"],[\"decorators.legacy\",\"lib.decorators.legacy.d.ts\"]],K2=qie.map(e=>e[0]),G6=new Map(qie),Yx=[{name:\"watchFile\",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:\"watchDirectory\",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:\"fallbackPolling\",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:\"synchronousWatchDirectory\",type:\"boolean\",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:\"excludeDirectories\",type:\"list\",element:{name:\"excludeDirectory\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:\"excludeFiles\",type:\"list\",element:{name:\"excludeFile\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],X2=[{name:\"help\",shortName:\"h\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:\"help\",shortName:\"?\",type:\"boolean\",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:\"watch\",shortName:\"w\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:\"preserveWatchOutput\",type:\"boolean\",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:\"listFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:\"explainFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:\"listEmittedFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:\"pretty\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:\"traceResolution\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:\"diagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"extendedDiagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"generateCpuProfile\",type:\"string\",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:\"profile.cpuprofile\"},{name:\"generateTrace\",type:\"string\",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:\"incremental\",shortName:\"i\",type:\"boolean\",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declaration\",shortName:\"d\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declarationMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:\"emitDeclarationOnly\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"sourceMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:\"inlineSourceMap\",type:\"boolean\",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"assumeChangesOnlyAffectDirectDependencies\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:\"locale\",type:\"string\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],Y2={name:\"target\",shortName:\"t\",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set([\"es3\"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},dU={name:\"module\",shortName:\"m\",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},uU=[{name:\"all\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:\"version\",shortName:\"v\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:\"init\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:\"project\",shortName:\"p\",type:\"string\",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:\"build\",type:\"boolean\",shortName:\"b\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:\"showConfig\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:\"listFilesOnly\",type:\"boolean\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Y2,dU,{name:\"lib\",type:\"list\",element:{name:\"lib\",type:G6,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:\"allowJs\",type:\"boolean\",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:\"checkJs\",type:\"boolean\",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:\"jsx\",type:Hie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:\"outFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:\"outDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:\"rootDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"composite\",type:\"boolean\",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:\"tsBuildInfoFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:\".tsbuildinfo\",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:\"removeComments\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:\"noEmit\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"importHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:\"importsNotUsedAsValues\",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:\"downlevelIteration\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:\"isolatedModules\",type:\"boolean\",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"verbatimModuleSyntax\",type:\"boolean\",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:\"strict\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:\"noImplicitAny\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictNullChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictFunctionTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictBindCallApply\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictPropertyInitialization\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noImplicitThis\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"useUnknownInCatchVariables\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"alwaysStrict\",type:\"boolean\",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noUnusedLocals\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:\"noUnusedParameters\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:\"exactOptionalPropertyTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:\"noImplicitReturns\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:\"noFallthroughCasesInSwitch\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:\"noUncheckedIndexedAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:\"noImplicitOverride\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:\"noPropertyAccessFromIndexSignature\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:\"moduleResolution\",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set([\"node\"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:\"baseUrl\",type:\"string\",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:\"paths\",type:\"object\",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:\"rootDirs\",type:\"list\",isTSConfigOnly:!0,element:{name:\"rootDirs\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"typeRoots\",type:\"list\",element:{name:\"typeRoots\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:\"types\",type:\"list\",element:{name:\"types\",type:\"string\"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:\"allowSyntheticDefaultImports\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:\"esModuleInterop\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:\"preserveSymlinks\",type:\"boolean\",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:\"allowUmdGlobalAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:\"moduleSuffixes\",type:\"list\",element:{name:\"suffix\",type:\"string\"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:\"allowImportingTsExtensions\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:\"resolvePackageJsonExports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"resolvePackageJsonImports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"customConditions\",type:\"list\",element:{name:\"condition\",type:\"string\"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:\"sourceRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:\"mapRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:\"inlineSources\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"experimentalDecorators\",type:\"boolean\",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:\"emitDecoratorMetadata\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:\"jsxFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:\"`React.createElement`\"},{name:\"jsxFragmentFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:\"React.Fragment\"},{name:\"jsxImportSource\",type:\"string\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:\"react\"},{name:\"resolveJsonModule\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:\"allowArbitraryExtensions\",type:\"boolean\",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:\"out\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:\"reactNamespace\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:\"`React`\"},{name:\"skipDefaultLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:\"charset\",type:\"string\",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:\"utf8\"},{name:\"emitBOM\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:\"newLine\",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:\"lf\"},{name:\"noErrorTruncation\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:\"noLib\",type:\"boolean\",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"noResolve\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"stripInternal\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:\"disableSizeLimit\",type:\"boolean\",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:\"disableSourceOfProjectReferenceRedirect\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:\"disableSolutionSearching\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:\"disableReferencedProjectLoad\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:\"noImplicitUseStrict\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:\"noEmitHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:\"noEmitOnError\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:\"preserveConstEnums\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:\"declarationDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:\"skipLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:\"allowUnusedLabels\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:\"allowUnreachableCode\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:\"suppressExcessPropertyErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:\"suppressImplicitAnyIndexErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:\"forceConsistentCasingInFileNames\",type:\"boolean\",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:\"maxNodeModuleJsDepth\",type:\"number\",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:\"noStrictGenericChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:\"useDefineForClassFields\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:\"preserveValueImports\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:\"keyofStringsOnly\",type:\"boolean\",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:\"plugins\",type:\"list\",isTSConfigOnly:!0,element:{name:\"plugin\",type:\"object\"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:\"moduleDetection\",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:\"ignoreDeprecations\",type:\"string\",defaultValueDescription:void 0}],Nh=[...X2,...uU],pU=Nh.filter(e=>!!e.affectsSemanticDiagnostics),fU=Nh.filter(e=>!!e.affectsEmit),mU=Nh.filter(e=>!!e.affectsDeclarationPath),V6=Nh.filter(e=>!!e.affectsModuleResolution),j6=Nh.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),_U=Nh.filter(e=>!!e.affectsProgramStructure),hU=Nh.filter(e=>rs(e,\"transpileOptionValue\")),gU=[{name:\"verbose\",shortName:\"v\",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:\"boolean\",defaultValueDescription:!1},{name:\"dry\",shortName:\"d\",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:\"boolean\",defaultValueDescription:!1},{name:\"force\",shortName:\"f\",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:\"boolean\",defaultValueDescription:!1},{name:\"clean\",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:\"boolean\",defaultValueDescription:!1}],U6=[...X2,...gU],$2=[{name:\"enable\",type:\"boolean\",defaultValueDescription:!1},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"}},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"}},{name:\"disableFilenameBasedTypeAcquisition\",type:\"boolean\",defaultValueDescription:!1}],S0e={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:VEe},H6={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Q2={alternateMode:S0e,getOptionsNameMap:Xx,optionDeclarations:Nh,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},A0e={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Xx},I0e={alternateMode:A0e,getOptionsNameMap:VEe,optionDeclarations:U6,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Jie={optionDeclarations:$2,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},q6={getOptionsNameMap:HEe,optionDeclarations:Yx,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},Z2={name:\"extends\",type:\"listOrElement\",element:{name:\"extends\",type:\"string\"},category:f.File_Management,disallowNullOrUndefined:!0},Kie={name:\"compilerOptions\",type:\"object\",elementOptions:qEe(),extraKeyDiagnostics:Q2},Xie={name:\"watchOptions\",type:\"object\",elementOptions:JEe(),extraKeyDiagnostics:q6},Yie={name:\"typeAcquisition\",type:\"object\",elementOptions:KEe(),extraKeyDiagnostics:Jie},J6=\"**/*\",N0e=/(^|\\/)\\*\\*\\/?$/,P0e=/^[^*?]*(?=\\/[^/]*[*?])/}});function to(e,t,...r){e.trace(SV(t,...r))}function cg(e,t){return!!e.traceResolution&&t.trace!==void 0}function yI(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name==\"string\"&&typeof i.version==\"string\"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Os.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function vU(e){return yI(void 0,e)}function M0e(e){if(e)return x.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function K6(e){let t=[];return e&1&&t.push(\"TypeScript\"),e&2&&t.push(\"JavaScript\"),e&4&&t.push(\"Declaration\"),e&8&&t.push(\"JSON\"),t.join(\", \")}function H4e(e){let t=[];return e&1&&t.push(...l2),e&2&&t.push(...Px),e&4&&t.push(...s2),e&8&&t.push(\".json\"),t}function Qie(e){if(e)return x.assert(mF(e.extension)),{fileName:e.path,packageId:e.packageId}}function L0e(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Ic(e)){let{resolvedFileName:h,originalPath:m}=w0e(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return k0e(t,r,i,o,s,l.resultFromCache,d,p)}function k0e(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:Zie(s.failedLookupLocations,r),affectingLocations:Zie(s.affectingLocations,i),resolutionDiagnostics:Zie(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=$x(s.failedLookupLocations,r),s.affectingLocations=$x(s.affectingLocations,i),s.resolutionDiagnostics=$x(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:xN(r),affectingLocations:xN(i),resolutionDiagnostics:xN(o),alternateResult:d}}function xN(e){return e.length?e:void 0}function $x(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Zie(e,t){return e?.length?t.length?[...e,...t]:e.slice():xN(t)}function O0e(e,t,r,i){if(!rs(e,t)){i.traceEnabled&&to(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&to(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?\"null\":typeof o);return}return o}function yU(e,t,r,i){let o=O0e(e,t,\"string\",i);if(o===void 0)return;if(!o){i.traceEnabled&&to(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=Yo(wr(r,o));return i.traceEnabled&&to(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function q4e(e,t,r){return yU(e,\"typings\",t,r)||yU(e,\"types\",t,r)}function J4e(e,t,r){return yU(e,\"tsconfig\",t,r)}function K4e(e,t,r){return yU(e,\"main\",t,r)}function X4e(e,t){let r=O0e(e,\"typesVersions\",\"object\",t);if(r!==void 0)return t.traceEnabled&&to(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y4e(e,t){let r=X4e(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)rs(r,l)&&!hM.tryParse(l)&&to(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=X6(r);if(!i){t.traceEnabled&&to(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,jm);return}let{version:o,paths:s}=i;if(typeof s!=\"object\"){t.traceEnabled&&to(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,\"object\",typeof s);return}return i}function X6(e){foe||(foe=new zf(bp));for(let t in e){if(!rs(e,t))continue;let r=hM.tryParse(t);if(r!==void 0&&r.test(foe))return{version:t,paths:e[t]}}}function RN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=Ur(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $4e(r)}function $4e(e){let t;return Vf(Yo(e),r=>{let i=wr(r,iSe);(t??(t=[])).push(i)}),t}function Q4e(e,t,r){let i=typeof r.useCaseSensitiveFileNames==\"function\"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Xh(e,t,!i)===0}function w0e(e,t,r){let i=d3e(e,t,r),o=Q4e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function W0e(e,t,r){let i=Zs(e,\"/node_modules/@types\")||Zs(e,\"/node_modules/@types/\")?tSe(t,r):t;return wr(e,i)}function eoe(e,t,r,i,o,s,l){x.assert(typeof e==\"string\",\"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.\");let d=cg(r,i);o&&(r=o.commandLine.options);let p=t?Ur(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Ic(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(to(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),to(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),F(h)),h;let m=RN(r,i);d&&(t===void 0?m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let v=[],E=[],S=toe(r);l!==void 0&&(S|=30);let A=zd(r);l===99&&3<=A&&A<=99&&(S|=32);let C=S&8?hy(r,l):[],R=[],L={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:v,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:C,requestContainingDirectory:p,reportDiagnostic:$=>void R.push($),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},G=oe(),U=!0;G||(G=W(),U=!1);let K;if(G){let{fileName:$,packageId:de}=G,fe=$,q;r.preserveSymlinks||({resolvedFileName:fe,originalPath:q}=w0e($,i,d)),K={primary:U,resolvedFileName:fe,originalPath:q,packageId:de,isExternalLibraryImport:Gb($)}}return h={resolvedTypeReferenceDirective:K,failedLookupLocations:xN(v),affectingLocations:xN(E),resolutionDiagnostics:xN(R)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Ic(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&F(h),h;function F($){var de;(de=$.resolvedTypeReferenceDirective)!=null&&de.resolvedFileName?$.resolvedTypeReferenceDirective.packageId?to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,$.resolvedTypeReferenceDirective.resolvedFileName,Qv($.resolvedTypeReferenceDirective.packageId),$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,$.resolvedTypeReferenceDirective.resolvedFileName,$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_not_resolved,e)}function oe(){if(m&&m.length)return d&&to(i,f.Resolving_with_primary_search_path_0,m.join(\", \")),ml(m,$=>{let de=W0e($,e,L),fe=gm($,i);if(!fe&&d&&to(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,$),r.typeRoots){let q=eR(4,de,!fe,L);if(q){let H=tk(q.path),ee=H?m0(H,!1,L):void 0;return Qie(yI(ee,q))}}return Qie(coe(4,de,!fe,L))});d&&to(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function W(){let $=t&&Ur(t);if($!==void 0){let de;if(!r.typeRoots||!Zs(t,lR))if(d&&to(i,f.Looking_up_in_node_modules_folder_initial_location_0,$),Ic(e)){let{path:fe}=j0e($,e);de=AU(4,fe,!1,L,!0)}else{let fe=$0e(4,e,$,L,void 0,void 0);de=fe&&fe.value}else d&&to(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Qie(de)}else d&&to(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function toe(e){let t=0;switch(zd(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function hy(e,t){let r=zd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?[\"import\"]:[\"require\"];return e.noDtsResolution||i.push(\"types\"),r!==100&&i.push(\"node\"),ro(i,e.customConditions)}function bU(e,t,r,i,o){let s=nk(o?.getPackageJsonInfoCache(),i,r);return Vf(t,l=>{if(Ll(l)!==\"node_modules\"){let d=wr(l,\"node_modules\"),p=wr(d,e);return m0(p,!1,s)}})}function Y6(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=RN(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=Yo(s),d=wr(o,l,\"package.json\");if(!(t.fileExists(d)&&kC(d,t).typings===null)){let h=Ll(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function $6(e){return!!e?.contents}function noe(e){return!!e&&!e.contents}function roe(e){var t;if(e===null||typeof e!=\"object\")return\"\"+e;if(oo(e))return`[${(t=e.map(i=>roe(i)))==null?void 0:t.join(\",\")}]`;let r=\"{\";for(let i in e)rs(e,i)&&(r+=`${i}: ${roe(e[i])}`);return r+\"}\"}function EU(e,t){return t.map(r=>roe(iF(e,r))).join(\"|\")+`|${e.pathsBasePath}`}function SU(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(v){return v?p(v.commandLine.options,!1):o}function l(v){return v?p(v.commandLine.options,!0):o}function d(v){e!==v&&(e?o=p(v,!0):r.set(v,o),e=v)}function p(v,E){let S=r.get(v);if(S)return S;let A=m(v);if(S=i.get(A),!S){if(e){let C=m(e);C===A?S=o:i.has(C)||i.set(C,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(v,S),S}function h(){let v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function m(v){let E=t.get(v);return E||t.set(v,E=EU(v,V6)),E}}function Z4e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(ks(d,e,t))}function o(d,p){(r||(r=new Map)).set(ks(d,e,t),p)}function s(){r=void 0}function l(){return r}}function F0e(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function e3e(e,t,r,i){let o=SU(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let v=ks(h,e,t);return F0e(o,m,v,()=>bI())}function p(h,m,v,E){var S,A;let C=ks(v,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(C))==null?void 0:A.get(h,m)}}function DN(e,t){return t===void 0?e:`${t}|${e}`}function bI(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=DN(o,s);return t.set(l,[o,s]),l}}function t3e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function n3e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function r3e(e,t,r,i,o){let s=SU(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(v){s.update(v)}function p(v,E,S,A){var C,R;return x.assert(!Ic(v)),(R=(C=s.getMapOfCacheRedirects(A))==null?void 0:C.get(DN(v,E)))==null?void 0:R.get(S)}function h(v,E,S){return x.assert(!Ic(v)),F0e(s,S,DN(v,E),m)}function m(){let v=new Map;return{get:E,set:S};function E(C){return v.get(ks(C,e,t))}function S(C,R){let L=ks(C,e,t);if(v.has(L))return;v.set(L,R);let G=i(R),U=G&&A(L,G),K=L;for(;K!==U;){let F=Ur(K);if(F===K||v.has(F))break;v.set(F,R),K=F}}function A(C,R){let L=ks(Ur(R),e,t),G=0,U=Math.min(C.length,L.length);for(;G<U&&C.charCodeAt(G)===L.charCodeAt(G);)G++;if(G===C.length&&(L.length===G||L[G]===Os))return C;let K=M_(C);if(G<K)return;let F=C.lastIndexOf(Os,G-1);if(F!==-1)return C.substr(0,Math.max(F,K))}}}function z0e(e,t,r,i,o,s){s??(s=new Map);let l=e3e(e,t,r,s),d=r3e(e,t,r,o,s);return i??(i=Z4e(e,t)),{...i,...l,...d,clear:p,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(v){l.update(v),d.update(v)}}function Qx(e,t,r,i,o){let s=z0e(e,t,r,i,t3e,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function Q6(e,t,r,i,o){return z0e(e,t,r,i,n3e,o)}function TU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Z6(e,t,r,i,o){return Zx(e,t,TU(r),i,o)}function B0e(e,t,r,i){let o=Ur(t);return r.getFromDirectoryCache(e,i,o,void 0)}function Zx(e,t,r,i,o,s,l){var d,p,h;let m=cg(r,i);s&&(r=s.commandLine.options),m&&(to(i,f.Resolving_module_0_from_1,e,t),s&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let v=Ur(t),E=o?.getFromDirectoryCache(e,l,v,s);if(E)m&&to(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,v);else{let S=r.moduleResolution;switch(S===void 0?(S=zd(r),m&&to(i,f.Module_resolution_kind_is_not_specified_using_0,O1[S])):m&&to(i,f.Explicitly_specified_module_resolution_kind_Colon_0,O1[S]),(d=Pd)==null||d.logStartResolveModule(e),S){case 3:E=s3e(e,t,r,i,o,s,l);break;case 99:E=l3e(e,t,r,i,o,s,l);break;case 2:E=aoe(e,t,r,i,o,s,l?hy(r,l):void 0);break;case 1:E=uoe(e,t,r,i,o,s);break;case 100:E=ooe(e,t,r,i,o,s,l?hy(r,l):void 0);break;default:return x.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=Pd)==null||p.logInfoEvent(`Module \"${e}\" resolved to \"${E.resolvedModule.resolvedFileName}\"`)),(h=Pd)==null||h.logStopResolveModule(E&&E.resolvedModule?\"\"+E.resolvedModule.resolvedFileName:\"null\"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(v,s).set(e,l,E),Ic(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(v,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?to(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,Qv(E.resolvedModule.packageId)):to(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):to(i,f.Module_name_0_was_not_resolved,e)),E}function G0e(e,t,r,i,o){let s=i3e(e,t,i,o);return s?s.value:Ic(t)?o3e(e,t,r,i,o):a3e(e,t,i,o)}function i3e(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!op(t)){i.traceEnabled&&(s&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),to(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=zW(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=fF(l)):void 0;return doe(e,t,p,l,h,r,!1,i)}}function o3e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&to(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=Yo(wr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=Yo(p);Zs(h,Os)||(h+=Os);let m=Ui(s,h)&&(d===void 0||d.length<h.length);o.traceEnabled&&to(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,m),m&&(d=h,l=p)}if(d){o.traceEnabled&&to(o.host,f.Longest_matching_prefix_for_0_is_1,s,d);let p=s.substr(d.length);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,d,s);let h=i(e,s,!gm(r,o.host),o);if(h)return h;o.traceEnabled&&to(o.host,f.Trying_other_entries_in_rootDirs);for(let m of o.compilerOptions.rootDirs){if(m===l)continue;let v=wr(Yo(m),p);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,m,v);let E=Ur(v),S=i(e,v,!gm(E,o.host),o);if(S)return S}o.traceEnabled&&to(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function a3e(e,t,r,i){let{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);let s=Yo(wr(o,t));return i.traceEnabled&&to(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!gm(Ur(s),i.host),i)}function ioe(e,t,r){let{resolvedModule:i,failedLookupLocations:o}=c3e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(\", \")}`);return i.resolvedFileName}function s3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function l3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function V0e(e,t,r,i,o,s,l,d,p){let h=Ur(r),m=d===99?32:0,v=i.noDtsResolution?3:7;return Mb(i)&&(v|=8),ek(e|m,t,h,i,o,s,v,!1,l,p)}function c3e(e,t,r){return ek(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function ooe(e,t,r,i,o,s,l){let d=Ur(t),p=r.noDtsResolution?3:7;return Mb(r)&&(p|=8),ek(toe(r),e,d,r,i,o,p,!1,s,l)}function aoe(e,t,r,i,o,s,l,d){let p;return d?p=8:r.noDtsResolution?(p=3,Mb(r)&&(p|=8)):p=Mb(r)?15:7,ek(l?30:0,e,Ur(t),r,i,o,p,!!d,s,l)}function soe(e,t,r){return ek(30,e,Ur(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function ek(e,t,r,i,o,s,l,d,p,h){var m,v,E,S,A;let C=cg(i,o),R=[],L=[],G=zd(i);h??(h=hy(i,G===100||G===2?void 0:e&32?99:1));let U=[],K={compilerOptions:i,host:o,traceEnabled:C,failedLookupLocations:R,affectingLocations:L,packageJsonInfoCache:s,features:e,conditions:h??je,requestContainingDirectory:r,reportDiagnostic:$=>void U.push($),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};C&&HA(G)&&to(o,f.Resolving_in_0_mode_with_conditions_1,e&32?\"ESM\":\"CJS\",K.conditions.map($=>`'${$}'`).join(\", \"));let F;if(G===2){let $=l&5,de=l&-6;F=$&&W($,K)||de&&W(de,K)||void 0}else F=W(l,K);let oe;if(K.resolvedPackageDirectory&&!d&&!Ic(t)){let $=F?.value&&l&5&&!K0e(5,F.value.resolved.extension);if((m=F?.value)!=null&&m.isExternalLibraryImport&&$&&e&8&&h?.includes(\"import\")){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let de={...K,features:K.features&-9,reportDiagnostic:Ca},fe=W(l&5,de);(v=fe?.value)!=null&&v.isExternalLibraryImport&&(oe=fe.value.resolved.path)}else if((!F?.value||$)&&G===2){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let de={...K.compilerOptions,moduleResolution:100},fe={...K,compilerOptions:de,features:30,conditions:hy(de),reportDiagnostic:Ca},q=W(l&5,fe);(E=q?.value)!=null&&E.isExternalLibraryImport&&(oe=q.value.resolved.path)}}return L0e(t,(S=F?.value)==null?void 0:S.resolved,(A=F?.value)==null?void 0:A.isExternalLibraryImport,R,L,U,K,s,oe);function W($,de){let q=G0e($,t,r,(H,ee,le,Ee)=>AU(H,ee,le,Ee,!0),de);if(q)return Rp({resolved:q,isExternalLibraryImport:Gb(q.path)});if(Ic(t)){let{path:H,parts:ee}=j0e(r,t),le=AU($,H,!1,de,!0);return le&&Rp({resolved:le,isExternalLibraryImport:To(ee,\"node_modules\")})}else{let H;if(e&2&&Ui(t,\"#\")&&(H=m3e($,t,r,de,s,p)),!H&&e&4&&(H=f3e($,t,r,de,s,p)),!H){if(t.includes(\":\")){C&&to(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,K6($));return}C&&to(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,K6($)),H=$0e($,t,r,de,s,p)}return $&4&&(H??(H=rSe(t,de))),H&&{value:H.value&&{resolved:H.value,isExternalLibraryImport:!0}}}}}function j0e(e,t){let r=wr(e,t),i=mc(r),o=Ns(i);return{path:o===\".\"||o===\"..\"?_c(Yo(r)):Yo(r),parts:i}}function d3e(e,t,r){if(!t.realpath)return e;let i=Yo(t.realpath(e));return r&&to(t,f.Resolving_real_path_for_0_result_1,e,i),i}function AU(e,t,r,i,o){if(i.traceEnabled&&to(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,K6(e)),!Jg(t)){if(!r){let l=Ur(t);gm(l,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=eR(e,t,r,i);if(s){let l=o?tk(s.path):void 0,d=l?m0(l,!1,i):void 0;return yI(d,s)}}if(r||gm(t,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return coe(e,t,r,i,o)}function Gb(e){return e.includes(q_)}function tk(e,t){let r=Yo(e),i=r.lastIndexOf(q_);if(i===-1)return;let o=i+q_.length,s=U0e(r,o,t);return r.charCodeAt(o)===64&&(s=U0e(r,s,t)),r.slice(0,s)}function U0e(e,t,r){let i=e.indexOf(Os,t+1);return i===-1?r?e.length:t:i}function loe(e,t,r,i){return vU(eR(e,t,r,i))}function eR(e,t,r,i){let o=H0e(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=q0e(t,e,\"\",r,i);if(s)return s}}function H0e(e,t,r,i){if(!Ll(t).includes(\".\"))return;let s=Yd(t);s===t&&(s=t.substring(0,t.lastIndexOf(\".\")));let l=t.substring(s.length);return i.traceEnabled&&to(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),q0e(s,e,l,r,i)}function IU(e,t,r,i){return e&1&&$l(t,l2)||e&4&&$l(t,s2)?xU(t,r,i)!==void 0?{path:t,ext:JW(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&el(t,\".json\")?xU(t,r,i)!==void 0?{path:t,ext:\".json\",resolvedUsingTsExtension:void 0}:void 0:H0e(e,t,r,i)}function q0e(e,t,r,i,o){if(!i){let l=Ur(e);l&&(i=!gm(l,o.host))}switch(r){case\".mjs\":case\".mts\":case\".d.mts\":return t&1&&s(\".mts\",r===\".mts\"||r===\".d.mts\")||t&4&&s(\".d.mts\",r===\".mts\"||r===\".d.mts\")||t&2&&s(\".mjs\")||void 0;case\".cjs\":case\".cts\":case\".d.cts\":return t&1&&s(\".cts\",r===\".cts\"||r===\".d.cts\")||t&4&&s(\".d.cts\",r===\".cts\"||r===\".d.cts\")||t&2&&s(\".cjs\")||void 0;case\".json\":return t&4&&s(\".d.json.ts\")||t&8&&s(\".json\")||void 0;case\".tsx\":case\".jsx\":return t&1&&(s(\".tsx\",r===\".tsx\")||s(\".ts\",r===\".tsx\"))||t&4&&s(\".d.ts\",r===\".tsx\")||t&2&&(s(\".jsx\")||s(\".js\"))||void 0;case\".ts\":case\".d.ts\":case\".js\":case\"\":return t&1&&(s(\".ts\",r===\".ts\"||r===\".d.ts\")||s(\".tsx\",r===\".ts\"||r===\".d.ts\"))||t&4&&s(\".d.ts\",r===\".ts\"||r===\".d.ts\")||t&2&&(s(\".js\")||s(\".jsx\"))||o.isConfigLookup&&s(\".json\")||void 0;default:return t&4&&!Yc(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=xU(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function xU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return J0e(e,t,r);let o=og(e)??\"\",s=o?QL(e,o):e;return an(r.compilerOptions.moduleSuffixes,l=>J0e(s+l+o,t,r))}function J0e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&to(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&to(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function coe(e,t,r,i,o=!0){let s=o?m0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&e4(s,i);return yI(s,DU(e,t,r,i,l,d))}function RU(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=toe(t),p=nk(i?.getPackageJsonInfoCache(),r,t);p.conditions=hy(t),p.requestContainingDirectory=e.packageDirectory;let h=DU(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,e4(e,p));if(s=pn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=NE([hy(t,99),hy(t,1)],mm);for(let v of m){let E={...p,failedLookupLocations:[],conditions:v,host:r},S=u3e(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=Kh(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function u3e(e,t,r,i){let o;if(oo(t))for(let l of t)s(l);else if(typeof t==\"object\"&&t!==null&&t4(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l==\"string\"&&Ui(l,\"./\"))if(l.includes(\"*\")&&r.host.readDirectory){if(l.indexOf(\"*\")!==l.lastIndexOf(\"*\"))return!1;r.host.readDirectory(e.packageDirectory,H4e(i),void 0,[pee(KA(l,\"**/*\"),\".*\")]).forEach(h=>{o=Kh(o,{path:h,ext:w1(h),resolvedUsingTsExtension:void 0})})}else{let h=mc(l).slice(2);if(h.includes(\"..\")||h.includes(\".\")||h.includes(\"node_modules\"))return!1;let m=wr(e.packageDirectory,l),v=Qi(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=IU(i,v,!1,r);if(E)return o=Kh(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l==\"object\"&&l!==null)return an(fh(l),h=>{if(h===\"default\"||To(r.conditions,h)||ok(r.conditions,h))return s(l[h]),!0})}}function nk(e,t,r){return{host:t,compilerOptions:r,traceEnabled:cg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:je,requestContainingDirectory:void 0,reportDiagnostic:Ca,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function rk(e,t){let r=mc(e);for(r.pop();r.length>0;){let i=m0(Vv(r),!1,t);if(i)return i;r.pop()}}function e4(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y4e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,v=wr(e,\"package.json\");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(E!==void 0){if($6(E))return m&&to(h,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&to(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}let S=gm(e,h);if(S&&h.fileExists(v)){let A=kC(v,h);m&&to(h,f.Found_package_json_at_0,v);let C={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,C),(d=r.affectingLocations)==null||d.push(v),C}else S&&m&&to(h,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(v)}function DU(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=J4e(o,t,i):l=e&4&&q4e(o,t,i)||e&7&&K4e(o,t,i)||void 0);let d=(E,S,A,C)=>{let R=IU(E,S,A,C);if(R)return vU(R);let L=E===4?5:E,G=C.features,U=C.candidateIsFromPackageJsonField;C.candidateIsFromPackageJsonField=!0,o?.type!==\"module\"&&(C.features&=-33);let K=AU(L,S,A,C,!1);return C.features=G,C.candidateIsFromPackageJsonField=U,K},p=l?!gm(Ur(l),i.host):void 0,h=r||!gm(t,i.host),m=wr(t,i.isConfigLookup?\"tsconfig\":\"index\");if(s&&(!l||Bf(t,l))){let E=Gf(t,l||m,!1);i.traceEnabled&&to(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,bp,E);let S=doe(e,E,t,s.paths,void 0,d,p||h,i);if(S)return M0e(S.value)}let v=l&&M0e(d(e,l,p,i));if(v)return v;if(!(i.features&32))return eR(e,m,h,i)}function K0e(e,t){return e&2&&(t===\".js\"||t===\".jsx\"||t===\".mjs\"||t===\".cjs\")||e&1&&(t===\".ts\"||t===\".tsx\"||t===\".mts\"||t===\".cts\")||e&4&&(t===\".d.ts\"||t===\".d.mts\"||t===\".d.cts\")||e&8&&t===\".json\"||!1}function ik(e){let t=e.indexOf(Os);return e[0]===\"@\"&&(t=e.indexOf(Os,t+1)),t===-1?{packageName:e,rest:\"\"}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function t4(e){return ji(fh(e),t=>Ui(t,\".\"))}function p3e(e){return!ct(fh(e),t=>Ui(t,\".\"))}function f3e(e,t,r,i,o,s){var l,d;let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!=\"string\")return;let m=mc(t),v=mc(h.contents.packageJsonContent.name);if(!ji(v,(R,L)=>m[L]===R))return;let E=m.slice(v.length),S=yn(E)?`.${Os}${E.join(Os)}`:\".\";if(sy(i.compilerOptions)&&!Gb(r))return CU(h,e,S,i,o,s);let A=e&5,C=e&-6;return CU(h,A,S,i,o,s)||CU(h,C,S,i,o,s)}function CU(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r===\".\"){let l;if(typeof e.contents.packageJsonContent.exports==\"string\"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports==\"object\"&&p3e(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:rs(e.contents.packageJsonContent.exports,\".\")&&(l=e.contents.packageJsonContent.exports[\".\"]),l)return Y0e(t,i,o,s,r,e,!1)(l,\"\",!1,\".\")}else if(t4(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!=\"object\")return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0);let l=X0e(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0)}}function m3e(e,t,r,i,o,s){var l,d;if(t===\"#\"||Ui(t,\"#/\"))return i.traceEnabled&&to(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),Rp(void 0);let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h)return i.traceEnabled&&to(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),Rp(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&to(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),Rp(void 0);let m=X0e(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&to(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),Rp(void 0))}function NU(e,t){let r=e.indexOf(\"*\"),i=t.indexOf(\"*\"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function X0e(e,t,r,i,o,s,l,d){let p=Y0e(e,t,r,i,o,l,d);if(!Zs(o,Os)&&!o.includes(\"*\")&&rs(s,o)){let v=s[o];return p(v,\"\",!1,o)}let h=uS(Cr(fh(s),v=>v.includes(\"*\")||Zs(v,\"/\")),NU);for(let v of h)if(t.features&16&&m(v,o)){let E=s[v],S=v.indexOf(\"*\"),A=o.substring(v.substring(0,S).length,o.length-(v.length-1-S));return p(E,A,!0,v)}else if(Zs(v,\"*\")&&Ui(o,v.substring(0,v.length-1))){let E=s[v],S=o.substring(v.length-1);return p(E,S,!0,v)}else if(Ui(o,v)){let E=s[v],S=o.substring(v.length);return p(E,S,!1,v)}function m(v,E){if(Zs(v,\"*\"))return!1;let S=v.indexOf(\"*\");return S===-1?!1:Ui(E,v.substring(0,S))&&Zs(E,v.substring(S+1))}}function Y0e(e,t,r,i,o,s,l){return d;function d(p,h,m,v){if(typeof p==\"string\"){if(!m&&h.length>0&&!Zs(p,\"/\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);if(!Ui(p,\"./\")){if(l&&!Ui(p,\"../\")&&!Ui(p,\"/\")&&!Ou(p)){let F=m?p.replace(/\\*/g,h):p+h;gy(t,f.Using_0_subpath_1_with_target_2,\"imports\",v,F),gy(t,f.Resolving_module_0_from_1,F,s.packageDirectory+\"/\");let oe=ek(t.features,F,s.packageDirectory+\"/\",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return Rp(oe.resolvedModule?{path:oe.resolvedModule.resolvedFileName,extension:oe.resolvedModule.extension,packageId:oe.resolvedModule.packageId,originalPath:oe.resolvedModule.originalPath,resolvedUsingTsExtension:oe.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0)}let R=(op(p)?mc(p).slice(1):mc(p)).slice(1);if(R.includes(\"..\")||R.includes(\".\")||R.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);let L=wr(s.packageDirectory,p),G=mc(h);if(G.includes(\"..\")||G.includes(\".\")||G.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);t.traceEnabled&&to(t.host,f.Using_0_subpath_1_with_target_2,l?\"imports\":\"exports\",v,m?p.replace(/\\*/g,h):p+h);let U=E(m?L.replace(/\\*/g,h):L+h),K=A(U,h,wr(s.packageDirectory,\"package.json\"),l);return K||Rp(yI(s,IU(e,U,!1,t)))}else if(typeof p==\"object\"&&p!==null)if(Array.isArray(p)){if(!yn(p))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);for(let C of p){let R=d(C,h,m,v);if(R)return R}}else{gy(t,f.Entering_conditional_exports);for(let C of fh(p))if(C===\"default\"||t.conditions.includes(C)||ok(t.conditions,C)){gy(t,f.Matched_0_condition_1,l?\"imports\":\"exports\",C);let R=p[C],L=d(R,h,m,v);if(L)return gy(t,f.Resolved_under_condition_0,C),gy(t,f.Exiting_conditional_exports),L;gy(t,f.Failed_to_resolve_under_condition_0,C)}else gy(t,f.Saw_non_matching_condition_0,C);gy(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&to(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),Rp(void 0);return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);function E(C){var R,L;return C===void 0?C:Qi(C,(L=(R=t.host).getCurrentDirectory)==null?void 0:L.call(R))}function S(C,R){return _c(wr(C,R))}function A(C,R,L,G){var U,K,F,oe;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!C.includes(\"/node_modules/\")&&(!t.compilerOptions.configFile||Bf(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!PU(t)))){let $=ev({useCaseSensitiveFileNames:()=>PU(t)}),de=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let fe=E(VN(t.compilerOptions,()=>[],((K=(U=t.host).getCurrentDirectory)==null?void 0:K.call(U))||\"\",$));de.push(fe)}else if(t.requestContainingDirectory){let fe=E(wr(t.requestContainingDirectory,\"index.ts\")),q=E(VN(t.compilerOptions,()=>[fe,E(L)],((oe=(F=t.host).getCurrentDirectory)==null?void 0:oe.call(F))||\"\",$));de.push(q);let H=_c(q);for(;H&&H.length>1;){let ee=mc(H);ee.pop();let le=Vv(ee);de.unshift(le),H=_c(le)}}de.length>1&&t.reportDiagnostic(bl(G?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,R===\"\"?\".\":R,L));for(let fe of de){let q=W(fe);for(let H of q)if(Bf(H,C,!PU(t))){let ee=C.slice(H.length+1),le=wr(fe,ee),Ee=[\".mjs\",\".cjs\",\".js\",\".json\",\".d.mts\",\".d.cts\",\".d.ts\"];for(let ce of Ee)if(el(le,ce)){let Z=une(le);for(let pe of Z){if(!K0e(e,pe))continue;let Ae=xM(le,pe,ce,!PU(t));if(t.host.fileExists(Ae))return Rp(yI(s,IU(e,Ae,!1,t)))}}}}}return;function W($){var de,fe;let q=t.compilerOptions.configFile?((fe=(de=t.host).getCurrentDirectory)==null?void 0:fe.call(de))||\"\":$,H=[];return t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.outDir))),H}}}}function ok(e,t){if(!e.includes(\"types\")||!Ui(t,\"types@\"))return!1;let r=hM.tryParse(t.substring(6));return r?r.test(bp):!1}function $0e(e,t,r,i,o,s){return Q0e(e,t,r,i,!1,o,s)}function _3e(e,t,r){return Q0e(4,e,t,r,!0,void 0,void 0)}function Q0e(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){gy(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,K6(p));let v=m(p);if(v)return v}if(h&&!o)return gy(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,K6(h)),m(h);function m(v){return Vf(ad(r),E=>{if(Ll(E)!==\"node_modules\"){let S=nSe(s,t,d,E,l,i);return S||Rp(Z0e(v,t,E,i,o,s,l))}})}}function Z0e(e,t,r,i,o,s,l){let d=wr(r,\"node_modules\"),p=gm(d,i.host);if(!p&&i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=eSe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=wr(d,\"@types\"),m=p;return p&&!gm(h,i.host)&&(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),eSe(4,tSe(t,i),h,m,i,s,l)}}function eSe(e,t,r,i,o,s,l){var d,p;let h=Yo(wr(r,t)),{packageName:m,rest:v}=ik(t),E=wr(r,m),S,A=m0(h,!i,o);if(v!==\"\"&&A&&(!(o.features&8)||!rs(((d=S=m0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??je,\"exports\"))){let L=eR(e,h,!i,o);if(L)return vU(L);let G=DU(e,h,!i,o,A.contents.packageJsonContent,e4(A,o));return yI(A,G)}let C=(L,G,U,K)=>{let F=(v||!(K.features&32))&&eR(L,G,U,K)||DU(L,G,U,K,A&&A.contents.packageJsonContent,A&&e4(A,K));return!F&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&K.features&32&&(F=eR(L,wr(G,\"index.js\"),U,K)),yI(A,F)};if(v!==\"\"&&(A=S??m0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=CU(A,e,wr(\".\",v),o,s,l))==null?void 0:p.value;let R=v!==\"\"&&A?e4(A,o):void 0;if(R){o.traceEnabled&&to(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,R.version,bp,v);let L=i&&gm(E,o.host),G=doe(e,v,E,R.paths,void 0,C,!L,o);if(G)return G.value}return C(e,h,!i,o)}function doe(e,t,r,i,o,s,l,d){o||(o=fF(i));let p=CV(o,t);if(p){let h=fo(p)?void 0:qZ(p,t),m=fo(p)?p:HZ(p);return d.traceEnabled&&to(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:an(i[m],E=>{let S=h?KA(E,h):E,A=Yo(wr(r,S));d.traceEnabled&&to(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let C=og(E);if(C!==void 0){let R=xU(A,l,d);if(R!==void 0)return vU({path:R,ext:C,resolvedUsingTsExtension:void 0})}return s(e,A,l||!gm(Ur(A),d.host),d)})}}}function tSe(e,t){let r=tR(e);return t.traceEnabled&&r!==e&&to(t.host,f.Scoped_package_detected_looking_in_0,r),r}function n4(e){return`@types/${tR(e)}`}function tR(e){if(Ui(e,\"@\")){let t=e.replace(Os,LU);if(t!==e)return t.slice(1)}return e}function CN(e){let t=jD(e,\"@types/\");return t!==e?ak(t):e}function ak(e){return e.includes(LU)?\"@\"+e.replace(LU,Os):e}function nSe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&to(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function uoe(e,t,r,i,o,s){let l=cg(r,i),d=[],p=[],h=Ur(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return L0e(e,E&&E.value,E?.value&&Gb(E.value.path),d,p,m,v,o);function S(A){let C=G0e(A,e,h,loe,v);if(C)return{value:C};if(Ic(e)){let R=Yo(wr(h,e));return Rp(loe(A,R,!1,v))}else{let R=Vf(h,L=>{let G=nSe(o,e,void 0,L,s,v);if(G)return G;let U=Yo(wr(L,e));return Rp(loe(A,U,!1,v))});if(R)return R;if(A&5){let L=_3e(e,h,v);return A&4&&(L??(L=rSe(e,v))),L}}}}function rSe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=W0e(r,e,t),o=gm(r,t.host);!o&&t.traceEnabled&&to(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=eR(4,i,!o,t);if(s){let d=tk(s.path),p=d?m0(d,!1,t):void 0;return Rp(yI(p,s))}let l=coe(4,i,!o,t);if(l)return Rp(l)}}function nR(e,t){return!!e.allowImportingTsExtensions||t&&Yc(t)}function poe(e,t,r,i,o,s){let l=cg(r,i);l&&to(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=Z0e(4,e,o,m,!1,void 0,void 0);return k0e(v,!0,d,p,h,m.resultFromCache,void 0)}function Rp(e){return e!==void 0?{value:e}:void 0}function gy(e,t,...r){e.traceEnabled&&to(e.host,t,...r)}function PU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames==\"boolean\"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var foe,iSe,MU,q_,LU,h3e=pt({\"src/compiler/moduleNameResolver.ts\"(){\"use strict\";wo(),iSe=wr(\"node_modules\",\"@types\"),MU=(e=>(e[e.None=0]=\"None\",e[e.Imports=2]=\"Imports\",e[e.SelfName=4]=\"SelfName\",e[e.Exports=8]=\"Exports\",e[e.ExportsPatternTrailers=16]=\"ExportsPatternTrailers\",e[e.AllFeatures=30]=\"AllFeatures\",e[e.Node16Default=30]=\"Node16Default\",e[e.NodeNextDefault=30]=\"NodeNextDefault\",e[e.BundlerDefault=30]=\"BundlerDefault\",e[e.EsmMode=32]=\"EsmMode\",e))(MU||{}),q_=\"/node_modules/\",LU=\"__\"}});function dg(e,t){return e.body&&!e.body.parent&&(Aa(e.body,e),oy(e.body,!1)),e.body?moe(e.body,t):1}function moe(e,t=new Map){let r=Fa(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=g3e(e,t);return t.set(r,i),i}function g3e(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(BE(e))return 2;break;case 272:case 271:if(!Wr(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=v3e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ao(e,o=>{let s=moe(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:x.assertNever(s)}}),i}case 267:return dg(e,t);case 80:if(e.flags&4096)return 0}return 1}function v3e(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Do(i)||n_(i)||Li(i)){let o=i.statements,s;for(let l of o)if(zM(l,r)){l.parent||(Aa(l,i),oy(l,!1));let d=moe(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function EI(e){return x.attachFlowNodeDebugInfo(e),e}function _oe(e,t){var r,i;Ls(\"beforeBind\"),(r=Pd)==null||r.logStartBindFile(\"\"+e.fileName),aSe(e,t),(i=Pd)==null||i.logStopBindFile(),Ls(\"afterBind\"),Sp(\"Bind\",\"beforeBind\",\"afterBind\")}function y3e(){var e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K,F,oe=!1,W=0,$,de,fe={flags:1},q={flags:1},H=V();return le;function ee(k,ge,...Xe){return vf(Nn(k)||e,k,ge,...Xe)}function le(k,ge){var Xe,Mt;e=k,t=ge,r=Wa(t),F=Ee(e,ge),de=new Set,W=0,$=wc.getSymbolConstructor(),x.attachFlowNodeDebugInfo(fe),x.attachFlowNodeDebugInfo(q),e.locals||((Xe=qn)==null||Xe.push(qn.Phase.Bind,\"bindSourceFile\",{path:e.path},!0),xe(e),(Mt=qn)==null||Mt.pop(),e.symbolCount=W,e.classifiableNames=de,Fc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,v=void 0,E=void 0,S=void 0,A=void 0,C=void 0,R=void 0,G=void 0,U=!1,oe=!1,K=0}function Ee(k,ge){return Fd(ge,\"alwaysStrict\")&&!k.isDeclarationFile?!0:!!k.externalModuleIndicator}function ce(k,ge){return W++,new $(k,ge)}function Z(k,ge,Xe){k.flags|=Xe,ge.symbol=k,k.declarations=Kh(k.declarations,ge),Xe&1955&&!k.exports&&(k.exports=Vo()),Xe&6240&&!k.members&&(k.members=Vo()),k.constEnumOnlyModule&&k.flags&304&&(k.constEnumOnlyModule=!1),Xe&111551&&IL(k,ge)}function pe(k){if(k.kind===277)return k.isExportEquals?\"export=\":\"default\";let ge=mo(k);if(ge){if(sd(k)){let Xe=Ef(ge);return Jm(k)?\"__global\":`\"${Xe}\"`}if(ge.kind===167){let Xe=ge.expression;if(Ap(Xe))return Hs(Xe.text);if(LW(Xe))return qo(Xe.operator)+Xe.operand.text;x.fail(\"Only computed properties with literal names have declaration names\")}if(Ci(ge)){let Xe=Oc(k);if(!Xe)return;let Mt=Xe.symbol;return wL(Mt,ge.escapedText)}return Em(ge)?JA(ge):Xm(ge)?AC(ge):void 0}switch(k.kind){case 176:return\"__constructor\";case 184:case 179:case 330:return\"__call\";case 185:case 180:return\"__new\";case 181:return\"__index\";case 278:return\"__export\";case 312:return\"export=\";case 226:if(hl(k)===2)return\"export=\";x.fail(\"Unknown binary declaration kind\");break;case 324:return dx(k)?\"__new\":\"__call\";case 169:return x.assert(k.parent.kind===324,\"Impossible parameter parent kind\",()=>`parent is: ${x.formatSyntaxKind(k.parent.kind)}, expected JSDocFunctionType`),\"arg\"+k.parent.parameters.indexOf(k)}}function Ae(k){return Ld(k)?is(k.name):Ii(x.checkDefined(pe(k)))}function Oe(k,ge,Xe,Mt,Vn,jr,Or){x.assert(Or||!ty(Xe));let zi=Wr(Xe,2048)||Ed(Xe)&&Xe.name.escapedText===\"default\",_a=Or?\"__computed\":zi&&ge?\"default\":pe(Xe),ha;if(_a===void 0)ha=ce(0,\"__missing\");else if(ha=k.get(_a),Mt&2885600&&de.add(_a),!ha)k.set(_a,ha=ce(0,_a)),jr&&(ha.isReplaceableByMethod=!0);else{if(jr&&!ha.isReplaceableByMethod)return ha;if(ha.flags&Vn){if(ha.isReplaceableByMethod)k.set(_a,ha=ce(0,_a));else if(!(Mt&3&&ha.flags&67108864)){Ld(Xe)&&Aa(Xe.name,Xe);let pl=ha.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Gc=!0;(ha.flags&384||Mt&384)&&(pl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Gc=!1);let nc=!1;yn(ha.declarations)&&(zi||ha.declarations&&ha.declarations.length&&Xe.kind===277&&!Xe.isExportEquals)&&(pl=f.A_module_cannot_have_multiple_default_exports,Gc=!1,nc=!0);let Xu=[];Xf(Xe)&&_l(Xe.type)&&Wr(Xe,32)&&ha.flags&2887656&&Xu.push(ee(Xe,f.Did_you_mean_0,`export type { ${Ii(Xe.name.escapedText)} }`));let _u=mo(Xe)||Xe;an(ha.declarations,(ja,em)=>{let tm=mo(ja)||ja,Ri=Gc?ee(tm,pl,Ae(ja)):ee(tm,pl);e.bindDiagnostics.push(nc?fa(Ri,ee(_u,em===0?f.Another_export_default_is_here:f.and_here)):Ri),nc&&Xu.push(ee(tm,f.The_first_export_default_is_here))});let Ay=Gc?ee(_u,pl,Ae(Xe)):ee(_u,pl);e.bindDiagnostics.push(fa(Ay,...Xu)),ha=ce(0,_a)}}}return Z(ha,Xe,Mt),ha.parent?x.assert(ha.parent===ge,\"Existing symbol parent should match new one\"):ha.parent=ge,ha}function _e(k,ge,Xe){let Mt=!!(gb(k)&32)||be(k);if(ge&2097152)return k.kind===281||k.kind===271&&Mt?Oe(o.symbol.exports,o.symbol,k,ge,Xe):(x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe));if(bf(k)&&x.assert(Jn(k)),!sd(k)&&(Mt||o.flags&128)){if(!L_(o)||!o.locals||Wr(k,2048)&&!pe(k))return Oe(o.symbol.exports,o.symbol,k,ge,Xe);let Vn=ge&111551?1048576:0,jr=Oe(o.locals,void 0,k,Vn,Xe);return jr.exportSymbol=Oe(o.symbol.exports,o.symbol,k,ge,Xe),k.localSymbol=jr,jr}else return x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}function be(k){if(k.parent&&Il(k)&&(k=k.parent),!bf(k))return!1;if(!C2(k)&&k.fullName)return!0;let ge=mo(k);return ge?!!(UL(ge.parent)&&Nl(ge.parent)||bd(ge.parent)&&gb(ge.parent)&32):!1}function Te(k,ge){let Xe=o,Mt=s,Vn=l;if(ge&1?(k.kind!==219&&(s=o),o=l=k,ge&32&&(o.locals=Vo(),jn(o))):ge&2&&(l=k,ge&32&&(l.locals=void 0)),ge&4){let jr=m,Or=v,zi=E,_a=S,ha=R,pl=G,Gc=U,nc=ge&16&&!Wr(k,1024)&&!k.asteriskToken&&!!RS(k)||k.kind===175;nc||(m=EI({flags:2}),ge&144&&(m.node=k)),S=nc||k.kind===176||Jn(k)&&(k.kind===262||k.kind===218)?gn():void 0,R=void 0,v=void 0,E=void 0,G=void 0,U=!1,Le(k),k.flags&=-5633,!(m.flags&1)&&ge&8&&gf(k.body)&&(k.flags|=512,U&&(k.flags|=1024),k.endFlowNode=m),k.kind===312&&(k.flags|=K,k.endFlowNode=m),S&&(Wt(S,m),m=Gn(S),(k.kind===176||k.kind===175||Jn(k)&&(k.kind===262||k.kind===218))&&(k.returnFlowNode=m)),nc||(m=jr),v=Or,E=zi,S=_a,R=ha,G=pl,U=Gc}else ge&64?(h=!1,Le(k),x.assertNotNode(k,Me),k.flags=h?k.flags|256:k.flags&-257):Le(k);o=Xe,s=Mt,l=Vn}function De(k){ft(k,ge=>ge.kind===262?xe(ge):void 0),ft(k,ge=>ge.kind!==262?xe(ge):void 0)}function ft(k,ge=xe){k!==void 0&&an(k,ge)}function he(k){Ao(k,xe,ft)}function Le(k){let ge=oe;if(oe=!1,Nt(k)){he(k),dt(k),oe=ge;return}switch(k.kind>=243&&k.kind<=259&&!t.allowUnreachableCode&&(k.flowNode=m),k.kind){case 247:ki(k);break;case 246:so(k);break;case 248:Jo(k);break;case 249:case 250:Ea(k);break;case 245:ln(k);break;case 253:case 257:Tn(k);break;case 252:case 251:tt(k);break;case 258:yt(k);break;case 255:re(k);break;case 269:Ce(k);break;case 296:et(k);break;case 244:z(k);break;case 256:_t(k);break;case 224:on(k);break;case 225:Qt(k);break;case 226:if(nv(k)){oe=ge,Zt(k);return}H(k);break;case 220:Re(k);break;case 227:St(k);break;case 260:te(k);break;case 211:case 212:ti(k);break;case 213:di(k);break;case 235:Cn(k);break;case 353:case 345:case 347:Ie(k);break;case 312:{De(k.statements),xe(k.endOfFileToken);break}case 241:case 268:De(k.statements);break;case 208:j(k);break;case 169:se(k);break;case 210:case 209:case 303:case 230:oe=ge;default:he(k);break}dt(k),oe=ge}function Ke(k){switch(k.kind){case 80:case 81:case 110:case 211:case 212:return st(k);case 213:return Ge(k);case 217:if(Ux(k))return!1;case 235:return Ke(k.expression);case 226:return Vt(k);case 224:return k.operator===54&&Ke(k.operand);case 221:return Ke(k.expression)}return!1}function Dt(k){return MC(k)||(Er(k)||dI(k)||uu(k))&&Dt(k.expression)||Zn(k)&&k.operatorToken.kind===28&&Dt(k.right)||Rs(k)&&(Ap(k.argumentExpression)||gl(k.argumentExpression))&&Dt(k.expression)||lc(k)&&Dt(k.left)}function st(k){return Dt(k)||yd(k)&&st(k.expression)}function Ge(k){if(k.arguments){for(let ge of k.arguments)if(st(ge))return!0}return!!(k.expression.kind===211&&st(k.expression.expression))}function ot(k,ge){return Wx(k)&&jt(k.expression)&&Ga(ge)}function Vt(k){switch(k.operatorToken.kind){case 64:case 76:case 77:case 78:return st(k.left);case 35:case 36:case 37:case 38:return jt(k.left)||jt(k.right)||ot(k.right,k.left)||ot(k.left,k.right)||sC(k.right)&&Ke(k.left)||sC(k.left)&&Ke(k.right);case 104:return jt(k.left);case 103:return Ke(k.right);case 28:return Ke(k.right)}return!1}function jt(k){switch(k.kind){case 217:return jt(k.expression);case 226:switch(k.operatorToken.kind){case 64:return jt(k.left);case 28:return jt(k.right)}}return st(k)}function gn(){return EI({flags:4,antecedents:void 0})}function On(){return EI({flags:8,antecedents:void 0})}function en(k,ge,Xe){return EI({flags:1024,target:k,antecedents:ge,antecedent:Xe})}function zt(k){k.flags|=k.flags&2048?4096:2048}function Wt(k,ge){!(ge.flags&1)&&!To(k.antecedents,ge)&&((k.antecedents||(k.antecedents=[])).push(ge),zt(ge))}function ei(k,ge,Xe){return ge.flags&1?ge:Xe?(Xe.kind===112&&k&64||Xe.kind===97&&k&32)&&!F8(Xe)&&!jG(Xe.parent)?fe:Ke(Xe)?(zt(ge),EI({flags:k,antecedent:ge,node:Xe})):ge:k&32?ge:fe}function Ki(k,ge,Xe,Mt){return zt(k),EI({flags:128,antecedent:k,switchStatement:ge,clauseStart:Xe,clauseEnd:Mt})}function gi(k,ge,Xe){zt(ge);let Mt=EI({flags:k,antecedent:ge,node:Xe});return R&&Wt(R,Mt),Mt}function io(k,ge){return zt(k),EI({flags:512,antecedent:k,node:ge})}function Gn(k){let ge=k.antecedents;return ge?ge.length===1?ge[0]:k:fe}function Nr(k){let ge=k.parent;switch(ge.kind){case 245:case 247:case 246:return ge.expression===k;case 248:case 227:return ge.condition===k}return!1}function cr(k){for(;;)if(k.kind===217)k=k.expression;else if(k.kind===224&&k.operator===54)k=k.operand;else return jL(k)}function Jt(k){return cV(Ka(k))}function Ue(k){for(;uu(k.parent)||fy(k.parent)&&k.parent.operator===54;)k=k.parent;return!Nr(k)&&!cr(k.parent)&&!(yd(k.parent)&&k.parent.expression===k)}function Rt(k,ge,Xe,Mt){let Vn=A,jr=C;A=Xe,C=Mt,k(ge),A=Vn,C=jr}function mn(k,ge,Xe){Rt(xe,k,ge,Xe),(!k||!Jt(k)&&!cr(k)&&!(yd(k)&&nC(k)))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function qr(k,ge,Xe){let Mt=v,Vn=E;v=ge,E=Xe,xe(k),v=Mt,E=Vn}function ni(k,ge){let Xe=G;for(;Xe&&k.parent.kind===256;)Xe.continueTarget=ge,Xe=Xe.next,k=k.parent;return ge}function ki(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();Wt(ge,m),m=ge,mn(k.expression,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),Wt(ge,m),m=Gn(Mt)}function so(k){let ge=On(),Xe=ni(k,gn()),Mt=gn();Wt(ge,m),m=ge,qr(k.statement,Mt,Xe),Wt(Xe,m),m=Gn(Xe),mn(k.expression,ge,Mt),m=Gn(Mt)}function Jo(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();xe(k.initializer),Wt(ge,m),m=ge,mn(k.condition,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),xe(k.incrementor),Wt(ge,m),m=Gn(Mt)}function Ea(k){let ge=ni(k,On()),Xe=gn();xe(k.expression),Wt(ge,m),m=ge,k.kind===250&&xe(k.awaitModifier),Wt(Xe,m),xe(k.initializer),k.initializer.kind!==261&&it(k.initializer),qr(k.statement,Xe,ge),Wt(ge,m),m=Gn(Xe)}function ln(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.expression,ge,Xe),m=Gn(ge),xe(k.thenStatement),Wt(Mt,m),m=Gn(Xe),xe(k.elseStatement),Wt(Mt,m),m=Gn(Mt)}function Tn(k){xe(k.expression),k.kind===253&&(U=!0,S&&Wt(S,m)),m=fe}function ke(k){for(let ge=G;ge;ge=ge.next)if(ge.name===k)return ge}function nt(k,ge,Xe){let Mt=k.kind===252?ge:Xe;Mt&&(Wt(Mt,m),m=fe)}function tt(k){if(xe(k.label),k.label){let ge=ke(k.label.escapedText);ge&&(ge.referenced=!0,nt(k,ge.breakTarget,ge.continueTarget))}else nt(k,v,E)}function yt(k){let ge=S,Xe=R,Mt=gn(),Vn=gn(),jr=gn();if(k.finallyBlock&&(S=Vn),Wt(jr,m),R=jr,xe(k.tryBlock),Wt(Mt,m),k.catchClause&&(m=Gn(jr),jr=gn(),Wt(jr,m),R=jr,xe(k.catchClause),Wt(Mt,m)),S=ge,R=Xe,k.finallyBlock){let Or=gn();Or.antecedents=ro(ro(Mt.antecedents,jr.antecedents),Vn.antecedents),m=Or,xe(k.finallyBlock),m.flags&1?m=fe:(S&&Vn.antecedents&&Wt(S,en(Or,Vn.antecedents,m)),R&&jr.antecedents&&Wt(R,en(Or,jr.antecedents,m)),m=Mt.antecedents?en(Or,Mt.antecedents,m):fe)}else m=Gn(Mt)}function re(k){let ge=gn();xe(k.expression);let Xe=v,Mt=L;v=ge,L=m,xe(k.caseBlock),Wt(ge,m);let Vn=an(k.caseBlock.clauses,jr=>jr.kind===297);k.possiblyExhaustive=!Vn&&!ge.antecedents,Vn||Wt(ge,Ki(L,k,0,0)),v=Xe,L=Mt,m=Gn(ge)}function Ce(k){let ge=k.clauses,Xe=k.parent.expression.kind===112||Ke(k.parent.expression),Mt=fe;for(let Vn=0;Vn<ge.length;Vn++){let jr=Vn;for(;!ge[Vn].statements.length&&Vn+1<ge.length;)Mt===fe&&(m=L),xe(ge[Vn]),Vn++;let Or=gn();Wt(Or,Xe?Ki(L,k.parent,jr,Vn+1):L),Wt(Or,Mt),m=Gn(Or);let zi=ge[Vn];xe(zi),Mt=m,!(m.flags&1)&&Vn!==ge.length-1&&t.noFallthroughCasesInSwitch&&(zi.fallthroughFlowNode=m)}}function et(k){let ge=m;m=L,xe(k.expression),m=ge,ft(k.statements)}function z(k){xe(k.expression),Je(k.expression)}function Je(k){if(k.kind===213){let ge=k;ge.expression.kind!==108&&MC(ge.expression)&&(m=io(m,ge))}}function _t(k){let ge=gn();G={next:G,name:k.label.escapedText,breakTarget:ge,continueTarget:void 0,referenced:!1},xe(k.label),xe(k.statement),!G.referenced&&!t.allowUnusedLabels&&tc(Kne(t),k.label,f.Unused_label),G=G.next,Wt(ge,m),m=Gn(ge)}function ze(k){k.kind===226&&k.operatorToken.kind===64?it(k.left):it(k)}function it(k){if(Dt(k))m=gi(16,m,k);else if(k.kind===209)for(let ge of k.elements)ge.kind===230?it(ge.expression):ze(ge);else if(k.kind===210)for(let ge of k.properties)ge.kind===303?ze(ge.initializer):ge.kind===304?it(ge.name):ge.kind===305&&it(ge.expression)}function Ct(k,ge,Xe){let Mt=gn();k.operatorToken.kind===56||k.operatorToken.kind===77?mn(k.left,Mt,Xe):mn(k.left,ge,Mt),m=Gn(Mt),xe(k.operatorToken),PC(k.operatorToken.kind)?(Rt(xe,k.right,ge,Xe),it(k.left),Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k))):mn(k.right,ge,Xe)}function on(k){if(k.operator===54){let ge=A;A=C,C=ge,he(k),C=A,A=ge}else he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Qt(k){he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Zt(k){oe?(oe=!1,xe(k.operatorToken),xe(k.right),oe=!0,xe(k.left)):(oe=!0,xe(k.left),oe=!1,xe(k.operatorToken),xe(k.right)),it(k.left)}function V(){return M6(k,ge,Xe,Mt,Vn,void 0);function k(Or,zi){if(zi){zi.stackIndex++,Aa(Or,i);let ha=F;tr(Or);let pl=i;i=Or,zi.skip=!1,zi.inStrictModeStack[zi.stackIndex]=ha,zi.parentStack[zi.stackIndex]=pl}else zi={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let _a=Or.operatorToken.kind;if(VL(_a)||PC(_a)){if(Ue(Or)){let ha=gn();Ct(Or,ha,ha),m=Gn(ha)}else Ct(Or,A,C);zi.skip=!0}return zi}function ge(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Xe(Or,zi,_a){zi.skip||xe(Or)}function Mt(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Vn(Or,zi){if(!zi.skip){let pl=Or.operatorToken.kind;if(tv(pl)&&!Sh(Or)&&(it(Or.left),pl===64&&Or.left.kind===212)){let Gc=Or.left;jt(Gc.expression)&&(m=gi(256,m,Or))}}let _a=zi.inStrictModeStack[zi.stackIndex],ha=zi.parentStack[zi.stackIndex];_a!==void 0&&(F=_a),ha!==void 0&&(i=ha),zi.skip=!1,zi.stackIndex--}function jr(Or){if(Or&&Zn(Or)&&!nv(Or))return Or;xe(Or)}}function Re(k){he(k),k.expression.kind===211&&it(k.expression)}function St(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.condition,ge,Xe),m=Gn(ge),xe(k.questionToken),xe(k.whenTrue),Wt(Mt,m),m=Gn(Xe),xe(k.colonToken),xe(k.whenFalse),Wt(Mt,m),m=Gn(Mt)}function M(k){let ge=vc(k)?void 0:k.name;if(ko(ge))for(let Xe of ge.elements)M(Xe);else m=gi(16,m,k)}function te(k){he(k),(k.initializer||H1(k.parent.parent))&&M(k)}function j(k){xe(k.dotDotDotToken),xe(k.propertyName),Pe(k.initializer),xe(k.name)}function se(k){ft(k.modifiers),xe(k.dotDotDotToken),xe(k.questionToken),xe(k.type),Pe(k.initializer),xe(k.name)}function Pe(k){if(!k)return;let ge=m;if(xe(k),ge===fe||ge===m)return;let Xe=gn();Wt(Xe,ge),Wt(Xe,m),m=Gn(Xe)}function Ie(k){xe(k.tagName),k.kind!==347&&k.fullName&&(Aa(k.fullName,k),oy(k.fullName,!1)),typeof k.comment!=\"string\"&&ft(k.comment)}function gt(k){he(k);let ge=xb(k);ge&&ge.kind!==174&&Z(ge.symbol,ge,32)}function bt(k,ge,Xe){Rt(xe,k,ge,Xe),(!yd(k)||nC(k))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function Ot(k){switch(k.kind){case 211:xe(k.questionDotToken),xe(k.name);break;case 212:xe(k.questionDotToken),xe(k.argumentExpression);break;case 213:xe(k.questionDotToken),ft(k.typeArguments),ft(k.arguments);break}}function dn(k,ge,Xe){let Mt=tC(k)?gn():void 0;bt(k.expression,Mt||ge,Xe),Mt&&(m=Gn(Mt)),Rt(Ot,k,ge,Xe),nC(k)&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function An(k){if(Ue(k)){let ge=gn();dn(k,ge,ge),m=Gn(ge)}else dn(k,A,C)}function Cn(k){yd(k)?An(k):he(k)}function ti(k){yd(k)?An(k):he(k)}function di(k){if(yd(k))An(k);else{let ge=Ka(k.expression);ge.kind===218||ge.kind===219?(ft(k.typeArguments),ft(k.arguments),xe(k.expression)):(he(k),k.expression.kind===108&&(m=io(m,k)))}if(k.expression.kind===211){let ge=k.expression;Me(ge.name)&&jt(ge.expression)&&K9(ge.name)&&(m=gi(256,m,k))}}function jn(k){d&&(d.nextContainer=k),d=k}function Ar(k,ge,Xe){switch(o.kind){case 267:return _e(k,ge,Xe);case 312:return _i(k,ge,Xe);case 231:case 263:return Zi(k,ge,Xe);case 266:return Oe(o.symbol.exports,o.symbol,k,ge,Xe);case 187:case 329:case 210:case 264:case 292:return Oe(o.symbol.members,o.symbol,k,ge,Xe);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}}function Zi(k,ge,Xe){return zo(k)?Oe(o.symbol.exports,o.symbol,k,ge,Xe):Oe(o.symbol.members,o.symbol,k,ge,Xe)}function _i(k,ge,Xe){return wl(e)?_e(k,ge,Xe):Oe(e.locals,void 0,k,ge,Xe)}function ui(k){let ge=Li(k)?k:Vr(k.body,n_);return!!ge&&ge.statements.some(Xe=>xl(Xe)||dl(Xe))}function Mr(k){k.flags&33554432&&!ui(k)?k.flags|=128:k.flags&=-129}function lo(k){if(Mr(k),sd(k))if(Wr(k,32)&&ls(k,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),_9(k))_n(k);else{let ge;if(k.name.kind===11){let{text:Mt}=k.name;ge=xx(Mt),ge===void 0&&ls(k.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Mt)}let Xe=Ar(k,512,110735);e.patternAmbientModules=pn(e.patternAmbientModules,ge&&!fo(ge)?{pattern:ge,symbol:Xe}:void 0)}else{let ge=_n(k);if(ge!==0){let{symbol:Xe}=k;Xe.constEnumOnlyModule=!(Xe.flags&304)&&ge===2&&Xe.constEnumOnlyModule!==!1}}}function _n(k){let ge=dg(k),Xe=ge!==0;return Ar(k,Xe?512:1024,Xe?110735:0),ge}function ms(k){let ge=ce(131072,pe(k));Z(ge,k,131072);let Xe=ce(2048,\"__type\");Z(Xe,k,2048),Xe.members=Vo(),Xe.members.set(ge.escapedName,ge)}function Dl(k){return vs(k,4096,\"__object\")}function _o(k){return vs(k,4096,\"__jsxAttributes\")}function Va(k,ge,Xe){return Ar(k,ge,Xe)}function vs(k,ge,Xe){let Mt=ce(ge,Xe);return ge&106508&&(Mt.parent=o.symbol),Z(Mt,k,ge),Mt}function Js(k,ge,Xe){switch(l.kind){case 267:_e(k,ge,Xe);break;case 312:if(sp(o)){_e(k,ge,Xe);break}default:x.assertNode(l,L_),l.locals||(l.locals=Vo(),jn(l)),Oe(l.locals,void 0,k,ge,Xe)}}function Fc(){if(!p)return;let k=o,ge=d,Xe=l,Mt=i,Vn=m;for(let jr of p){let Or=jr.parent.parent;o=S9(Or)||e,l=w_(Or)||e,m=EI({flags:2}),i=jr,xe(jr.typeExpression);let zi=mo(jr);if((C2(jr)||!jr.fullName)&&zi&&UL(zi.parent)){let _a=Nl(zi.parent);if(_a){Ks(e.symbol,zi.parent,_a,!!Rn(zi,pl=>Er(pl)&&pl.name.escapedText===\"prototype\"),!1);let ha=o;switch(TL(zi.parent)){case 1:case 2:sp(e)?o=e:o=void 0;break;case 4:o=zi.parent.expression;break;case 3:o=zi.parent.expression.name;break;case 5:o=_0(e,zi.parent.expression)?e:Er(zi.parent.expression)?zi.parent.expression.name:zi.parent.expression;break;case 0:return x.fail(\"Shouldn't have detected typedef or enum on non-assignment declaration\")}o&&_e(jr,524288,788968),o=ha}}else C2(jr)||!jr.fullName||jr.fullName.kind===80?(i=jr.parent,Js(jr,524288,788968)):xe(jr.fullName)}o=k,d=ge,l=Xe,i=Mt,m=Vn}function $i(k){if(!e.parseDiagnostics.length&&!(k.flags&33554432)&&!(k.flags&16777216)&&!rne(k)){let ge=vb(k);if(ge===void 0)return;F&&ge>=119&&ge<=127?e.bindDiagnostics.push(ee(k,Uo(k),is(k))):ge===135?wl(e)&&hW(k)?e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,is(k))):k.flags&65536&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k))):ge===127&&k.flags&16384&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k)))}}function Uo(k){return Oc(k)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function zc(k){k.escapedText===\"#constructor\"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ee(k,f.constructor_is_a_reserved_word,is(k))))}function ts(k){F&&Tu(k.left)&&tv(k.operatorToken.kind)&&Wl(k,k.left)}function ua(k){F&&k.variableDeclaration&&Wl(k,k.variableDeclaration.name)}function Us(k){if(F&&k.expression.kind===80){let ge=IS(e,k.expression);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function tf(k){return Me(k)&&(k.escapedText===\"eval\"||k.escapedText===\"arguments\")}function Wl(k,ge){if(ge&&ge.kind===80){let Xe=ge;if(tf(Xe)){let Mt=IS(e,ge);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,il(k),ar(Xe)))}}}function il(k){return Oc(k)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function zs(k){F&&Wl(k,k.name)}function ho(k){return Oc(k)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ut(k){if(r<2&&l.kind!==312&&l.kind!==267&&!U1(l)){let ge=IS(e,k);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,ho(k)))}}function ys(k){F&&Wl(k,k.operand)}function Pc(k){F&&(k.operator===46||k.operator===47)&&Wl(k,k.operand)}function Bc(k){F&&ls(k,f.with_statements_are_not_allowed_in_strict_mode)}function Ju(k){F&&Wa(t)>=2&&(ate(k.statement)||cl(k.statement))&&ls(k.label,f.A_label_is_not_allowed_here)}function ls(k,ge,...Xe){let Mt=W_(e,k.pos);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,ge,...Xe))}function tc(k,ge,Xe){ae(k,ge,ge,Xe)}function ae(k,ge,Xe,Mt){X(k,{pos:Tb(ge,e),end:Xe.end},Mt)}function X(k,ge,Xe){let Mt=Rc(e,ge.pos,ge.end-ge.pos,Xe);k?e.bindDiagnostics.push(Mt):e.bindSuggestionDiagnostics=pn(e.bindSuggestionDiagnostics,{...Mt,category:2})}function xe(k){if(!k)return;Aa(k,i),qn&&(k.tracingPath=e.path);let ge=F;if(tr(k),k.kind>165){let Xe=i;i=k;let Mt=kU(k);Mt===0?Le(k):Te(k,Mt),i=Xe}else{let Xe=i;k.kind===1&&(i=k),dt(k),i=Xe}F=ge}function dt(k){if(ap(k))if(Jn(k))for(let ge of k.jsDoc)xe(ge);else for(let ge of k.jsDoc)Aa(ge,k),oy(ge,!1)}function $t(k){if(!F)for(let ge of k){if(!Hf(ge))return;if(sr(ge)){F=!0;return}}}function sr(k){let ge=FE(e,k.expression);return ge==='\"use strict\"'||ge===\"'use strict'\"}function tr(k){switch(k.kind){case 80:if(k.flags&4096){let Or=k.parent;for(;Or&&!bf(Or);)Or=Or.parent;Js(Or,524288,788968);break}case 110:return m&&(lt(k)||i.kind===304)&&(k.flowNode=m),$i(k);case 166:m&&EW(k)&&(k.flowNode=m);break;case 236:case 108:k.flowNode=m;break;case 81:return zc(k);case 211:case 212:let ge=k;m&&Dt(ge)&&(ge.flowNode=m),Yte(ge)&&Ln(ge),Jn(ge)&&e.commonJsModuleIndicator&&Eh(ge)&&!r4(l,\"module\")&&Oe(e.locals,void 0,ge.expression,134217729,111550);break;case 226:switch(hl(k)){case 1:Du(k);break;case 2:pc(k);break;case 3:Oo(k.left,k);break;case 6:eo(k);break;case 4:Vd(k);break;case 5:let Or=k.left.expression;if(Jn(k)&&Me(Or)){let zi=r4(l,Or.escapedText);if(gW(zi?.valueDeclaration)){Vd(k);break}}Kl(k);break;case 0:break;default:x.fail(\"Unknown binary expression special property assignment kind\")}return ts(k);case 299:return ua(k);case 220:return Us(k);case 225:return ys(k);case 224:return Pc(k);case 254:return Bc(k);case 256:return Ju(k);case 197:h=!0;return;case 182:break;case 168:return Ye(k);case 169:return mg(k);case 260:return fd(k);case 208:return k.flowNode=m,fd(k);case 172:case 171:return Ir(k);case 303:case 304:return mu(k,4,0);case 306:return mu(k,8,900095);case 179:case 180:case 181:return Ar(k,131072,0);case 174:case 173:return mu(k,8192|(k.questionToken?16777216:0),qf(k)?0:103359);case 262:return Ku(k);case 176:return Ar(k,16384,0);case 177:return mu(k,32768,46015);case 178:return mu(k,65536,78783);case 184:case 324:case 330:case 185:return ms(k);case 187:case 329:case 200:return pi(k);case 339:return gt(k);case 210:return Dl(k);case 218:case 219:return Lh(k);case 213:switch(hl(k)){case 7:return Cl(k);case 8:return Ec(k);case 9:return Po(k);case 0:break;default:return x.fail(\"Unknown call expression assignment declaration kind\")}Jn(k)&&u_(k);break;case 231:case 263:return F=!0,X_(k);case 264:return Js(k,64,788872);case 265:return Js(k,524288,788968);case 266:return fg(k);case 267:return lo(k);case 292:return _o(k);case 291:return Va(k,4,0);case 271:case 274:case 276:case 281:return Ar(k,2097152,2097152);case 270:return bc(k);case 273:return Jl(k);case 278:return bs(k);case 277:return Qs(k);case 312:return $t(k.statements),hr();case 241:if(!U1(k.parent))return;case 268:return $t(k.statements);case 348:if(k.parent.kind===330)return mg(k);if(k.parent.kind!==329)break;case 355:let Vn=k,jr=Vn.isBracketed||Vn.typeExpression&&Vn.typeExpression.type.kind===323?16777220:4;return Ar(Vn,jr,0);case 353:case 345:case 347:return(p||(p=[])).push(k);case 346:return xe(k.typeExpression)}}function Ir(k){let ge=su(k),Xe=ge?98304:4,Mt=ge?13247:0;return mu(k,Xe|(k.questionToken?16777216:0),Mt)}function pi(k){return vs(k,2048,\"__type\")}function hr(){if(Mr(e),wl(e))No();else if(yf(e)){No();let k=e.symbol;Oe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=k}}function No(){vs(e,512,`\"${Yd(e.fileName)}\"`)}function Qs(k){if(!o.symbol||!o.symbol.exports)vs(k,111551,pe(k));else{let ge=px(k)?2097152:4,Xe=Oe(o.symbol.exports,o.symbol,k,ge,-1);k.isExportEquals&&IL(Xe,k)}}function bc(k){ct(k.modifiers)&&e.bindDiagnostics.push(ee(k,f.Modifiers_cannot_appear_here));let ge=Li(k.parent)?wl(k.parent)?k.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;ge?e.bindDiagnostics.push(ee(k,ge)):(e.symbol.globalExports=e.symbol.globalExports||Vo(),Oe(e.symbol.globalExports,e.symbol,k,2097152,2097152))}function bs(k){!o.symbol||!o.symbol.exports?vs(k,8388608,pe(k)):k.exportClause?j_(k.exportClause)&&(Aa(k.exportClause,k),Oe(o.symbol.exports,o.symbol,k.exportClause,2097152,2097152)):Oe(o.symbol.exports,o.symbol,k,8388608,0)}function Jl(k){k.name&&Ar(k,2097152,2097152)}function Za(k){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=k,e.externalModuleIndicator||No()),!0)}function Ec(k){if(!Za(k))return;let ge=nf(k.arguments[0],void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));ge&&Oe(ge.exports,ge,k,1048580,0)}function Du(k){if(!Za(k))return;let ge=nf(k.left.expression,void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));if(ge){let Mt=kL(k.right)&&(DS(k.left.expression)||Eh(k.left.expression))?2097152:1048580;Aa(k.left,k),Oe(ge.exports,ge,k.left,Mt,0)}}function pc(k){if(!Za(k))return;let ge=bL(k.right);if(fV(ge)||o===e&&_0(e,ge))return;if(ma(ge)&&ji(ge.properties,xu)){an(ge.properties,Nf);return}let Xe=px(k)?2097152:1049092,Mt=Oe(e.symbol.exports,e.symbol,k,Xe|67108864,0);IL(Mt,k)}function Nf(k){Oe(e.symbol.exports,e.symbol,k,69206016,0)}function Vd(k){if(x.assert(Jn(k)),Zn(k)&&Er(k.left)&&Ci(k.left.name)||Er(k)&&Ci(k.name))return;let Xe=lu(k,!1,!1);switch(Xe.kind){case 262:case 218:let Mt=Xe.symbol;if(Zn(Xe.parent)&&Xe.parent.operatorToken.kind===64){let Or=Xe.parent.left;UE(Or)&&ry(Or.expression)&&(Mt=tu(Or.expression.expression,s))}Mt&&Mt.valueDeclaration&&(Mt.members=Mt.members||Vo(),ty(k)?Se(k,Mt,Mt.members):Oe(Mt.members,Mt,k,67108868,0),Z(Mt,Mt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Vn=Xe.parent,jr=zo(Xe)?Vn.symbol.exports:Vn.symbol.members;ty(k)?Se(k,Vn.symbol,jr):Oe(jr,Vn.symbol,k,67108868,0,!0);break;case 312:if(ty(k))break;Xe.commonJsModuleIndicator?Oe(Xe.symbol.exports,Xe.symbol,k,1048580,0):Ar(k,1,111550);break;case 267:break;default:x.failBadSyntaxKind(Xe)}}function Se(k,ge,Xe){Oe(Xe,ge,k,4,0,!0,!0),At(k,ge)}function At(k,ge){ge&&(ge.assignmentDeclarationMembers||(ge.assignmentDeclarationMembers=new Map)).set(Fa(k),k)}function Ln(k){k.expression.kind===110?Vd(k):UE(k)&&k.parent.parent.kind===312&&(ry(k.expression)?Oo(k,k.parent):Bs(k))}function eo(k){Aa(k.left,k),Aa(k.right,k),Sc(k.left.expression,k.left,!1,!0)}function Po(k){let ge=tu(k.arguments[0].expression);ge&&ge.valueDeclaration&&Z(ge,ge.valueDeclaration,32),vl(k,ge,!0)}function Oo(k,ge){let Xe=k.expression,Mt=Xe.expression;Aa(Mt,Xe),Aa(Xe,k),Aa(k,ge),Sc(Mt,k,!0,!0)}function Cl(k){let ge=tu(k.arguments[0]),Xe=k.parent.parent.kind===312;ge=Ks(ge,k.arguments[0],Xe,!1,!1),vl(k,ge,!1)}function Kl(k){var ge;let Xe=tu(k.left.expression,l)||tu(k.left.expression,o);if(!Jn(k)&&!$te(Xe))return;let Mt=Tx(k.left);if(!(Me(Mt)&&((ge=r4(o,Mt.escapedText))==null?void 0:ge.flags)&2097152))if(Aa(k.left,k),Aa(k.right,k),Me(k.left.expression)&&o===e&&_0(e,k.left.expression))Du(k);else if(ty(k)){vs(k,67108868,\"__computed\");let Vn=Ks(Xe,k.left.expression,Nl(k.left),!1,!1);At(k,Vn)}else Bs(Fo(k.left,NS))}function Bs(k){x.assert(!Me(k)),Aa(k.expression,k),Sc(k.expression,k,!1,!1)}function Ks(k,ge,Xe,Mt,Vn){return k?.flags&2097152||(Xe&&!Mt&&(k=nf(ge,k,(zi,_a,ha)=>{if(_a)return Z(_a,zi,67110400),_a;{let pl=ha?ha.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Vo());return Oe(pl,ha,zi,67110400,110735)}})),Vn&&k&&k.valueDeclaration&&Z(k,k.valueDeclaration,32)),k}function vl(k,ge,Xe){if(!ge||!kp(ge))return;let Mt=Xe?ge.members||(ge.members=Vo()):ge.exports||(ge.exports=Vo()),Vn=0,jr=0;hs(LA(k))?(Vn=8192,jr=103359):Bo(k)&&CS(k)&&(ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"set\"})&&(Vn|=65540,jr|=78783),ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"get\"})&&(Vn|=32772,jr|=46015)),Vn===0&&(Vn=4,jr=0),Oe(Mt,ge,k,Vn|67108864,jr&-67108865)}function Nl(k){return Zn(k.parent)?fu(k.parent).parent.kind===312:k.parent.parent.kind===312}function Sc(k,ge,Xe,Mt){let Vn=tu(k,l)||tu(k,o),jr=Nl(ge);Vn=Ks(Vn,ge.expression,jr,Xe,Mt),vl(ge,Vn,Xe)}function kp(k){if(k.flags&1072)return!0;let ge=k.valueDeclaration;if(ge&&Bo(ge))return!!LA(ge);let Xe=ge?yi(ge)?ge.initializer:Zn(ge)?ge.right:Er(ge)&&Zn(ge.parent)?ge.parent.right:void 0:void 0;if(Xe=Xe&&bL(Xe),Xe){let Mt=ry(yi(ge)?ge.name:Zn(ge)?ge.left:ge);return!!Ib(Zn(Xe)&&(Xe.operatorToken.kind===57||Xe.operatorToken.kind===61)?Xe.right:Xe,Mt)}return!1}function fu(k){for(;Zn(k.parent);)k=k.parent;return k.parent}function tu(k,ge=o){if(Me(k))return r4(ge,k.escapedText);{let Xe=tu(k.expression);return Xe&&Xe.exports&&Xe.exports.get(tg(k))}}function nf(k,ge,Xe){if(_0(e,k))return e.symbol;if(Me(k))return Xe(k,tu(k),ge);{let Mt=nf(k.expression,ge,Xe),Vn=SL(k);return Ci(Vn)&&x.fail(\"unexpected PrivateIdentifier\"),Xe(Vn,Mt&&Mt.exports&&Mt.exports.get(tg(k)),Mt)}}function u_(k){!e.commonJsModuleIndicator&&Xd(k,!1)&&Za(k)}function X_(k){if(k.kind===263)Js(k,32,899503);else{let Vn=k.name?k.name.escapedText:\"__class\";vs(k,32,Vn),k.name&&de.add(k.name.escapedText)}let{symbol:ge}=k,Xe=ce(4194308,\"prototype\"),Mt=ge.exports.get(Xe.escapedName);Mt&&(k.name&&Aa(k.name,k),e.bindDiagnostics.push(ee(Mt.declarations[0],f.Duplicate_identifier_0,$s(Xe)))),ge.exports.set(Xe.escapedName,Xe),Xe.parent=ge}function fg(k){return BE(k)?Js(k,128,899967):Js(k,256,899327)}function fd(k){if(F&&Wl(k,k.name),!ko(k.name)){let ge=k.kind===260?k:k.parent.parent;Jn(k)&&jE(ge)&&!yb(k)&&!(gb(k)&32)?Ar(k,2097152,2097152):p9(k)?Js(k,2,111551):JE(k)?Ar(k,1,111551):Ar(k,1,111550)}}function mg(k){if(!(k.kind===348&&o.kind!==330)&&(F&&!(k.flags&33554432)&&Wl(k,k.name),ko(k.name)?vs(k,1,\"__\"+k.parent.parameters.indexOf(k)):Ar(k,1,111551),wu(k,k.parent))){let ge=k.parent.parent;Oe(ge.symbol.members,ge.symbol,k,4|(k.questionToken?16777216:0),0)}}function Ku(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),zs(k),F?(Ut(k),Js(k,16,110991)):Ar(k,16,110991)}function Lh(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&(k.flowNode=m),zs(k);let ge=k.name?k.name.escapedText:\"__function\";return vs(k,16,ge)}function mu(k,ge,Xe){return!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&pW(k)&&(k.flowNode=m),ty(k)?vs(k,ge,\"__computed\"):Ar(k,ge,Xe)}function Y(k){let ge=Rn(k,Xe=>Xe.parent&&lI(Xe.parent)&&Xe.parent.extendsType===Xe);return ge&&ge.parent}function Ye(k){if(Df(k.parent)){let ge=NW(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):Ar(k,262144,526824)}else if(k.parent.kind===195){let ge=Y(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):vs(k,262144,pe(k))}else Ar(k,262144,526824)}function xt(k){let ge=dg(k);return ge===1||ge===2&&n0(t)}function Nt(k){if(!(m.flags&1))return!1;if(m===fe&&(QM(k)&&k.kind!==242||k.kind===263||k.kind===267&&xt(k))&&(m=q,!t.allowUnreachableCode)){let Xe=Jne(t)&&!(k.flags&33554432)&&(!cl(k)||!!(Xg(k.declarationList)&7)||k.declarationList.declarations.some(Mt=>!!Mt.initializer));b3e(k,(Mt,Vn)=>ae(Xe,Mt,Vn,f.Unreachable_code_detected))}return!0}}function b3e(e,t){if(Di(e)&&oSe(e)&&Do(e.parent)){let{statements:r}=e.parent,i=NV(r,e);Z5(i,oSe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function oSe(e){return!Ql(e)&&!E3e(e)&&!kb(e)&&!(cl(e)&&!(Xg(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function E3e(e){switch(e.kind){case 264:case 265:return!0;case 267:return dg(e)!==1;case 266:return Wr(e,4096);default:return!1}}function _0(e,t){let r=0,i=mM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),DS(t)||Eh(t))return!0;if(Me(t)){let o=r4(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),lc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function kU(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(pW(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Lo(e.parent)||nl(e.parent)?0:34}return 0}function r4(e,t){var r,i,o,s;let l=(i=(r=Vr(e,L_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(qm(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var OU,wU,aSe,S3e=pt({\"src/compiler/binder.ts\"(){\"use strict\";wo(),mS(),OU=(e=>(e[e.NonInstantiated=0]=\"NonInstantiated\",e[e.Instantiated=1]=\"Instantiated\",e[e.ConstEnumOnly=2]=\"ConstEnumOnly\",e))(OU||{}),wU=(e=>(e[e.None=0]=\"None\",e[e.IsContainer=1]=\"IsContainer\",e[e.IsBlockScopedContainer=2]=\"IsBlockScopedContainer\",e[e.IsControlFlowContainer=4]=\"IsControlFlowContainer\",e[e.IsFunctionLike=8]=\"IsFunctionLike\",e[e.IsFunctionExpression=16]=\"IsFunctionExpression\",e[e.HasLocals=32]=\"HasLocals\",e[e.IsInterface=64]=\"IsInterface\",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]=\"IsObjectLiteralOrClassExpressionMethodOrAccessor\",e))(wU||{}),aSe=y3e()}});function hoe(e,t,r,i,o,s,l,d,p,h){return m;function m(v=()=>!0){let E=[],S=[];return{walkType:de=>{try{return A(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}},walkSymbol:de=>{try{return $(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}}};function A(de){if(!(!de||E[de.id]||(E[de.id]=de,$(de.symbol)))){if(de.flags&524288){let q=de,H=q.objectFlags;H&4&&C(de),H&32&&K(de),H&3&&oe(de),H&24&&W(q)}de.flags&262144&&R(de),de.flags&3145728&&L(de),de.flags&4194304&&G(de),de.flags&8388608&&U(de)}}function C(de){A(de.target),an(h(de),A)}function R(de){A(d(de))}function L(de){an(de.types,A)}function G(de){A(de.type)}function U(de){A(de.objectType),A(de.indexType),A(de.constraint)}function K(de){A(de.typeParameter),A(de.constraintType),A(de.templateType),A(de.modifiersType)}function F(de){let fe=t(de);fe&&A(fe.type),an(de.typeParameters,A);for(let q of de.parameters)$(q);A(e(de)),A(r(de))}function oe(de){W(de),an(de.typeParameters,A),an(i(de),A),A(de.thisType)}function W(de){let fe=o(de);for(let q of fe.indexInfos)A(q.keyType),A(q.type);for(let q of fe.callSignatures)F(q);for(let q of fe.constructSignatures)F(q);for(let q of fe.properties)$(q)}function $(de){if(!de)return!1;let fe=na(de);if(S[fe])return!1;if(S[fe]=de,!v(de))return!0;let q=s(de);return A(q),de.exports&&de.exports.forEach($),an(de.declarations,H=>{if(H.type&&H.type.kind===186){let ee=H.type,le=l(p(ee.exprName));$(le)}}),!1}}}var T3e=pt({\"src/compiler/symbolWalker.ts\"(){\"use strict\";wo()}});function sk({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Ic(o)?0:1:e===\"relative\"?0:e===\"non-relative\"?1:e===\"project-relative\"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return nR(r,i.fileName)?[3,2]:[2];if(zd(r)===1)return p===2?[2,1]:[1,2];let h=nR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:x.assertNever(p)}}};function l(d){if(o!==void 0){if(QE(o))return 2;if(Zs(o,\"/index\"))return 1}return nre(t,d??i.impliedNodeFormat,r,i)}}function A3e(e,t,r,i,o,s,l={}){let d=sSe(e,t,r,i,o,sk({},e,t,s),{},l);if(d!==s)return d}function i4(e,t,r,i,o,s={}){return sSe(e,t,r,i,o,sk({},e,t),{},s)}function I3e(e,t,r,i,o,s={}){let l=WU(t.fileName,i),d=mSe(l,r,i,o,s);return ml(d,p=>voe(p,l,t,i,e,o,!0,s.overrideImportMode))}function sSe(e,t,r,i,o,s,l,d={}){let p=WU(r,o),h=mSe(p,i,o,l,d);return ml(h,m=>voe(m,p,t,o,e,l,void 0,d.overrideImportMode))||uSe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function x3e(e,t,r,i,o={}){return lSe(e,t,r,i,o)[0]}function lSe(e,t,r,i,o={}){var s;let l=eW(e);if(!l)return je;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function cSe(e,t,r,i,o,s,l={}){return dSe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function dSe(e,t,r,i,o,s,l={},d){let p=!1,h=C3e(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,v,E,S]=lSe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!v)return{moduleSpecifiers:je,computedWithoutCache:p};p=!0,E||(E=_Se(WU(i.fileName,o),v.originalFileName,o));let A=R3e(E,r,i,o,s,l,d);return S?.set(i.path,v.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function R3e(e,t,r,i,o,s={},l){let d=WU(r.fileName,i),p=sk(o,t,r),h=an(e,C=>an(i.getFileIncludeReasons().get(ks(C.path,i.getCurrentDirectory(),d.getCanonicalFileName)),R=>{if(R.kind!==3||R.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Dae(r,R.index,t))return;let L=Ak(r,R.index).text;return p.relativePreference!==1||!op(L)?L:void 0}));if(h)return[h];let m=ct(e,C=>C.isInNodeModules),v,E,S,A;for(let C of e){let R=C.isInNodeModules?voe(C,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(v=pn(v,R),R&&C.isRedirect)return v;if(!R){let L=uSe(C.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,C.isRedirect);if(!L)continue;C.isRedirect?S=pn(S,L):RG(L)?Gb(L)?A=pn(A,L):E=pn(E,L):(l||!m||C.isInNodeModules)&&(A=pn(A,L))}}return E?.length?E:S?.length?S:v?.length?v:x.checkDefined(A)}function WU(e,t){e=Qi(e,t.getCurrentDirectory());let r=od(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Ur(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function uSe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:v,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),C=m&&M3e(m,e,v,S,A,r)||lk(ME(Gf(v,e,S)),A,r);if(!p&&!h&&!DF(r)||l===0)return d?void 0:C;let R=Qi(zW(r,i)||p,i.getCurrentDirectory()),L=ySe(e,R,S);if(!L)return d?void 0:C;let G=d?void 0:P3e(e,v,r,i,o),U=d||G===void 0?h&&hSe(L,h,A,i,r):void 0;if(d)return U;let K=G??(U===void 0&&p!==void 0?lk(L,A,r):U);if(!K)return C;if(l===1&&!op(K))return K;if(l===3&&!op(K)){let F=r.configFilePath?ks(Ur(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),oe=ks(e,F,S),W=Ui(E,F),$=Ui(oe,F);if(W&&!$||!W&&$)return K;let de=goe(i,Ur(oe)),fe=goe(i,v),q=!yx(i);return D3e(de,fe,q)?C:K}return bSe(K)||o4(C)<o4(K)?C:K}function D3e(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Xh(e,t,r)===0}function o4(e){let t=0;for(let r=Ui(e,\"./\")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function pSe(e,t){return zv(t.isRedirect,e.isRedirect)||$L(e.path,t.path)}function goe(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Vf(t,r=>e.fileExists(wr(r,\"package.json\"))?r:void 0)}function fSe(e,t,r,i,o){var s;let l=ev(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=ks(t,d,l),m=r.redirectTargetsMap.get(h)||je,E=[...p?[p]:je,t,...m].map(L=>Qi(L,d)),S=!ji(E,KC);if(!i){let L=an(E,G=>!(S&&KC(G))&&o(G,p===G));if(L)return L}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),C=Qi(t,d);return A&&Vf(Ur(C),L=>{let G=A.get(_c(ks(L,d,l)));if(G)return CG(e,L,l)?!1:an(E,U=>{if(!CG(U,L,l))return;let K=Gf(L,U,l);for(let F of G){let oe=jv(F,K),W=o(oe,U===p);if(S=!0,W)return W}})})||(i?an(E,L=>S&&KC(L)?void 0:o(L,L===p)):void 0)}function mSe(e,t,r,i,o={}){var s;let l=ks(e.importingSourceFileName,r.getCurrentDirectory(),ev(r)),d=ks(t,r.getCurrentDirectory(),ev(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=_Se(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function _Se(e,t,r){let i=new Map,o=!1;fSe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=Gb(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=_c(l),p;i.forEach(({path:m,isRedirect:v,isInNodeModules:E},S)=>{Ui(m,d)&&((p||(p=[])).push({path:S,isRedirect:v,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(pSe),s.push(...p));let h=Ur(l);if(h===l)break;l=h}if(i.size){let l=bo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(pSe),s.push(...l)}return s}function C3e(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>m9(l)&&(!zE(l)||!Ic(Ef(l.name))));if(i)return i.name.text;let s=Fi(e.declarations,l=>{var d,p,h,m;if(!Il(l))return;let v=C(l);if(!((d=v?.parent)!=null&&d.parent&&n_(v.parent)&&sd(v.parent.parent)&&Li(v.parent.parent.parent)))return;let E=(m=(h=(p=v.parent.parent.symbol.exports)==null?void 0:p.get(\"export=\"))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return v.parent.parent;function C(R){for(;R.flags&8;)R=R.parent;return R}})[0];if(s)return s.name.text}function hSe(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=Yo(d),h=p.indexOf(\"*\"),m=r.map(v=>({ending:v,value:lk(e,[v],o)}));if(og(p)&&m.push({ending:void 0,value:e}),h!==-1){let v=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=v.length+E.length&&Ui(A,v)&&Zs(A,E)&&s({ending:S,value:A})){let C=A.substring(v.length,A.length-E.length);if(!op(C))return KA(l,C)}}else if(ct(m,v=>v.ending!==0&&p===v.value)||ct(m,v=>v.ending===0&&p===v.value&&s(v)))return l}function s({ending:l,value:d}){return l!==0||d===lk(e,[l],o,i)}}function a4(e,t,r,i,o,s,l,d,p){if(typeof s==\"string\"){let h=!yx(t),m=()=>t.getCommonSourceDirectory(),v=p&&fH(r,e,h,m),E=p&&pH(r,e,h,m),S=Qi(wr(i,s),void 0),A=qA(r)?Yd(r)+boe(r,e):void 0;switch(d){case 0:if(A&&Xh(A,S,h)===0||Xh(r,S,h)===0||v&&Xh(v,S,h)===0||E&&Xh(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&Bf(S,A,h)){let G=Gf(S,A,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(Bf(S,r,h)){let G=Gf(S,r,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(v&&Bf(S,v,h)){let G=Gf(S,v,!1);return{moduleFileToTry:wr(o,G)}}if(E&&Bf(S,E,h)){let G=Gf(S,E,!1);return{moduleFileToTry:wr(o,G)}}break;case 2:let C=S.indexOf(\"*\"),R=S.slice(0,C),L=S.slice(C+1);if(A&&Ui(A,R,h)&&Zs(A,L,h)){let G=A.slice(R.length,A.length-L.length);return{moduleFileToTry:KA(o,G)}}if(Ui(r,R,h)&&Zs(r,L,h)){let G=r.slice(R.length,r.length-L.length);return{moduleFileToTry:KA(o,G)}}if(v&&Ui(v,R,h)&&Zs(v,L,h)){let G=v.slice(R.length,v.length-L.length);return{moduleFileToTry:KA(o,G)}}if(E&&Ui(E,R,h)&&Zs(E,L,h)){let G=E.slice(R.length,E.length-L.length);return{moduleFileToTry:KA(o,G)}}break}}else{if(Array.isArray(s))return an(s,h=>a4(e,t,r,i,o,h,l,d,p));if(typeof s==\"object\"&&s!==null){for(let h of fh(s))if(h===\"default\"||l.indexOf(h)>=0||ok(l,h)){let m=s[h],v=a4(e,t,r,i,o,m,l,d,p);if(v)return v}}}}function N3e(e,t,r,i,o,s,l){return typeof s==\"object\"&&s!==null&&!Array.isArray(s)&&t4(s)?an(fh(s),d=>{let p=Qi(wr(o,d),void 0),h=Zs(d,\"/\")?1:d.includes(\"*\")?2:0;return a4(e,t,r,i,p,s[d],l,h,!1)}):a4(e,t,r,i,o,s,l,0,!1)}function P3e(e,t,r,i,o){var s,l,d;if(!i.readFile||!DF(r))return;let p=goe(i,t);if(!p)return;let h=wr(p,\"package.json\"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(noe(m)||!i.fileExists(h))return;let v=m?.contents.packageJsonContent||KW(i.readFile(h)),E=v?.imports;if(!E)return;let S=hy(r,o);return(d=an(fh(E),A=>{if(!Ui(A,\"#\")||A===\"#\"||Ui(A,\"#/\"))return;let C=Zs(A,\"/\")?1:A.includes(\"*\")?2:0;return a4(r,i,e,p,A,E[A],S,C,!0)}))==null?void 0:d.moduleFileToTry}function M3e(e,t,r,i,o,s){let l=gSe(t,e,i);if(l===void 0)return;let d=gSe(r,e,i),p=ta(d,m=>nn(l,v=>ME(Gf(m,v,i)))),h=cB(p,$L);if(h)return lk(h,o,s)}function voe({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=yF(e);if(!m)return;let E=sk(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let K=m.packageRootIndex,F;for(;;){let{moduleFileToTry:oe,packageRootPath:W,blockedByExports:$,verbatimFromExports:de}=U(K);if(zd(l)!==1){if($)return;if(de)return oe}if(W){S=W,A=!0;break}if(F||(F=oe),K=e.indexOf(Os,K+1),K===-1){S=lk(F,E,l,s);break}}}if(t&&!A)return;let C=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),R=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(Ui(i,R)||C&&Ui(r(C),R)))return;let L=S.substring(m.topLevelPackageNameIndex+1),G=CN(L);return zd(l)===1&&G===L?void 0:G;function U(K){var F,oe;let W=e.substring(0,K),$=wr(W,\"package.json\"),de=e,fe=!1,q=(oe=(F=s.getPackageJsonInfoCache)==null?void 0:F.call(s))==null?void 0:oe.getPackageJsonInfo($);if($6(q)||q===void 0&&s.fileExists($)){let H=q?.contents.packageJsonContent||KW(s.readFile($)),ee=h||o.impliedNodeFormat;if(RF(l)){let ce=W.substring(m.topLevelPackageNameIndex+1),Z=CN(ce),pe=hy(l,ee),Ae=H?.exports?N3e(l,s,e,W,Z,H.exports,pe):void 0;if(Ae)return{...Ae,verbatimFromExports:!0};if(H?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let le=H?.typesVersions?X6(H.typesVersions):void 0;if(le){let ce=e.slice(W.length+1),Z=hSe(ce,le.paths,E,s,l);Z===void 0?fe=!0:de=wr(W,Z)}let Ee=H?.typings||H?.types||H?.main||\"index.js\";if(fo(Ee)&&!(fe&&CV(fF(le.paths),Ee))){let ce=ks(Ee,W,r),Z=r(de);if(Yd(ce)===Yd(Z))return{packageRootPath:W,moduleFileToTry:de};if(H?.type!==\"module\"&&!$l(Z,c2)&&Ui(Z,ce)&&Ur(Z)===fb(ce)&&Yd(Ll(Z))===\"index\")return{packageRootPath:W,moduleFileToTry:de}}}else{let H=r(de.substring(m.packageRootIndex+1));if(H===\"index.d.ts\"||H===\"index.js\"||H===\"index.ts\"||H===\"index.tsx\")return{moduleFileToTry:de,packageRootPath:W}}return{moduleFileToTry:de}}}function L3e(e,t){if(!e.fileExists)return;let r=Ff(GC({allowJs:!0},[{extension:\"node\",isMixedContent:!1},{extension:\"json\",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function gSe(e,t,r){return Fi(t,i=>{let o=ySe(e,i,r);return o!==void 0&&bSe(o)?void 0:o})}function lk(e,t,r,i){if($l(e,[\".json\",\".mjs\",\".cjs\"]))return e;let o=Yd(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if($l(e,[\".mts\",\".cts\"])&&l!==-1&&l<s)return e;if($l(e,[\".d.mts\",\".mts\",\".d.cts\",\".cts\"]))return o+yoe(e,r);if(!$l(e,[\".d.ts\"])&&$l(e,[\".ts\"])&&e.includes(\".d.\"))return vSe(e);switch(t[0]){case 0:let d=C1(o,\"/index\");return i&&d!==o&&L3e(i,d)?o:d;case 1:return o;case 2:return o+yoe(e,r);case 3:if(Yc(e)){let p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+yoe(e,r)}return e;default:return x.assertNever(t[0])}}function vSe(e){let t=Ll(e);if(!Zs(e,\".ts\")||!t.includes(\".d.\")||$l(t,[\".d.ts\"]))return;let r=QL(e,\".ts\"),i=r.substring(r.lastIndexOf(\".\"));return r.substring(0,r.indexOf(\".d.\"))+i}function yoe(e,t){return boe(e,t)??x.fail(`Extension ${jC(e)} is unsupported:: FileName:: ${e}`)}function boe(e,t){let r=og(e);switch(r){case\".ts\":case\".d.ts\":return\".js\";case\".tsx\":return t.jsx===1?\".jsx\":\".js\";case\".js\":case\".jsx\":case\".json\":return r;case\".d.mts\":case\".mts\":case\".mjs\":return\".mjs\";case\".d.cts\":case\".cts\":case\".cjs\":return\".cjs\";default:return}}function ySe(e,t,r){let i=AA(t,e,t,r,!1);return Ou(i)?void 0:i}function bSe(e){return Ui(e,\"..\")}var Eoe,Soe=pt({\"src/compiler/moduleSpecifiers.ts\"(){\"use strict\";wo(),Eoe=(e=>(e[e.Relative=0]=\"Relative\",e[e.NonRelative=1]=\"NonRelative\",e[e.Shortest=2]=\"Shortest\",e[e.ExternalNonRelative=3]=\"ExternalNonRelative\",e))(Eoe||{})}}),h0={};la(h0,{RelativePreference:()=>Eoe,countPathComponents:()=>o4,forEachFileNameOfModule:()=>fSe,getModuleSpecifier:()=>i4,getModuleSpecifierPreferences:()=>sk,getModuleSpecifiers:()=>cSe,getModuleSpecifiersWithCacheInfo:()=>dSe,getNodeModulesPackageName:()=>I3e,tryGetJSExtensionForFile:()=>boe,tryGetModuleSpecifiersFromCache:()=>x3e,tryGetRealFileNameForNonJsDeclarationFileName:()=>vSe,updateModuleSpecifier:()=>A3e});var Toe=pt({\"src/compiler/_namespaces/ts.moduleSpecifiers.ts\"(){\"use strict\";Soe()}});function k3e(){this.flags=0}function Fa(e){return e.id||(e.id=xoe,xoe++),e.id}function na(e){return e.id||(e.id=Ioe,Ioe++),e.id}function FU(e,t){let r=dg(e);return r===1||t&&r===2}function Aoe(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=wc.getSymbolConstructor(),p=wc.getTypeConstructor(),h=wc.getSignatureConstructor(),m=0,v=0,E=0,S=0,A=0,C=0,R,L,G=!1,U=Vo(),K=[1],F=e.getCompilerOptions(),oe=Wa(F),W=ld(F),$=!!F.experimentalDecorators,de=nN(F),fe=Xne(F),q=zS(F),H=Fd(F,\"strictNullChecks\"),ee=Fd(F,\"strictFunctionTypes\"),le=Fd(F,\"strictBindCallApply\"),Ee=Fd(F,\"strictPropertyInitialization\"),ce=Fd(F,\"noImplicitAny\"),Z=Fd(F,\"noImplicitThis\"),pe=Fd(F,\"useUnknownInCatchVariables\"),Ae=!!F.keyofStringsOnly,Oe=Ae?1:0,_e=F.suppressExcessPropertyErrors?0:8192,be=F.exactOptionalPropertyTypes,Te=plt(),De=Hut(),ft=h_(),he=Vo(),Le=Ra(4,\"undefined\");Le.declarations=[];var Ke=Ra(1536,\"globalThis\",8);Ke.exports=he,Ke.declarations=[],he.set(Ke.escapedName,Ke);var Dt=Ra(4,\"arguments\"),st=Ra(4,\"require\"),Ge=F.verbatimModuleSyntax?\"verbatimModuleSyntax\":\"isolatedModules\",ot=!F.verbatimModuleSyntax||!!F.importsNotUsedAsValues,Vt,jt,gn=0,On,en=0;let zt={getNodeCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,v),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:hu.size,identity:Cu.size,subtype:Y_.size,strictSubtype:rf.size}),isUndefinedSymbol:n=>n===Le,isArgumentsSymbol:n=>n===Dt,isUnknownSymbol:n=>n===tt,getMergedSymbol:Oa,getDiagnostics:V8e,getGlobalDiagnostics:sut,getRecursionIdentity:dQ,getUnmatchedProperties:ehe,getTypeOfSymbolAtLocation:(n,a)=>{let c=uo(a);return c?eot(n,c):it},getTypeOfSymbol:Yn,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=uo(n,ao);return c===void 0?x.fail(\"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.\"):(x.assert(wu(c,c.parent)),TP(c,Hs(a)))},getDeclaredTypeOfSymbol:Cs,getPropertiesOfType:Xa,getPropertyOfType:(n,a)=>Qo(n,Hs(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=uo(c);if(!u)return;let _=Hs(a),g=GQ(_,u);return g?zhe(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Fe(n,Hs(a)),getIndexInfoOfType:(n,a)=>Uh(n,a===0?Ie:gt),getIndexInfosOfType:Ud,getIndexInfosOfIndexSymbol:Kme,getSignaturesOfType:Co,getIndexTypeOfType:(n,a)=>yE(n,a===0?Ie:gt),getIndexType:n=>y_(n),getBaseTypes:ep,getBaseTypeOfLiteralType:wg,getWidenedType:gp,getTypeFromTypeNode:n=>{let a=uo(n,xi);return a?si(a):it},getParameterType:zm,getParameterIdentifierInfoAtPosition:Nst,getPromisedTypeOfPromise:kw,getAwaitedType:n=>pA(n),getReturnTypeOfSignature:Ha,isNullableType:h5,getNullableType:e5,getNonNullableType:Wg,getNonOptionalType:mQ,getTypeArguments:Ts,typeToTypeNode:ft.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ft.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ft.signatureToSignatureDeclaration,symbolToEntityName:ft.symbolToEntityName,symbolToExpression:ft.symbolToExpression,symbolToNode:ft.symbolToNode,symbolToTypeParameterDeclarations:ft.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ft.symbolToParameterDeclaration,typeParameterToDeclaration:ft.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=uo(n);return c?lut(c,a):[]},getSymbolAtLocation:n=>{let a=uo(n);return a?um(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=uo(n);return a?hut(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=uo(n);return a?gut(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=uo(n,Ed);return a?vut(a):void 0},getExportSymbolOfSymbol(n){return Oa(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=uo(n);return a?S1(a):it},getTypeOfAssignmentPattern:n=>{let a=uo(n,lC);return a&&gZ(a)||it},getPropertySymbolOfDestructuringAssignment:n=>{let a=uo(n,Me);return a?yut(a):void 0},signatureToString:(n,a,c,u)=>th(n,uo(a),c,u),typeToString:(n,a,c)=>Pn(n,uo(a),c),symbolToString:(n,a,c,u)=>ai(n,uo(a),c,u),typePredicateToString:(n,a,c)=>nh(n,uo(a),c),writeSignature:(n,a,c,u,_)=>th(n,uo(a),c,u,_),writeType:(n,a,c,u)=>Pn(n,uo(a),c,u),writeSymbol:(n,a,c,u,_)=>ai(n,uo(a),c,u,_),writeTypePredicate:(n,a,c,u)=>nh(n,uo(a),c,u),getAugmentedPropertiesOfType:Bge,getRootSymbols:Y8e,getSymbolOfExpando:YQ,getContextualType:(n,a)=>{let c=uo(n,lt);if(c)return a&4?Ki(c,()=>bu(c,a)):bu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=uo(n,Zh);return a?Ihe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=uo(n,WE);return c&&Ahe(c,a)},getContextualTypeForJsxAttribute:n=>{let a=uo(n,H8);return a&&dOe(a,void 0)},isContextSensitive:uf,getTypeOfPropertyOfContextualType:DE,getFullyQualifiedName:mp,getResolvedSignature:(n,a,c)=>gi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Wt,getResolvedSignatureForSignatureHelp:(n,a,c)=>ei(n,()=>gi(n,a,c,16)),getExpandedParameters:uLe,hasEffectiveRestParameter:dh,containsArgumentsReference:Hme,getConstantValue:n=>{let a=uo(n,tWe);return a?Gge(a):void 0},isValidPropertyAccess:(n,a)=>{let c=uo(n,$ee);return!!c&&zat(c,Hs(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=uo(n,Er);return!!u&&BOe(u,a,c)},getSignatureFromDeclaration:n=>{let a=uo(n,Lo);return a?kf(a):void 0},isImplementationOfOverload:n=>{let a=uo(n,Lo);return a?Z8e(a):void 0},getImmediateAliasedSymbol:Nhe,getAliasedSymbol:fc,getEmitResolver:Ev,getExportsOfModule:wT,getExportsAndPropertiesOfModule:eD,forEachExportAndPropertyOfModule:tD,getSymbolWalker:hoe(Stt,df,Ha,ep,Om,Yn,cm,iu,dp,Ts),getAmbientModules:kpt,getJsxIntrinsicTagNamesAt:vat,isOptionalParameter:n=>{let a=uo(n,ao);return a?ow(a):!1},tryGetMemberInModuleExports:(n,a)=>WT(Hs(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>nD(Hs(n),a),tryFindAmbientModule:n=>w$(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>w$(n,!1),getApparentType:ou,getUnionType:Br,isTypeAssignableTo:ea,createAnonymousType:cs,createSignature:jh,createSymbol:Ra,createIndexInfo:sh,getAnyType:()=>z,getStringType:()=>Ie,getStringLiteralType:yu,getNumberType:()=>gt,getNumberLiteralType:Wm,getBigIntType:()=>bt,createPromiseType:R5,createArrayType:_d,getElementTypeOfArrayType:Z7,getBooleanType:()=>ti,getFalseType:n=>n?Ot:dn,getTrueType:n=>n?An:Cn,getVoidType:()=>jn,getUndefinedType:()=>Re,getNullType:()=>se,getESSymbolType:()=>di,getNeverType:()=>Ar,getOptionalType:()=>j,getPromiseType:()=>W7(!1),getPromiseLikeType:()=>QLe(!1),getAsyncIterableType:()=>{let n=q$(!1);if(n!==ho)return n},isSymbolAccessible:vi,isArrayType:ff,isTupleType:ga,isArrayLikeType:Lv,isEmptyAnonymousObjectType:ch,isTypeInvalidDueToUnionDiscriminant:rtt,getExactOptionalProperties:Nrt,getAllPossiblePropertiesOfTypes:itt,getSuggestedSymbolForNonexistentProperty:Vhe,getSuggestionForNonexistentProperty:jhe,getSuggestedSymbolForNonexistentJSXAttribute:FOe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Uhe(n,Hs(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Oat(n,Hs(a),c),getSuggestedSymbolForNonexistentModule:jQ,getSuggestionForNonexistentExport:wat,getSuggestedSymbolForNonexistentClassMember:WOe,getBaseConstraintOfType:md,getDefaultFromTypeParameter:n=>n&&n.flags&262144?KT(n):void 0,resolveName(n,a,c,u){return Xs(a,Hs(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Ii(tE(n)),getJsxFragmentFactory:n=>{let a=jge(n);return a&&Ii(dp(a).escapedText)},getAccessibleSymbolChain:Wy,getTypePredicateOfSignature:df,resolveExternalModuleName:n=>{let a=uo(n,lt);return a&&jd(a,a,!0)},resolveExternalModuleSymbol:$u,tryGetThisTypeAt:(n,a,c)=>{let u=uo(n);return u&&bhe(u,a,c)},getTypeArgumentConstraint:n=>{let a=uo(n,xi);return a&&Ult(a)},getSuggestionDiagnostics:(n,a)=>{let c=uo(n,Li)||x.fail(\"Could not determine parsed source file.\");if(UC(c,F,e))return je;let u;try{return i=a,Fge(c),x.assert(!!(Fr(c).flags&1)),u=Pr(u,yT.getDiagnostics(c.fileName)),i8e(G8e(c),(_,g,T)=>{!X1(_)&&!B8e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||je}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(zt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:gr,isDeclarationVisible:Pm,isPropertyAccessible:qhe,getTypeOnlyAliasDeclaration:of,getMemberOverrideModifierStatus:Sdt,isTypeParameterPossiblyReferenced:U7,typeHasCallOrConstructSignatures:vZ};function Wt(n,a){let c=new Set,u=[];Ki(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,ei(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);return bo(c)}function ei(n,a){if(n=Rn(n,ZG),n){let c=[],u=[];for(;n;){let g=Fr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,e0(n)){let T=Pi(dr(n)),N=T.type;u.push([T,N]),T.type=void 0}n=Rn(n.parent,ZG)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function Ki(n,a){let c=Rn(n,WE);if(c){let _=n;do Fr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}G=!0;let u=ei(n,a);if(G=!1,c){let _=n;do Fr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function gi(n,a,c,u){let _=uo(n,WE);Vt=c;let g=_?xD(_,a,u):void 0;return Vt=void 0,g}var io=new Map,Gn=new Map,Nr=new Map,cr=new Map,Jt=new Map,Ue=new Map,Rt=new Map,mn=new Map,qr=new Map,ni=new Map,ki=new Map,so=new Map,Jo=new Map,Ea=new Map,ln=new Map,Tn=[],ke=new Map,nt=new Set,tt=Ra(4,\"unknown\"),yt=Ra(0,\"__resolving__\"),re=new Map,Ce=new Map,et=new Set,z=Fl(1,\"any\"),Je=Fl(1,\"any\",262144,\"auto\"),_t=Fl(1,\"any\",void 0,\"wildcard\"),ze=Fl(1,\"any\",void 0,\"blocked string\"),it=Fl(1,\"error\"),Ct=Fl(1,\"unresolved\"),on=Fl(1,\"any\",65536,\"non-inferrable\"),Qt=Fl(1,\"intrinsic\"),Zt=Fl(2,\"unknown\"),V=Fl(2,\"unknown\",void 0,\"non-null\"),Re=Fl(32768,\"undefined\"),St=H?Re:Fl(32768,\"undefined\",65536,\"widening\"),M=Fl(32768,\"undefined\",void 0,\"missing\"),te=be?M:Re,j=Fl(32768,\"undefined\",void 0,\"optional\"),se=Fl(65536,\"null\"),Pe=H?se:Fl(65536,\"null\",65536,\"widening\"),Ie=Fl(4,\"string\"),gt=Fl(8,\"number\"),bt=Fl(64,\"bigint\"),Ot=Fl(512,\"false\",void 0,\"fresh\"),dn=Fl(512,\"false\"),An=Fl(512,\"true\",void 0,\"fresh\"),Cn=Fl(512,\"true\");An.regularType=Cn,An.freshType=An,Cn.regularType=Cn,Cn.freshType=An,Ot.regularType=dn,Ot.freshType=Ot,dn.regularType=dn,dn.freshType=Ot;var ti=Br([dn,Cn]),di=Fl(4096,\"symbol\"),jn=Fl(16384,\"void\"),Ar=Fl(131072,\"never\"),Zi=Fl(131072,\"never\",262144,\"silent\"),_i=Fl(131072,\"never\",void 0,\"implicit\"),ui=Fl(131072,\"never\",void 0,\"unreachable\"),Mr=Fl(67108864,\"object\"),lo=Br([Ie,gt]),_n=Br([Ie,gt,di]),ms=Ae?Ie:_n,Dl=Br([gt,bt]),_o=Br([Ie,gt,ti,bt,se,Re]),Va=YT([\"\",\"\"],[gt]),vs=j7(n=>n.flags&262144?rrt(n):n,()=>\"(restrictive mapper)\"),Js=j7(n=>n.flags&262144?_t:n,()=>\"(permissive mapper)\"),Fc=Fl(131072,\"never\",void 0,\"unique literal\"),$i=j7(n=>n.flags&262144?Fc:n,()=>\"(unique literal mapper)\"),Uo,zc=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!0),n),()=>\"(unmeasurable reporter)\"),ts=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!1),n),()=>\"(unreliable reporter)\"),ua=cs(void 0,U,je,je,je),Us=cs(void 0,U,je,je,je);Us.objectFlags|=2048;var tf=Ra(2048,\"__type\");tf.members=Vo();var Wl=cs(tf,U,je,je,je),il=cs(void 0,U,je,je,je),zs=H?Br([Re,se,il]):Zt,ho=cs(void 0,U,je,je,je);ho.instantiations=new Map;var Ut=cs(void 0,U,je,je,je);Ut.objectFlags|=262144;var ys=cs(void 0,U,je,je,je),Pc=cs(void 0,U,je,je,je),Bc=cs(void 0,U,je,je,je),Ju=Bp(),ls=Bp();ls.constraint=Ju;var tc=Bp(),ae=Bp(),X=Bp();X.constraint=ae;var xe=O7(1,\"<<unresolved>>\",0,z),dt=jh(void 0,void 0,void 0,je,z,void 0,0,0),$t=jh(void 0,void 0,void 0,je,it,void 0,0,0),sr=jh(void 0,void 0,void 0,je,z,void 0,0,0),tr=jh(void 0,void 0,void 0,je,Zi,void 0,0,0),Ir=sh(gt,Ie,!0),pi=new Map,hr={get yieldType(){return x.fail(\"Not supported\")},get returnType(){return x.fail(\"Not supported\")},get nextType(){return x.fail(\"Not supported\")}},No=wv(z,z,z),Qs=wv(z,z,Zt),bc=wv(Ar,z,Re),bs={iterableCacheKey:\"iterationTypesOfAsyncIterable\",iteratorCacheKey:\"iterationTypesOfAsyncIterator\",iteratorSymbolName:\"asyncIterator\",getGlobalIteratorType:Wtt,getGlobalIterableType:q$,getGlobalIterableIteratorType:Ftt,getGlobalGeneratorType:ztt,resolveIterationType:(n,a)=>pA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Jl={iterableCacheKey:\"iterationTypesOfIterable\",iteratorCacheKey:\"iterationTypesOfIterator\",iteratorSymbolName:\"iterator\",getGlobalIteratorType:Btt,getGlobalIterableType:a_e,getGlobalIterableIteratorType:Gtt,getGlobalGeneratorType:Vtt,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Za,Ec=new Map,Du=[],pc,Nf,Vd,Se,At,Ln,eo,Po,Oo,Cl,Kl,Bs,Ks,vl,Nl,Sc,kp,fu,tu,nf,u_,X_,fg,fd,mg,Ku,Lh,mu,Y,Ye,xt,Nt,k,ge,Xe,Mt,Vn,jr,Or,zi,_a,ha,pl,Gc,nc,Xu,_u,Ay,ja,em,tm,Ri,_g,yv,nm,D0,C0,Op=new Map,p_=0,wp=0,hg=0,Ne=!1,Ve=0,Tt,Pt,rn,wn=[],tn=[],Wn=[],Qr=0,Kn=[],Gr=[],Qn=0,Mo=yu(\"\"),xa=Wm(0),xd=$$({negative:!1,base10Value:\"0\"}),Vc=[],gg=[],$b=[],UI=0,Qb=!1,GR=0,VR=10,jR=[],gT=[],N0=[],HI=[],UR=[],qI=[],JI=[],KI=[],XI=[],vT=[],YI=[],P0=[],M0=[],Iy=[],xy=[],kh=[],Zb=[],La=hx(),yT=hx(),HR=eh(),eE,vg,Y_=new Map,rf=new Map,hu=new Map,Yu=new Map,Cu=new Map,bv=new Map,bT=Vo();bT.set(Le.escapedName,Le);var qR=[[\".mts\",\".mjs\"],[\".ts\",\".js\"],[\".cts\",\".cjs\"],[\".mjs\",\".mjs\"],[\".js\",\".js\"],[\".cjs\",\".cjs\"],[\".tsx\",F.jsx===1?\".jsx\":\".js\"],[\".jsx\",\".jsx\"],[\".json\",\".json\"]];return qut(),zt;function $I(n){return n?ln.get(n):void 0}function Ry(n,a){return n&&ln.set(n,a),a}function tE(n){if(n){let a=Nn(n);if(a)if(fI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get(\"jsxfrag\");if(c){let _=oo(c)?c[0]:c;if(a.localJsxFragmentFactory=gI(_.arguments.factory,oe),He(a.localJsxFragmentFactory,Xl,Su),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=dp(a.localJsxFragmentFactory).escapedText}let u=jge(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=dp(u).escapedText}else{let c=QI(a);if(c)return a.localJsxNamespace=c}}return eE||(eE=\"React\",F.jsxFactory?(vg=gI(F.jsxFactory,oe),He(vg,Xl),vg&&(eE=dp(vg).escapedText)):F.reactNamespace&&(eE=Hs(F.reactNamespace))),vg||(vg=P.createQualifiedName(P.createIdentifier(Ii(eE)),\"createElement\")),eE}function QI(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get(\"jsx\");if(a){let c=oo(a)?a[0]:a;if(n.localJsxFactory=gI(c.arguments.factory,oe),He(n.localJsxFactory,Xl,Su),n.localJsxFactory)return n.localJsxNamespace=dp(n.localJsxFactory).escapedText}}function Xl(n){return F_(n,-1,-1),un(n,Xl,void 0)}function Ev(n,a){return V8e(n,a),De}function ZI(n,a,...c){let u=n?vr(n,a,...c):bl(a,...c),_=La.lookup(u);return _||(La.add(u),u)}function xm(n,a,c,...u){let _=we(a,c,...u);return _.skippedOn=n,_}function ET(n,a,...c){return n?vr(n,a,...c):bl(a,...c)}function we(n,a,...c){let u=ET(n,a,...c);return La.add(u),u}function Rm(n,a){n?La.add(a):yT.add({...a,category:2})}function jc(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Nn(a);Rm(n,\"message\"in c?Rc(_,0,0,c,...u):T9(_,c));return}Rm(n,\"message\"in c?vr(a,c,...u):eg(Nn(a),a,c))}function nE(n,a,c,...u){let _=we(n,c,...u);if(a){let g=vr(n,f.Did_you_forget_to_use_await);fa(_,g)}return _}function e1(n,a){let c=Array.isArray(n)?an(n,zG):zG(n);return c&&fa(a,vr(c,f.The_declaration_was_marked_as_deprecated_here)),yT.add(a),a}function Dy(n){let a=nu(n);return a&&yn(n.declarations)>1?a.flags&64?ct(n.declarations,Sv):ji(n.declarations,Sv):!!n.valueDeclaration&&Sv(n.valueDeclaration)||yn(n.declarations)&&ji(n.declarations,Sv)}function Sv(n){return!!(lS(n)&536870912)}function Tv(n,a,c){let u=vr(n,f._0_is_deprecated,c);return e1(a,u)}function SP(n,a,c,u){let _=c?vr(n,f.The_signature_0_of_1_is_deprecated,u,c):vr(n,f._0_is_deprecated,u);return e1(a,_)}function Ra(n,a,c){v++;let u=new d(n|33554432,a);return u.links=new Coe,u.links.checkFlags=c||0,u}function Dm(n,a){let c=Ra(1,n);return c.links.type=a,c}function ST(n,a){let c=Ra(4,n);return c.links.type=a,c}function TT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function rE(n,a){a.mergeId||(a.mergeId=Roe,Roe++),jR[a.mergeId]=n}function AT(n){let a=Ra(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),rE(a,n),a}function Pf(n,a,c=!1){if(!(n.flags&TT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=yl(n);if(_===tt)return a;n=AT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&IL(n,a.valueDeclaration),Pr(n.declarations,a.declarations),a.members&&(n.members||(n.members=Vo()),Cm(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=Vo()),Cm(n.exports,a.exports,c)),c||rE(n,a)}else if(n.flags&1024)n!==Ke&&we(a.declarations&&mo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ai(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,N=a.declarations&&Nn(a.declarations[0]),O=n.declarations&&Nn(n.declarations[0]),B=nL(N,F.checkJs),Q=nL(O,F.checkJs),me=ai(a);if(N&&O&&Za&&!_&&N!==O){let ue=Xh(N.path,O.path)===-1?N:O,We=ue===N?O:N,at=FD(Za,`${ue.path}|${We.path}`,()=>({firstFile:ue,secondFile:We,conflictingSymbols:new Map})),ht=FD(at.conflictingSymbols,me,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));B||u(ht.firstFileLocations,a),Q||u(ht.secondFileLocations,n)}else B||Mf(a,T,me,n),Q||Mf(n,T,me,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)jp(_,T)}}function Mf(n,a,c,u){an(n.declarations,_=>{yg(_,a,c,u.declarations)})}function yg(n,a,c,u){let _=(Ib(n,!1)?L9(n):mo(n))||n,g=ZI(_,a,c);for(let T of u||je){let N=(Ib(T,!1)?L9(T):mo(T))||T;if(N===_)continue;g.relatedInformation=g.relatedInformation||[];let O=vr(N,f._0_was_also_declared_here,c),B=vr(N,f.and_here);yn(g.relatedInformation)>=5||ct(g.relatedInformation,Q=>zC(Q,B)===0||zC(Q,O)===0)||fa(g,yn(g.relatedInformation)?B:O)}}function t1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=Vo();return Cm(c,n),Cm(c,a),c}function Cm(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?Pf(g,u,c):Oa(u))})}function JR(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){x.assert(_.symbol.declarations.length>1);return}if(Jm(_))Cm(he,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=Tg(n,n,g,!0);if(!T)return;if(T=$u(T),T.flags&1920)if(ct(Nf,N=>T===N.symbol)){let N=Pf(_.symbol,T,!0);Vd||(Vd=new Map),Vd.set(n.text,N)}else{if((c=T.exports)!=null&&c.get(\"__export\")&&((u=_.symbol.exports)!=null&&u.size)){let N=Dme(T,\"resolvedExports\");for(let[O,B]of bo(_.symbol.exports.entries()))N.has(O)&&!T.exports.has(O)&&Pf(N.get(O),B)}Pf(T,_.symbol)}else we(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function L0(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?an(T.declarations,u(Ii(g),c)):n.set(g,_)});function u(_,g){return T=>La.add(vr(T,g,_))}}function Pi(n){if(n.flags&33554432)return n.links;let a=na(n);return gT[a]??(gT[a]=new Coe)}function Fr(n){let a=Fa(n);return N0[a]||(N0[a]=new k3e)}function $_(n){return n.kind===312&&!sp(n)}function gu(n,a,c){if(c){let u=Oa(n.get(a));if(u&&(x.assert((tl(u)&1)===0,\"Should never get an instantiated symbol here.\"),u.flags&c||u.flags&2097152&&Qc(u)&c))return u}}function TP(n,a){let c=n.parent,u=n.parent.parent,_=gu(c.locals,a,111551),g=gu(Ky(u.symbol),a,111551);return _&&g?[_,g]:x.fail(\"There should exist two symbols, one as property declaration and one as parameter declaration\")}function bg(n,a){let c=Nn(n),u=Nn(a),_=w_(n);if(c!==u){if(W&&(c.externalModuleIndicator||u.externalModuleIndicator)||!ss(F)||OS(a)||n.flags&33554432||T(a,n))return!0;let O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(u)}if(a.flags&16777216||OS(a)||she(a))return!0;if(n.pos<=a.pos&&!(xo(n)&&fL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let O=Db(a,208);return O?Rn(O,Na)!==Rn(n,Na)||n.pos<O.pos:bg(Db(n,260),a)}else{if(n.kind===260)return!g(n,a);if(Kr(n))return!Rn(a,O=>Pa(O)&&O.parent.parent===n);if(xo(n))return!N(n,a,!1);if(wu(n,n.parent))return!(fe&&Oc(n)===Oc(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return fe&&Oc(n)&&(xo(n)||wu(n,n.parent))?!N(n,a,!0):!0;return!1;function g(O,B){switch(O.parent.parent.kind){case 243:case 248:case 250:if(O0(B,O,_))return!0;break}let Q=O.parent.parent;return H1(Q)&&O0(B,Q.expression,_)}function T(O,B){return!!Rn(O,Q=>{if(Q===_)return\"quit\";if(Lo(Q))return!0;if(nl(Q))return B.pos<O.pos;let me=Vr(Q.parent,xo);if(me&&me.initializer===Q){if(zo(Q.parent)){if(B.kind===174)return!0;if(xo(B)&&Oc(O)===Oc(B)){let We=B.name;if(Me(We)||Ci(We)){let at=Yn(dr(B)),ht=Cr(B.parent.members,nl);if(Ddt(We,at,ht,B.parent.pos,Q.pos))return!0}}}else if(!(B.kind===172&&!zo(B))||Oc(O)!==Oc(B))return!0}return!1})}function N(O,B,Q){return B.end>O.end?!1:Rn(B,ue=>{if(ue===O)return\"quit\";switch(ue.kind){case 219:return!0;case 172:return Q&&(xo(O)&&ue.parent===O.parent||wu(O,O.parent)&&ue.parent===O.parent.parent)?\"quit\":!0;case 241:switch(ue.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function AP(n,a,c){let u=Wa(F),_=a;if(ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let N=Fr(_);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=an(_.parameters,g)||!1),!N.declarationRequiresScopeChange}return!1;function g(N){return T(N.name)||!!N.initializer&&T(N.initializer)}function T(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(N.name);case 172:return jl(N)?!fe:T(N.name);default:return jG(N)||yd(N)?u<7:Na(N)&&N.dotDotDotToken&&Rf(N.parent)?u<4:xi(N)?!1:Ao(N,T)||!1}}}function Cy(n){return ES(n)&&Qh(n.type)||gN(n)&&Qh(n.typeExpression)}function Xs(n,a,c,u,_,g,T=!1,N=!0){return pp(n,a,c,u,_,g,T,N,gu)}function pp(n,a,c,u,_,g,T,N,O){var B,Q,me;let ue=n,We,at,ht,qt,Xt,Hn=!1,En=n,Kt,In=!1;e:for(;n;){if(a===\"const\"&&Cy(n))return;if($M(n)&&at&&n.name===at&&(at=n,n=n.parent),L_(n)&&n.locals&&!$_(n)&&(We=O(n.locals,a,c))){let zn=!0;if(Lo(n)&&at&&at!==n.body?(c&We.flags&788968&&at.kind!==327&&(zn=We.flags&262144?at===n.type||at.kind===169||at.kind===348||at.kind===349||at.kind===168:!1),c&We.flags&3&&(AP(We,n,at)?zn=!1:We.flags&1&&(zn=at.kind===169||at===n.type&&!!Rn(We.valueDeclaration,ao)))):n.kind===194&&(zn=at===n.trueType),zn)break e;We=void 0}switch(Hn=Hn||Lf(n,at),n.kind){case 312:if(!sp(n))break;In=!0;case 267:let zn=((B=dr(n))==null?void 0:B.exports)||U;if(n.kind===312||Il(n)&&n.flags&33554432&&!Jm(n)){if(We=zn.get(\"default\")){let co=Ex(We);if(co&&We.flags&c&&co.escapedName===a)break e;We=void 0}let Bn=zn.get(a);if(Bn&&Bn.flags===2097152&&(Vs(Bn,281)||Vs(Bn,280)))break}if(a!==\"default\"&&(We=O(zn,a,c&2623475)))if(Li(n)&&n.commonJsModuleIndicator&&!((Q=We.declarations)!=null&&Q.some(bf)))We=void 0;else break e;break;case 266:if(We=O(((me=dr(n))==null?void 0:me.exports)||U,a,c&8)){u&&xf(F)&&!(n.flags&33554432)&&Nn(n)!==Nn(We.valueDeclaration)&&we(En,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ii(a),Ge,`${Ii(Fp(n).escapedName)}.${Ii(a)}`);break e}break;case 172:if(!zo(n)){let Bn=Ag(n.parent);Bn&&Bn.locals&&O(Bn.locals,a,c&111551)&&(x.assertNode(n,xo),qt=n)}break;case 263:case 231:case 264:if(We=O(dr(n).members||U,a,c&788968)){if(!Eg(We,n)){We=void 0;break}if(at&&zo(at)){u&&we(En,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Dc(n)&&c&32){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 233:if(at===n.expression&&n.parent.token===96){let Bn=n.parent.parent;if(Kr(Bn)&&(We=O(dr(Bn).members,a,c&788968))){u&&we(En,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Kt=n.parent.parent,(Kr(Kt)||Kt.kind===264)&&(We=O(dr(Kt).members,a,c&788968))){u&&we(En,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Wa(F)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a===\"arguments\"){We=Dt;break e}break;case 218:if(c&3&&a===\"arguments\"){We=Dt;break e}if(c&16){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(xc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let Mn=ux(n);Mn&&(n=Mn.parent);break;case 169:at&&(at===n.initializer||at===n.name&&ko(at))&&(Xt||(Xt=n));break;case 208:at&&(at===n.initializer||at===n.name&&ko(at))&&JE(n)&&!Xt&&(Xt=n);break;case 195:if(c&262144){let Bn=n.typeParameter.name;if(Bn&&a===Bn.escapedText){We=n.typeParameter.symbol;break e}}break;case 281:at&&at===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Ny(n)&&(ht=n),at=n,n=Df(n)?NW(n)||n.parent:(Tm(n)||T6(n))&&xb(n)||n.parent}if(g&&We&&(!ht||We!==ht.symbol)&&(We.isReferenced|=c),!We){if(at&&(x.assertNode(at,Li),at.commonJsModuleIndicator&&a===\"exports\"&&c&at.symbol.flags))return at.symbol;T||(We=O(he,a,c))}if(!We&&ue&&Jn(ue)&&ue.parent&&Xd(ue.parent,!1))return st;function Sn(){return qt&&!fe?(we(En,En&&qt.type&&wM(qt.type,En.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,is(qt.name),rm(_)),!0):!1}if(We){if(u&&Sn())return}else{u&&r(()=>{if(!En||En.parent.kind!==331&&!k0(En,a,_)&&!Sn()&&!IT(En)&&!n1(En,a,c)&&!Av(En,a)&&!xT(En,a,c)&&!KR(En,a,c)&&!Wh(En,a,c)){let zn,Mn;if(_&&(Mn=Lat(_),Mn&&we(En,u,rm(_),Mn)),!Mn&&N&&GR<VR&&(zn=Uhe(ue,a,c),zn?.valueDeclaration&&sd(zn.valueDeclaration)&&Jm(zn.valueDeclaration)&&(zn=void 0),zn)){let co=ai(zn),no=Ghe(ue,zn,!1),Eo=c===1920||_&&typeof _!=\"string\"&&xs(_)?f.Cannot_find_namespace_0_Did_you_mean_1:no?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,Yi=ET(En,Eo,rm(_),co);Rm(!no,Yi),zn.valueDeclaration&&fa(Yi,vr(zn.valueDeclaration,f._0_is_declared_here,co))}!zn&&!Mn&&_&&we(En,u,rm(_)),GR++}});return}return u&&r(()=>{var zn;if(En&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Mn=zp(We);(Mn.flags&2||Mn.flags&32||Mn.flags&384)&&Ds(Mn,En)}if(We&&In&&(c&111551)===111551&&!(ue.flags&16777216)){let Mn=Oa(We);yn(Mn.declarations)&&ji(Mn.declarations,Bn=>D2(Bn)||Li(Bn)&&!!Bn.symbol.globalExports)&&jc(!F.allowUmdGlobalAccess,En,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ii(a))}if(We&&Xt&&!Hn&&(c&111551)===111551){let Mn=Oa(L$(We)),Bn=Ym(Xt);Mn===dr(Xt)?we(En,f.Parameter_0_cannot_reference_itself,is(Xt.name)):Mn.valueDeclaration&&Mn.valueDeclaration.pos>Xt.pos&&Bn.parent.locals&&O(Bn.parent.locals,Mn.escapedName,c)===Mn&&we(En,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,is(Xt.name),is(En))}if(We&&En&&c&111551&&We.flags&2097152&&!(We.flags&111551)&&!Pb(En)){let Mn=of(We,111551);if(Mn){let Bn=Mn.kind===281||Mn.kind===278||Mn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,co=Ii(a);Oh(we(En,Bn,co),Mn,co)}}if(F.isolatedModules&&We&&In&&(c&111551)===111551){let Bn=O(he,a,c)===We&&Li(at)&&at.locals&&O(at.locals,a,-111552);if(Bn){let co=(zn=Bn.declarations)==null?void 0:zn.find(no=>no.kind===276||no.kind===273||no.kind===274||no.kind===271);co&&!UM(co)&&we(co,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ii(a))}}}),We}function Oh(n,a,c){return a?fa(n,vr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function Lf(n,a){return n.kind!==219&&n.kind!==218?oI(n)||(hs(n)||n.kind===172&&!zo(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Wr(n,1024)?!0:!RS(n)}function Ny(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function rm(n){return fo(n)?Ii(n):is(n)}function Eg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(Df(c.parent)?PS(c.parent):c.parent)===a)return!(Df(c.parent)&&Dr(c.parent.parent.tags,bf))}return!1}function k0(n,a,c){if(!Me(n)||n.escapedText!==a||j8e(n)||OS(n))return!1;let u=lu(n,!1,!1),_=u;for(;_;){if(Kr(_.parent)){let g=dr(_.parent);if(!g)break;let T=Yn(g);if(Qo(T,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,rm(c),ai(g)),!0;if(_===u&&!zo(_)){let N=Cs(g).thisType;if(Qo(N,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,rm(c)),!0}}_=_.parent}return!1}function IT(n){let a=wh(n);return a&&Es(a,64,!0)?(we(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Vl(a)),!0):!1}function wh(n){switch(n.kind){case 80:case 211:return n.parent?wh(n.parent):void 0;case 233:if(gl(n.expression))return n.expression;default:return}}function n1(n,a,c){let u=1920|(Jn(n)?111551:0);if(c===u){let _=yl(Xs(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if($d(g)){x.assert(g.left===n,\"Should only be resolving left side of qualified name as a namespace\");let T=g.right.escapedText;if(Qo(Cs(_),T))return we(g,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ii(a),Ii(T)),!0}return we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ii(a)),!0}}return!1}function Wh(n,a,c){if(c&788584){let u=yl(Xs(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return we(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ii(a)),!0}return!1}function f_(n){return n===\"any\"||n===\"string\"||n===\"number\"||n===\"boolean\"||n===\"never\"||n===\"unknown\"}function Av(n,a){return f_(a)&&n.parent.kind===281?(we(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function KR(n,a,c){if(c&111551){if(f_(a)){let g=n.parent.parent;if(g&&g.parent&&xp(g)){let T=g.token,N=g.parent.kind;N===264&&T===96?we(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ii(a)):N===263&&T===96?we(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ii(a)):N===263&&T===119&&we(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ii(a))}else we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ii(a));return!0}let u=yl(Xs(n,a,788544,void 0,void 0,!1)),_=u&&Qc(u);if(u&&_!==void 0&&!(_&111551)){let g=Ii(a);return YR(a)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):XR(n,u)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g===\"K\"?\"P\":\"K\"):we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function XR(n,a){let c=Rn(n.parent,u=>Pa(u)||Gu(u)?!1:ju(u)||\"quit\");if(c&&c.members.length===1){let u=Cs(a);return!!(u.flags&1048576)&&N5(u,384,!0)}return!1}function YR(n){switch(n){case\"Promise\":case\"Symbol\":case\"Map\":case\"WeakMap\":case\"Set\":case\"WeakSet\":return!0}return!1}function xT(n,a,c){if(c&111127){if(yl(Xs(n,a,1024,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_value,Ii(a)),!0}else if(c&788544&&yl(Xs(n,a,1536,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_type,Ii(a)),!0;return!1}function Ds(n,a){var c;if(x.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>p9(_)||Kr(_)||_.kind===266);if(u===void 0)return x.fail(\"checkResolvedBlockScopedVariable could not find block-scoped declaration\");if(!(u.flags&33554432)&&!bg(u,a)){let _,g=is(mo(u));n.flags&2?_=we(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=we(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=we(a,f.Enum_0_used_before_its_declaration,g):(x.assert(!!(n.flags&128)),xf(F)&&(_=we(a,f.Enum_0_used_before_its_declaration,g))),_&&fa(_,vr(u,f._0_is_declared_here,g))}}function O0(n,a,c){return!!a&&!!Rn(n,u=>u===a||(u===c||Lo(u)&&(!RS(u)||gc(u)&3)?\"quit\":!1))}function RT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function im(n){return n.declarations&&hA(n.declarations,Py)}function Py(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&px(n)||Zn(n)&&hl(n)===2&&px(n)||us(n)&&Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&$R(n.parent.right)||n.kind===304||n.kind===303&&$R(n.initializer)||n.kind===260&&jE(n)||n.kind===208&&jE(n.parent.parent)}function $R(n){return kL(n)||ps(n)&&T_(n)}function DT(n,a){let c=Ly(n);if(c){let _=Tx(c.expression).arguments[0];return Me(c.name)?yl(Qo(PLe(_),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===283){let _=jd(n,N9(n)||gC(n)),g=$u(_);return Nu(n,_,g,!1),g}let u=i1(n.moduleReference,a);return IP(n,u),u}function IP(n,a){if(Nu(n,void 0,a,!1)&&!n.isTypeOnly){let c=of(dr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?\"*\":Ii(c.name.escapedText);fa(we(n.moduleReference,_),vr(c,g,T))}}function nr(n,a,c,u){let _=n.exports.get(\"export=\"),g=_?Qo(Yn(_),a,!0):n.exports.get(a),T=yl(g,u);return Nu(c,g,T,!1),T}function Mc(n){return dl(n)&&!n.isExportEquals||Wr(n,2048)||Ed(n)||j_(n)}function Oi(n){return Ga(n)?e.getModeForUsageLocation(Nn(n),n):void 0}function Wp(n,a){return n===99&&a===1}function Iv(n){return Oi(n)===99&&Zs(n.text,\".json\")}function m_(n,a,c,u){let _=n&&Oi(u);if(n&&_!==void 0&&100<=W&&W<=199){let g=Wp(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=nr(a,\"default\",void 0,!0);return!(g&&ct(g.declarations,Mc)||nr(a,Hs(\"__esModule\"),void 0,c))}return wd(n)?typeof n.externalModuleIndicator!=\"object\"&&!nr(a,Hs(\"__esModule\"),void 0,c):xv(a)}function Xn(n,a){let c=jd(n,n.parent.moduleSpecifier);if(c)return CT(c,n,a)}function CT(n,a,c){var u;let _;pC(n)?_=n:_=nr(n,\"default\",a,c);let g=(u=n.declarations)==null?void 0:u.find(Li),T=iE(a);if(!T)return _;let N=Iv(T),O=m_(g,n,c,T);if(!_&&!O&&!N)if(xv(n)&&!q){let B=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\",me=n.exports.get(\"export=\").valueDeclaration,ue=we(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,ai(n),B);me&&fa(ue,vr(me,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,B))}else V_(a)?Tc(n,a):NT(n,n,a,RA(a)&&a.propertyName||a.name);else if(O||N){let B=$u(n,c)||yl(n,c);return Nu(a,n,B,!1),B}return Nu(a,_,void 0,!1),_}function iE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return U_(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return x.assertNever(n)}}function Tc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))we(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ai(n),ai(a.symbol));else{let g=we(a.name,f.Module_0_has_no_default_export,ai(n)),T=(u=n.exports)==null?void 0:u.get(\"__export\");if(T){let N=(_=T.declarations)==null?void 0:_.find(O=>{var B,Q;return!!(xl(O)&&O.moduleSpecifier&&((Q=(B=jd(O,O.moduleSpecifier))==null?void 0:B.exports)!=null&&Q.has(\"default\")))});N&&fa(g,vr(N,f.export_Asterisk_does_not_re_export_a_default))}}}function Q_(n,a){let c=n.parent.parent.moduleSpecifier,u=jd(n,c),_=Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function om(n,a){let c=n.parent.moduleSpecifier,u=c&&jd(n,c),_=c&&Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function w0(n,a){if(n===tt&&a===tt)return tt;if(n.flags&790504)return n;let c=Ra(n.flags|a.flags,n.escapedName);return x.assert(n.declarations||a.declarations),c.declarations=NE(ro(n.declarations,a.declarations),Hg),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function W0(n,a,c,u){var _;if(n.flags&1536){let g=Qu(n).get(a.escapedText),T=yl(g,u),N=(_=Pi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return Nu(c,g,T,!1,N,a.escapedText),T}}function My(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return yl(Qo(si(c),a))}}function Sg(n,a,c=!1){var u;let _=N9(n)||n.moduleSpecifier,g=jd(n,_),T=!Er(a)&&a.propertyName||a.name;if(!Me(T))return;let N=T.escapedText===\"default\"&&q,O=Pu(g,_,!1,N);if(O&&T.escapedText){if(pC(g))return g;let B;g&&g.exports&&g.exports.get(\"export=\")?B=Qo(Yn(O),T.escapedText,!0):B=My(O,T.escapedText),B=yl(B,c);let Q=W0(O,T,a,c);if(Q===void 0&&T.escapedText===\"default\"){let ue=(u=g.declarations)==null?void 0:u.find(Li);(Iv(_)||m_(ue,g,c,_))&&(Q=$u(g,c)||yl(g,c))}let me=Q&&B&&Q!==B?w0(B,Q):Q||B;return me||NT(g,O,n,T),me}}function NT(n,a,c,u){var _;let g=mp(n,c),T=is(u),N=jQ(u,a);if(N!==void 0){let O=ai(N),B=we(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,O);N.valueDeclaration&&fa(B,vr(N.valueDeclaration,f._0_is_declared_here,O))}else(_=n.exports)!=null&&_.has(\"default\")?we(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):am(c,u,T,n,g)}function am(n,a,c,u,_){var g,T;let N=(T=(g=Vr(u.valueDeclaration,L_))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),O=u.exports;if(N){let B=O?.get(\"export=\");if(B)Nm(B,N)?oE(n,a,c,_):we(a,f.Module_0_has_no_exported_member_1,_,c);else{let Q=O?Dr(Ume(O),ue=>!!Nm(ue,N)):void 0,me=Q?we(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,ai(Q)):we(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);N.declarations&&fa(me,...nn(N.declarations,(ue,We)=>vr(ue,We===0?f._0_is_declared_here:f.and_here,c)))}}else we(a,f.Module_0_has_no_exported_member_1,_,c)}function oE(n,a,c,u){if(W>=5){let _=z_(F)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else if(Jn(n)){let _=z_(F)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else{let _=z_(F)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c,c,u)}}function Fh(n,a){if(Iu(n)&&ar(n.propertyName||n.name)===\"default\"){let T=iE(n),N=T&&jd(n,T);if(N)return CT(N,n,a)}let c=Na(n)?Ym(n):n.parent.parent.parent,u=Ly(c),_=Sg(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Me(g)?yl(Qo(Yn(_),g.escapedText),a):(Nu(n,void 0,_,!1),_)}function Ly(n){if(yi(n)&&n.initializer&&Er(n.initializer))return n.initializer}function r1(n,a){if(qm(n.parent)){let c=$u(n.parent.symbol,a);return Nu(n,void 0,c,!1),c}}function aE(n,a,c){if(ar(n.propertyName||n.name)===\"default\"){let _=iE(n),g=_&&jd(n,_);if(g)return CT(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?Sg(n.parent.parent,n,c):Es(n.propertyName||n.name,a,!1,c);return Nu(n,void 0,u,!1),u}function QR(n,a){let c=dl(n)?n.expression:n.right,u=F0(c,a);return Nu(n,void 0,u,!1),u}function F0(n,a){if(Dc(n))return Ml(n).symbol;if(!Su(n)&&!gl(n))return;let c=Es(n,901119,!0,a);return c||(Ml(n),Fr(n).resolvedSymbol)}function PT(n,a){if(Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return F0(n.parent.right,a)}function fp(n,a=!1){switch(n.kind){case 271:case 260:return DT(n,a);case 273:return Xn(n,a);case 274:return Q_(n,a);case 280:return om(n,a);case 276:case 208:return Fh(n,a);case 281:return aE(n,901119,a);case 277:case 226:return QR(n,a);case 270:return r1(n,a);case 304:return Es(n.name,901119,!0,a);case 303:return F0(n.initializer,a);case 212:case 211:return PT(n,a);default:return x.fail()}}function MT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function yl(n,a){return!a&&MT(n)?fc(n):n}function fc(n){x.assert((n.flags&2097152)!==0,\"Should only get Alias here.\");let a=Pi(n);if(a.aliasTarget)a.aliasTarget===yt&&(a.aliasTarget=tt);else{a.aliasTarget=yt;let c=im(n);if(!c)return x.fail();let u=fp(c);a.aliasTarget===yt?a.aliasTarget=u||tt:we(c,f.Circular_definition_of_import_alias_0,ai(n))}return a.aliasTarget}function LT(n){if(Pi(n).aliasTarget!==yt)return fc(n)}function Qc(n,a,c){let u=a&&of(n),_=u&&xl(u),g=u&&(_?jd(u.moduleSpecifier,u.moduleSpecifier,!0):fc(u.symbol)),T=_&&g?Z_(g):void 0,N=c?0:n.flags,O;for(;n.flags&2097152;){let B=zp(fc(n));if(!_&&B===g||T?.get(B.escapedName)===B)break;if(B===tt)return-1;if(B===n||O?.has(B))break;B.flags&2097152&&(O?O.add(B):O=new Set([n,B])),N|=B.flags,n=B}return N}function Nu(n,a,c,u,_,g){if(!n||Er(n))return!1;let T=dr(n);if(Sb(n)){let O=Pi(T);return O.typeOnlyDeclaration=n,!0}if(_){let O=Pi(T);return O.typeOnlyDeclaration=_,T.escapedName!==g&&(O.typeOnlyExportStarName=g),!0}let N=Pi(T);return sE(N,a,u)||sE(N,c,u)}function sE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get(\"export=\"))??a,g=_.declarations&&Dr(_.declarations,Sb);n.typeOnlyDeclaration=g??Pi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function of(n,a){if(!(n.flags&2097152))return;let c=Pi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?yl(Z_(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):fc(c.typeOnlyDeclaration.symbol);return Qc(u)&a?c.typeOnlyDeclaration:void 0}}function ky(n){if(!ot)return;let a=dr(n),c=fc(a);c&&(c===tt||Qc(a,!0)&111551&&!Bw(c))&&Oy(a)}function Oy(n){x.assert(ot);let a=Pi(n);if(!a.referenced){a.referenced=!0;let c=im(n);if(!c)return x.fail();ox(c)&&Qc(yl(n))&111551&&Ml(c.moduleReference)}}function Lc(n){let a=Pi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function i1(n,a){return n.kind===80&&LC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Es(n,1920,!1,a):(x.assert(n.parent.kind===271),Es(n,901119,!1,a))}function mp(n,a){return n.parent?mp(n.parent,a)+\".\"+ai(n):ai(n,a,void 0,36)}function kT(n){for(;$d(n.parent);)n=n.parent;return n}function OT(n){let a=dp(n),c=Xs(a,a.escapedText,111551,void 0,a,!0);if(c){for(;$d(a.parent);){let u=Yn(c);if(c=Qo(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Es(n,a,c,u,_){if(_l(n))return;let g=1920|(Jn(n)?a&111551:0),T;if(n.kind===80){let N=a===g||xs(n)?f.Cannot_find_namespace_0:Ake(dp(n)),O=Jn(n)&&!xs(n)?ZR(n,a):void 0;if(T=Oa(Xs(_||n,n.escapedText,a,c||O?void 0:N,n,!0,!1)),!T)return Oa(O)}else if(n.kind===166||n.kind===211){let N=n.kind===166?n.left:n.expression,O=n.kind===166?n.right:n.name,B=Es(N,g,c,!1,_);if(!B||_l(O))return;if(B===tt)return B;if(B.valueDeclaration&&Jn(B.valueDeclaration)&&zd(F)!==100&&yi(B.valueDeclaration)&&B.valueDeclaration.initializer&&lwe(B.valueDeclaration.initializer)){let Q=B.valueDeclaration.initializer.arguments[0],me=jd(Q,Q);if(me){let ue=$u(me);ue&&(B=ue)}}if(T=Oa(gu(Qu(B),O.escapedText,a)),!T&&B.flags&2097152&&(T=Oa(gu(Qu(fc(B)),O.escapedText,a))),!T){if(!c){let Q=mp(B),me=is(O),ue=jQ(O,B);if(ue){we(O,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,me,ai(ue));return}let We=$d(n)&&kT(n);if(Se&&a&788968&&We&&!Wx(We.parent)&&OT(We)){we(We,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Wu(We));return}if(a&1920&&$d(n.parent)){let ht=Oa(gu(Qu(B),O.escapedText,788968));if(ht){we(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ai(ht),Ii(n.parent.right.escapedText));return}}we(O,f.Namespace_0_has_no_exported_member_1,Q,me)}return}}else x.assertNever(n,\"Unknown entity name kind.\");return x.assert((tl(T)&1)===0,\"Should never get an instantiated symbol here.\"),!xs(n)&&Su(n)&&(T.flags&2097152||n.parent.kind===277)&&Nu(V9(n),T,void 0,!0),T.flags&a||u?T:fc(T)}function ZR(n,a){if(U$(n.parent)){let c=lE(n.parent);if(c)return Xs(c,n.escapedText,a,void 0,n,!0)}}function lE(n){if(Rn(n,_=>q1(_)||_.flags&16777216?bf(_):\"quit\"))return;let c=PS(n);if(c&&Cc(c)&&AL(c.expression)){let _=dr(c.expression.left);if(_)return z0(_)}if(c&&ps(c)&&AL(c.parent)&&Cc(c.parent.parent)){let _=dr(c.parent.left);if(_)return z0(_)}if(c&&(qf(c)||Hl(c))&&Zn(c.parent.parent)&&hl(c.parent.parent)===6){let _=dr(c.parent.parent.left);if(_)return z0(_)}let u=Rb(n);if(u&&Lo(u)){let _=dr(u);return _&&_.valueDeclaration}}function z0(n){let a=n.parent.valueDeclaration;return a?(vC(a)?LA(a):SS(a)?yL(a):void 0)||a:void 0}function xP(n){let a=n.valueDeclaration;if(!a||!Jn(a)||n.flags&524288||Ib(a,!1))return;let c=yi(a)?yL(a):LA(a);if(c){let u=Fp(c);if(u)return Zhe(u,n)}}function jd(n,a,c){let _=zd(F)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return Tg(n,a,c?void 0:_)}function Tg(n,a,c,u=!1){return Ga(a)?__(n,a.text,c,a,u):void 0}function __(n,a,c,u,_=!1){var g,T,N,O,B,Q,me,ue,We,at,ht;if(Ui(a,\"@types/\")){let Bn=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,co=jD(a,\"@types/\");we(u,Bn,co,a)}let qt=w$(a,!0);if(qt)return qt;let Xt=Nn(n),Hn=Ga(n)?n:((g=Il(n)?n:n.parent&&Il(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=ey(n)?n:void 0)==null?void 0:T.argument.literal)||(yi(n)&&n.initializer&&Xd(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((N=Rn(n,lp))==null?void 0:N.arguments[0])||((O=Rn(n,cc))==null?void 0:O.moduleSpecifier)||((B=Rn(n,Ab))==null?void 0:B.moduleReference.expression)||((Q=Rn(n,xl))==null?void 0:Q.moduleSpecifier),En=Hn&&Ga(Hn)?e.getModeForUsageLocation(Xt,Hn):Xt.impliedNodeFormat,Kt=zd(F),In=(me=e.getResolvedModule(Xt,a,En))==null?void 0:me.resolvedModule,Sn=In&&FH(F,In,Xt),zn=In&&(!Sn||Sn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(In.resolvedFileName);if(zn){if(Sn&&we(u,Sn,a,In.resolvedFileName),In.resolvedUsingTsExtension&&Yc(a)){let Bn=((ue=Rn(n,cc))==null?void 0:ue.importClause)||Rn(n,hm(Nc,xl));(Bn&&!Bn.isTypeOnly||Rn(n,lp))&&we(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Mn(x.checkDefined(JW(a))))}else if(In.resolvedUsingTsExtension&&!nR(F,Xt.fileName)){let Bn=((We=Rn(n,cc))==null?void 0:We.importClause)||Rn(n,hm(Nc,xl));if(!(Bn?.isTypeOnly||Rn(n,Dh))){let co=x.checkDefined(JW(a));we(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,co)}}if(zn.symbol){if(In.isExternalLibraryImport&&!VC(In.extension)&&o1(!1,u,Xt,En,In,a),Kt===3||Kt===99){let Bn=Xt.impliedNodeFormat===1&&!Rn(n,lp)||!!Rn(n,Nc),co=Rn(n,no=>Dh(no)||xl(no)||cc(no));if(Bn&&zn.impliedNodeFormat===99&&!hre(co))if(Rn(n,Nc))we(u,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let no,Eo=og(Xt.fileName);if(Eo===\".ts\"||Eo===\".js\"||Eo===\".tsx\"||Eo===\".jsx\"){let Yi=Xt.packageJsonScope,ic=Eo===\".ts\"?\".mts\":Eo===\".js\"?\".mjs\":void 0;Yi&&!Yi.contents.packageJsonContent.type?ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,ic,wr(Yi.packageDirectory,\"package.json\")):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,wr(Yi.packageDirectory,\"package.json\")):ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,ic):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}La.add(eg(Nn(u),u,So(no,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return Oa(zn.symbol)}c&&we(u,f.File_0_is_not_a_module,zn.fileName);return}if(Nf){let Bn=pB(Nf,co=>co.pattern,a);if(Bn){let co=Vd&&Vd.get(a);return Oa(co||Bn.symbol)}}if(In&&!VC(In.extension)&&Sn===void 0||Sn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let Bn=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;we(u,Bn,a,In.resolvedFileName)}else o1(ce&&!!c,u,Xt,En,In,a);return}if(c){if(In){let Bn=e.getProjectReferenceRedirect(In.resolvedFileName);if(Bn){we(u,f.Output_file_0_has_not_been_built_from_source_file_1,Bn,In.resolvedFileName);return}}if(Sn)we(u,Sn,a,In.resolvedFileName);else{let Bn=op(a)&&!TA(a),co=Kt===3||Kt===99;if(!Mb(F)&&el(a,\".json\")&&Kt!==1&&rF(F))we(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(En===99&&co&&Bn){let no=Qi(a,Ur(Xt.path)),Eo=(at=qR.find(([Yi,ic])=>e.fileExists(no+Yi)))==null?void 0:at[1];Eo?we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Eo):we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((ht=e.getResolvedModule(Xt,a,En))!=null&&ht.alternateResult){let no=Q8(Xt,e,a,En,a);jc(!0,u,So(no,c,a))}else we(u,c,a)}}return;function Mn(Bn){let co=QL(a,Bn);if(nF(W)||En===99){let no=Yc(a)&&nR(F);return co+(Bn===\".mts\"||Bn===\".d.mts\"?no?\".mts\":\".mjs\":Bn===\".cts\"||Bn===\".d.mts\"?no?\".cts\":\".cjs\":no?\".ts\":\".js\")}return co}}function o1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let N;!Ic(T)&&_&&(N=Q8(c,e,T,u,_.name)),jc(n,a,So(N,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function $u(n,a){if(n?.exports){let c=yl(n.exports.get(\"export=\"),a),u=a1(Oa(c),Oa(n));return Oa(u)||n}}function a1(n,a){if(!n||n===tt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=Pi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:AT(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=Vo()),a.exports.forEach((_,g)=>{g!==\"export=\"&&u.exports.set(g,u.exports.has(g)?Pf(u.exports.get(g),_):_)}),u===n&&(Pi(u).resolvedExports=void 0,Pi(u).resolvedMembers=void 0),Pi(u).cjsExportMerged=u,c.cjsExportMerged=u}function Pu(n,a,c,u){var _;let g=$u(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!Vs(g,312)){let N=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\";return we(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),g}let T=a.parent;if(cc(T)&&cx(T)||lp(T)){let N=lp(T)?T.arguments[0]:T.moduleSpecifier,O=Yn(g),B=awe(O,g,n,N);if(B)return s1(g,B,T);let Q=(_=n?.declarations)==null?void 0:_.find(Li),me=Q&&Wp(Oi(N),Q.impliedNodeFormat);if(z_(F)||me){let ue=k7(O,0);if((!ue||!ue.length)&&(ue=k7(O,1)),ue&&ue.length||Qo(O,\"default\",!0)||me){let We=O.flags&3670016?swe(O,g,n,N):ege(g,g.parent);return s1(g,We,T)}}}}return g}function s1(n,a,c){let u=Ra(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=Om(a);return u.links.type=cs(u,_.members,je,je,_.indexInfos),u}function xv(n){return n.exports.get(\"export=\")!==void 0}function wT(n){return Ume(Z_(n))}function eD(n){let a=wT(n),c=$u(n);if(c!==n){let u=Yn(c);wy(u)&&Pr(a,Xa(u))}return a}function tD(n,a){Z_(n).forEach((_,g)=>{V0(g)||a(_,g)});let u=$u(n);if(u!==n){let _=Yn(u);wy(_)&&ntt(_,(g,T)=>{a(g,T)})}}function WT(n,a){let c=Z_(a);if(c)return c.get(n)}function nD(n,a){let c=WT(n,a);if(c)return c;let u=$u(a);if(u===a)return;let _=Yn(u);return wy(_)?Qo(_,n):void 0}function wy(n){return!(n.flags&402784252||br(n)&1||ff(n)||ga(n))}function Qu(n){return n.flags&6256?Dme(n,\"resolvedExports\"):n.flags&1536?Z_(n):n.exports||U}function Z_(n){let a=Pi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=FT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function rD(n,a,c,u){a&&a.forEach((_,g)=>{if(g===\"default\")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:Vl(u.moduleSpecifier)});else if(c&&u&&T&&yl(T)!==yl(_)){let N=c.get(g);N.exportsWithDuplicate?N.exportsWithDuplicate.push(u):N.exportsWithDuplicate=[u]}})}function FT(n){let a=[],c,u=new Set;n=$u(n);let _=g(n)||U;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,N,O){if(!O&&T?.exports&&T.exports.forEach((me,ue)=>u.add(ue)),!(T&&T.exports&&jp(a,T)))return;let B=new Map(T.exports),Q=T.exports.get(\"__export\");if(Q){let me=Vo(),ue=new Map;if(Q.declarations)for(let We of Q.declarations){let at=jd(We,We.moduleSpecifier),ht=g(at,We,O||We.isTypeOnly);rD(me,ht,ue,We)}ue.forEach(({exportsWithDuplicate:We},at)=>{if(!(at===\"export=\"||!(We&&We.length)||B.has(at)))for(let ht of We)La.add(vr(ht,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ue.get(at).specifierText,Ii(at)))}),rD(B,me)}return N?.isTypeOnly&&(c??(c=new Map),B.forEach((me,ue)=>c.set(ue,N))),B}}function Oa(n){let a;return n&&n.mergeId&&(a=jR[n.mergeId])?a:n}function dr(n){return Oa(n.symbol&&L$(n.symbol))}function Fp(n){return qm(n)?dr(n):void 0}function nu(n){return Oa(n.parent&&L$(n.parent))}function B0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&Fp(n.valueDeclaration.parent)||n}function iD(n,a){let c=Nn(a),u=Fa(c),_=Pi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let N of c.imports){if(xs(N))continue;let O=jd(a,N,!0);!O||!zh(O,n)||(g=pn(g,O))}if(yn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let N of T){if(!wl(N))continue;let O=dr(N);zh(O,n)&&(g=pn(g,O))}return _.extendedContainers=g||je}function cE(n,a,c){let u=nu(n);if(u&&!(n.flags&262144))return O(u);let _=Fi(n.declarations,Q=>{if(!sd(Q)&&Q.parent){if(Rd(Q.parent))return dr(Q.parent);if(n_(Q.parent)&&Q.parent.parent&&$u(dr(Q.parent.parent))===n)return dr(Q.parent.parent)}if(Dc(Q)&&Zn(Q.parent)&&Q.parent.operatorToken.kind===64&&us(Q.parent.left)&&gl(Q.parent.left.expression))return Eh(Q.parent.left)||DS(Q.parent.left.expression)?dr(Nn(Q)):(Ml(Q.parent.left.expression),Fr(Q.parent.left.expression).resolvedSymbol)});if(!yn(_))return;let g=Fi(_,Q=>zh(Q,n)?Q:void 0),T=[],N=[];for(let Q of g){let[me,...ue]=O(Q);T=pn(T,me),N=Pr(N,ue)}return ro(T,N);function O(Q){let me=Fi(Q.declarations,B),ue=a&&iD(n,a),We=G0(Q,c);if(a&&Q.flags&Ig(c)&&Wy(Q,a,1920,!1))return pn(ro(ro([Q],me),ue),We);let at=!(Q.flags&Ig(c))&&Q.flags&788968&&Cs(Q).flags&524288&&c===111551?U0(a,qt=>hc(qt,Xt=>{if(Xt.flags&Ig(c)&&Yn(Xt)===Cs(Q))return Xt})):void 0,ht=at?[at,...me,Q]:[...me,Q];return ht=pn(ht,We),ht=Pr(ht,ue),ht}function B(Q){return u&&zT(Q,u)}}function G0(n,a){let c=!!yn(n.declarations)&&Ta(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(ma(c)&&c===c.parent.initializer||ju(c)&&c===c.parent.type))return dr(c.parent)}function zT(n,a){let c=wi(n),u=c&&c.exports&&c.exports.get(\"export=\");return u&&Nm(u,a)?c:void 0}function zh(n,a){if(n===nu(a))return a;let c=n.exports&&n.exports.get(\"export=\");if(c&&Nm(c,a))return n;let u=Qu(n),_=u.get(a.escapedName);return _&&Nm(_,a)?_:hc(u,g=>{if(Nm(g,a))return g})}function Nm(n,a){if(Oa(yl(Oa(n)))===Oa(yl(Oa(a))))return n}function zp(n){return Oa(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function sm(n,a){return!!(n.flags&111551||n.flags&2097152&&Qc(n,!a)&111551)}function Ag(n){let a=n.members;for(let c of a)if(c.kind===176&&gf(c.body))return c}function Bh(n){var a;let c=new p(zt,n);return m++,c.id=m,(a=qn)==null||a.recordType(c),c}function Gh(n,a){let c=Bh(n);return c.symbol=a,c}function l1(n){return new p(zt,n)}function Fl(n,a,c=0,u){oD(a,u);let _=Bh(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function oD(n,a){let c=`${n},${a??\"\"}`;et.has(c)&&x.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:\"\"}; you may need to pass a name to createIntrinsicType.`),et.add(c)}function af(n,a){let c=Gh(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function eh(){return Br(bo(GU.keys(),yu))}function Bp(n){return Gh(262144,n)}function V0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function dE(n){let a;return n.forEach((c,u)=>{c1(c,u)&&(a||(a=[])).push(c)}),a||je}function c1(n,a){return!V0(a)&&sm(n)}function BT(n){let a=dE(n),c=z$(n);return c?ro(a,[c]):a}function Gp(n,a,c,u,_){let g=n;return g.members=a,g.properties=je,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==U&&(g.properties=dE(a)),g}function cs(n,a,c,u,_){return Gp(af(16,n),a,c,u,_)}function j0(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Cr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=cs(n.symbol,n.members,n.callSignatures,ct(a)?a:je,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function U0(n,a){let c;for(let u=n;u;u=u.parent){if(L_(u)&&u.locals&&!$_(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!sp(u))break;case 267:let _=dr(u);if(c=a(_?.exports||U,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((dr(u).members||U).forEach((T,N)=>{T.flags&788968&&(g||(g=Vo())).set(N,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(he,void 0,!0)}function Ig(n){return n===111551?111551:1920}function Wy(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=Pi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),N=U0(a,(Xt,Hn,En,Kt)=>Kt),O=`${u?0:1}|${N&&Fa(N)}|${c}`;if(T.has(O))return T.get(O);let B=na(n),Q=_.get(B);Q||_.set(B,Q=[]);let me=U0(a,ue);return T.set(O,me),me;function ue(Xt,Hn,En){if(!jp(Q,Xt))return;let Kt=ht(Xt,Hn,En);return Q.pop(),Kt}function We(Xt,Hn){return!uE(Xt,a,Hn)||!!Wy(Xt.parent,a,Ig(Hn),u,_)}function at(Xt,Hn,En){return(n===(Hn||Xt)||Oa(n)===Oa(Hn||Xt))&&!ct(Xt.declarations,Rd)&&(En||We(Oa(Xt),c))}function ht(Xt,Hn,En){return at(Xt.get(n.escapedName),void 0,Hn)?[n]:hc(Xt,In=>{if(In.flags&2097152&&In.escapedName!==\"export=\"&&In.escapedName!==\"default\"&&!(QW(In)&&a&&wl(Nn(a)))&&(!u||ct(In.declarations,Ab))&&(!En||!ct(In.declarations,Jte))&&(Hn||!Vs(In,281))){let Sn=fc(In),zn=qt(In,Sn,Hn);if(zn)return zn}if(In.escapedName===n.escapedName&&In.exportSymbol&&at(Oa(In.exportSymbol),void 0,Hn))return[n]})||(Xt===he?qt(Ke,Ke,Hn):void 0)}function qt(Xt,Hn,En){if(at(Xt,Hn,En))return[Xt];let Kt=Qu(Hn),In=Kt&&ue(Kt,!0);if(In&&We(Xt,Ig(c)))return[Xt].concat(In)}}function uE(n,a,c){let u=!1;return U0(a,_=>{let g=Oa(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!Vs(g,281);return g=T?fc(g):g,(T?Qc(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ne(n,a){return ri(n,a,788968,!1,!0).accessibility===0}function rt(n,a){return ri(n,a,111551,!1,!0).accessibility===0}function Ht(n,a,c){return ri(n,a,c,!1,!1).accessibility===0}function yr(n,a,c,u,_,g){if(!yn(n))return;let T,N=!1;for(let O of n){let B=Wy(O,a,u,!1);if(B){T=O;let ue=ru(B[0],_);if(ue)return ue}if(g&&ct(O.declarations,Rd)){if(_){N=!0;continue}return{accessibility:0}}let Q=cE(O,a,u),me=yr(Q,a,c,c===O?Ig(u):u,_,g);if(me)return me}if(N)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ai(c,a,u),errorModuleName:T!==c?ai(T,a,1920):void 0}}function vi(n,a,c,u){return ri(n,a,c,u,!0)}function ri(n,a,c,u,_){if(n&&a){let g=yr([n],a,n,c,u,_);if(g)return g;let T=an(n.declarations,wi);if(T){let N=wi(a);if(T!==N)return{accessibility:2,errorSymbolName:ai(n,a,c),errorModuleName:ai(T),errorNode:Jn(a)?a:void 0}}return{accessibility:1,errorSymbolName:ai(n,a,c)}}return{accessibility:0}}function wi(n){let a=Rn(n,$o);return a&&dr(a)}function $o(n){return sd(n)||n.kind===312&&sp(n)}function Rd(n){return iW(n)||n.kind===312&&sp(n)}function ru(n,a){let c;if(!ji(Cr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,N;if(!Pm(g)){let O=RT(g);if(O&&!Wr(O,32)&&Pm(O.parent))return _(g,O);if(yi(g)&&cl(g.parent.parent)&&!Wr(g.parent.parent,32)&&Pm(g.parent.parent.parent))return _(g,g.parent.parent);if(oW(g)&&!Wr(g,32)&&Pm(g.parent))return _(g,g);if(Na(g)){if(n.flags&2097152&&Jn(g)&&((T=g.parent)!=null&&T.parent)&&yi(g.parent.parent)&&((N=g.parent.parent.parent)!=null&&N.parent)&&cl(g.parent.parent.parent.parent)&&!Wr(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&Pm(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let B=Rn(g,cl);return Wr(B,32)?!0:Pm(B.parent)?_(g,B):!1}}return!1}return!0}function _(g,T){return a&&(Fr(g).isVisible=!0,c=Kh(c,T)),!0}}function sf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!yh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Fy(n,a){let c=sf(n),u=dp(n),_=Xs(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&YE(u)&&vi(dr(lu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&ru(_,!0)||{accessibility:1,errorSymbolName:Vl(u),errorNode:u}}function ai(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?ft.symbolToNode:ft.symbolToEntityName;return _?N(_).getText():dC(N);function N(O){let B=T(n,c,a,g),Q=a?.kind===312?hH():y0(),me=a&&Nn(a);return Q.writeNode(4,B,me,O),O}}function th(n,a,c=0,u,_){return _?g(_).getText():dC(g);function g(T){let N;c&262144?N=u===1?185:184:N=u===1?180:179;let O=ft.signatureToSignatureDeclaration(n,N,a,GT(c)|70221824|512),B=hk(),Q=a&&Nn(a);return B.writeNode(4,O,Q,nV(T)),T}}function Pn(n,a,c=1064960,u=GL(\"\")){let _=F.noErrorTruncation||c&1,g=ft.typeToTypeNode(n,a,GT(c)|70221824|(_?1:0));if(g===void 0)return x.fail(\"should always get typenode\");let T=n!==Ct?y0():_H(),N=a&&Nn(a);T.writeNode(4,g,N,u);let O=u.getText(),B=_?AF*2:i2*2;return B&&O&&O.length>=B?O.substr(0,B-3)+\"...\":O}function d1(n,a){let c=By(n.symbol)?Pn(n,n.symbol.valueDeclaration):Pn(n),u=By(a.symbol)?Pn(a,a.symbol.valueDeclaration):Pn(a);return c===u&&(c=zy(n),u=zy(a)),[c,u]}function zy(n){return Pn(n,void 0,64)}function By(n){return n&&!!n.valueDeclaration&&lt(n.valueDeclaration)&&!uf(n.valueDeclaration)}function GT(n=0){return n&848330095}function H0(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===cf(n.symbol)||!!(n.flags&524288)&&!!(br(n)&16777216))}function h_(){return{typeToTypeNode:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>u(Qe,Xr)),indexInfoToIndexSignatureDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>Q(Qe,Xr,void 0)),signatureToSignatureDeclaration:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>me(Qe,ve,li)),symbolToEntityName:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>Yi(Qe,li,ve,!1)),symbolToExpression:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>ic(Qe,li,ve)),symbolToTypeParameterDeclarations:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>In(Qe,Xr)),symbolToParameterDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>qt(Qe,Xr)),typeParameterToDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>at(Qe,Xr)),symbolTableToDeclarationStatements:(Qe,ve,vn,_r,Xr)=>a(ve,vn,_r,li=>Ys(Qe,li,Xr)),symbolToNode:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>n(Qe,li,ve))};function n(Qe,ve,vn){if(ve.flags&1073741824){if(Qe.valueDeclaration){let Xr=mo(Qe.valueDeclaration);if(Xr&&Pa(Xr))return Xr}let _r=Pi(Qe).nameType;if(_r&&_r.flags&9216)return ve.enclosingDeclaration=_r.symbol.valueDeclaration,P.createComputedPropertyName(ic(_r.symbol,ve,vn))}return ic(Qe,ve,vn)}function a(Qe,ve,vn,_r){x.assert(Qe===void 0||(Qe.flags&16)===0);let Xr=vn?.trackSymbol?vn.moduleResolverHost:ve&134217728?w3e(e):void 0,li={enclosingDeclaration:Qe,flags:ve||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};li.tracker=new VU(li,vn,Xr);let ci=_r(li);return li.truncating&&li.flags&1&&li.tracker.reportTruncationError(),li.encounteredError?void 0:ci}function c(Qe){return Qe.truncating?Qe.truncating:Qe.truncating=Qe.approximateLength>(Qe.flags&1?AF:i2)}function u(Qe,ve){let vn=ve.flags,_r=_(Qe,ve);return ve.flags=vn,_r}function _(Qe,ve){var vn,_r;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xr=ve.flags&8388608;if(ve.flags&=-8388609,!Qe){if(!(ve.flags&262144)){ve.encounteredError=!0;return}return ve.approximateLength+=3,P.createKeywordTypeNode(133)}if(ve.flags&536870912||(Qe=wm(Qe)),Qe.flags&1)return Qe.aliasSymbol?P.createTypeReferenceNode(Bn(Qe.aliasSymbol),O(Qe.aliasTypeArguments,ve)):Qe===Ct?iN(P.createKeywordTypeNode(133),3,\"unresolved\"):(ve.approximateLength+=3,P.createKeywordTypeNode(Qe===Qt?141:133));if(Qe.flags&2)return P.createKeywordTypeNode(159);if(Qe.flags&4)return ve.approximateLength+=6,P.createKeywordTypeNode(154);if(Qe.flags&8)return ve.approximateLength+=6,P.createKeywordTypeNode(150);if(Qe.flags&64)return ve.approximateLength+=6,P.createKeywordTypeNode(163);if(Qe.flags&16&&!Qe.aliasSymbol)return ve.approximateLength+=7,P.createKeywordTypeNode(136);if(Qe.flags&1056){if(Qe.symbol.flags&8){let fn=nu(Qe.symbol),zr=co(fn,ve,788968);if(Cs(fn)===Qe)return zr;let Ai=$s(Qe.symbol);return Tp(Ai,0)?ii(zr,P.createTypeReferenceNode(Ai,void 0)):Dh(zr)?(zr.isTypeOf=!0,P.createIndexedAccessTypeNode(zr,P.createLiteralTypeNode(P.createStringLiteral(Ai)))):Yp(zr)?P.createIndexedAccessTypeNode(P.createTypeQueryNode(zr.typeName),P.createLiteralTypeNode(P.createStringLiteral(Ai))):x.fail(\"Unhandled type node kind returned from `symbolToTypeNode`.\")}return co(Qe.symbol,ve,788968)}if(Qe.flags&128)return ve.approximateLength+=Qe.value.length+2,P.createLiteralTypeNode($n(P.createStringLiteral(Qe.value,!!(ve.flags&268435456)),16777216));if(Qe.flags&256){let fn=Qe.value;return ve.approximateLength+=(\"\"+fn).length,P.createLiteralTypeNode(fn<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-fn)):P.createNumericLiteral(fn))}if(Qe.flags&2048)return ve.approximateLength+=ZE(Qe.value).length+1,P.createLiteralTypeNode(P.createBigIntLiteral(Qe.value));if(Qe.flags&512)return ve.approximateLength+=Qe.intrinsicName.length,P.createLiteralTypeNode(Qe.intrinsicName===\"true\"?P.createTrue():P.createFalse());if(Qe.flags&8192){if(!(ve.flags&1048576)){if(rt(Qe.symbol,ve.enclosingDeclaration))return ve.approximateLength+=6,co(Qe.symbol,ve,111551);ve.tracker.reportInaccessibleUniqueSymbolError&&ve.tracker.reportInaccessibleUniqueSymbolError()}return ve.approximateLength+=13,P.createTypeOperatorNode(158,P.createKeywordTypeNode(155))}if(Qe.flags&16384)return ve.approximateLength+=4,P.createKeywordTypeNode(116);if(Qe.flags&32768)return ve.approximateLength+=9,P.createKeywordTypeNode(157);if(Qe.flags&65536)return ve.approximateLength+=4,P.createLiteralTypeNode(P.createNull());if(Qe.flags&131072)return ve.approximateLength+=5,P.createKeywordTypeNode(146);if(Qe.flags&4096)return ve.approximateLength+=6,P.createKeywordTypeNode(155);if(Qe.flags&67108864)return ve.approximateLength+=6,P.createKeywordTypeNode(151);if(YC(Qe))return ve.flags&4194304&&(!ve.encounteredError&&!(ve.flags&32768)&&(ve.encounteredError=!0),(_r=(vn=ve.tracker).reportInaccessibleThisError)==null||_r.call(vn)),ve.approximateLength+=4,P.createThisTypeNode();if(!Xr&&Qe.aliasSymbol&&(ve.flags&16384||ne(Qe.aliasSymbol,ve.enclosingDeclaration))){let fn=O(Qe.aliasTypeArguments,ve);return V0(Qe.aliasSymbol.escapedName)&&!(Qe.aliasSymbol.flags&32)?P.createTypeReferenceNode(P.createIdentifier(\"\"),fn):yn(fn)===1&&Qe.aliasSymbol===Po.symbol?P.createArrayTypeNode(fn[0]):co(Qe.aliasSymbol,ve,788968,fn)}let li=br(Qe);if(li&4)return x.assert(!!(Qe.flags&524288)),Qe.node?Ft(Qe,xn):xn(Qe);if(Qe.flags&262144||li&3){if(Qe.flags&262144&&To(ve.inferTypeParameters,Qe)){ve.approximateLength+=$s(Qe.symbol).length+6;let zr,Ai=iu(Qe);if(Ai){let Ji=OLe(Qe,!0);Ji&&kg(Ai,Ji)||(ve.approximateLength+=9,zr=Ai&&u(Ai,ve))}return P.createInferTypeNode(We(Qe,ve,zr))}if(ve.flags&4&&Qe.flags&262144){let zr=Eo(Qe,ve);return ve.approximateLength+=ar(zr).length,P.createTypeReferenceNode(P.createIdentifier(ar(zr)),void 0)}if(Qe.symbol)return co(Qe.symbol,ve,788968);let fn=(Qe===ae||Qe===X)&&L&&L.symbol?(Qe===X?\"sub-\":\"super-\")+$s(L.symbol):\"?\";return P.createTypeReferenceNode(P.createIdentifier(fn),void 0)}if(Qe.flags&1048576&&Qe.origin&&(Qe=Qe.origin),Qe.flags&3145728){let fn=Qe.flags&1048576?aD(Qe.types):Qe.types;if(yn(fn)===1)return u(fn[0],ve);let zr=O(fn,ve,!0);if(zr&&zr.length>0)return Qe.flags&1048576?P.createUnionTypeNode(zr):P.createIntersectionTypeNode(zr);!ve.encounteredError&&!(ve.flags&262144)&&(ve.encounteredError=!0);return}if(li&48)return x.assert(!!(Qe.flags&524288)),Gt(Qe);if(Qe.flags&4194304){let fn=Qe.type;ve.approximateLength+=6;let zr=u(fn,ve);return P.createTypeOperatorNode(143,zr)}if(Qe.flags&134217728){let fn=Qe.texts,zr=Qe.types,Ai=P.createTemplateHead(fn[0]),Ji=P.createNodeArray(nn(zr,(Ho,Yl)=>P.createTemplateLiteralTypeSpan(u(Ho,ve),(Yl<zr.length-1?P.createTemplateMiddle:P.createTemplateTail)(fn[Yl+1]))));return ve.approximateLength+=2,P.createTemplateLiteralType(Ai,Ji)}if(Qe.flags&268435456){let fn=u(Qe.type,ve);return co(Qe.symbol,ve,788968,[fn])}if(Qe.flags&8388608){let fn=u(Qe.objectType,ve),zr=u(Qe.indexType,ve);return ve.approximateLength+=2,P.createIndexedAccessTypeNode(fn,zr)}if(Qe.flags&16777216)return Ft(Qe,fn=>ci(fn));if(Qe.flags&33554432){let fn=u(Qe.baseType,ve),zr=wP(Qe)&&r_e(\"NoInfer\",!1);return zr?co(zr,ve,788968,[fn]):fn}return x.fail(\"Should be unreachable.\");function ci(fn){let zr=u(fn.checkType,ve);if(ve.approximateLength+=15,ve.flags&4&&fn.root.isDistributive&&!(fn.checkType.flags&262144)){let al=Bp(Ra(262144,\"T\")),Ba=Eo(al,ve),oc=P.createTypeReferenceNode(Ba);ve.approximateLength+=37;let As=eA(fn.root.checkType,al,fn.mapper),Gm=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let qe=u(Gi(fn.root.extendsType,As),ve);ve.inferTypeParameters=Gm;let ut=xr(Gi(si(fn.root.node.trueType),As)),Bt=xr(Gi(si(fn.root.node.falseType),As));return P.createConditionalTypeNode(zr,P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(oc.typeName))),P.createConditionalTypeNode(P.createTypeReferenceNode(P.cloneNode(Ba)),u(fn.checkType,ve),P.createConditionalTypeNode(oc,qe,ut,Bt),P.createKeywordTypeNode(146)),P.createKeywordTypeNode(146))}let Ai=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let Ji=u(fn.extendsType,ve);ve.inferTypeParameters=Ai;let Ho=xr(EE(fn)),Yl=xr(SE(fn));return P.createConditionalTypeNode(zr,Ji,Ho,Yl)}function xr(fn){var zr,Ai,Ji;return fn.flags&1048576?(zr=ve.visitedTypes)!=null&&zr.has(Hd(fn))?(ve.flags&131072||(ve.encounteredError=!0,(Ji=(Ai=ve.tracker)==null?void 0:Ai.reportCyclicStructureError)==null||Ji.call(Ai)),g(ve)):Ft(fn,Ho=>u(Ho,ve)):u(fn,ve)}function ur(fn){return!!fw(fn)}function $e(fn){return!!fn.target&&ur(fn.target)&&!ur(fn)}function It(fn){var zr;x.assert(!!(fn.flags&524288));let Ai=fn.declaration.readonlyToken?P.createToken(fn.declaration.readonlyToken.kind):void 0,Ji=fn.declaration.questionToken?P.createToken(fn.declaration.questionToken.kind):void 0,Ho,Yl,al=!fD(fn)&&!(HT(fn).flags&2)&&ve.flags&4&&!(Vp(fn).flags&262144&&((zr=iu(Vp(fn)))==null?void 0:zr.flags)&4194304);if(fD(fn)){if($e(fn)&&ve.flags&4){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt)}Ho=P.createTypeOperatorNode(143,Yl||u(HT(fn),ve))}else if(al){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt),Ho=Yl}else Ho=u(Vp(fn),ve);let Ba=We(km(fn),ve,Ho),oc=fn.declaration.nameType?u(Dv(fn),ve):void 0,As=u(ob(Ng(fn),!!(oh(fn)&4)),ve),Gm=P.createMappedTypeNode(Ai,Ba,oc,Ji,As,void 0);ve.approximateLength+=10;let qe=$n(Gm,1);if($e(fn)&&ve.flags&4){let ut=Gi(iu(si(fn.declaration.typeParameter.constraint.type))||Zt,fn.mapper);return P.createConditionalTypeNode(u(HT(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),ut.flags&2?void 0:u(ut,ve))),qe,P.createKeywordTypeNode(146))}else if(al)return P.createConditionalTypeNode(u(Vp(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),P.createTypeOperatorNode(143,u(HT(fn),ve)))),qe,P.createKeywordTypeNode(146));return qe}function Gt(fn){var zr,Ai;let Ji=fn.id,Ho=fn.symbol;if(Ho){if(!!(br(fn)&8388608)){let As=fn.node;if(oI(As)&&si(As)===fn){let Gm=fl(ve,As);if(Gm)return Gm}return(zr=ve.visitedTypes)!=null&&zr.has(Ji)?g(ve):Ft(fn,Yt)}let Ba=H0(fn)?788968:111551;if(T_(Ho.valueDeclaration))return co(Ho,ve,Ba);if(Ho.flags&32&&!D$(Ho)&&!(Ho.valueDeclaration&&Kr(Ho.valueDeclaration)&&ve.flags&2048&&(!Zl(Ho.valueDeclaration)||vi(Ho,ve.enclosingDeclaration,Ba,!1).accessibility!==0))||Ho.flags&896||Yl())return co(Ho,ve,Ba);if((Ai=ve.visitedTypes)!=null&&Ai.has(Ji)){let oc=S7(fn);return oc?co(oc,ve,788968):g(ve)}else return Ft(fn,Yt)}else return Yt(fn);function Yl(){var al;let Ba=!!(Ho.flags&8192)&&ct(Ho.declarations,As=>zo(As)),oc=!!(Ho.flags&16)&&(Ho.parent||an(Ho.declarations,As=>As.parent.kind===312||As.parent.kind===268));if(Ba||oc)return(!!(ve.flags&4096)||((al=ve.visitedTypes)==null?void 0:al.has(Ji)))&&(!(ve.flags&8)||rt(Ho,ve.enclosingDeclaration))}}function Ft(fn,zr){var Ai,Ji,Ho;let Yl=fn.id,al=br(fn)&16&&fn.symbol&&fn.symbol.flags&32,Ba=br(fn)&4&&fn.node?\"N\"+Fa(fn.node):fn.flags&16777216?\"N\"+Fa(fn.root.node):fn.symbol?(al?\"+\":\"\")+na(fn.symbol):void 0;ve.visitedTypes||(ve.visitedTypes=new Set),Ba&&!ve.symbolDepth&&(ve.symbolDepth=new Map);let oc=ve.enclosingDeclaration&&Fr(ve.enclosingDeclaration),As=`${Hd(fn)}|${ve.flags}`;oc&&(oc.serializedTypes||(oc.serializedTypes=new Map));let Gm=(Ai=oc?.serializedTypes)==null?void 0:Ai.get(As);if(Gm)return(Ji=Gm.trackedSymbols)==null||Ji.forEach(([Rr,Si,yo])=>ve.tracker.trackSymbol(Rr,Si,yo)),Gm.truncating&&(ve.truncating=!0),ve.approximateLength+=Gm.addedLength,cn(Gm.node);let qe;if(Ba){if(qe=ve.symbolDepth.get(Ba)||0,qe>10)return g(ve);ve.symbolDepth.set(Ba,qe+1)}ve.visitedTypes.add(Yl);let ut=ve.trackedSymbols;ve.trackedSymbols=void 0;let Bt=ve.approximateLength,kn=zr(fn),pr=ve.approximateLength-Bt;return!ve.reportedDiagnostic&&!ve.encounteredError&&((Ho=oc?.serializedTypes)==null||Ho.set(As,{node:kn,truncating:ve.truncating,addedLength:pr,trackedSymbols:ve.trackedSymbols})),ve.visitedTypes.delete(Yl),Ba&&ve.symbolDepth.set(Ba,qe),ve.trackedSymbols=ut,kn;function cn(Rr){return!xs(Rr)&&uo(Rr)===Rr?Rr:Ze(P.cloneNode(un(Rr,cn,void 0,rr)),Rr)}function rr(Rr,Si,yo,Ko,Xo){return Rr&&Rr.length===0?Ze(P.createNodeArray(void 0,Rr.hasTrailingComma),Rr):Dn(Rr,Si,yo,Ko,Xo)}}function Yt(fn){if(vu(fn)||fn.containsError)return It(fn);let zr=Om(fn);if(!zr.properties.length&&!zr.indexInfos.length){if(!zr.callSignatures.length&&!zr.constructSignatures.length)return ve.approximateLength+=2,$n(P.createTypeLiteralNode(void 0),1);if(zr.callSignatures.length===1&&!zr.constructSignatures.length){let al=zr.callSignatures[0];return me(al,184,ve)}if(zr.constructSignatures.length===1&&!zr.callSignatures.length){let al=zr.constructSignatures[0];return me(al,185,ve)}}let Ai=Cr(zr.constructSignatures,al=>!!(al.flags&4));if(ct(Ai)){let al=nn(Ai,XT);return zr.callSignatures.length+(zr.constructSignatures.length-Ai.length)+zr.indexInfos.length+(ve.flags&2048?Wv(zr.properties,oc=>!(oc.flags&4194304)):yn(zr.properties))&&al.push(j0(zr)),u(Zo(al),ve)}let Ji=ve.flags;ve.flags|=4194304;let Ho=qi(zr);ve.flags=Ji;let Yl=P.createTypeLiteralNode(Ho);return ve.approximateLength+=2,$n(Yl,ve.flags&1024?0:1),Yl}function xn(fn){let zr=Ts(fn);if(fn.target===Po||fn.target===Oo){if(ve.flags&2){let Ho=u(zr[0],ve);return P.createTypeReferenceNode(fn.target===Po?\"Array\":\"ReadonlyArray\",[Ho])}let Ai=u(zr[0],ve),Ji=P.createArrayTypeNode(Ai);return fn.target===Po?Ji:P.createTypeOperatorNode(148,Ji)}else if(fn.target.objectFlags&8){if(zr=sc(zr,(Ai,Ji)=>ob(Ai,!!(fn.target.elementFlags[Ji]&2))),zr.length>0){let Ai=Nv(fn),Ji=O(zr.slice(0,Ai),ve);if(Ji){let{labeledElementDeclarations:Ho}=fn.target;for(let al=0;al<Ji.length;al++){let Ba=fn.target.elementFlags[al],oc=Ho?.[al];oc?Ji[al]=P.createNamedTupleMember(Ba&12?P.createToken(26):void 0,P.createIdentifier(Ii(ige(oc))),Ba&2?P.createToken(58):void 0,Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ji[al]=Ba&12?P.createRestTypeNode(Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ba&2?P.createOptionalTypeNode(Ji[al]):Ji[al]}let Yl=$n(P.createTupleTypeNode(Ji),1);return fn.target.readonly?P.createTypeOperatorNode(148,Yl):Yl}}if(ve.encounteredError||ve.flags&524288){let Ai=$n(P.createTupleTypeNode([]),1);return fn.target.readonly?P.createTypeOperatorNode(148,Ai):Ai}ve.encounteredError=!0;return}else{if(ve.flags&2048&&fn.symbol.valueDeclaration&&Kr(fn.symbol.valueDeclaration)&&!rt(fn.symbol,ve.enclosingDeclaration))return Gt(fn);{let Ai=fn.target.outerTypeParameters,Ji=0,Ho;if(Ai){let oc=Ai.length;for(;Ji<oc;){let As=Ji,Gm=wLe(Ai[Ji]);do Ji++;while(Ji<oc&&wLe(Ai[Ji])===Gm);if(!nB(Ai,zr,As,Ji)){let qe=O(zr.slice(As,Ji),ve),ut=ve.flags;ve.flags|=16;let Bt=co(Gm,ve,788968,qe);ve.flags=ut,Ho=Ho?ii(Ho,Bt):Bt}}}let Yl;if(zr.length>0){let oc=(fn.target.typeParameters||je).length;Yl=O(zr.slice(Ji,oc),ve)}let al=ve.flags;ve.flags|=16;let Ba=co(fn.symbol,ve,788968,Yl);return ve.flags=al,Ho?ii(Ho,Ba):Ba}}}function ii(fn,zr){if(Dh(fn)){let Ai=fn.typeArguments,Ji=fn.qualifier;Ji&&(Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai)))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=Ji?P.createQualifiedName(Ji,Yl):Yl;return P.updateImportTypeNode(fn,fn.argument,fn.attributes,Ji,Ai,fn.isTypeOf)}else{let Ai=fn.typeArguments,Ji=fn.typeName;Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=P.createQualifiedName(Ji,Yl);return P.updateTypeReferenceNode(fn,Ji,Ai)}}function Yr(fn){let zr=fn.typeName,Ai=[];for(;!Me(zr);)Ai.unshift(zr.right),zr=zr.left;return Ai.unshift(zr),Ai}function qi(fn){if(c(ve))return[P.createPropertySignature(void 0,\"...\",void 0,void 0)];let zr=[];for(let Ho of fn.callSignatures)zr.push(me(Ho,179,ve));for(let Ho of fn.constructSignatures)Ho.flags&4||zr.push(me(Ho,180,ve));for(let Ho of fn.indexInfos)zr.push(Q(Ho,ve,fn.objectFlags&1024?g(ve):void 0));let Ai=fn.properties;if(!Ai)return zr;let Ji=0;for(let Ho of Ai){if(Ji++,ve.flags&2048){if(Ho.flags&4194304)continue;Kp(Ho)&6&&ve.tracker.reportPrivateInBaseOfClassExpression&&ve.tracker.reportPrivateInBaseOfClassExpression(Ii(Ho.escapedName))}if(c(ve)&&Ji+2<Ai.length-1){zr.push(P.createPropertySignature(void 0,`... ${Ai.length-Ji} more ...`,void 0,void 0)),N(Ai[Ai.length-1],ve,zr);break}N(Ho,ve,zr)}return zr.length?zr:void 0}}function g(Qe){return Qe.approximateLength+=3,Qe.flags&1?P.createKeywordTypeNode(133):P.createTypeReferenceNode(P.createIdentifier(\"...\"),void 0)}function T(Qe,ve){var vn;return!!(tl(Qe)&8192)&&(To(ve.reverseMappedStack,Qe)||((vn=ve.reverseMappedStack)==null?void 0:vn[0])&&!(br(Da(ve.reverseMappedStack).links.propertyType)&16))}function N(Qe,ve,vn){var _r;let Xr=!!(tl(Qe)&8192),li=T(Qe,ve)?z:qy(Qe),ci=ve.enclosingDeclaration;if(ve.enclosingDeclaration=void 0,ve.tracker.canTrackSymbol&&nw(Qe.escapedName))if(Qe.declarations){let Yt=Ta(Qe.declarations);if(D7(Yt))if(Zn(Yt)){let xn=mo(Yt);xn&&Rs(xn)&&UL(xn.argumentExpression)&&Hn(xn.argumentExpression,ci,ve)}else Hn(Yt.name.expression,ci,ve)}else ve.tracker.reportNonSerializableProperty(ai(Qe));ve.enclosingDeclaration=Qe.valueDeclaration||((_r=Qe.declarations)==null?void 0:_r[0])||ci;let xr=bn(Qe,ve);if(ve.enclosingDeclaration=ci,ve.approximateLength+=$s(Qe).length+1,Qe.flags&98304){let Yt=q0(Qe);if(li!==Yt&&!Lt(li)&&!Lt(Yt)){let xn=Vs(Qe,177),ii=kf(xn);vn.push(Ol(me(ii,177,ve,{name:xr}),xn));let Yr=Vs(Qe,178),qi=kf(Yr);vn.push(Ol(me(qi,178,ve,{name:xr}),Yr));return}}let ur=Qe.flags&16777216?P.createToken(58):void 0;if(Qe.flags&8208&&!Xy(li).length&&!Bm(Qe)){let Yt=Co(Bl(li,xn=>!(xn.flags&32768)),0);for(let xn of Yt){let ii=me(xn,173,ve,{name:xr,questionToken:ur});vn.push(Ft(ii))}if(Yt.length||!ur)return}let $e;T(Qe,ve)?$e=g(ve):(Xr&&(ve.reverseMappedStack||(ve.reverseMappedStack=[]),ve.reverseMappedStack.push(Qe)),$e=li?es(ve,li,Qe,ci):P.createKeywordTypeNode(133),Xr&&ve.reverseMappedStack.pop());let It=Bm(Qe)?[P.createToken(148)]:void 0;It&&(ve.approximateLength+=9);let Gt=P.createPropertySignature(It,xr,ur,$e);vn.push(Ft(Gt));function Ft(Yt){var xn;let ii=(xn=Qe.declarations)==null?void 0:xn.find(Yr=>Yr.kind===355);if(ii){let Yr=VM(ii.comment);Yr&&Lb(Yt,[{kind:3,text:`*","vulnerability":{}},{"path":"dify-agent-runtime/internal/server/config.go","start_line":31,"end_line":31,"snippet":"\tDefaultAuthTokenEnv                  = \"SHELLCTL_AUTH_TOKEN\"","vulnerability":{"severity":"HIGH"}},{"path":"api/clients/agent_backend/factory.py","start_line":44,"end_line":51,"snippet":"    return DifyAgentBackendRunClient(\n        create_agent_backend_client(\n            base_url=base_url,\n            api_token=api_token,\n            stream_timeout=stream_read_timeout_seconds,\n        ),\n        stream_max_reconnects=stream_max_reconnects,\n    )","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":32,"end_line":32,"snippet":"        valid_password(new_password)","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":37,"end_line":37,"snippet":"    application_services().accounts.lifecycle.reset_password(account.id, new_password, email=normalized_email)","vulnerability":{"severity":"WARNING"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0003","rule_version":"1.3.0","rule_name":"Runtime Command Injection via Process Execution","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"medium","rationale":"The dify-agent / dify-agent-runtime component's declared purpose is to run arbitrary user-submitted shell scripts/commands as a sandboxed agent tool (shellctl), so argv-based exec is within its declared contract rather than an injection bug. Tracing the sinks: (1) dify-agent-runtime/cmd/runner/main.go uses exec.Command(self, childArgs...) / syscall.Exec(binary, argv, ...) with a fixed, hardcoded self-reexec argv (binary + '--exec' + script_path + cwd) -- the actual user-supplied SCRIPT CONTENT is never concatenated into a shell string for this sink; it is written as file content at scriptPath and only the fixed path string is passed as an argv element, with shebang/`sh <path>` dispatch (buildExecArgv) -- the semgrep LOW-confidence 'non-static command' flags are the exec of the controller's OWN re-exec'd binary, not attacker-constructed shell text. (2) dify-agent-runtime/internal/server/tmux.go wraps user script execution via tmux using shellJoin/shellQuote helpers that quote each argument before composing the wrapper script, and the user's script itself runs inside a Landlock-restricted (default SHELLCTL_ENABLE_PATH_ISOLATION=true, envvar.go:34-40) sandboxed process tree that confines filesystem access -- i.e. arbitrary command execution is the TOOL'S DECLARED JOB, with sandboxing as the mitigating control, not a hidden injection flaw. api/libs/helper.py:127-128 run(script) (subprocess.getstatusoutput('source /root/.bashrc && '+script), a real shell-injection-shaped sink) has NO callers anywhere in the api/ runtime tree (grep confirms only this definition, zero call sites) -- dead code, not reachable from any HTTP/tool-call path, so it does not establish execution_reachability for a VULNERABLE verdict.","vulnerability_details":null,"fix_guidance":"Remove the unreferenced api/libs/helper.py:run() dead code to eliminate future-reachability risk; keep SHELLCTL_ENABLE_PATH_ISOLATION defaulted to true and do not allow it to be disabled in multi-tenant deployments.","why_this_matters":"Unsanitized command construction in shipped runtime code can give a remote attacker arbitrary code execution with the application's privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":108,"end_line":117,"snippet":"\tself, _ := os.Executable()\n\tchildArgs := []string{\"--exec\", scriptPath, cwd}\n\tif enableIsolation {\n\t\tchildArgs = append([]string{\"--exec\", \"--landlock\"}, childArgs[1:]...)\n\t}\n\n\tcmd := exec.Command(self, childArgs...)\n\tcmd.Env = env\n\tcmd.Dir = cwd"},{"path":"dify-agent-runtime/internal/envvar/envvar.go","start_line":33,"end_line":40,"snippet":"// PathIsolationEnabled returns whether Landlock filesystem isolation is active.\nfunc PathIsolationEnabled() bool {\n\tv, ok := os.LookupEnv(EnvEnablePathIsolation)\n\tif !ok {\n\t\treturn true\n\t}\n\treturn v == \"true\"\n}"},{"path":"api/libs/helper.py","start_line":127,"end_line":128,"snippet":"def run(script):\n    return subprocess.getstatusoutput(\"source /root/.bashrc && \" + script)"},{"path":"dify-agent-runtime/internal/server/tmux.go","start_line":246,"end_line":246,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":320,"end_line":320,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":115,"end_line":115,"snippet":null,"vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0004","rule_version":"1.2.0","rule_name":"DoS Protections: Timeouts, Concurrency, Streaming Limits","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The codebase implements layered DoS protections: (1) a generic rate-limit decorator/library (api/libs/rate_limit.py) with per-IP/session/account/email/token sliding-window limits applied to auth-sensitive endpoints (device code, SSO initiate, bearer token validation, etc.); (2) the outbound SSRF-protected HTTP client enforces connect/read/write/total timeouts by default (SSRF_DEFAULT_TIME_OUT family) and a bounded buffer_response() that raises ResponseTooLargeError once decoded bytes exceed a configured cap, preventing unbounded streaming responses from exhausting memory; (3) upload size limits are enforced per content type (UPLOAD_FILE_SIZE_LIMIT, UPLOAD_IMAGE_FILE_SIZE_LIMIT, UPLOAD_VIDEO_FILE_SIZE_LIMIT, UPLOAD_AUDIO_FILE_SIZE_LIMIT, UPLOAD_SKILL_FILE_SIZE_LIMIT) in api/configs/feature/__init__.py and enforced in FileService.is_file_size_within_limit before any save() call.","vulnerability_details":null,"fix_guidance":"Continue to audit newly added external-facing endpoints to ensure they are decorated with an appropriate RateLimit spec; consider a global default body-size limit at the WSGI/reverse-proxy layer as defense in depth.","why_this_matters":"Resource exhaustion can crash or stall MCP.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/helper/ssrf_proxy.py","start_line":287,"end_line":300,"snippet":"def buffer_response(response: httpx.Response, *, max_response_bytes: int) -> httpx.Response:\n    \"\"\"Consume one open identity response under a decoded byte limit and close its stream.\"\"\"\n    if max_response_bytes <= 0:\n        raise ValueError(\"max_response_bytes must be positive\")\n    try:\n        content_encoding = response.headers.get(\"content-encoding\", \"identity\").strip().lower()\n        if content_encoding not in {\"\", \"identity\"}:\n            raise UnsupportedResponseEncodingError(...)\n        content = bytearray()\n        for chunk in response.iter_bytes():\n            if len(content) + len(chunk) > max_response_bytes:\n                raise ResponseTooLargeError(f\"response exceeded {max_response_bytes} bytes\")\n            content.extend(chunk)"},{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_DEVICE_FLOW_APPROVE = RateLimit(...)\nLIMIT_LOOKUP_PUBLIC = RateLimit(60, timedelta(minutes=5), (RateLimitScope.IP,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/configs/feature/__init__.py","start_line":458,"end_line":488,"snippet":"    UPLOAD_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    KNOWLEDGE_UPLOAD_FILE_SIZE_LIMIT_FOR_PAID_PLAN: NonNegativeInt = Field(...)\n    UPLOAD_IMAGE_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_VIDEO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_AUDIO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_SKILL_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0005","rule_version":"1.2.0","rule_name":"Logging Hygiene (No Secrets/PII/Tokens) & Audit Trail","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"api/libs/helper.py's TokenManager.get_token_data() logs the FULL raw token value at WARNING level (enabled by default under LOG_LEVEL=INFO) whenever a lookup misses. TokenManager mints these tokens for password-reset and other auth flows, so a reset-password token lands in application logs verbatim, with no central redaction filter in place.","vulnerability_details":"api/libs/helper.py line 549: `logger.warning(\"%s token %s not found with key %s\", token_type, token, key)` logs the raw `token` argument (a UUID minted by TokenManager.generate_token for sensitive flows including password reset, api/services/account/login_adapters.py:328) at WARNING level, enabled under the default LOG_LEVEL=INFO. Anyone with read access to application logs (log-aggregation/SIEM access, a separate log-exposure bug, or an insider) can harvest live password-reset tokens straight from this log line and use them to take over the corresponding account before the token's TTL expires -- turning a routine 'token not found' debug log into an account-takeover credential leak.","fix_guidance":"Change helper.py:549 to log only a hash/prefix of the token (e.g. token[:8]+'...') or omit it entirely and log the Redis key alone; add a logging filter/formatter that redacts known credential-shaped fields project-wide as defense in depth.","why_this_matters":"Prevents sensitive data leakage; enables forensics.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0005 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"api/libs/helper.py","start_line":544,"end_line":551,"snippet":"    @classmethod\n    def get_token_data(cls, token: str, token_type: str) -> dict[str, Any] | None:\n        key = cls._get_token_key(token, token_type)\n        token_data_json = redis_client.get(key)\n        if token_data_json is None:\n            logger.warning(\"%s token %s not found with key %s\", token_type, token, key)\n            return None\n        return dict(_token_data_adapter.validate_json(token_data_json))"},{"path":"api/services/account/login_adapters.py","start_line":325,"end_line":330,"snippet":"            token = TokenManager.generate_token(\n                account_id=account_id,\n                email=email,"},{"path":"api/configs/feature/__init__.py","start_line":804,"end_line":807,"snippet":"    LOG_LEVEL: str = Field(\n        description=\"Logging level, default to INFO. Set to ERROR for production environments.\",\n        default=\"INFO\",\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0006","rule_version":"1.2.0","rule_name":"Container/Runtime Hardening","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"Trivy config scan identifies concrete hardening gaps: docker/couchbase-server/Dockerfile uses the floating ':latest' tag (DS-0001) and never sets a non-root USER (DS-0002, HIGH) -- confirmed by manual read, no USER directive exists so the container runs as root by inheritance from the base image. .devcontainer/Dockerfile also runs as root (DS-0002) and misses --no-install-recommends on apt-get install (DS-0029, HIGH). All Dockerfiles lack HEALTHCHECK (DS-0026, LOW). The two internet-facing production images (api/Dockerfile, web/Dockerfile) DO create and switch to a non-root 'dify' user, so the primary attack surface is hardened; the finding is scoped to the auxiliary Couchbase and dev-container images.","vulnerability_details":"docker/couchbase-server/Dockerfile runs its vector-DB backing service container as root (no USER directive) with an unpinned FROM couchbase/server:latest base. If an attacker achieves any code-execution foothold inside that container (e.g. via a future Couchbase CVE pulled in silently by the floating tag, or a vulnerability in init-cbserver.sh), running as root removes the standard UID-separation barrier, giving the attacker root-equivalent privileges inside the container and a larger blast radius for container-breakout primitives (e.g. abusing any mounted docker.sock, writable host paths, or kernel-level capabilities available to root but not to an unprivileged UID). The floating :latest tag means a rebuild can silently pull a newer and differently-vulnerable image without the change being reviewed.","fix_guidance":"Pin docker/couchbase-server/Dockerfile to a specific Couchbase version tag (not :latest) and add a non-root USER switch after setup; add USER directives to .devcontainer/Dockerfile and use --no-install-recommends there; add HEALTHCHECK instructions to all shipped Dockerfiles.","why_this_matters":"Reduces blast radius of exploits.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0006 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM couchbase/server:latest AS stage_base\n# FROM couchbase:latest AS stage_base\nCOPY init-cbserver.sh /opt/couchbase/init/\nRUN chmod +x /opt/couchbase/init/init-cbserver.sh"},{"path":".devcontainer/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM mcr.microsoft.com/devcontainers/python:3.13-bookworm\n\nRUN apt-get update && export DEBIAN_FRONTEND=noninteractive \\\n     && apt-get -y install libgmp-dev libmpfr-dev libmpc-dev"},{"path":"api/Dockerfile","start_line":125,"end_line":125,"snippet":"USER dify"},{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":1,"snippet":"FROM couchbase/server:latest AS stage_base"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0007","rule_version":"1.2.0","rule_name":"Dependency Risk & Supply Chain","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"Trivy's scan of the committed lockfiles (api/uv.lock, dify-agent/uv.lock, pnpm-lock.yaml, dify-agent-runtime/go.mod) found 23 known CVEs in pinned, locked dependency versions, including chromadb==0.5.20 (pinned in api/uv.lock as the Chroma vector-store provider's declared runtime dependency) mapped to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH), and CVE-2026-45831 (HIGH) with no fixed version yet published, alongside other HIGH/MEDIUM findings (e.g. pydantic-ai-slim, golang.org/x/mod, socket.io-parser) that do have published fixed versions the project has not yet adopted. The presence of these scanner-confirmed, unpatched CVEs in exact pinned dependency versions constitutes a supply-chain risk on its own; this finding does not assert a specific demonstrated remote-exploit path through the Chroma vector-store API, only that the vulnerable versions are locked and declared as runtime dependencies.","vulnerability_details":"api/uv.lock pins chromadb to exact version 0.5.20, which Trivy's vulnerability database maps to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH) and CVE-2026-45831 (HIGH) with no fixed version yet published. chromadb is Dify's vector-database client, used by the RAG/knowledge-base subsystem that ingests and queries attacker-influenceable document content; a deployment that enables the Chroma vector-store provider runs this vulnerable client code against untrusted document/query content, exposing whatever remote-code-execution/data-exposure primitive CVE-2026-45833 represents to any user who can trigger a knowledge-base query or ingest a document into a Chroma-backed dataset.","fix_guidance":"Upgrade or replace chromadb beyond 0.5.20 once a patched release addressing CVE-2026-45833/45830/45831 is available (or pin to a patched fork / disable the Chroma vector-store provider until then); separately upgrade pydantic-ai-slim to >=2.53.0, bump the vulnerable golang.org/x/mod dependency, and update socket.io-parser to a fixed release; add a scheduled dependency CVE scan to CI to catch newly disclosed CVEs in already-pinned packages.","why_this_matters":"Prevents typosquat and malicious update compromise.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0007 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The scan reported mitigation_present but the independent adjudication did not corroborate it; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/uv.lock","start_line":880,"end_line":883,"snippet":"name = \"chromadb\"\nversion = \"0.5.20\"\nsource = { registry = \"https://pypi.org/simple\" }\ndependencies = ["},{"path":"Makefile","start_line":170,"end_line":1,"snippet":"(go.mod pins golang.org/x/mod to a version affected by CVE-2026-56864 HIGH / CVE-2026-56865 HIGH, per trivy-fs.json Results[] for Target=='dify-agent-runtime/go.mod')"},{"path":"web/package.json","start_line":29,"end_line":29,"snippet":"\"preinstall\": \"npx only-allow pnpm\","},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45833","pkg_name":"chromadb","severity":"CRITICAL","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45830","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45831","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107286","pkg_name":"pydantic-ai-slim","severity":"HIGH","installed_version":"2.31.0","fixed_version":"2.53.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-69185","pkg_name":"socket.io-parser","severity":"HIGH","installed_version":"4.2.6","fixed_version":"4.2.7, 3.4.5, 3.3.6"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-102991","pkg_name":"mako","severity":"MEDIUM","installed_version":"1.3.12","fixed_version":"1.4.2"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-104874","pkg_name":"multidict","severity":"MEDIUM","installed_version":"6.7.0","fixed_version":"6.9.1"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49264","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49265","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107287","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.7, 2.52.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107289","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107290","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107291","pkg_name":"pydantic-ai-slim","severity":"LOW","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-103923","pkg_name":"katex","severity":"LOW","installed_version":"0.16.47","fixed_version":"0.18.2"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0008","rule_version":"1.2.0","rule_name":"Missing or Inadequate Input Validation","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Dify's console/service/web API controllers consistently validate request bodies against typed schemas before use: console endpoints use flask-restx `@console_ns.expect(...)` model bindings plus a `model_validate(SomeModel)` decorator pattern (e.g. api/controllers/console/auth/login.py `@console_ns.expect(console_ns.models[EmailPayload.__name__])` + `@model_validate(EmailPayload)`) backed by Pydantic models, and service-api / inner-api endpoints use Pydantic `TypeAdapter`/`BaseModel.model_validate_json` for structured payload validation (e.g. api/services/data_source/notion_oauth_gateway.py uses `_NOTION_SOURCE_INFO_ADAPTER`/`_NOTION_PAGE_SUMMARY_ADAPTER` TypeAdapters to validate even third-party OAuth provider responses before use). File-upload input is explicitly constrained (extension blacklist, size limits, filename character blacklist) in FileService before any filesystem write. This is the rule's documented negative-indicator pattern (strict schema validation; type/length checks) applied broadly across the controller surface.","vulnerability_details":null,"fix_guidance":"Keep enforcing Pydantic/TypeAdapter schema validation for all new endpoints and third-party response parsing; add `.strict()`/reject-unknown-fields where the framework supports it.","why_this_matters":"Frontline control to prevent multiple classes of vulns.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/services/file_service.py","start_line":100,"end_line":113,"snippet":"        extension = os.path.splitext(filename)[1].lstrip(\".\").lower()\n        if any(c in filename for c in [\"/\", \"\\\\\"]):\n            raise ValueError(\"Filename contains invalid characters\")\n        if len(filename) > 200:\n            filename = filename.split(\".\")[0][:200] + \".\" + extension\n        if extension and extension in dify_config.UPLOAD_FILE_EXTENSION_BLACKLIST:\n            raise BlockedFileExtensionError(f\"File extension '.{extension}' is not allowed for security reasons\")\n        if source == \"datasets\" and extension not in DOCUMENT_EXTENSIONS:\n            raise UnsupportedFileTypeError()"},{"path":"api/services/data_source/notion_oauth_gateway.py","start_line":25,"end_line":34,"snippet":"class _NotionSourceInfo(TypedDict):\n    workspace_name: str | None\n    workspace_icon: str | None\n    workspace_id: str | None\n    pages: list[_NotionPageSummary]\n    total: int\n\n_NOTION_SOURCE_INFO_ADAPTER = TypeAdapter(_NotionSourceInfo)\n_NOTION_PAGE_SUMMARY_ADAPTER = TypeAdapter(_NotionPageSummary)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0009","rule_version":"1.2.0","rule_name":"Insecure Deserialization","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"pickle is used to serialize/deserialize RAG embedding vectors (api/models/dataset.py:744-747, api/core/rag/embedding/cached_embedding.py:115,198), but tracing the write path shows embedding bytes are produced exclusively by CacheEmbedding, which pickles the FLOAT LIST returned directly from the configured embedding model's own invoke_text_embedding()/invoke_multimodal_embedding() output -- there is no code path where externally-supplied bytes (an uploaded file, an HTTP body, a tool argument) are passed to pickle.loads. Reaching the sink with attacker-chosen bytes would require an independent primitive (e.g. direct DB write access or a different injection bug) that is not present in this codebase, so the required attacker_controlled_source and continuous source_to_sink_flow this rule demands cannot be established from the cited code; the evaluation_rubric's 'Deserialization of constants only' false_positive_guard class applies by analogy (model-generated, not request-controlled). Separately, api/services/agent/roster_package_reader.py:352-379 deserializes untrusted Roster Agent package YAML using a hardened yaml.SafeLoader subclass (_PackageYamlLoader) that explicitly rejects YAML aliases and non-string mapping keys -- the one YAML-deserialization sink that DOES take externally-supplied (uploaded package) content uses the safe loader, which is the rule's documented negative indicator.","vulnerability_details":null,"fix_guidance":"Defense-in-depth: replace pickle with numpy .tobytes()/np.frombuffer (fixed dtype) or a JSON float array for the Embedding.embedding column so this stored blob can never become a code-execution primitive even if a future bug (SQLi, bulk-import, compromised worker) lets an attacker write to that column directly.","why_this_matters":"Can lead to arbitrary code execution.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/rag/embedding/cached_embedding.py","start_line":107,"end_line":119,"snippet":"                cache_embeddings = []\n                try:\n                    for i, n_embedding in zip(embedding_queue_indices, embedding_queue_embeddings):\n                        text_embeddings[i] = n_embedding\n                        hash = helper.generate_text_hash(texts[i])\n                        if hash not in cache_embeddings:\n                            embedding_cache = Embedding(\n                                model_name=self._model_instance.model_name,\n                                hash=hash,\n                                provider_name=self._model_instance.provider,\n                                embedding=pickle.dumps(n_embedding, protocol=pickle.HIGHEST_PROTOCOL),\n                            )"},{"path":"api/models/dataset.py","start_line":743,"end_line":747,"snippet":"    def set_embedding(self, embedding_data: list[float]):\n        self.embedding = pickle.dumps(embedding_data, protocol=pickle.HIGHEST_PROTOCOL)\n\n    def get_embedding(self) -> list[float]:\n        return cast(list[float], pickle.loads(self.embedding))  # noqa: S301"},{"path":"api/services/agent/roster_package_reader.py","start_line":352,"end_line":379,"snippet":"            return yaml.load(payload, Loader=_PackageYamlLoader), size  # noqa: S506\n        except (UnicodeDecodeError, yaml.YAMLError, ValueError, RecursionError) as exc:\n            raise InvalidRosterAgentPackageError(...)\n                f\"Roster Agent package {path.removesuffix('.yaml')} is invalid\"\n            ) from exc\n\n\nclass _PackageYamlLoader(yaml.SafeLoader):\n    \"\"\"Reject ambiguous mappings and aliases in untrusted package documents.\"\"\"\n\n    @override"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0010","rule_version":"1.2.0","rule_name":"Lack of Output Encoding/Sanitization","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The semgrep XSS-shaped hits (python.flask.security.audit.xss.make-response-with-unknown-content, 8 occurrences across login.py, agent_config_inspector.py, recommended_app.py, tool_providers.py, trigger_providers.py) all resolve on inspection to `make_response(dump_response(SomeTypedModel, {...}))` calls -- i.e. a structured, schema-typed JSON-shaped payload serialized through a typed response-dump helper, not raw/unescaped user input written into an HTML content-type response. The project's web frontend (React/Next.js in web/) uses JSX's default auto-escaping for rendered text and the two `render-template-string` hits (api/libs/email_template_renderer.py, api/tasks/mail_inner_task.py) go through a Jinja2 `ImmutableSandboxedEnvironment` in SANDBOX mode by default (MAIL_TEMPLATING_MODE default = SANDBOX), which blocks template-level code/attribute-traversal exploitation even if the template string itself were attacker-influenced.","vulnerability_details":null,"fix_guidance":"Keep MAIL_TEMPLATING_MODE defaulted to SANDBOX (never UNSAFE) in production configuration guidance; continue returning typed/serialized model objects from make_response rather than raw string concatenation.","why_this_matters":"Prevents UI-level injection and operator compromise.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/controllers/console/auth/login.py","start_line":173,"end_line":177,"snippet":"        response = make_response(dump_response(SimpleResultResponse, {\"result\": \"success\"}))\n        clear_access_token_from_cookie(response)\n        clear_refresh_token_from_cookie(response)\n        clear_csrf_token_from_cookie(response)\n        return response"},{"path":"api/libs/email_template_renderer.py","start_line":17,"end_line":28,"snippet":"class SandboxedEnvironment(ImmutableSandboxedEnvironment):\n    \"\"\"Sandboxed environment with execution timeout.\"\"\"\n    def __init__(self, timeout: int, *args: Any, **kwargs: Any):\n        self._deadline = time.time() + timeout if timeout else None\n        super().__init__(*args, **kwargs)\n    @override\n    def call(self, context: Context, obj: Any, *args: Any, **kwargs: Any) -> Any:\n        if self._deadline is not None and time.time() > self._deadline:\n            raise TimeoutError(\"Template rendering timeout\")\n        return super().call(context, obj, *args, **kwargs)"},{"path":"api/configs/feature/__init__.py","start_line":1155,"end_line":1158,"snippet":"    MAIL_TEMPLATING_MODE: TemplateMode = Field(\n        description=\"Template mode for email services\",\n        default=TemplateMode.SANDBOX,\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0011","rule_version":"1.4.0","rule_name":"Path Traversal & Symlink Bypass (Filesystem Tools)","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The agent CLI's skill-pull flow (dify-agent-runtime/internal/agentcli/config.go) builds the download archive path and extraction directory directly from a skill name supplied via CLI argument or a downloaded manifest, using filepath.Join(targetDir, name+\".zip\") and a matching skillDir, without checking for path separators, absolute paths, or containment within targetDir. filepath.Join normalizes '../' segments, so a name such as '../../outside' causes the resulting path to escape targetDir, and the subsequent MkdirAll/os.WriteFile calls can then create or overwrite files outside the intended skills directory. The earlier SECURE verdict considered only the UUID-keyed API upload path (which is safely indirected) and did not examine this separate CLI/manifest-driven skill-pull flow, which has no equivalent indirection or validation before the filesystem sink.","vulnerability_details":null,"fix_guidance":"Validate the skill name before it is used to build any filesystem path in config.go's skill-pull flow: reject names containing path separators or '..' segments, or that resolve (after filepath.Clean/filepath.Abs) outside targetDir, before calling filepath.Join/MkdirAll/os.WriteFile.","why_this_matters":"Traversal exposes arbitrary host files; can lead to code execution.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":56,"end_line":63,"snippet":"// RunConfigSkillsPull executes the `config skills pull` command.\nfunc RunConfigSkillsPull(env *Environment, names []string, localDir string, jsonOutput bool) error {\n\tclient, err := NewStubClient(env)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer func() { _ = client.Close() }()\n"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":76,"end_line":83,"snippet":"\t\t\t\t} `json:\"items\"`\n\t\t\t} `json:\"skills\"`\n\t\t}\n\t\tif err := json.Unmarshal(body, &manifest); err != nil {\n\t\t\treturn fmt.Errorf(\"parse manifest: %w\", err)\n\t\t}\n\t\tfor _, item := range manifest.Skills.Items {\n\t\t\tnames = append(names, item.Name)"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":104,"end_line":123,"snippet":"\t}\n\n\terr = runConfigPulls(len(names), func(index int) error {\n\t\tname := names[index]\n\t\tdownload, err := client.CreateConfigDownloadURL(ctx, \"skill\", name)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"request config skill %q download URL: %w\", name, err)\n\t\t}\n\t\tarchiveBytes, err := client.DownloadFromURL(download.DownloadURL)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"download config skill %q: %w\", name, err)\n\t\t}\n\n\t\tarchivePath := filepath.Join(targetDir, name+\".zip\")\n\t\tskillDir := filepath.Join(targetDir, name)\n\t\tif err := os.MkdirAll(skillDir, 0o755); err != nil {\n\t\t\treturn fmt.Errorf(\"create skill directory: %w\", err)\n\t\t}\n\t\tif err := os.WriteFile(archivePath, archiveBytes, 0o644); err != nil {\n\t\t\treturn fmt.Errorf(\"write archive: %w\", err)"},{"path":"dify-agent-runtime/internal/snapshot/save.go","start_line":83,"end_line":83,"snippet":"\t\t\tf, err := os.Open(p)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":763,"end_line":763,"snippet":"\tendedAtRaw, err := os.ReadFile(endedAtPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":759,"end_line":759,"snippet":"\texitCodeRaw, err := os.ReadFile(exitCodePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":106,"end_line":106,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":38,"end_line":38,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/sanitize/sanitize.go","start_line":155,"end_line":155,"snippet":"\t\tf, err := os.Create(readyFile)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/httpclient.go","start_line":72,"end_line":72,"snippet":"\treturn os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":548,"end_line":548,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":471,"end_line":471,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":133,"end_line":133,"snippet":"\t\tif data, err := os.ReadFile(skillMDPath); err == nil {","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":120,"end_line":120,"snippet":"\t\toutFile, err := os.Create(destPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":71,"end_line":71,"snippet":"\t\tfile, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":15,"end_line":15,"snippet":"\toutFile, err := os.Create(archivePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":343,"end_line":343,"snippet":"\tdata, err := os.ReadFile(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":325,"end_line":325,"snippet":"\tf, err := os.Open(scriptPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":254,"end_line":254,"snippet":"\tfile, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0600)","vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0012","rule_version":"1.2.0","rule_name":"Denial of Wallet / Cost Controls","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"Model/tool invocation paths are protected by multiple quota/budget layers: api/libs/rate_limit.py provides per-IP/account/session/email/token sliding-window rate limits applied to auth and API-bearer-token validation; FeatureService (api/services/feature_service.py referenced throughout controllers, e.g. human_input_delivery_test_service.py's `features.human_input_email_delivery_enabled` gate) enforces plan-based feature/quota gating before billable operations execute; and dataset/knowledge upload size limits (UPLOAD_FILE_SIZE_LIMIT family) bound the cost of ingestion-triggered embedding calls. The SSRF-protected HTTP client additionally bounds retries (SSRF_DEFAULT_MAX_RETRIES) and response size (buffer_response max_response_bytes), preventing unbounded retry storms or oversized-response costs on outbound calls to paid third-party APIs/model providers.","vulnerability_details":null,"fix_guidance":"Continue enforcing plan-based quotas (FeatureService) on any newly added billable/model-invocation endpoint; ensure per-tenant model-call quotas are consistently checked before each LLM/tool invocation.","why_this_matters":"Prevents cost-based disruption.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/core/helper/ssrf_proxy.py","start_line":226,"end_line":284,"snippet":"    retries = 0\n    while retries <= max_retries:\n        ...\n        retries += 1\n        if retries <= max_retries:\n            time.sleep(BACKOFF_FACTOR * (2 ** (retries - 1)))\n    raise MaxRetriesExceededError(f\"Reached maximum retries ({max_retries}) for URL {url}\")"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0013","rule_version":"1.1.0","rule_name":"Tool Output Sanitization & Injection Containment","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"low","rationale":"Dify's CoT agent runner assigns tool invocation results verbatim to scratchpad.observation and then interpolates that value verbatim into the 'Observation:' section of model-visible assistant history (api/core/agent/cot_agent_runner.py), with no sanitization, escaping, role-marker stripping, or untrusted-return annotation applied anywhere between the tool-output assignment and the point it re-enters the model's context. This allows tool-sourced content (e.g. a malicious web page or API response surfaced through a fetch/scrape-style tool) to inject text that the model treats as part of its own reasoning history, with no host-enforced trust boundary on that path.","vulnerability_details":null,"fix_guidance":"Add a sanitization/escaping layer for tool outputs before they are concatenated into the agent scratchpad: strip or neutralize control characters and fake role/system markers, and wrap tool output in an explicit untrusted-content envelope before it is interpolated into the Observation: section in cot_agent_runner.py and fc_agent_runner.py.","why_this_matters":"Tool outputs are a primary prompt-injection vector. Third-party content (web pages, files, API responses) may contain text crafted to override instructions or impersonate system/tool messages. Without a host-enforced envelope, sanitization, and an explicit untrusted-return signal, the model can be coerced into executing attacker-controlled directives, leaking secrets, or chaining further tool calls on behalf of the adversary.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0013 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/agent/cot_agent_runner.py","start_line":244,"end_line":252,"snippet":"                    tool_invoke_response, tool_invoke_meta = self._handle_invoke_action(\n                        session=session,\n                        action=scratchpad.action,\n                        tool_instances=tool_instances,\n                        message_file_ids=message_file_ids,\n                        trace_manager=trace_manager,\n                    )\n                    scratchpad.observation = tool_invoke_response\n                    scratchpad.agent_response = tool_invoke_response"},{"path":"api/core/agent/cot_agent_runner.py","start_line":400,"end_line":413,"snippet":"    def _format_assistant_message(self, agent_scratchpad: list[AgentScratchpadUnit]) -> str:\n        \"\"\"\n        format assistant message\n        \"\"\"\n        message = \"\"\n        for scratchpad in agent_scratchpad:\n            if scratchpad.is_final():\n                message += f\"Final Answer: {scratchpad.agent_response}\"\n            else:\n                message += f\"Thought: {scratchpad.thought}\\n\\n\"\n                if scratchpad.action_str:\n                    message += f\"Action: {scratchpad.action_str}\\n\\n\"\n                if scratchpad.observation:\n                    message += f\"Observation: {scratchpad.observation}\\n\\n\""}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0014","rule_version":"1.2.0","rule_name":"CI/CD Workflow Script Injection","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Reviewed all workflows using dangerous triggers (workflow_run, repository_dispatch, workflow_dispatch) for attacker-controlled interpolation into shell run blocks. The i18n translation pipeline (trigger-i18n-sync.yml -> translate-i18n-claude.yml) passes attacker-influenceable data (PR/commit content) only through typed client_payload fields consumed as quoted shell variables (BASE_SHA=\"...\"), and the PR-coverage-comment workflows (pyrefly-diff-comment.yml, pyrefly-type-coverage-comment.yml) using workflow_run only check out the DEFAULT branch (trusted code) and fetch data via the GitHub API/artifacts rather than interpolating untrusted strings directly into a run: block. The 12 semgrep yaml.github-actions.security.run-shell-injection hits (accessibility-e2e.yml, cli-e2e.yml, pyrefly-diff.yml, pyrefly-type-coverage.yml, style.yml, translate-i18n-claude.yml) all resolve to either workflow_dispatch 'choice' inputs enforced by a fixed options list, maintainer-only manual dispatch, values interpolated only within an already-double-quoted shell string consumed as data (not re-parsed/eval'd), or SHA values resolved via git/GitHub Actions context rather than free-form attacker text. No case shows a continuous source-to-sink path from an untrusted field to an unguarded shell execution with secrets/write-token exposure.","vulnerability_details":null,"fix_guidance":"Continue pinning actions by SHA (already done); keep workflow_dispatch choice-type inputs server-enforced; avoid ever switching the i18n pipeline to pull_request_target without validating client_payload fields against a strict allowlist/regex before use.","why_this_matters":"CI/CD script injection can execute attacker-controlled commands with workflow tokens, repository secrets, trusted-runner access, artifact or cache authority, and release or deployment privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":".github/workflows/translate-i18n-claude.yml","start_line":75,"end_line":95,"snippet":"if [ \"${{ github.event_name }}\" = \"repository_dispatch\" ]; then\n  BASE_SHA=\"${{ github.event.client_payload.base_sha }}\"\n  HEAD_SHA=\"${{ github.event.client_payload.head_sha }}\"\n  CHANGED_FILES=\"${{ github.event.client_payload.changed_files }}\"\n  ...\n  if [ -n \"${{ github.event.client_payload.changes_base64 }}\" ]; then\n    printf '%s' '${{ github.event.client_payload.changes_base64 }}' | base64 -d > /tmp/i18n-changes.json"},{"path":".github/workflows/pyrefly-type-coverage-comment.yml","start_line":20,"end_line":29,"snippet":"if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.pull_requests[0].head.repo.full_name != github.repository }}\nsteps:\n  - name: Checkout default branch (trusted code)\n    uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-R0001","rule_version":"1.3.0","rule_name":"Weaponization: Malicious-Purpose Artifact (Offensive Capability by Design)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Investigated all 3 YARA matches flagged repo-wide. (1) api/configs/remote_settings_sources/apollo/utils.py:46-47 'Zeus_Malware_Reverse_Shell' -- this is a UDP connect()-to-8.8.8.8 trick used purely to discover the machine's outbound-facing local IP address for Apollo remote-config client registration; there is no socket-to-shell wiring, no subprocess/exec, no network listener -- a benign, extremely common Python idiom misidentified by the socket+connect co-occurrence heuristic. (2) dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py:57-61 -- a pytest fixture that spawns a throwaway, loopback-bound (127.0.0.1) redis-server subprocess for an integration test and tears it down in a finally block; it is test infrastructure, not an operational reverse shell (no socket piped to a shell, no attacker-facing listener). (3) e2e/AGENTS.md:26-56 'tool_poisoning secondary-objective wide-span' match itself carries confidence 25 and is explicitly annotated by the scanner as 'likely ordinary prose, not a poisoned tool description' -- reading the cited span confirms it is contributor-facing documentation about E2E test runner architecture (tags, seeds, cleanup) with zero instructions directing model/agent behavior, no injected directives, and no secondary objective. Dify's overall product is a LLM app-development/agent-orchestration platform (not an offensive-security tool), and none of its shipped code, skills, or agent instructions direct generation of malware/exploits/credential theft or mass-abuse tooling.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact whose purpose is to weaponize the agent -- to produce malware, steal credentials, evade defenses, or run attacks at scale -- is dangerous regardless of how securely it is built; posture controls (auth, input validation, least privilege) cannot make a weapon safe, which is why a confirmed weaponization finding caps the trust verdict to `blocked` rather than being averaged against a good posture score. Catching malicious PURPOSE is a distinct safety control, and it must be conservative because offensive capability is dual-use: legitimate pentest, CTF, defensive, and research work must abstain (UNKNOWN), never block -- unless the artifact itself hides from the people who install, run or audit it.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"api/configs/remote_settings_sources/apollo/utils.py","start_line":42,"end_line":52,"snippet":"def init_ip() -> str:\n    ip = \"\"\n    s = None\n    try:\n        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n        s.connect((\"8.8.8.8\", 53))\n        ip = s.getsockname()[0]\n    finally:\n        if s:\n            s.close()\n    return ip","vulnerability":{}},{"path":"dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py","start_line":50,"end_line":76,"snippet":"@pytest.fixture\ndef redis_url() -> Iterator[str]:\n    \"\"\"Start an isolated Redis when the binary is available locally.\"\"\"\n    redis_server = shutil.which(\"redis-server\")\n    if redis_server is None:\n        pytest.skip(\"redis-server is required for run terminal integration tests\")\n    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as probe:\n        probe.bind((\"127.0.0.1\", 0))\n        port = probe.getsockname()[1]\n    process = subprocess.Popen(  # noqa: S603\n        [redis_server, \"--bind\", \"127.0.0.1\", \"--port\", str(port), \"--save\", \"\", \"--appendonly\", \"no\"],\n        stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT,\n    )","vulnerability":{}},{"path":"e2e/AGENTS.md","start_line":26,"end_line":56,"snippet":"- Generate disposable resource names through `support/naming.ts` with an `E2E` prefix.\n- Keep deterministic upload material in `fixtures/test-materials/`...\n- Seed scripts own shared long-lived fixtures; scenarios own disposable resources...\n- Use typed `DifyWorld` cleanup fields... Registered callbacks run LIFO after typed cleanup queues.\n- Remove child and referencing resources before owners. Attach cleanup failures to the report instead of swallowing them.\n(contributor-facing E2E test architecture doc; no agent-directed secondary objective)","vulnerability":{}}],"affected_tools":null,"component_name":null}],"component_tools":[],"summary":{"high_level_risks":["Known CVEs in pinned dependency versions, notably chromadb==0.5.20 (CVE-2026-45833 CRITICAL, plus two HIGH CVEs) with no fix currently available, and additional HIGH CVEs in pydantic-ai-slim, golang.org/x/mod, and socket.io-parser (ATR-C0007, HIGH).","Hardcoded default secrets shipped in docker-compose.yaml/docker-compose-template.yaml (PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY, DIFY_AGENT_SERVER_SECRET_KEY, MINIO_SECRET_KEY) take effect on any deployment that does not override them, giving a publicly-known static credential for internal plugin-daemon/inner-API/object-storage channels (ATR-C0002, HIGH).","Dify's app-as-MCP-server feature (api/controllers/mcp/mcp.py, api/core/mcp/server/streamable_http.py) exposes a remote streamable-HTTP MCP endpoint gated solely by a 16-char CSPRNG 'server_code' embedded in the URL path -- there is no standard Authorization/Bearer check, no OAuth 2.1/PKCE flow, and no rate limiting on the server_code lookup, making it a bearer-URL style credential with brute-force risk and typical URL-secret leakage via proxy/access logs and Referer headers.","The `mcp` Flask blueprint is the only blueprint registered in extensions/ext_blueprints.py with NO CORS/Origin policy applied, leaving no Origin/Host validation in front of a host-side-effectful endpoint that invokes full Dify app generation.","A password-reset / sensitive auth token is logged in full at WARNING level in api/libs/helper.py TokenManager.get_token_data, exposing a usable account-takeover credential to anyone with log access (ATR-C0005, MEDIUM).","The reference deployment ships insecure-by-default transport settings: the API container's gunicorn process binds 0.0.0.0 with no TLS, and NGINX_HTTPS_ENABLED defaults to false in docker/docker-compose.yaml / docker/.env.example, making TLS opt-in rather than mandatory.","Insecure deserialization (pickle) used for the RAG embedding cache column; the stored BLOB has no integrity binding, so any future write primitive against that column becomes an RCE vector (ATR-C0009).","Auxiliary/dev container images (docker/couchbase-server/Dockerfile, .devcontainer/Dockerfile) run as root and/or use a floating ':latest' base tag, unlike the hardened production api/Dockerfile and web/Dockerfile (ATR-C0006, MEDIUM).","Tool-output-to-LLM-context sanitization (ATR-C0013) could not be fully verified across the plugin-daemon boundary; the agent scratchpad/Observation concatenation path and plugin-daemon tool-result boundary lack confirmed control-character/injection-marker stripping.","skills/difyctl destructive operations (remove/revoke) have no enforced confirmation prompt, relying on the model volunteering confirmation rather than enforcing it in the agent harness."],"top_remediations":["Upgrade or disable the chromadb vector-store provider pending a fix for CVE-2026-45833/45830/45831; upgrade pydantic-ai-slim, golang.org/x/mod, and socket.io-parser to patched versions.","Remove hardcoded fallback secret values from docker-compose*.yaml; fail-fast or auto-generate random secrets on first run instead.","Add OAuth 2.1 (with PKCE) as the primary authorization mechanism for the inbound MCP server endpoint, or at minimum require a standard Authorization header bearer token in addition to server_code, plus rate limiting/lockout on failed server_code lookups.","Apply an explicit CORS/Origin allowlist (or host-based validation) to the `mcp` Flask blueprint consistent with the other blueprints in extensions/ext_blueprints.py.","Stop logging raw token values in api/libs/helper.py TokenManager.get_token_data; log only a hash/prefix or the Redis key.","Make TLS mandatory (NGINX_HTTPS_ENABLED default true) for any deployment exposing MCP/API endpoints beyond localhost, and default DIFY_BIND_ADDRESS to loopback for standalone (non-compose) runs.","Replace pickle-based embedding serialization with a safe format (numpy tobytes/JSON) as defense-in-depth against any future write-path compromise.","Add non-root USER directives and pin a specific (non-'latest') base image tag for docker/couchbase-server/Dockerfile and .devcontainer/Dockerfile; add HEALTHCHECK to all shipped Dockerfiles.","Conduct a focused audit of the tool-output-to-context concatenation path (agent scratchpad Observation field) and the plugin-daemon boundary for control-character/prompt-injection-marker sanitization.","Harden skills/difyctl's destructive-operation guidance into an enforced confirmation gate in the surrounding agent harness."]},"rollup":{"component_findings_count":{"vulnerable":0,"secure":6,"not_applicable":2},"repo_findings_inherited_count":{"vulnerable":7,"secure":8,"not_applicable":0},"component_tools_count":{},"worst_case_severity":"HIGH"},"trust_scores":{"repo_level":{"score":25,"tier":"critical","capability_band":"extreme","score_confidence":"low","score_interval":{"low":8,"high":42},"factors":["ATR-M0003 HIGH","ATR-M0009 HIGH","ATR-C0001 HIGH","ATR-C0002 HIGH","ATR-C0005 MEDIUM","ATR-C0006 MEDIUM","ATR-C0007 HIGH","ATR-C0011 HIGH","ATR-C0013 HIGH"]},"component_level":{"score":100,"tier":"high","capability_band":"minimal","score_confidence":"high","score_interval":{"low":96,"high":100},"factors":[]}}},{"artifact_version":"2.0","component":{"component_type":"skill","component_name":"skills-plugins/.agents/skills/how-to-write-component","component_path":".agents/skills/how-to-write-component","metadata":{"manifest":"SKILL.md"}},"scan_provenance":{"scanned_at":"2026-10-14T23:52:06.135Z","resolved_ref":"f77facfe6520ed379d723288aed0b4806ad76143","resolved_ver":null},"repo_context":{"repo_url":"https://github.com/langgenius/dify","languages":["Python","TypeScript","JavaScript","Go","Dockerfile"],"transports_detected":["stdio","sse","streamable_http"],"deployment_artifacts":["docker/docker-compose.yaml","docker/Dockerfile","api/Dockerfile","web/Dockerfile","docker/docker-compose.middleware.yaml"],"provenance":{"publisher":"langgenius","publisher_verified":true,"signed_build":false,"dependency_cve_count":34,"maintenance_active":true,"declared_policy":false}},"component_findings":[{"rule_id":"ATR-P0001","rule_version":"1.0.0","rule_name":"Capability Transparency: Declared Purpose vs. Actual Behavior (Shadow Features)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Routing skill for React/TypeScript component architecture decisions; content matches declared scope exactly, no hidden behavior.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Install-time trust is granted from the artifact's self-description, so any bundled capability the description does not disclose -- network egress, credential reads, or subprocess execution -- runs as an unconsented backdoor with the host agent's full privileges.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/how-to-write-component/SKILL.md","start_line":1,"end_line":10,"snippet":"---\nname: how-to-write-component\ndescription: Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data flow, effects, or interaction ownership. Do not use for review-only requests, test-only work, copy-only edits, or styling-only changes.\n---\n\n# How To Write A Component\n\nUse this skill to route component architecture decisions to its bundled references. Read only the references required by the current change."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/how-to-write-component"},{"rule_id":"ATR-P0002","rule_version":"1.0.0","rule_name":"Consent Suppression and Guardrail / Human-in-the-Loop Subversion via Trusted Instructions","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Purely an architecture-decision routing skill for implementation guidance; no instruction to bypass verification or consent -- it in fact requires 'Verify the changed behavior and complete the owning package's required checks.'","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Because a skill/plugin instruction body is ingested as trusted first-party context, consent- or oversight-suppressing prose inherits the host's full authority and turns a passive package into a self-authorizing backdoor that strips the human-in-the-loop control from every action it can reach.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/how-to-write-component/SKILL.md","start_line":19,"end_line":21,"snippet":"## Scope And Verification\n\nIdentify the behavior owner, state lifetime, and public contract from the nearby implementation and relevant references. Keep the change within that vertical slice unless the contract requires changes elsewhere. Verify the changed behavior and complete the owning package's required checks."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/how-to-write-component"},{"rule_id":"ATR-P0003","rule_version":"1.2.0","rule_name":"Host-Credential and Conversation-Context Harvesting and Exfiltration","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"No host-credential or conversation/memory harvest mechanism exists in this component; it only routes to local architecture references, so the credential/context-exfiltration rule does not apply.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin that couples a host-credential or live-conversation read with an outbound channel turns an ostensibly benign helper into an autonomous exfiltration agent, leaking long-lived secrets, session tokens, and confidential prompt context to an attacker on every invocation across every tool the artifact serves.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/how-to-write-component/SKILL.md","start_line":10,"end_line":18,"snippet":"## Topic Routing\n\n- Component moves, module boundaries, props, types, or owner placement: read [`references/ownership.md`][ownership].\n- Dify UI wrappers or primitive state styling: read the package's [Public API authoring] and [Styling] contracts.\n- Jotai, form drafts, route identity, URL state, or persistence: read [`references/state.md`][state].\n- Generated contracts, nullable API data, Query, mutations, SSR, auth, or workspace state: read [`references/data.md`][data].\n- Hotkeys, focus, dialogs, menus, popovers, or other secondary surfaces: read [`references/interactions.md`][interactions] and the overlay guide it references when applicable. Also read [`references/state.md`][state] when the surface owns a draft or other local session state.\n- Effects, navigation, memoization, preloading, or render cost: read [`references/runtime.md`][runtime]."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/how-to-write-component"},{"rule_id":"ATR-P0004","rule_version":"1.1.0","rule_name":"Format-Native Out-of-Band Execution and Host Control-Plane Persistence","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"This markdown-only bundle contains no script, lifecycle hook, entry-point code, host configuration, executable environment assignment, or persistent control-plane write, so the format-native execution/persistence rule does not apply.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Format-native execution and control-plane writes bypass the model's reasoning loop, converting a single install approval into durable, self-reinjecting code execution that can MITM the host agent's own model endpoint and silently subvert every subsequent tool call.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/how-to-write-component/SKILL.md","start_line":6,"end_line":9,"snippet":"# How To Write A Component\n\nUse this skill to route component architecture decisions to its bundled references. Read only the references required by the current change."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/how-to-write-component"},{"rule_id":"ATR-P0005","rule_version":"1.0.0","rule_name":"Over-Declared / Over-Privileged Artifact Manifest Scope","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"Narrowly scoped to React/TypeScript component implementation decisions.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact that self-declares host privilege far beyond its stated function -- or hides executable reach inside a passive-looking package -- gives a single install a blast radius the operator never scoped, so any later mistake, compromise, or misconfiguration detonates across resources the artifact never needed.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/how-to-write-component/SKILL.md","start_line":3,"end_line":3,"snippet":"description: Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data flow, effects, or interaction ownership. Do not use for review-only requests, test-only work, copy-only edits, or styling-only changes."}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/how-to-write-component"},{"rule_id":"ATR-P0006","rule_version":"1.1.0","rule_name":"Injection and Concealed Directives in Skill/Plugin Manifest and Instruction Text","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"low","rationale":"No concealed/injected directives found.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin's always-loaded manifest and instruction carriers (frontmatter/body, `description_for_model`, Gemini `FunctionDeclaration.description` / Vertex AI extension `manifest` / ADK agent `instruction`, tool docstrings, JSON-Schema descriptions) are concatenated into the host agent prompt at operator privilege, so a directive that is hidden with non-printing codepoints, disguised with a homoglyph, forged with role-control tokens, or masked from the rendered view silently commandeers model behavior toward attacker-chosen actions across every tool the artifact serves -- with no code execution required and nothing visible to a reviewer reading the rendered text.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/how-to-write-component/SKILL.md","start_line":1,"end_line":35,"snippet":"(full file reviewed; plain markdown prose, no hidden/zero-width characters or concealed directives found)"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/how-to-write-component"},{"rule_id":"ATR-P0007","rule_version":"1.0.0","rule_name":"Skill/Plugin Package Provenance, Integrity, and Post-Approval Mutation (Rug-Pull)","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"In-tree skill versioned with the repo; no separate distribution/update channel.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill/plugin reviewed once and then trusted indefinitely becomes a rug-pull vector when its OWN model-facing instruction body, declared scope, or manifest can be live-swapped or silently mutated after approval -- without an approval-time digest that is re-compared on load and re-consent on any change, a publisher (or an attacker who compromises the distribution channel) can rewrite the artifact's trusted instructions or widen its tool scope under authority the host already granted, turning an approved package into an exfiltration or unauthorized-action backdoor.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/how-to-write-component/SKILL.md","start_line":1,"end_line":4,"snippet":"---\nname: how-to-write-component\ndescription: Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data flow, effects, or interaction ownership. Do not use for review-only requests, test-only work, copy-only edits, or styling-only changes.\n---"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/how-to-write-component"},{"rule_id":"ATR-P0008","rule_version":"1.0.0","rule_name":"Skill/Plugin Impersonation, Typosquatting & Publisher Spoofing","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"First-party, in-tree skill with a plain descriptive name; no impersonation.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Impersonation is the entry point of the agentic supply chain (OWASP LLM ASI04 / MITRE ATT&CK T1195): a skill or plugin installed on the strength of a familiar name inherits the host agent's execution context before any payload runs. The deception front-runs trust, so catching the identity lie breaks the chain at the cheapest point -- and it is independent of whether the current code is benign, because the same trusted-looking name can ship a payload in the next version.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":".agents/skills/how-to-write-component/SKILL.md","start_line":2,"end_line":2,"snippet":"name: how-to-write-component"}],"affected_tools":null,"component_name":"skills-plugins/.agents/skills/how-to-write-component"}],"repo_findings_inherited":[{"rule_id":"ATR-C0001","rule_version":"1.2.0","rule_name":"Unrestricted Network Fetch / SSRF","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The outbound HTTP client used for custom tool invocations and HTTP Request nodes falls back to a direct httpx client whenever SSRF_PROXY_HTTP_URL/SSRF_PROXY_HTTPS_URL are unset (they default to None in api/core/helper/ssrf_proxy.py), meaning the SSRF-blocking Squid proxy is an opt-in deployment choice rather than a code-enforced control. The custom-tool invocation path (api/core/tools/custom_tool/tool.py) dispatches the tool's configured server URL through this client with no in-code destination gate (no check against private/loopback/link-local ranges) before the request is sent. A deployment that does not explicitly configure the SSRF proxy environment variables -- which is possible under the project's supported configuration surface, not just the shipped Compose example -- allows a custom tool's configured URL to reach internal or private network destinations unguarded.","vulnerability_details":null,"fix_guidance":"Enforce SSRF protection in code rather than relying solely on an external proxy default: add a destination-validation check (reject private/loopback/link-local IP ranges) directly in the HTTP client construction path in api/core/helper/ssrf_proxy.py so protection applies even when SSRF_PROXY_HTTP_URL/HTTPS_URL are unset, and add an explicit gate in the custom-tool dispatch path in api/core/tools/custom_tool/tool.py before the configured server URL is fetched.","why_this_matters":"Enables internal pivoting and data exfiltration.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/tools/custom_tool/tool.py","start_line":65,"end_line":76,"snippet":"        self, credentials: dict[str, Any], parameters: dict[str, Any], format_only: bool = False\n    ) -> str:\n        \"\"\"\n        validate the credentials for Api tool\n        \"\"\"\n        # assemble validate request and request parameters\n        headers = self.assembling_request(parameters)\n\n        if format_only:\n            return \"\"\n\n        response = self.do_http_request(self.api_bundle.server_url, self.api_bundle.method, headers, parameters)"},{"path":"api/configs/feature/__init__.py","start_line":725,"end_line":738,"snippet":"    SSRF_PROXY_ALL_URL: str | None = Field(\n        description=\"Proxy URL for HTTP or HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTP_URL: str | None = Field(\n        description=\"Proxy URL for HTTP requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTPS_URL: str | None = Field(\n        description=\"Proxy URL for HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )"},{"path":"api/core/helper/ssrf_proxy.py","start_line":86,"end_line":101,"snippet":"def _build_ssrf_client(verify: bool) -> httpx.Client:\n    if dify_config.SSRF_PROXY_ALL_URL:\n        return httpx.Client(\n            proxy=dify_config.SSRF_PROXY_ALL_URL,\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    if dify_config.SSRF_PROXY_HTTP_URL and dify_config.SSRF_PROXY_HTTPS_URL:\n        return httpx.Client(\n            mounts=_create_proxy_mounts(verify=verify),\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    return httpx.Client(verify=verify, limits=_SSRF_CLIENT_LIMITS)"},{"path":"api/core/tools/custom_tool/tool.py","start_line":292,"end_line":306,"snippet":"            raise ValueError(f\"Invalid http method {method}\")\n        response: httpx.Response = _METHOD_MAP[\n            method_lc\n        ](  # https://discuss.python.org/t/type-inference-for-function-return-types/42926\n            url,\n            max_retries=0,\n            params=params,\n            headers=headers,\n            cookies=cookies,\n            data=body,\n            files=files,\n            timeout=API_TOOL_DEFAULT_TIMEOUT,\n            follow_redirects=True,\n        )\n        return response"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0002","rule_version":"1.3.2","rule_name":"Static Secrets","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"docker-compose.yaml and docker-compose-template.yaml ship REAL-LOOKING hardcoded default secret VALUES for inter-service authentication that take effect the moment an operator runs `docker compose up` without overriding the env vars: PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY default to the fixed base64-looking string 'lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi' / 'QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1' (identical across every public clone of the repo), DIFY_AGENT_SERVER_SECRET_KEY defaults to the fixed hex string '0123456789abcdef0123456789abcdef', and MINIO_SECRET_KEY defaults to 'minioadmin'. These are not placeholder/empty values in a .env.example (which would be the negative case) -- they are live fallback defaults baked directly into the shipped docker-compose YAML that is the project's documented one-command quick-start path, so any internet-reachable deployment that forgets to override them authenticates its internal plugin-daemon/inner-API channel and MinIO object storage with a publicly known static secret. This matches the rule's positive_indicator 'default changeme-style value' and its CWE-798/312 class directly.","vulnerability_details":"docker/docker-compose.yaml uses shell-style `${VAR:-default}` substitution where `default` is a concrete, realistic-looking secret baked into the committed YAML (not a placeholder like 'changeme' or empty string), for PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY/INNER_API_KEY_FOR_PLUGIN, DIFY_AGENT_SERVER_SECRET_KEY, and MINIO_SECRET_KEY. Any deployment that does not explicitly set these environment variables before `docker compose up` will run with these known-to-the-public credentials protecting the plugin-daemon <-> API inner channel and the MinIO backing store, letting anyone with network access to those internal ports (e.g. via SSRF, container escape, or a misconfigured network) authenticate as a trusted internal service.","fix_guidance":"Remove hardcoded fallback values from docker-compose for PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY/DIFY_AGENT_SERVER_SECRET_KEY/MINIO_SECRET_KEY; instead fail fast (or auto-generate a random secret at first-run via an init script) when the operator has not supplied a value, so no installation ever runs with a secret value that is identical and publicly known across every Dify deployment.","why_this_matters":"Plaintext secrets are easily exfiltrated.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0002 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/docker-compose.yaml","start_line":600,"end_line":604,"snippet":"      SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}\n      ...\n      DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":688,"end_line":688,"snippet":"      DIFY_AGENT_SERVER_SECRET_KEY: ${DIFY_AGENT_SERVER_SECRET_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":1104,"end_line":1104,"snippet":"      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}"},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":16,"end_line":17,"snippet":"PLUGIN_DAEMON_KEY=[REDACTED]\nPLUGIN_DIFY_INNER_API_KEY=[REDACTED]"},{"path":"api/Dockerfile","start_line":57,"end_line":57,"snippet":"ARG NODESOURCE_KEY_FPR=6F71F525282841EEDAF851B42F59B5F99B1BE0B4","vulnerability":{}},{"path":"api/.env.example","start_line":239,"end_line":239,"snippet":"# Prefix used to create collection name in vector database","vulnerability":{}},{"path":"api/.env.example","start_line":701,"end_line":701,"snippet":"POSITION_TOOL_EXCLUDES=","vulnerability":{}},{"path":"api/.env.example","start_line":715,"end_line":715,"snippet":"PLUGIN_MODEL_PROVIDERS_CACHE_TTL=86400","vulnerability":{}},{"path":"api/knowledge-fs-contract.lock.json","start_line":3,"end_line":3,"snippet":"  \"openapiSha256\": \"f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb\",","vulnerability":{}},{"path":"api/providers/vdb/vdb-alibabacloud-mysql/pyproject.toml","start_line":10,"end_line":10,"snippet":"alibabacloud_mysql = \"dify_vdb_alibabacloud_mysql.alibabacloud_mysql_vector:AlibabaCloudMySQLVectorFactory\"","vulnerability":{}},{"path":"api/services/agent/package_resource_exporter.py","start_line":257,"end_line":257,"snippet":"                    try:","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":30,"end_line":30,"snippet":"DIFY_AGENT_PLUGIN_DAEMON_API_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":36,"end_line":36,"snippet":"DIFY_AGENT_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":91,"end_line":91,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"dify-agent/docs/dify-agent/guide/index.md","start_line":151,"end_line":151,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/worker.env.example","start_line":10,"end_line":10,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/api.env.example","start_line":13,"end_line":13,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":165,"end_line":165,"snippet":"WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":174,"end_line":174,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":224,"end_line":224,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/.env.example","start_line":234,"end_line":234,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":280,"end_line":280,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":17,"end_line":17,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/dify-agent.env.example","start_line":118,"end_line":118,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/security.env.example","start_line":28,"end_line":29,"snippet":"OTLP_API_KEY=\nBAIDU_VECTOR_DB_API_KEY=dify","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":133,"end_line":133,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":166,"end_line":166,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":179,"end_line":179,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/vectorstores/weaviate.env.example","start_line":11,"end_line":11,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":204,"end_line":205,"snippet":"SENDGRID_API_KEY=\nINVITE_EXPIRY_HOURS=72","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":495,"end_line":495,"snippet":"VECTOR_STORE=weaviate","vulnerability":{}},{"path":"docker/docker-compose.yaml","start_line":1273,"end_line":1273,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"docker/docker-compose-template.yaml","start_line":1267,"end_line":1267,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"packages/contracts/generated/knowledge-fs/metadata.gen.ts","start_line":4,"end_line":5,"snippet":"export const knowledgeFsSourceOpenapiSha256 =\n  'f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb'","vulnerability":{}},{"path":"web/public/vs/editor/editor.main.js","start_line":631,"end_line":631,"snippet":"`))}}e.Trace=t}),define(ne[689],se([1,0,8,247,140]),function(oe,e,d,k,I){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.BaseResolvedKeybinding=void 0;class E extends I.ResolvedKeybinding{constructor(m,_){if(super(),_.length===0)throw(0,d.illegalArgument)(\"chords\");this._os=m,this._chords=_}getLabel(){return k.UILabelProvider.toLabel(this._os,this._chords,m=>this._getLabel(m))}getAriaLabel(){return k.AriaLabelProvider.toLabel(this._os,this._chords,m=>this._getAriaLabel(m))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:k.ElectronAcceleratorLabelProvider.toLabel(this._os,this._chords,m=>this._getElectronAccelerator(m))}getUserSettingsLabel(){return k.UserSettingsLabelProvider.toLabel(this._os,this._chords,m=>this._getUserSettingsLabel(m))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(m=>this._getChord(m))}_getChord(m){return new I.ResolvedChord(m.ctrlKey,m.shiftKey,m.altKey,m.metaKey,this._getLabel(m),this._getAriaLabel(m))}getDispatchChords(){return this._chords.map(m=>this._getChordDispatch(m))}getSingleModifierDispatchChords(){return this._chords.map(m=>this._getSingleModifierChordDispatch(m))}}e.BaseResolvedKeybinding=E}),define(ne[31],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,d.createDecorator)(\"keybindingService\")}),define(ne[391],se([1,0,5,174,2,31]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorHoverStatusBar=void 0;const y=d.$;let m=class extends I.Disposable{get hasContent(){return this._hasContent}constructor(b){super(),this._keybindingService=b,this.actions=[],this._hasContent=!1,this.hoverElement=y(\"div.hover-row.status-bar\"),this.hoverElement.tabIndex=0,this.actionsElement=d.append(this.hoverElement,y(\"div.actions\"))}addAction(b){const p=this._keybindingService.lookupKeybinding(b.commandId),n=p?p.getLabel():null;this._hasContent=!0;const o=this._register(k.HoverAction.render(this.actionsElement,b,n));return this.actions.push(o),o}append(b){const p=d.append(this.actionsElement,b);return this._hasContent=!0,p}};e.EditorHoverStatusBar=m,e.EditorHoverStatusBar=m=ke([ce(0,E.IKeybindingService)],m)}),define(ne[690],se([1,0,5,31,670,12,28,61,20,174,6]),function(oe,e,d,k,I,E,y,m,_,b,p){\"use strict\";var n;Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContentHoverWidget=void 0;const o=30,t=6;let i=class extends I.ResizableContentWidget{static{n=this}static{this.ID=\"editor.contrib.resizableContentHoverWidget\"}static{this._lastDimensions=new d.Dimension(0,0)}get isVisibleFromKeyboard(){return this._renderedHover?.source===1}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(c,l,a,r,u){const C=c.getOption(67)+8,f=150,h=new d.Dimension(f,C);super(c,h),this._configurationService=a,this._accessibilityService=r,this._keybindingService=u,this._hover=this._register(new b.HoverWidget),this._onDidResize=this._register(new p.Emitter),this.onDidResize=this._onDidResize.event,this._minimumSize=h,this._hoverVisibleKey=_.EditorContextKeys.hoverVisible.bindTo(l),this._hoverFocusedKey=_.EditorContextKeys.hoverFocused.bindTo(l),d.append(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex=\"50\",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(w=>{w.hasChanged(50)&&this._updateFont()}));const v=this._register(d.trackFocus(this._resizableNode.domNode));this._register(v.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(v.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return n.ID}static _applyDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.width=r,c.style.height=u}_setContentsDomNodeDimensions(c,l){const a=this._hover.contentsDomNode;return n._applyDimensions(a,c,l)}_setContainerDomNodeDimensions(c,l){const a=this._hover.containerDomNode;return n._applyDimensions(a,c,l)}_setHoverWidgetDimensions(c,l){this._setContentsDomNodeDimensions(c,l),this._setContainerDomNodeDimensions(c,l),this._layoutContentWidget()}static _applyMaxDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.maxWidth=r,c.style.maxHeight=u}_setHoverWidgetMaxDimensions(c,l){n._applyMaxDimensions(this._hover.contentsDomNode,c,l),n._applyMaxDimensions(this._hover.containerDomNode,c,l),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-maxWidth\",typeof c==\"number\"?`${c}px`:c),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(c){this._setHoverWidgetMaxDimensions(\"none\",\"none\");const l=c.width,a=c.height;this._setHoverWidgetDimensions(l,a)}_updateResizableNodeMaxDimensions(){const c=this._findMaximumRenderingWidth()??1/0,l=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new d.Dimension(c,l),this._setHoverWidgetMaxDimensions(c,l)}_resize(c){n._lastDimensions=new d.Dimension(c.width,c.height),this._setAdjustedHoverWidgetDimensions(c),this._resizableNode.layout(c.height,c.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const c=this._renderedHover?.showAtPosition;if(c)return this._positionPreference===1?this._availableVerticalSpaceAbove(c):this._availableVerticalSpaceBelow(c)}_findMaximumRenderingHeight(){const c=this._findAvailableSpaceVertically();if(!c)return;let l=t;return Array.from(this._hover.contentsDomNode.children).forEach(a=>{l+=a.clientHeight}),Math.min(c,l)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty(\"--vscode-hover-whiteSpace\",\"nowrap\"),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-sourceWhiteSpace\",\"nowrap\");const c=Array.from(this._hover.contentsDomNode.children).some(l=>l.scrollWidth>l.clientWidth);return this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-whiteSpace\"),this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-sourceWhiteSpace\"),c}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const c=this._isHoverTextOverflowing(),l=typeof this._contentWidth>\"u\"?0:this._contentWidth-2;return c||this._hover.containerDomNode.clientWidth<l?d.getClientArea(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(c,l){if(!this._renderedHover)return!1;if(this._renderedHover.initialMousePosX===void 0||this._renderedHover.initialMousePosY===void 0)return this._renderedHover.initialMousePosX=c,this._renderedHover.initialMousePosY=l,!1;const a=d.getDomNodePagePosition(this.getDomNode());this._renderedHover.closestMouseDistance===void 0&&(this._renderedHover.closestMouseDistance=s(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,a.left,a.top,a.width,a.height));const r=s(c,l,a.left,a.top,a.width,a.height);return r>this._renderedHover.closestMouseDistance+4?!1:(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,r),!0)}_setRenderedHover(c){this._renderedHover?.dispose(),this._renderedHover=c,this._hoverVisibleKey.set(!!c),this._hover.containerDomNode.classList.toggle(\"hidden\",!c)}_updateFont(){const{fontSize:c,lineHeight:l}=this._editor.getOption(50),a=this._hover.contentsDomNode;a.style.fontSize=`${c}px`,a.style.lineHeight=`${l/c}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName(\"code\")).forEach(u=>this._editor.applyFontInfo(u))}_updateContent(c){const l=this._hover.contentsDomNode;l.style.paddingBottom=\"\",l.textContent=\"\",l.appendChild(c)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const c=Math.max(this._editor.getLayoutInfo().height/4,250,n._lastDimensions.height),l=Math.max(this._editor.getLayoutInfo().width*.66,500,n._lastDimensions.width);this._setHoverWidgetMaxDimensions(l,c)}_render(c){this._setRenderedHover(c),this._updateFont(),this._updateContent(c.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(c){if(!this._editor||!this._editor.hasModel())return;this._render(c);const l=d.getTotalHeight(this._hover.containerDomNode),a=c.showAtPosition;this._positionPreference=this._findPositionPreference(l,a)??1,this.onContentsChanged(),c.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const u=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,b.getHoverAccessibleViewHint)(this._configurationService.getValue(\"accessibility.verbosity.hover\")===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding(\"editor.action.accessibleView\")?.getAriaLabel()??\"\");u&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+\", \"+u)}hide(){if(!this._renderedHover)return;const c=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new d.Dimension(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),c&&this._editor.focus()}_removeConstraintsRenderNormally(){const c=this._editor.getLayoutInfo();this._resizableNode.layout(c.height,c.width),this._setHoverWidgetDimensions(\"auto\",\"auto\")}setMinimumDimensions(c){this._minimumSize=new d.Dimension(Math.max(this._minimumSize.width,c.width),Math.max(this._minimumSize.height,c.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const c=typeof this._contentWidth>\"u\"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new d.Dimension(c,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const c=this._hover.containerDomNode;let l=d.getTotalHeight(c),a=d.getTotalWidth(c);if(this._resizableNode.layout(l,a),this._setHoverWidgetDimensions(a,l),l=d.getTotalHeight(c),a=d.getTotalWidth(c),this._contentWidth=a,this._updateMinimumWidth(),this._resizableNode.layout(l,a),this._renderedHover?.showAtPosition){const r=d.getTotalHeight(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(r,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c-l.lineHeight})}scrollDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c+l.lineHeight})}scrollLeft(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c-o})}scrollRight(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c+o})}pageUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c-l})}pageDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c+l})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};e.ContentHoverWidget=i,e.ContentHoverWidget=i=n=ke([ce(1,E.IContextKeyService),ce(2,y.IConfigurationService),ce(3,m.IAccessibilityService),ce(4,k.IKeybindingService)],i);function s(g,c,l,a,r,u){const C=l+r/2,f=a+u/2,h=Math.max(Math.abs(g-C)-r/2,0),v=Math.max(Math.abs(c-f)-u/2,0);return Math.sqrt(h*h+v*v)}}),define(ne[392],se([1,0,12]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.KeybindingResolver=e.NoMatchingKb=void 0,e.NoMatchingKb={kind:0};const k={kind:1};function I(_,b,p){return{kind:2,commandId:_,commandArgs:b,isBubble:p}}class E{constructor(b,p,n){this._log=n,this._defaultKeybindings=b,this._defaultBoundCommands=new Map;for(const o of b){const t=o.command;t&&t.charAt(0)!==\"-\"&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=E.handleRemovals([].concat(b).concat(p));for(let o=0,t=this._keybindings.length;o<t;o++){const i=this._keybindings[o];if(i.chords.length===0)continue;const s=i.when?.substituteConstants();s&&s.type===0||this._addKeyPress(i.chords[0],i)}}static _isTargetedForRemoval(b,p,n){if(p){for(let o=0;o<p.length;o++)if(p[o]!==b.chords[o])return!1}return!(n&&n.type!==1&&(!b.when||!(0,d.expressionsAreEqualWithConstantSubstitution)(n,b.when)))}static handleRemovals(b){const p=new Map;for(let o=0,t=b.length;o<t;o++){const i=b[o];if(i.command&&i.command.charAt(0)===\"-\"){const s=i.command.substring(1);p.has(s)?p.get(s).push(i):p.set(s,[i])}}if(p.size===0)return b;const n=[];for(let o=0,t=b.length;o<t;o++){const i=b[o];if(!i.command||i.command.length===0){n.push(i);continue}if(i.command.charAt(0)===\"-\")continue;const s=p.get(i.command);if(!s||!i.isDefault){n.push(i);continue}let g=!1;for(const c of s){const l=c.when;if(this._isTargetedForRemoval(i,c.chords,l)){g=!0;break}}if(!g){n.push(i);continue}}return n}_addKeyPress(b,p){const n=this._map.get(b);if(typeof n>\"u\"){this._map.set(b,[p]),this._addToLookupMap(p);return}for(let o=n.length-1;o>=0;o--){const t=n[o];if(t.command===p.command)continue;let i=!0;for(let s=1;s<t.chords.length&&s<p.chords.length;s++)if(t.chords[s]!==p.chords[s]){i=!1;break}i&&E.whenIsEntirelyIncluded(t.when,p.when)&&this._removeFromLookupMap(t)}n.push(p),this._addToLookupMap(p)}_addToLookupMap(b){if(!b.command)return;let p=this._lookupMap.get(b.command);typeof p>\"u\"?(p=[b],this._lookupMap.set(b.command,p)):p.push(b)}_removeFromLookupMap(b){if(!b.command)return;const p=this._lookupMap.get(b.command);if(!(typeof p>\"u\")){for(let n=0,o=p.length;n<o;n++)if(p[n]===b){p.splice(n,1);return}}}static whenIsEntirelyIncluded(b,p){return!p||p.type===1?!0:!b||b.type===1?!1:(0,d.implies)(b,p)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(b,p){const n=this._lookupMap.get(b);if(typeof n>\"u\"||n.length===0)return null;if(n.length===1)return n[0];for(let o=n.length-1;o>=0;o--){const t=n[o];if(p.contextMatchesRules(t.when))return t}return n[n.length-1]}resolve(b,p,n){const o=[...p,n];this._log(`| Resolving ${o}`);const t=this._map.get(o[0]);if(t===void 0)return this._log(\"\\\\ No keybinding entries.\"),e.NoMatchingKb;let i=null;if(o.length<2)i=t;else{i=[];for(let g=0,c=t.length;g<c;g++){const l=t[g];if(o.length>l.chords.length)continue;let a=!0;for(let r=1;r<o.length;r++)if(l.chords[r]!==o[r]){a=!1;break}a&&i.push(l)}}const s=this._findCommand(b,i);return s?o.length<s.chords.length?(this._log(`\\\\ From ${i.length} keybinding entries, awaiting ${s.chords.length-o.length} more chord(s), when: ${y(s.when)}, source: ${m(s)}.`),k):(this._log(`\\\\ From ${i.length} keybinding entries, matched ${s.command}, when: ${y(s.when)}, source: ${m(s)}.`),I(s.command,s.commandArgs,s.bubble)):(this._log(`\\\\ From ${i.length} keybinding entries, no when clauses matched the context.`),e.NoMatchingKb)}_findCommand(b,p){for(let n=p.length-1;n>=0;n--){const o=p[n];if(E._contextMatchesRules(b,o.when))return o}return null}static _contextMatchesRules(b,p){return p?p.evaluate(b):!0}}e.KeybindingResolver=E;function y(_){return _?`${_.serialize()}`:\"no when condition\"}function m(_){return _.extensionId?_.isBuiltinExtension?`built-in extension ${_.extensionId}`:`user extension ${_.extensionId}`:_.isDefault?\"built-in\":\"user\"}}),define(ne[691],se([1,0,14,8,6,300,2,3,392]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractKeybindingService=void 0;const b=/^(cursor|delete|undo|redo|tab|editor\\.action\\.clipboard)/;class p extends y.Disposable{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:I.Event.None}get inChordMode(){return this._currentChords.length>0}constructor(t,i,s,g,c){super(),this._contextKeyService=t,this._commandService=i,this._telemetryService=s,this._notificationService=g,this._logService=c,this._onDidUpdateKeybindings=this._register(new I.Emitter),this._currentChords=[],this._currentChordChecker=new d.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new d.TimeoutTimer,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(t){this._logging&&this._logService.info(`[KeybindingService]: ${t}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(t,i){const s=this._getResolver().lookupPrimaryKeybinding(t,i||this._contextKeyService);if(s)return s.resolvedKeybinding}dispatchEvent(t,i){return this._dispatch(t,i)}softDispatch(t,i){this._log(\"/ Soft dispatching keyboard event\");const s=this.resolveKeyboardEvent(t);if(s.hasMultipleChords())return console.warn(\"keyboard event should not be mapped to multiple chords\"),_.NoMatchingKb;const[g]=s.getDispatchChords();if(g===null)return this._log(\"\\\\ Keyboard event cannot be dispatched\"),_.NoMatchingKb;const c=this._contextKeyService.getContext(i),l=this._currentChords.map(({keypress:a})=>a);return this._getResolver().resolve(c,l,g)}_scheduleLeaveChordMode(){const t=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-t>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(t,i){switch(this._currentChords.push({keypress:t,label:i}),this._currentChords.length){case 0:throw(0,k.illegalState)(\"impossible\");case 1:this._currentChordStatusMessage=this._notificationService.status(m.localize(1538,\"({0}) was pressed. Waiting for second key of chord...\",i));break;default:{const s=this._currentChords.map(({label:g})=>g).join(\", \");this._currentChordStatusMessage=this._notificationService.status(m.localize(1539,\"({0}) was pressed. Waiting for next key of chord...\",s))}}this._scheduleLeaveChordMode(),E.IME.enabled&&E.IME.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],E.IME.enable()}_dispatch(t,i){return this._doDispatch(this.resolveKeyboardEvent(t),i,!1)}_singleModifierDispatch(t,i){const s=this.resolveKeyboardEvent(t),[g]=s.getSingleModifierDispatchChords();if(g)return this._ignoreSingleModifiers.has(g)?(this._log(`+ Ignoring single modifier ${g} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${g}.`),this._currentSingleModifier=g,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log(\"+ Clearing single modifier due to 300ms elapsed.\"),this._currentSingleModifier=null},300),!1):g===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${g} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(s,i,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[c]=s.getChords();return this._ignoreSingleModifiers=new n(c),this._currentSingleModifier!==null&&this._log(\"+ Clearing single modifier due to other key up.\"),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(t,i,s=!1){let g=!1;if(t.hasMultipleChords())return console.warn(\"Unexpected keyboard event mapped to multiple chords\"),!1;let c=null,l=null;if(s){const[C]=t.getSingleModifierDispatchChords();c=C,l=C?[C]:[]}else[c]=t.getDispatchChords(),l=this._currentChords.map(({keypress:C})=>C);if(c===null)return this._log(\"\\\\ Keyboard event cannot be dispatched in keydown phase.\"),g;const a=this._contextKeyService.getContext(i),r=t.getLabel(),u=this._getResolver().resolve(a,l,c);switch(u.kind){case 0:{if(this._logService.trace(\"KeybindingService#dispatch\",r,\"[ No matching keybinding ]\"),this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving multi-chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1540,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}return g}case 1:return this._logService.trace(\"KeybindingService#dispatch\",r,\"[ Several keybindings match - more chords needed ]\"),g=!0,this._expectAnotherChord(c,r),this._log(this._currentChords.length===1?\"+ Entering multi-chord mode...\":\"+ Continuing multi-chord mode...\"),g;case 2:{if(this._logService.trace(\"KeybindingService#dispatch\",r,`[ Will dispatch command ${u.commandId} ]`),u.commandId===null||u.commandId===\"\"){if(this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1541,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}}else{this.inChordMode&&this._leaveChordMode(),u.isBubble||(g=!0),this._log(`+ Invoking command ${u.commandId}.`),this._currentlyDispatchingCommandId=u.commandId;try{typeof u.commandArgs>\"u\"?this._commandService.executeCommand(u.commandId).then(void 0,C=>this._notificationService.warn(C)):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,C=>this._notificationService.warn(C))}finally{this._currentlyDispatchingCommandId=null}b.test(u.commandId)||this._telemetryService.publicLog2(\"workbenchActionExecuted\",{id:u.commandId,from:\"keybinding\",detail:t.getUserSettingsLabel()??void 0})}return g}}}mightProducePrintableCharacter(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30}}e.AbstractKeybindingService=p;class n{static{this.EMPTY=new n(null)}constructor(t){this._ctrlKey=t?t.ctrlKey:!1,this._shiftKey=t?t.shiftKey:!1,this._altKey=t?t.altKey:!1,this._metaKey=t?t.metaKey:!1}has(t){switch(t){case\"ctrl\":return this._ctrlKey;case\"shift\":return this._shiftKey;case\"alt\":return this._altKey;case\"meta\":return this._metaKey}}}}),define(ne[393],se([1,0]),function(oe,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ResolvedKeybindingItem=void 0,e.toEmptyArrayIfContainsNull=k;class d{constructor(E,y,m,_,b,p,n){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=E,this.chords=E?k(E.getDispatchChords()):[],E&&this.chords.length===0&&(this.chords=k(E.getSingleModifierDispatchChords())),this.bubble=y?y.charCodeAt(0)===94:!1,this.command=this.bubble?y.substr(1):y,this.commandArgs=m,this.when=_,this.isDefault=b,this.extensionId=p,this.isBuiltinExtension=n}}e.ResolvedKeybindingItem=d;function k(I){const E=[];for(let y=0,m=I.length;y<m;y++){const _=I[y];if(!_)return[];E.push(_)}return E}}),define(ne[692],se([1,0,72,140,689,393]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.USLayoutResolvedKeybinding=void 0;class y extends I.BaseResolvedKeybinding{constructor(_,b){super(b,_)}_keyCodeToUILabel(_){if(this._os===2)switch(_){case 15:return\"\\u2190\";case 16:return\"\\u2191\";case 17:return\"\\u2192\";case 18:return\"\\u2193\"}return d.KeyCodeUtils.toString(_)}_getLabel(_){return _.isDuplicateModifierCase()?\"\":this._keyCodeToUILabel(_.keyCode)}_getAriaLabel(_){return _.isDuplicateModifierCase()?\"\":d.KeyCodeUtils.toString(_.keyCode)}_getElectronAccelerator(_){return d.KeyCodeUtils.toElectronAccelerator(_.keyCode)}_getUserSettingsLabel(_){if(_.isDuplicateModifierCase())return\"\";const b=d.KeyCodeUtils.toUserSettingsUS(_.keyCode);return b&&b.toLowerCase()}_getChordDispatch(_){return y.getDispatchStr(_)}static getDispatchStr(_){if(_.isModifierKey())return null;let b=\"\";return _.ctrlKey&&(b+=\"ctrl+\"),_.shiftKey&&(b+=\"shift+\"),_.altKey&&(b+=\"alt+\"),_.metaKey&&(b+=\"meta+\"),b+=d.KeyCodeUtils.toString(_.keyCode),b}_getSingleModifierChordDispatch(_){return _.keyCode===5&&!_.shiftKey&&!_.altKey&&!_.metaKey?\"ctrl\":_.keyCode===4&&!_.ctrlKey&&!_.altKey&&!_.metaKey?\"shift\":_.keyCode===6&&!_.ctrlKey&&!_.shiftKey&&!_.metaKey?\"alt\":_.keyCode===57&&!_.ctrlKey&&!_.shiftKey&&!_.altKey?\"meta\":null}static _scanCodeToKeyCode(_){const b=d.IMMUTABLE_CODE_TO_KEY_CODE[_];if(b!==-1)return b;switch(_){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(_){if(!_)return null;if(_ instanceof k.KeyCodeChord)return _;const b=this._scanCodeToKeyCode(_.scanCode);return b===0?null:new k.KeyCodeChord(_.ctrlKey,_.shiftKey,_.altKey,_.metaKey,b)}static resolveKeybinding(_,b){const p=(0,E.toEmptyArrayIfContainsNull)(_.chords.map(n=>this._toKeyCodeChord(n)));return p.length>0?[new y(p,b)]:[]}}e.USLayoutResolvedKeybinding=y}),define(ne[181],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,d.createDecorator)(\"labelService\")}),define(ne[119],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILayoutService=void 0,e.ILayoutService=(0,d.createDecorator)(\"layoutService\")}),define(ne[394],se([1,0,5,52,13,6,34,49,119]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorScopedLayoutService=void 0;let b=class{get mainContainer(){return(0,I.firstOrDefault)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??k.mainWindow.document.body}get activeContainer(){return(this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor())?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return d.getClientArea(this.mainContainer)}get activeContainerDimension(){return d.getClientArea(this.activeContainer)}get containers(){return(0,I.coalesce)(this._codeEditorService.listCodeEditors().map(o=>o.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(o){this._codeEditorService=o,this.onDidLayoutMainContainer=E.Event.None,this.onDidLayoutActiveContainer=E.Event.None,this.onDidLayoutContainer=E.Event.None,this.onDidChangeActiveContainer=E.Event.None,this.onDidAddContainer=E.Event.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};b=ke([ce(0,y.ICodeEditorService)],b);let p=class extends b{get mainContainer(){return this._container}constructor(o,t){super(t),this._container=o}};e.EditorScopedLayoutService=p,e.EditorScopedLayoutService=p=ke([ce(1,y.ICodeEditorService)],p),(0,m.registerSingleton)(_.ILayoutService,b,1)}),define(ne[693],se([1,0,5,52,6,2,61,28,12,119]),function(oe,e,d,k,I,E,y,m,_,b){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AccessibilityService=void 0;let p=class extends E.Disposable{constructor(o,t,i){super(),this._contextKeyService=o,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new I.Emitter,this._onDidChangeReducedMotion=new I.Emitter,this._onDidChangeLinkUnderline=new I.Emitter,this._accessibilityModeEnabledContext=y.CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration(\"editor.accessibilitySupport\")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),c.affectsConfiguration(\"workbench.reduceMotion\")&&(this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._onDidChangeReducedMotion.fire())})),s(),this._register(this.onDidChangeScreenReaderOptimized(()=>s()));const g=k.mainWindow.matchMedia(\"(prefers-reduced-motion: reduce)\");this._systemMotionReduced=g.matches,this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._linkUnderlinesEnabled=this._configurationService.getValue(\"accessibility.underlineLinks\"),this.initReducedMotionListeners(g),this.initLinkUnderlineListeners()}initReducedMotionListeners(o){this._register((0,d.addDisposableListener)(o,\"change\",()=>{this._systemMotionReduced=o.matches,this._configMotionReduced===\"auto\"&&this._onDidChangeReducedMotion.fire()}));const t=()=>{const i=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle(\"reduce-motion\",i),this._layoutService.mainContainer.classList.toggle(\"enable-motion\",!i)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration(t=>{if(t.affectsConfiguration(\"accessibility.underlineLinks\")){const i=this._configurationService.getValue(\"accessibility.underlineLinks\");this._linkUnderlinesEnabled=i,this._onDidChangeLinkUnderline.fire()}}));const o=()=>{const t=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle(\"underline-links\",t)};o(),this._register(this.onDidChangeLinkUnderlines(()=>o()))}onDidChangeLinkUnderlines(o){return this._onDidChangeLinkUnderline.event(o)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const o=this._configurationService.getValue(\"editor.accessibilitySupport\");return o===\"on\"||o===\"auto\"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const o=this._configMotionReduced;return o===\"on\"||o===\"auto\"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};e.AccessibilityService=p,e.AccessibilityService=p=ke([ce(0,_.IContextKeyService),ce(1,b.ILayoutService),ce(2,m.IConfigurationService)],p)}),define(ne[395],se([1,0,353,2,119,5]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContextViewService=e.ContextViewHandler=void 0;let y=class extends k.Disposable{constructor(b){super(),this.layoutService=b,this.contextView=this._register(new d.ContextView(this.layoutService.mainContainer,1)),this.layout(),this._register(b.onDidLayoutContainer(()=>this.layout()))}showContextView(b,p,n){let o;p?p===this.layoutService.getContainer((0,E.getWindow)(p))?o=1:n?o=3:o=2:o=1,this.contextView.setContainer(p??this.layoutService.activeContainer,o),this.contextView.show(b);const t={close:()=>{this.openContextView===t&&this.hideContextView()}};return this.openContextView=t,t}layout(){this.contextView.layout()}hideContextView(b){this.contextView.hide(b),this.openContextView=void 0}};e.ContextViewHandler=y,e.ContextViewHandler=y=ke([ce(0,I.ILayoutService)],y);class m extends y{getContextViewElement(){return this.contextView.getViewElement()}}e.ContextViewService=m}),define(ne[62],se([1,0,6,2,12,7]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.CONTEXT_LOG_LEVEL=e.MultiplexLogger=e.ConsoleLogger=e.AbstractLogger=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILogService=void 0,e.LogLevelToString=p,e.ILogService=(0,E.createDecorator)(\"logService\");var y;(function(n){n[n.Off=0]=\"Off\",n[n.Trace=1]=\"Trace\",n[n.Debug=2]=\"Debug\",n[n.Info=3]=\"Info\",n[n.Warning=4]=\"Warning\",n[n.Error=5]=\"Error\"})(y||(e.LogLevel=y={})),e.DEFAULT_LOG_LEVEL=y.Info;class m extends k.Disposable{constructor(){super(...arguments),this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new d.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(o){this.level!==o&&(this.level=o,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(o){return this.level!==y.Off&&this.level<=o}}e.AbstractLogger=m;class _ extends m{constructor(o=e.DEFAULT_LOG_LEVEL,t=!0){super(),this.useColors=t,this.setLevel(o)}trace(o,...t){this.checkLogLevel(y.Trace)&&(this.useColors?console.log(\"%cTRACE\",\"color: #888\",o,...t):console.log(o,...t))}debug(o,...t){this.checkLogLevel(y.Debug)&&(this.useColors?console.log(\"%cDEBUG\",\"background: #eee; color: #888\",o,...t):console.log(o,...t))}info(o,...t){this.checkLogLevel(y.Info)&&(this.useColors?console.log(\"%c INFO\",\"color: #33f\",o,...t):console.log(o,...t))}warn(o,...t){this.checkLogLevel(y.Warning)&&(this.useColors?console.log(\"%c WARN\",\"color: #993\",o,...t):console.log(o,...t))}error(o,...t){this.checkLogLevel(y.Error)&&(this.useColors?console.log(\"%c  ERR\",\"color: #f33\",o,...t):console.error(o,...t))}}e.ConsoleLogger=_;class b extends m{constructor(o){super(),this.loggers=o,o.length&&this.setLevel(o[0].getLevel())}setLevel(o){for(const t of this.loggers)t.setLevel(o);super.setLevel(o)}trace(o,...t){for(const i of this.loggers)i.trace(o,...t)}debug(o,...t){for(const i of this.loggers)i.debug(o,...t)}info(o,...t){for(const i of this.loggers)i.info(o,...t)}warn(o,...t){for(const i of this.loggers)i.warn(o,...t)}error(o,...t){for(const i of this.loggers)i.error(o,...t)}dispose(){for(const o of this.loggers)o.dispose();super.dispose()}}e.MultiplexLogger=b;function p(n){switch(n){case y.Trace:return\"trace\";case y.Debug:return\"debug\";case y.Info:return\"info\";case y.Warning:return\"warn\";case y.Error:return\"error\";case y.Off:return\"off\"}}e.CONTEXT_LOG_LEVEL=new I.RawContextKey(\"logLevel\",p(y.Info))}),define(ne[212],se([1,0,64,5,93,47,296,14,6,2,128,11,310,23,61,62]),function(oe,e,d,k,I,E,y,m,_,b,p,n,o,t,i,s){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.TextAreaWrapper=e.ClipboardEventUtils=e.TextAreaInput=e.InMemoryClipboardMetadataManager=e.CopyOptions=e.TextAreaSyntethicEvents=void 0;var g;(function(u){u.Tap=\"-monaco-textarea-synthetic-tap\"})(g||(e.TextAreaSyntethicEvents=g={})),e.CopyOptions={forceCopyWithSyntaxHighlighting:!1};class c{static{this.INSTANCE=new c}constructor(){this._lastState=null}set(C,f){this._lastState={lastCopiedValue:C,data:f}}get(C){return this._lastState&&this._lastState.lastCopiedValue===C?this._lastState.data:(this._lastState=null,null)}}e.InMemoryClipboardMetadataManager=c;class l{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(C){C=C||\"\";const f={text:C,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=C.length,f}}let a=class extends b.Disposable{get textAreaState(){return this._textAreaState}constructor(C,f,h,v,w,S){super(),this._host=C,this._textArea=f,this._OS=h,this._browser=v,this._accessibilityService=w,this._logService=S,this._onFocus=this._register(new _.Emitter),this.onFocus=this._onFocus.event,this._onBlur=this._register(new _.Emitter),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new _.Emitter),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new _.Emitter),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new _.Emitter),this.onCut=this._onCut.event,this._onPaste=this._register(new _.Emitter),this.onPaste=this._onPaste.event,this._onType=this._register(new _.Emitter),this.onType=this._onType.event,this._onCompositionStart=this._register(new _.Emitter),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new _.Emitter),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new _.Emitter),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new _.Emitter),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new b.MutableDisposable),this._asyncTriggerCut=this._register(new m.RunOnceScheduler(()=>this._onCut.fire(),0)),this._textAreaState=o.TextAreaState.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent(\"ctor\"),this._register(_.Event.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let L=null;this._register(this._textArea.onKeyDown(D=>{const T=new E.StandardKeyboardEvent(D);(T.keyCode===114||this._currentComposition&&T.keyCode===1)&&T.stopPropagation(),T.equals(9)&&T.preventDefault(),L=T,this._onKeyDown.fire(T)})),this._register(this._textArea.onKeyUp(D=>{const T=new E.StandardKeyboardEvent(D);this._onKeyUp.fire(T)})),this._register(this._textArea.onCompositionStart(D=>{o._debugComposition&&console.log(\"[compositionstart]\",D);const T=new l;if(this._currentComposition){this._currentComposition=T;return}if(this._currentComposition=T,this._OS===2&&L&&L.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===D.data&&(L.code===\"ArrowRight\"||L.code===\"ArrowLeft\")){o._debugComposition&&console.log(\"[compositionstart] Handling long press case on macOS + arrow key\",D),T.handleCompositionUpdate(\"x\"),this._onCompositionStart.fire({data:D.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:D.data});return}this._onCompositionStart.fire({data:D.data})})),this._register(this._textArea.onCompositionUpdate(D=>{o._debugComposition&&console.log(\"[compositionupdate]\",D);const T=this._currentComposition;if(!T)return;if(this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionUpdate.fire(D);return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionUpdate.fire(D)})),this._register(this._textArea.onCompositionEnd(D=>{o._debugComposition&&console.log(\"[compositionend]\",D);const T=this._currentComposition;if(!T)return;if(this._currentComposition=null,this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionEnd.fire();return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(D=>{if(o._debugComposition&&console.log(\"[input]\",D),this._textArea.setIgnoreSelectionChangeTime(\"received input event\"),this._currentComposition)return;const T=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),M=o.TextAreaState.deduceInput(this._textAreaState,T,this._OS===2);M.replacePrevCharCnt===0&&M.text.length===1&&(n.isHighSurrogate(M.text.charCodeAt(0))||M.text.charCodeAt(0)===127)||(this._textAreaState=T,(M.text!==\"\"||M.replacePrevCharCnt!==0||M.replaceNextCharCnt!==0||M.positionDelta!==0)&&this._onType.fire(M))})),this._register(this._textArea.onCut(D=>{this._textArea.setIgnoreSelectionChangeTime(\"received cut event\"),this._ensureClipboardGetsEditorSelection(D),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(D=>{this._ensureClipboardGetsEditorSelection(D)})),this._register(this._textArea.onPaste(D=>{if(this._textArea.setIgnoreSelectionChangeTime(\"received paste event\"),D.preventDefault(),!D.clipboardData)return;let[T,M]=e.ClipboardEventUtils.getTextData(D.clipboardData);T&&(M=M||c.INSTANCE.get(T),this._onPaste.fire({text:T,metadata:M}))})),this._register(this._textArea.onFocus(()=>{const D=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!D&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"blurWithoutCompositionEnd\"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"tapWithoutCompositionEnd\"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let C=0;return k.addDisposableListener(this._textArea.ownerDocument,\"selectionchange\",f=>{if(y.inputLatency.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const h=Date.now(),v=h-C;if(C=h,v<5)return;const w=h-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),w<100||!this._textAreaState.selection)return;const S=this._textArea.getValue();if(this._textAreaState.value!==S)return;const L=this._textArea.getSelectionStart(),D=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===L&&this._textAreaState.selectionEnd===D)return;const T=this._textAreaState.deduceEditorPosition(L),M=this._host.deduceModelPosition(T[0],T[1],T[2]),A=this._textAreaState.deduceEditorPosition(D),P=this._host.deduceModelPosition(A[0],A[1],A[2]),N=new t.Selection(M.lineNumber,M.column,P.lineNumber,P.column);this._onSelectionChangeRequest.fire(N)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(C){this._hasFocus!==C&&(this._hasFocus=C,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent(\"focusgain\"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(C,f){this._hasFocus||(f=f.collapseSelection()),f.writeToTextArea(C,this._textArea,this._hasFocus),this._textAreaState=f}writeNativeTextAreaContent(C){!this._accessibilityService.isScreenReaderOptimized()&&C===\"render\"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${C})`),this._setAndWriteTextAreaState(C,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(C){const f=this._host.getDataToCopy(),h={version:1,isFromEmptySelection:f.isFromEmptySelection,multicursorText:f.multicursorText,mode:f.mode};c.INSTANCE.set(this._browser.isFirefox?f.text.replace(/\\r\\n/g,`","vulnerability":{}},{"path":"web/public/vs/language/typescript/tsWorker.js","start_line":320,"end_line":320,"snippet":"`||hn[0]===\"\\r\");)hn.shift()}function CP(hn){for(;hn.length;){let Tr=hn[hn.length-1].trimEnd();if(Tr===\"\")hn.pop();else if(Tr.length<hn[hn.length-1].length){hn[hn.length-1]=Tr;break}else break}}function fE(){for(;;){if(gt(),j()===1)return!0;if(!(j()===5||j()===4))return!1}}function Dg(){if(!((j()===5||j()===4)&&_i(fE)))for(;j()===5||j()===4;)gt()}function jy(){if((j()===5||j()===4)&&_i(fE))return\"\";let hn=t.hasPrecedingLineBreak(),Tr=!1,gr=\"\";for(;hn&&j()===42||j()===5||j()===4;)gr+=t.getTokenText(),j()===4?(hn=!0,Tr=!0,gr=\"\"):j()===42&&(hn=!1),gt();return Tr?gr:\"\"}function lD(hn){x.assert(j()===60);let Tr=t.getTokenStart();gt();let gr=gE(void 0),Ei=jy(),hi;switch(gr.escapedText){case\"author\":hi=Ss(Tr,gr,hn,Ei);break;case\"implements\":hi=Hy(Tr,gr,hn,Ei);break;case\"augments\":case\"extends\":hi=lm(Tr,gr,hn,Ei);break;case\"class\":case\"constructor\":hi=hE(Tr,m.createJSDocClassTag,gr,hn,Ei);break;case\"public\":hi=hE(Tr,m.createJSDocPublicTag,gr,hn,Ei);break;case\"private\":hi=hE(Tr,m.createJSDocPrivateTag,gr,hn,Ei);break;case\"protected\":hi=hE(Tr,m.createJSDocProtectedTag,gr,hn,Ei);break;case\"readonly\":hi=hE(Tr,m.createJSDocReadonlyTag,gr,hn,Ei);break;case\"override\":hi=hE(Tr,m.createJSDocOverrideTag,gr,hn,Ei);break;case\"deprecated\":Nr=!0,hi=hE(Tr,m.createJSDocDeprecatedTag,gr,hn,Ei);break;case\"this\":hi=T7(Tr,gr,hn,Ei);break;case\"enum\":hi=D$(Tr,gr,hn,Ei);break;case\"arg\":case\"argument\":case\"param\":return w(Tr,gr,2,hn);case\"return\":case\"returns\":hi=Be(Tr,gr,hn,Ei);break;case\"template\":hi=Jy(Tr,gr,hn,Ei);break;case\"type\":hi=kt(Tr,gr,hn,Ei);break;case\"typedef\":hi=MP(Tr,gr,hn,Ei);break;case\"callback\":hi=Ame(Tr,gr,hn,Ei);break;case\"overload\":hi=Ime(Tr,gr,hn,Ei);break;case\"satisfies\":hi=_E(Tr,gr,hn,Ei);break;case\"see\":hi=ir(Tr,gr,hn,Ei);break;case\"exception\":case\"throws\":hi=Wi(Tr,gr,hn,Ei);break;default:hi=Uy(Tr,gr,hn,Ei);break}return hi}function _p(hn,Tr,gr,Ei){return Ei||(gr+=Tr-hn),Sa(gr,Ei.slice(gr))}function Sa(hn,Tr){let gr=M(),Ei=[],hi=[],wa,ns=0,Dd;function ih(Cg){Dd||(Dd=hn),Ei.push(Cg),hn+=Cg.length}Tr!==void 0&&(Tr!==\"\"&&ih(Tr),ns=1);let Zu=j();e:for(;;){switch(Zu){case 4:ns=0,Ei.push(t.getTokenText()),hn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:x.assert(ns!==2&&ns!==3,\"whitespace shouldn't come from the scanner while saving comment text\");let Cg=t.getTokenText();Dd!==void 0&&hn+Cg.length>Dd&&(Ei.push(Cg.slice(Dd-hn)),ns=2),hn+=Cg.length;break;case 19:ns=2;let ep=t.getTokenFullStart(),uD=t.getTokenEnd()-1,tw=zl(uD);tw?(hi.push(Ut(m.createJSDocText(Ei.join(\"\")),wa??gr,ep)),hi.push(tw),Ei=[],wa=t.getTokenEnd()):ih(t.getTokenText());break;case 62:ns===3?ns=2:ns=3,ih(t.getTokenText());break;case 82:ns!==3&&(ns=2),ih(t.getTokenValue());break;case 42:if(ns===0){ns=1,hn+=1;break}default:ns!==3&&(ns=2),ih(t.getTokenText());break}ns===2||ns===3?Zu=bt(ns===3):Zu=gt()}DP(Ei);let Lm=Ei.join(\"\").trimEnd();if(hi.length)return Lm.length&&hi.push(Ut(m.createJSDocText(Lm),wa??gr)),ho(hi,gr,t.getTokenEnd());if(Lm.length)return Lm}function zl(hn){let Tr=ui(p1);if(!Tr)return;gt(),Dg();let gr=mE(),Ei=[];for(;j()!==20&&j()!==4&&j()!==1;)Ei.push(t.getTokenText()),gt();let hi=Tr===\"link\"?m.createJSDocLink:Tr===\"linkcode\"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return Ut(hi(gr,Ei.join(\"\")),hn,t.getTokenEnd())}function mE(){if(Md(j())){let hn=M(),Tr=tc();for(;$i(25);)Tr=Ut(m.createQualifiedName(Tr,j()===81?ys(80,!1):ls()),hn);for(;j()===81;)ti(),gt(),Tr=Ut(m.createJSDocMemberName(Tr,ls()),hn);return Tr}}function p1(){if(jy(),j()===19&&gt()===60&&Md(gt())){let hn=t.getTokenValue();if(NP(hn))return hn}}function NP(hn){return hn===\"link\"||hn===\"linkcode\"||hn===\"linkplain\"}function Uy(hn,Tr,gr,Ei){return Ut(m.createJSDocUnknownTag(Tr,_p(hn,M(),gr,Ei)),hn)}function PP(hn){hn&&(Ma?Ma.push(hn):(Ma=[hn],lf=hn.pos),v_=hn.end)}function Un(){return jy(),j()===19?Fe():void 0}function y(){let hn=Rv(23);hn&&Dg();let Tr=Rv(62),gr=dD();return Tr&&ua(62),hn&&(Dg(),Uo(64)&&we(),_n(24)),{name:gr,isBracketed:hn}}function D(hn){switch(hn.kind){case 151:return!0;case 188:return D(hn.elementType);default:return Yp(hn)&&Me(hn.typeName)&&hn.typeName.escapedText===\"Object\"&&!hn.typeArguments}}function w(hn,Tr,gr,Ei){let hi=Un(),wa=!hi;jy();let{name:ns,isBracketed:Dd}=y(),ih=jy();wa&&!_i(p1)&&(hi=Un());let Zu=_p(hn,M(),Ei,ih),Lm=ie(hi,ns,gr,Ei);Lm&&(hi=Lm,wa=!0);let Cg=gr===1?m.createJSDocPropertyTag(Tr,ns,Dd,hi,wa,Zu):m.createJSDocParameterTag(Tr,ns,Dd,hi,wa,Zu);return Ut(Cg,hn)}function ie(hn,Tr,gr,Ei){if(hn&&D(hn.type)){let hi=M(),wa,ns;for(;wa=ui(()=>I7(gr,Ei,Tr));)wa.kind===348||wa.kind===355?ns=pn(ns,wa):wa.kind===352&&Re(wa.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ns){let Dd=Ut(m.createJSDocTypeLiteral(ns,hn.type.kind===188),hi);return Ut(m.createJSDocTypeExpression(Dd),hi)}}}function Be(hn,Tr,gr,Ei){ct(Ma,T6)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Un();return Ut(m.createJSDocReturnTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function kt(hn,Tr,gr,Ei){ct(Ma,gN)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Fe(!0),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocTypeTag(Tr,hi,wa),hn)}function ir(hn,Tr,gr,Ei){let wa=j()===23||_i(()=>gt()===60&&Md(gt())&&NP(t.getTokenValue()))?void 0:mt(),ns=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSeeTag(Tr,wa,ns),hn)}function Wi(hn,Tr,gr,Ei){let hi=Un(),wa=_p(hn,M(),gr,Ei);return Ut(m.createJSDocThrowsTag(Tr,hi,wa),hn)}function Ss(hn,Tr,gr,Ei){let hi=M(),wa=Mm(),ns=t.getTokenFullStart(),Dd=_p(hn,ns,gr,Ei);Dd||(ns=t.getTokenFullStart());let ih=typeof Dd!=\"string\"?ho(ro([Ut(wa,hi,ns)],Dd),hi):wa.text+Dd;return Ut(m.createJSDocAuthorTag(Tr,ih),hn)}function Mm(){let hn=[],Tr=!1,gr=t.getToken();for(;gr!==1&&gr!==4;){if(gr===30)Tr=!0;else{if(gr===60&&!Tr)break;if(gr===32&&Tr){hn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}hn.push(t.getTokenText()),gr=gt()}return m.createJSDocText(hn.join(\"\"))}function Hy(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocImplementsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function lm(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocAugmentsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function _E(hn,Tr,gr,Ei){let hi=Fe(!1),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSatisfiesTag(Tr,hi,wa),hn)}function R$(){let hn=$i(19),Tr=M(),gr=Tme();t.setInJSDocType(!0);let Ei=uE();t.setInJSDocType(!1);let hi=m.createExpressionWithTypeArguments(gr,Ei),wa=Ut(hi,Tr);return hn&&_n(20),wa}function Tme(){let hn=M(),Tr=gE();for(;$i(25);){let gr=gE();Tr=Ut(K(Tr,gr),hn)}return Tr}function hE(hn,Tr,gr,Ei,hi){return Ut(Tr(gr,_p(hn,M(),Ei,hi)),hn)}function T7(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocThisTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function D$(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocEnumTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function MP(hn,Tr,gr,Ei){let hi=Un();jy();let wa=A7();Dg();let ns=Sa(gr),Dd;if(!hi||D(hi.type)){let Zu,Lm,Cg,ep=!1;for(;(Zu=ui(()=>P$(gr)))&&Zu.kind!==352;)if(ep=!0,Zu.kind===351)if(Lm){let uD=Qt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);uD&&fa(uD,Ix(_e,Te,0,0,f.The_tag_was_first_specified_here));break}else Lm=Zu;else Cg=pn(Cg,Zu);if(ep){let uD=hi&&hi.type.kind===188,tw=m.createJSDocTypeLiteral(Cg,uD);hi=Lm&&Lm.typeExpression&&!D(Lm.typeExpression.type)?Lm.typeExpression:Ut(tw,hn),Dd=hi.end}}Dd=Dd||ns!==void 0?M():(wa??hi??Tr).end,ns||(ns=_p(hn,Dd,gr,Ei));let ih=m.createJSDocTypedefTag(Tr,hi,wa,ns);return Ut(ih,hn,Dd)}function A7(hn){let Tr=t.getTokenStart();if(!Md(j()))return;let gr=gE();if($i(25)){let Ei=A7(!0),hi=m.createModuleDeclaration(void 0,gr,Ei,hn?8:void 0);return Ut(hi,Tr)}return hn&&(gr.flags|=4096),gr}function C$(hn){let Tr=M(),gr,Ei;for(;gr=ui(()=>I7(4,hn));){if(gr.kind===352){Re(gr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ei=pn(Ei,gr)}return ho(Ei||[],Tr)}function N$(hn,Tr){let gr=C$(Tr),Ei=ui(()=>{if(Rv(60)){let hi=lD(Tr);if(hi&&hi.kind===349)return hi}});return Ut(m.createJSDocSignature(void 0,gr,Ei),hn)}function Ame(hn,Tr,gr,Ei){let hi=A7();Dg();let wa=Sa(gr),ns=N$(hn,gr);wa||(wa=_p(hn,M(),gr,Ei));let Dd=wa!==void 0?M():ns.end;return Ut(m.createJSDocCallbackTag(Tr,ns,hi,wa),hn,Dd)}function Ime(hn,Tr,gr,Ei){Dg();let hi=Sa(gr),wa=N$(hn,gr);hi||(hi=_p(hn,M(),gr,Ei));let ns=hi!==void 0?M():wa.end;return Ut(m.createJSDocOverloadTag(Tr,wa,hi),hn,ns)}function cD(hn,Tr){for(;!Me(hn)||!Me(Tr);)if(!Me(hn)&&!Me(Tr)&&hn.right.escapedText===Tr.right.escapedText)hn=hn.left,Tr=Tr.left;else return!1;return hn.escapedText===Tr.escapedText}function P$(hn){return I7(1,hn)}function I7(hn,Tr,gr){let Ei=!0,hi=!1;for(;;)switch(gt()){case 60:if(Ei){let wa=q0(hn,Tr);return wa&&(wa.kind===348||wa.kind===355)&&gr&&(Me(wa.name)||!cD(gr,wa.name.left))?!1:wa}hi=!1;break;case 4:Ei=!0,hi=!1;break;case 42:hi&&(Ei=!1),hi=!0;break;case 80:Ei=!1;break;case 1:return!1}}function q0(hn,Tr){x.assert(j()===60);let gr=t.getTokenFullStart();gt();let Ei=gE(),hi=jy(),wa;switch(Ei.escapedText){case\"type\":return hn===1&&kt(gr,Ei);case\"prop\":case\"property\":wa=1;break;case\"arg\":case\"argument\":case\"param\":wa=6;break;case\"template\":return Jy(gr,Ei,Tr,hi);case\"this\":return T7(gr,Ei,Tr,hi);default:return!1}return hn&wa?w(gr,Ei,hn,Tr):!1}function Yn(){let hn=M(),Tr=Rv(23);Tr&&Dg();let gr=eh(!1,!0),Ei=gE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),hi;if(Tr&&(Dg(),_n(64),hi=Ea(16777216,nm),_n(24)),!_l(Ei))return Ut(m.createTypeParameterDeclaration(gr,Ei,void 0,hi),hn)}function qy(){let hn=M(),Tr=[];do{Dg();let gr=Yn();gr!==void 0&&Tr.push(gr),jy()}while(Rv(28));return ho(Tr,hn)}function Jy(hn,Tr,gr,Ei){let hi=j()===19?Fe():void 0,wa=qy();return Ut(m.createJSDocTemplateTag(Tr,hi,wa,_p(hn,M(),gr,Ei)),hn)}function Rv(hn){return j()===hn?(gt(),!0):!1}function dD(){let hn=gE();for($i(23)&&_n(24);$i(25);){let Tr=gE();$i(23)&&_n(24),hn=Ye(hn,Tr)}return hn}function gE(hn){if(!Md(j()))return ys(80,!hn,hn||f.Identifier_expected);Vt++;let Tr=t.getTokenStart(),gr=t.getTokenEnd(),Ei=j(),hi=Pc(t.getTokenValue()),wa=Ut(C(hi,Ei),Tr,gr);return gt(),wa}}})(g_=e.JSDocParser||(e.JSDocParser={}))})(zb||(zb={})),(e=>{function t(S,A,C,R){if(R=R||x.shouldAssert(2),m(S,A,C,R),Iee(C))return S;if(S.statements.length===0)return zb.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let L=S;x.assert(!L.hasBeenIncrementallyParsed),L.hasBeenIncrementallyParsed=!0,zb.fixupParentReferences(L);let G=S.text,U=v(S),K=p(S,C);m(S,A,K,R),x.assert(K.span.start<=C.span.start),x.assert(Al(K.span)===Al(C.span)),x.assert(Al(ZD(K))===Al(ZD(C)));let F=ZD(K).length-K.span.length;d(L,K.span.start,Al(K.span),Al(ZD(K)),F,G,A,R);let oe=zb.parseSourceFile(S.fileName,A,S.languageVersion,U,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return oe.commentDirectives=r(S.commentDirectives,oe.commentDirectives,K.span.start,Al(K.span),F,G,A,R),oe.impliedNodeFormat=S.impliedNodeFormat,oe}e.updateSourceFile=t;function r(S,A,C,R,L,G,U,K){if(!S)return A;let F,oe=!1;for(let $ of S){let{range:de,type:fe}=$;if(de.end<C)F=pn(F,$);else if(de.pos>R){W();let q={range:{pos:de.pos+L,end:de.end+L},type:fe};F=pn(F,q),K&&x.assert(G.substring(de.pos,de.end)===U.substring(q.range.pos,q.range.end))}}return W(),F;function W(){oe||(oe=!0,F?A&&F.push(...A):F=A)}}function i(S,A,C,R,L,G){A?K(S):U(S);return;function U(F){let oe=\"\";if(G&&o(F)&&(oe=R.substring(F.pos,F.end)),F._children&&(F._children=void 0),F_(F,F.pos+C,F.end+C),G&&o(F)&&x.assert(oe===L.substring(F.pos,F.end)),Ao(F,U,K),ap(F))for(let W of F.jsDoc)U(W);l(F,G)}function K(F){F._children=void 0,F_(F,F.pos+C,F.end+C);for(let oe of F)U(oe)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,C,R,L){x.assert(S.end>=A,\"Adjusting an element that was entirely before the change range\"),x.assert(S.pos<=C,\"Adjusting an element that was entirely after the change range\"),x.assert(S.pos<=S.end);let G=Math.min(S.pos,R),U=S.end>=C?S.end+L:Math.min(S.end,R);x.assert(G<=U),S.parent&&(x.assertGreaterThanOrEqual(G,S.parent.pos),x.assertLessThanOrEqual(U,S.parent.end)),F_(S,G,U)}function l(S,A){if(A){let C=S.pos,R=L=>{x.assert(L.pos>=C),C=L.end};if(ap(S))for(let L of S.jsDoc)R(L);Ao(S,R),x.assert(C<=S.end)}}function d(S,A,C,R,L,G,U,K){F(S);return;function F(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!1,L,G,U,K);return}let $=W.end;if($>=A){if(W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L),Ao(W,F,oe),ap(W))for(let de of W.jsDoc)F(de);l(W,K);return}x.assert($<A)}function oe(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!0,L,G,U,K);return}let $=W.end;if($>=A){W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L);for(let de of W)F(de);return}x.assert($<A)}}function p(S,A){let R=A.span.start;for(let U=0;R>0&&U<=1;U++){let K=h(S,R);x.assert(K.pos<=R);let F=K.pos;R=Math.max(0,F-1)}let L=Gl(R,Al(A.span)),G=A.newLength+(A.span.start-R);return FM(L,G)}function h(S,A){let C=S,R;if(Ao(S,G),R){let U=L(R);U.pos>C.pos&&(C=U)}return C;function L(U){for(;;){let K=yV(U);if(K)U=K;else return U}}function G(U){if(!_l(U))if(U.pos<=A){if(U.pos>=C.pos&&(C=U),A<U.end)return Ao(U,G),!0;x.assert(U.end<=A),R=U}else return x.assert(U.pos>A),!0}}function m(S,A,C,R){let L=S.text;if(C&&(x.assert(L.length-C.span.length+C.newLength===A.length),R||x.shouldAssert(3))){let G=L.substr(0,C.span.start),U=A.substr(0,C.span.start);x.assert(G===U);let K=L.substring(Al(C.span),L.length),F=A.substring(Al(ZD(C)),A.length);x.assert(K===F)}}function v(S){let A=S.statements,C=0;x.assert(C<A.length);let R=A[C],L=-1;return{currentNode(U){return U!==L&&(R&&R.end===U&&C<A.length-1&&(C++,R=A[C]),(!R||R.pos!==U)&&G(U)),L=U,x.assert(!R||R.pos===U),R}};function G(U){A=void 0,C=-1,R=void 0,Ao(S,K,F);return;function K(oe){return U>=oe.pos&&U<oe.end?(Ao(oe,K,F),!0):!1}function F(oe){if(U>=oe.pos&&U<oe.end)for(let W=0;W<oe.length;W++){let $=oe[W];if($){if($.pos===U)return A=oe,C=W,R=$,!0;if($.pos<U&&U<$.end)return Ao($,K,F),!0}}return!1}}}e.createSyntaxCursor=v;let E;(S=>{S[S.Value=-1]=\"Value\"})(E||(E={}))})(Zj||(Zj={})),eU=new Map,wEe=/^\\/\\/\\/\\s*<(\\S+)\\s.*?\\/>/im,WEe=/^\\/\\/\\/?\\s*@([^\\s:]+)(.*)\\s*$/im}});function O6(e){let t=new Map,r=new Map;return an(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function Xx(){return E0e||(E0e=O6(Nh))}function Mie(e){return FEe(e,bl)}function FEe(e,t){let r=bo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(\", \");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function w6(e,t,r){return h0e(e,(t??\"\").trim(),r)}function Lie(e,t=\"\",r){if(t=t.trim(),Ui(t,\"-\"))return;if(e.type===\"listOrElement\"&&!t.includes(\",\"))return vI(e,t,r);if(t===\"\")return[];let i=t.split(\",\");switch(e.element.type){case\"number\":return Fi(i,o=>vI(e.element,parseInt(o),r));case\"string\":return Fi(i,o=>vI(e.element,o||\"\",r));case\"boolean\":case\"object\":return x.fail(`List of ${e.element.type} is not yet supported.`);default:return Fi(i,o=>w6(e.element,o,r))}}function zEe(e){return e.name}function kie(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return Bb(o,i,t.alternateMode.diagnostic,e);let l=VD(e,t.optionDeclarations,zEe);return l?Bb(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):Bb(o,i,t.unknownOptionDiagnostic,r||e)}function tU(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;m<h.length;){let v=h[m];if(m++,v.charCodeAt(0)===64)p(v.slice(1));else if(v.charCodeAt(0)===45){let E=v.slice(v.charCodeAt(1)===45?2:1),S=Oie(e.getOptionsNameMap,E,!0);if(S)m=BEe(h,m,e,S,i,l);else{let A=Oie(q6.getOptionsNameMap,E,!0);A?m=BEe(h,m,q6,A,o||(o={}),l):l.push(kie(E,e,v))}}else s.push(v)}}function p(h){let m=SN(h,r||(S=>Hc.readFile(S)));if(!fo(m)){l.push(m);return}let v=[],E=0;for(;;){for(;E<m.length&&m.charCodeAt(E)<=32;)E++;if(E>=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E<m.length&&m.charCodeAt(E)!==34;)E++;E<m.length?(v.push(m.substring(S+1,E)),E++):l.push(bl(f.Unterminated_quoted_string_in_response_file_0,h))}else{for(;m.charCodeAt(E)>32;)E++;v.push(m.substring(S,E))}}d(v)}}function BEe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l===\"null\"?(o[i.name]=void 0,t++):i.type===\"boolean\"?l===\"false\"?(o[i.name]=vI(i,!1,s),t++):(l===\"true\"&&t++,s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!Ui(l,\"-\")&&t++)}else if(!e[t]&&i.type!==\"boolean\"&&s.push(bl(r.optionTypeMismatchDiagnostic,i.name,oU(i))),e[t]!==\"null\")switch(i.type){case\"number\":o[i.name]=vI(i,parseInt(e[t]),s),t++;break;case\"boolean\":let l=e[t];o[i.name]=vI(i,l!==\"false\",s),(l===\"false\"||l===\"true\")&&t++;break;case\"string\":o[i.name]=vI(i,e[t]||\"\",s),t++;break;case\"list\":let d=Lie(i,e[t],s);o[i.name]=d||[],d&&t++;break;case\"listOrElement\":x.fail(\"listOrElement not supported here\");break;default:o[i.name]=w6(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function GEe(e,t){return tU(Q2,e,t)}function nU(e,t){return Oie(Xx,e,t)}function Oie(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function VEe(){return T0e||(T0e=O6(U6))}function jEe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=tU(I0e,e),s=t;return i.length===0&&i.push(\".\"),s.clean&&s.force&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"force\")),s.clean&&s.verbose&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"verbose\")),s.clean&&s.watch&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"watch\")),s.watch&&s.dry&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"watch\",\"dry\")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function UEe(e,...t){return Fo(bl(e,...t).messageText,fo)}function V2(e,t,r,i,o,s){let l=SN(e,h=>r.readFile(h));if(!fo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=G2(e,l),p=r.getCurrentDirectory();return d.path=ks(e,p,od(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,H2(d,r,Qi(Ur(e),p),t,Qi(e,p),void 0,s,i,o)}function j2(e,t){let r=SN(e,t);return fo(r)?rU(e,r):{config:{},error:r}}function rU(e,t){let r=G2(e,t);return{config:XEe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function wie(e,t){let r=SN(e,t);return fo(r)?G2(e,r):{fileName:e,parseDiagnostics:[r]}}function SN(e,t){let r;try{r=t(e)}catch(i){return bl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?bl(f.Cannot_read_file_0,e):r}function iU(e){return PE(e,zEe)}function HEe(){return x0e||(x0e=O6(Yx))}function qEe(){return R0e||(R0e=iU(Nh))}function JEe(){return D0e||(D0e=iU(Yx))}function KEe(){return C0e||(C0e=iU($2))}function R4e(){return $ie===void 0&&($ie={name:void 0,type:\"object\",elementOptions:iU([Kie,Xie,Yie,Z2,{name:\"references\",type:\"list\",element:{name:\"references\",type:\"object\"},category:f.Projects},{name:\"files\",type:\"list\",element:{name:\"files\",type:\"string\"},category:f.File_Management},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},J2])}),$ie}function XEe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(vf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,Ll(e.fileName)===\"jsconfig.json\"?\"jsconfig.json\":\"tsconfig.json\")),Bd(o)){let s=Dr(o.elements,ma);if(s)return U2(e,s,t,!0,r)}return{}}return U2(e,o,t,!0,r)}function Wie(e,t){var r;return U2(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function U2(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var v;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(vf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(vf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,\"?\")),p(S.name)||r.push(vf(e,S.name,f.String_literal_with_double_quotes_expected));let A=aL(S.name)?void 0:$1(S.name),C=A&&Ii(A),R=C?(v=m?.elementOptions)==null?void 0:v.get(C):void 0,L=d(S.initializer,R);typeof C<\"u\"&&(i&&(E[C]=L),o?.onPropertySet(C,L,S,m,R))}return E}function l(h,m){if(!i){h.forEach(v=>d(v,m));return}return Cr(h.map(v=>d(v,m)),v=>v!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(vf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(vf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,oU(m))):r.push(vf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return da(h)&&IW(h,e)}}function oU(e){return e.type===\"listOrElement\"?`${oU(e.element)} or Array`:e.type===\"list\"?\"Array\":fo(e.type)?e.type:\"string\"}function YEe(e,t){if(e){if(q2(t))return!e.disallowNullOrUndefined;if(e.type===\"list\")return oo(t);if(e.type===\"listOrElement\")return oo(t)||YEe(e.element,t);let r=fo(e.type)?e.type:\"string\";return typeof t===r}return!1}function $Ee(e,t,r){var i,o,s;let l=od(r.useCaseSensitiveFileNames),d=nn(Cr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?C4e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ug),A=>RM(Qi(t,r.getCurrentDirectory()),Qi(A,r.getCurrentDirectory()),l)),p={configFilePath:Qi(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=F6(e.options,p),m=e.watchOptions&&N4e(e.watchOptions),v={compilerOptions:{...W6(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&W6(m),references:nn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:\"\",originalPath:void 0})),files:yn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:D4e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in Ul)if(!E.has(A)&&ct(Ul[A].dependencies,C=>E.has(C))){let C=Ul[A].computeValue(e.options),R=Ul[A].computeValue({});C!==R&&(S[A]=Ul[A].computeValue(e.options))}return R1(v.compilerOptions,W6(F6(S,p))),v}function W6(e){return{...bo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function D4e(e){if(yn(e)){if(yn(e)!==1)return e;if(e[0]!==J6)return e}}function C4e(e,t,r,i){if(!t)return Ug;let o=dF(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&iy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&iy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ug}function QEe(e){switch(e.type){case\"string\":case\"number\":case\"boolean\":case\"object\":return;case\"list\":case\"listOrElement\":return QEe(e.element);default:return e.type}}function aU(e,t){return hc(t,(r,i)=>{if(r===e)return i})}function F6(e,t){return ZEe(e,Xx(),t)}function N4e(e){return ZEe(e,HEe())}function ZEe(e,{optionsNameMap:t},r){let i=new Map,o=r&&od(r.useCaseSensitiveFileNames);for(let s in e)if(rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){x.assert(d.type!==\"listOrElement\");let p=QEe(d);p?d.type===\"list\"?i.set(s,l.map(h=>aU(h,p))):i.set(s,aU(l,p)):r&&d.isFilePath?i.set(s,RM(r.configFilePath,Qi(l,Ur(r.configFilePath)),o)):i.set(s,l)}}return i}function e0e(e,t){let r=t0e(e);return o();function i(s){return Array(s+1).join(\" \")}function o(){let s=[],l=i(2);return uU.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=Uie(d);p!==h?s.push(`${l}${d.name}: ${p}`):rs(H6,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function t0e(e){let t=Xw(e,H6);return F6(t)}function n0e(e,t,r){let i=t0e(e);return l();function o(d){return Array(d+1).join(\" \")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of Nh)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:\"\"}),m.push({value:`/* ${vo(A)} */`});for(let C of S){let R;i.has(C.name)?R=`\"${C.name}\": ${JSON.stringify(i.get(C.name))}${(h+=1)===i.size?\"\":\",\"}`:R=`// \"${C.name}\": ${JSON.stringify(Uie(C))},`,m.push({value:R,description:`/* ${C.description&&vo(C.description)||C.name} */`}),p=Math.max(R.length,p)}});let v=o(2),E=[];E.push(\"{\"),E.push(`${v}\"compilerOptions\": {`),E.push(`${v}${v}/* ${vo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push(\"\");for(let S of m){let{value:A,description:C=\"\"}=S;E.push(A&&`${v}${v}${A}${C&&o(p-A.length+2)+C}`)}if(t.length){E.push(`${v}},`),E.push(`${v}\"files\": [`);for(let S=0;S<t.length;S++)E.push(`${v}${v}${JSON.stringify(t[S])}${S===t.length-1?\"\":\",\"}`);E.push(`${v}]`)}else E.push(`${v}}`);return E.push(\"}\"),E.join(r)+r}}function sU(e,t){let r={},i=Xx().optionsNameMap;for(let o in e)rs(e,o)&&(r[o]=P4e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function P4e(e,t,r){if(e&&!q2(t)){if(e.type===\"list\"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);x.assert(e.type!==\"listOrElement\")}return t}function r0e(e,t,r,i,o,s,l,d,p){return o0e(e,void 0,t,r,i,p,o,s,l,d)}function H2(e,t,r,i,o,s,l,d,p){var h,m;(h=qn)==null||h.push(qn.Phase.Parse,\"parseJsonSourceFileConfigFileContent\",{path:e.fileName});let v=o0e(void 0,e,t,r,i,p,o,s,l,d);return(m=qn)==null||m.pop(),v}function lU(e,t){t&&Object.defineProperty(e,\"configFile\",{enumerable:!1,writable:!1,value:t})}function q2(e){return e==null}function i0e(e,t){return Ur(Qi(e,t))}function o0e(e,t,r,i,o={},s,l,d=[],p=[],h){x.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let m=[],v=l0e(e,t,r,i,l,d,m,h),{raw:E}=v,S=Xw(o,v.options||{}),A=s&&v.watchOptions?Xw(s,v.watchOptions):v.watchOptions||s;S.configFilePath=l&&ad(l);let C=L();t&&(t.configFileSpecs=C),lU(S,t);let R=Yo(l?i0e(l,i):i);return{options:S,watchOptions:A,fileNames:G(R),projectReferences:U(R),typeAcquisition:v.typeAcquisition||cU(),raw:E,errors:m,wildcardDirectories:B4e(C,R,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function L(){let $=oe(\"references\",ce=>typeof ce==\"object\",\"object\"),de=K(F(\"files\"));if(de){let ce=$===\"no-prop\"||oo($)&&$.length===0,Z=rs(E,\"extends\");if(de.length===0&&ce&&!Z)if(t){let pe=l||\"tsconfig.json\",Ae=f.The_files_list_in_config_file_0_is_empty,Oe=uL(t,\"files\",be=>be.initializer),_e=Bb(t,Oe,Ae,pe);m.push(_e)}else W(f.The_files_list_in_config_file_0_is_empty,l||\"tsconfig.json\")}let fe=K(F(\"include\")),q=F(\"exclude\"),H=!1,ee=K(q);if(q===\"no-prop\"&&E.compilerOptions){let ce=E.compilerOptions.outDir,Z=E.compilerOptions.declarationDir;(ce||Z)&&(ee=[ce,Z].filter(pe=>!!pe))}de===void 0&&fe===void 0&&(fe=[J6],H=!0);let le,Ee;return fe&&(le=b0e(fe,m,!0,t,\"include\")),ee&&(Ee=b0e(ee,m,!1,t,\"exclude\")),{filesSpecs:de,includeSpecs:fe,excludeSpecs:ee,validatedFilesSpec:Cr(de,fo),validatedIncludeSpecs:le,validatedExcludeSpecs:Ee,pathPatterns:void 0,isDefaultIncludeSpec:H}}function G($){let de=AN(C,$,S,r,p);return s0e(de,TN(E),d)&&m.push(a0e(C,l)),de}function U($){let de,fe=oe(\"references\",q=>typeof q==\"object\",\"object\");if(oo(fe))for(let q of fe)typeof q.path!=\"string\"?W(f.Compiler_option_0_requires_a_value_of_type_1,\"reference.path\",\"string\"):(de||(de=[])).push({path:Qi(q.path,$),originalPath:q.path,prepend:q.prepend,circular:q.circular});return de}function K($){return oo($)?$:void 0}function F($){return oe($,fo,\"string\")}function oe($,de,fe){if(rs(E,$)&&!q2(E[$]))if(oo(E[$])){let q=E[$];return!t&&!ji(q,de)&&m.push(bl(f.Compiler_option_0_requires_a_value_of_type_1,$,fe)),q}else return W(f.Compiler_option_0_requires_a_value_of_type_1,$,\"Array\"),\"not-array\";return\"no-prop\"}function W($,...de){t||m.push(bl($,...de))}}function M4e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function a0e({includeSpecs:e,excludeSpecs:t},r){return bl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||\"tsconfig.json\",JSON.stringify(e||[]),JSON.stringify(t||[]))}function s0e(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function TN(e){return!rs(e,\"files\")&&!rs(e,\"references\")}function z6(e,t,r,i,o){let s=i.length;return s0e(e,o)?i.push(a0e(r,t)):X5(i,l=>!M4e(l)),s!==i.length}function L4e(e){return!!e.options}function l0e(e,t,r,i,o,s,l,d){var p;i=ad(i);let h=Qi(o||\"\",i);if(s.includes(h))return l.push(bl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(\" -> \"))),{raw:e||Wie(t,l)};let m=e?k4e(e,r,i,o,l):O4e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};fo(m.extendedConfigPath)?v(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>v(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=bo(E.extendedSourceFiles.keys())),m.options=R1(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?R1(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function v(E,S){let A=w4e(t,S,r,s,l,d,E);if(A&&L4e(A)){let C=A.raw,R,L=G=>{C[G]&&(E[G]=nn(C[G],U=>Ou(U)?U:wr(R||(R=KD(Ur(S),i,od(r.useCaseSensitiveFileNames))),U)))};L(\"include\"),L(\"exclude\"),L(\"files\"),C.compileOnSave!==void 0&&(E.compileOnSave=C.compileOnSave),R1(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?R1({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function k4e(e,t,r,i,o){rs(e,\"excludes\")&&o.push(bl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=m0e(e.compilerOptions,r,o,i),l=_0e(e.typeAcquisition,r,o,i),d=F4e(e.watchOptions,r,o);e.compileOnSave=W4e(e,r,o);let p=e.extends||e.extends===\"\"?c0e(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function c0e(e,t,r,i,o,s,l,d){let p,h=i?i0e(i,r):r;if(fo(e))p=d0e(e,t,h,o,l,d);else if(oo(e)){p=[];for(let m=0;m<e.length;m++){let v=e[m];fo(v)?p=pn(p,d0e(v,t,h,o,l?.elements[m],d)):eT(Z2.element,e,r,o,s,l?.elements[m],d)}}else eT(Z2,e,r,o,s,l,d);return p}function O4e(e,t,r,i,o){let s=f0e(i),l,d,p,h,m=R4e(),v=XEe(e,o,{rootOptions:m,onPropertySet:E});return l||(l=cU(i)),h&&v&&v.compilerOptions===void 0&&o.push(vf(e,h[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,$1(h[0]))),{raw:v,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p};function E(S,A,C,R,L){if(L&&L!==Z2&&(A=eT(L,A,r,o,C,C.initializer,e)),R?.name)if(L){let G;R===Kie?G=s:R===Xie?G=d??(d={}):R===Yie?G=l??(l=cU(i)):x.fail(\"Unknown option\"),G[L.name]=A}else S&&R?.extraKeyDiagnostics&&(R.elementOptions?o.push(kie(S,R.extraKeyDiagnostics,void 0,C.name,e)):o.push(vf(e,C.name,R.extraKeyDiagnostics.unknownOptionDiagnostic,S)));else R===m&&(L===Z2?p=c0e(A,t,r,i,o,C,C.initializer,e):L||(S===\"excludes\"&&o.push(vf(e,C.name,f.Unknown_option_excludes_Did_you_mean_exclude)),Dr(uU,G=>G.name===S)&&(h=pn(h,C.name))))}}function d0e(e,t,r,i,o,s){if(e=ad(e),Ou(e)||Ui(e,\"./\")||Ui(e,\"../\")){let d=Qi(e,r);if(!t.fileExists(d)&&!Zs(d,\".json\")&&(d=`${d}.json`,!t.fileExists(d))){i.push(Bb(s,o,f.File_0_not_found,e));return}return d}let l=soe(e,wr(r,\"tsconfig.json\"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===\"\"?i.push(Bb(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,\"extends\")):i.push(Bb(s,o,f.File_0_not_found,e))}function w4e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:C_(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=wie(t,v=>r.readFile(v)),h.parseDiagnostics.length||(m=l0e(void 0,h,r,Ur(t),Ll(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let v of h.extendedSourceFiles)l.extendedSourceFiles.add(v);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function W4e(e,t,r){if(!rs(e,J2.name))return!1;let i=eT(J2,e.compileOnSave,t,r);return typeof i==\"boolean\"&&i}function u0e(e,t,r){let i=[];return{options:m0e(e,t,i,r),errors:i}}function p0e(e,t,r){let i=[];return{options:_0e(e,t,i,r),errors:i}}function f0e(e){return e&&Ll(e)===\"jsconfig.json\"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function m0e(e,t,r,i){let o=f0e(i);return Fie(qEe(),e,t,o,Q2,r),i&&(o.configFilePath=ad(i)),o}function cU(e){return{enable:!!e&&Ll(e)===\"jsconfig.json\",include:[],exclude:[]}}function _0e(e,t,r,i){let o=cU(i);return Fie(KEe(),e,t,o,Jie,r),o}function F4e(e,t,r){return Fie(JEe(),e,t,void 0,q6,r)}function Fie(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=eT(d,t[l],r,s):s.push(kie(l,o))}return i}}function Bb(e,t,r,...i){return e&&t?vf(e,t,r,...i):bl(r,...i)}function eT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(Bb(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(YEe(e,t)){let d=e.type;if(d===\"list\"&&oo(t))return g0e(e,t,r,i,o,s,l);if(d===\"listOrElement\")return oo(t)?g0e(e,t,r,i,o,s,l):eT(e.element,t,r,i,o,s,l);if(!fo(e.type))return h0e(e,t,i,s,l);let p=vI(e,t,i,s,l);return q2(p)?p:z4e(e,r,p)}else i.push(Bb(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,oU(e)))}function z4e(e,t,r){return e.isFilePath&&(r=Qi(r,t),r===\"\"&&(r=\".\")),r}function vI(e,t,r,i,o){var s;if(q2(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(Bb(o,i,...l))}function h0e(e,t,r,i,o){if(q2(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return vI(e,l,r,i,o);r.push(FEe(e,(d,...p)=>Bb(o,i,d,...p)))}function g0e(e,t,r,i,o,s,l){return Cr(nn(t,(d,p)=>eT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function AN(e,t,r,i,o=je){t=Yo(t);let s=od(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,E=GC(r,o),S=YL(r,E);if(h)for(let L of h){let G=Qi(L,t);l.set(s(G),G)}let A;if(m&&m.length>0)for(let L of i.readDirectory(t,Ff(S),v,m,void 0)){if(el(L,\".json\")){if(!A){let K=m.filter(oe=>Zs(oe,\".json\")),F=nn(lF(K,t,\"files\"),oe=>`^${oe}$`);A=F?F.map(oe=>iy(oe,i.useCaseSensitiveFileNames)):je}if(Tl(A,K=>K.test(L))!==-1){let K=s(L);!l.has(K)&&!p.has(K)&&p.set(K,L)}continue}if(V4e(L,l,d,E,s))continue;j4e(L,d,E,s);let G=s(L);!l.has(G)&&!d.has(G)&&d.set(G,L)}let C=bo(l.values()),R=bo(d.values());return C.concat(R,bo(p.values()))}function zie(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!yn(l)||!yn(d))return!1;r=Yo(r);let p=od(i);if(s){for(let h of s)if(p(Qi(h,r))===e)return!1}return y0e(e,d,i,o,r)}function v0e(e){let t=Ui(e,\"**/\")?0:e.indexOf(\"/**/\");return t===-1?!1:(Zs(e,\"/..\")?e.length:e.lastIndexOf(\"/../\"))>t}function B6(e,t,r,i){return y0e(e,Cr(t,o=>!v0e(o)),r,i)}function y0e(e,t,r,i,o){let s=BC(t,wr(Yo(i),o),\"exclude\"),l=s&&iy(s,r);return l?l.test(e)?!0:!TA(e)&&l.test(_c(e)):!1}function b0e(e,t,r,i,o){return e.filter(l=>{if(!fo(l))return!1;let d=Bie(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=fW(i,o,d);return Bb(i,p,l,d)}}function Bie(e,t){if(x.assert(typeof e==\"string\"),t&&N0e.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(v0e(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B4e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=BC(t,r,\"exclude\"),s=o&&new RegExp(o,i?\"\":\"i\"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=Yo(wr(r,h));if(s&&s.test(m))continue;let v=G4e(m,i);if(v){let{key:E,path:S,flags:A}=v,C=d.get(E),R=C!==void 0?l[C]:void 0;(R===void 0||R<A)&&(l[C!==void 0?C:S]=A,C===void 0&&d.set(E,S),A===1&&p.push(E))}}for(let h in l)if(rs(l,h))for(let m of p){let v=Gie(h,i);v!==m&&Bf(m,v,r,!i)&&delete l[h]}}return l}function Gie(e,t){return t?e:C_(e)}function G4e(e,t){let r=P0e.exec(e);if(r){let i=e.indexOf(\"?\"),o=e.indexOf(\"*\"),s=e.lastIndexOf(Os);return{key:Gie(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(RV(e.substring(e.lastIndexOf(Os)+1))){let i=fb(e);return{key:Gie(i,t),path:i,flags:1}}}function V4e(e,t,r,i,o){let s=an(i,l=>$l(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(el(e,l)&&(l!==\".ts\"||!el(e,\".d.ts\")))return!1;let d=o(Nb(e,l));if(t.has(d)||r.has(d)){if(l===\".d.ts\"&&(el(e,\".js\")||el(e,\".jsx\")))continue;return!0}}return!1}function j4e(e,t,r,i){let o=an(r,s=>$l(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(el(e,l))return;let d=i(Nb(e,l));t.delete(d)}}function Vie(e){let t={};for(let r in e)if(rs(e,r)){let i=nU(r);i!==void 0&&(t[r]=jie(e[r],i))}return t}function jie(e,t){if(e===void 0)return e;switch(t.type){case\"object\":return\"\";case\"string\":return\"\";case\"number\":return typeof e==\"number\"?e:\"\";case\"boolean\":return typeof e==\"boolean\"?e:\"\";case\"listOrElement\":if(!oo(e))return jie(e,t.element);case\"list\":let r=t.element;return oo(e)?Fi(e,i=>jie(i,r)):\"\";default:return hc(t.type,(i,o)=>{if(i===e)return o})}}function Uie(e){switch(e.type){case\"number\":return 1;case\"boolean\":return!0;case\"string\":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t==\"string\"?t:\"\"}`:\"\";case\"list\":return[];case\"listOrElement\":return Uie(e.element);case\"object\":return{};default:let r=qw(e.type.keys());return r!==void 0?r:x.fail(\"Expected 'option.type' to have entries.\")}}var J2,Hie,IN,qie,K2,G6,Yx,X2,Y2,dU,uU,Nh,pU,fU,mU,V6,j6,_U,hU,gU,U6,$2,E0e,S0e,H6,Q2,T0e,A0e,I0e,Jie,x0e,q6,R0e,D0e,C0e,Z2,Kie,Xie,Yie,$ie,J6,N0e,P0e,U4e=pt({\"src/compiler/commandLineParser.ts\"(){\"use strict\";wo(),J2={name:\"compileOnSave\",type:\"boolean\",defaultValueDescription:!1},Hie=new Map(Object.entries({preserve:1,\"react-native\":3,react:2,\"react-jsx\":4,\"react-jsxdev\":5})),IN=new Map(OD(Hie.entries(),([e,t])=>[\"\"+t,e])),qie=[[\"es5\",\"lib.es5.d.ts\"],[\"es6\",\"lib.es2015.d.ts\"],[\"es2015\",\"lib.es2015.d.ts\"],[\"es7\",\"lib.es2016.d.ts\"],[\"es2016\",\"lib.es2016.d.ts\"],[\"es2017\",\"lib.es2017.d.ts\"],[\"es2018\",\"lib.es2018.d.ts\"],[\"es2019\",\"lib.es2019.d.ts\"],[\"es2020\",\"lib.es2020.d.ts\"],[\"es2021\",\"lib.es2021.d.ts\"],[\"es2022\",\"lib.es2022.d.ts\"],[\"es2023\",\"lib.es2023.d.ts\"],[\"esnext\",\"lib.esnext.d.ts\"],[\"dom\",\"lib.dom.d.ts\"],[\"dom.iterable\",\"lib.dom.iterable.d.ts\"],[\"dom.asynciterable\",\"lib.dom.asynciterable.d.ts\"],[\"webworker\",\"lib.webworker.d.ts\"],[\"webworker.importscripts\",\"lib.webworker.importscripts.d.ts\"],[\"webworker.iterable\",\"lib.webworker.iterable.d.ts\"],[\"webworker.asynciterable\",\"lib.webworker.asynciterable.d.ts\"],[\"scripthost\",\"lib.scripthost.d.ts\"],[\"es2015.core\",\"lib.es2015.core.d.ts\"],[\"es2015.collection\",\"lib.es2015.collection.d.ts\"],[\"es2015.generator\",\"lib.es2015.generator.d.ts\"],[\"es2015.iterable\",\"lib.es2015.iterable.d.ts\"],[\"es2015.promise\",\"lib.es2015.promise.d.ts\"],[\"es2015.proxy\",\"lib.es2015.proxy.d.ts\"],[\"es2015.reflect\",\"lib.es2015.reflect.d.ts\"],[\"es2015.symbol\",\"lib.es2015.symbol.d.ts\"],[\"es2015.symbol.wellknown\",\"lib.es2015.symbol.wellknown.d.ts\"],[\"es2016.array.include\",\"lib.es2016.array.include.d.ts\"],[\"es2016.intl\",\"lib.es2016.intl.d.ts\"],[\"es2017.date\",\"lib.es2017.date.d.ts\"],[\"es2017.object\",\"lib.es2017.object.d.ts\"],[\"es2017.sharedmemory\",\"lib.es2017.sharedmemory.d.ts\"],[\"es2017.string\",\"lib.es2017.string.d.ts\"],[\"es2017.intl\",\"lib.es2017.intl.d.ts\"],[\"es2017.typedarrays\",\"lib.es2017.typedarrays.d.ts\"],[\"es2018.asyncgenerator\",\"lib.es2018.asyncgenerator.d.ts\"],[\"es2018.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"es2018.intl\",\"lib.es2018.intl.d.ts\"],[\"es2018.promise\",\"lib.es2018.promise.d.ts\"],[\"es2018.regexp\",\"lib.es2018.regexp.d.ts\"],[\"es2019.array\",\"lib.es2019.array.d.ts\"],[\"es2019.object\",\"lib.es2019.object.d.ts\"],[\"es2019.string\",\"lib.es2019.string.d.ts\"],[\"es2019.symbol\",\"lib.es2019.symbol.d.ts\"],[\"es2019.intl\",\"lib.es2019.intl.d.ts\"],[\"es2020.bigint\",\"lib.es2020.bigint.d.ts\"],[\"es2020.date\",\"lib.es2020.date.d.ts\"],[\"es2020.promise\",\"lib.es2020.promise.d.ts\"],[\"es2020.sharedmemory\",\"lib.es2020.sharedmemory.d.ts\"],[\"es2020.string\",\"lib.es2020.string.d.ts\"],[\"es2020.symbol.wellknown\",\"lib.es2020.symbol.wellknown.d.ts\"],[\"es2020.intl\",\"lib.es2020.intl.d.ts\"],[\"es2020.number\",\"lib.es2020.number.d.ts\"],[\"es2021.promise\",\"lib.es2021.promise.d.ts\"],[\"es2021.string\",\"lib.es2021.string.d.ts\"],[\"es2021.weakref\",\"lib.es2021.weakref.d.ts\"],[\"es2021.intl\",\"lib.es2021.intl.d.ts\"],[\"es2022.array\",\"lib.es2022.array.d.ts\"],[\"es2022.error\",\"lib.es2022.error.d.ts\"],[\"es2022.intl\",\"lib.es2022.intl.d.ts\"],[\"es2022.object\",\"lib.es2022.object.d.ts\"],[\"es2022.sharedmemory\",\"lib.es2022.sharedmemory.d.ts\"],[\"es2022.string\",\"lib.es2022.string.d.ts\"],[\"es2022.regexp\",\"lib.es2022.regexp.d.ts\"],[\"es2023.array\",\"lib.es2023.array.d.ts\"],[\"es2023.collection\",\"lib.es2023.collection.d.ts\"],[\"esnext.array\",\"lib.es2023.array.d.ts\"],[\"esnext.collection\",\"lib.esnext.collection.d.ts\"],[\"esnext.symbol\",\"lib.es2019.symbol.d.ts\"],[\"esnext.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"esnext.intl\",\"lib.esnext.intl.d.ts\"],[\"esnext.disposable\",\"lib.esnext.disposable.d.ts\"],[\"esnext.bigint\",\"lib.es2020.bigint.d.ts\"],[\"esnext.string\",\"lib.es2022.string.d.ts\"],[\"esnext.promise\",\"lib.esnext.promise.d.ts\"],[\"esnext.weakref\",\"lib.es2021.weakref.d.ts\"],[\"esnext.decorators\",\"lib.esnext.decorators.d.ts\"],[\"esnext.object\",\"lib.esnext.object.d.ts\"],[\"decorators\",\"lib.decorators.d.ts\"],[\"decorators.legacy\",\"lib.decorators.legacy.d.ts\"]],K2=qie.map(e=>e[0]),G6=new Map(qie),Yx=[{name:\"watchFile\",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:\"watchDirectory\",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:\"fallbackPolling\",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:\"synchronousWatchDirectory\",type:\"boolean\",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:\"excludeDirectories\",type:\"list\",element:{name:\"excludeDirectory\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:\"excludeFiles\",type:\"list\",element:{name:\"excludeFile\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],X2=[{name:\"help\",shortName:\"h\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:\"help\",shortName:\"?\",type:\"boolean\",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:\"watch\",shortName:\"w\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:\"preserveWatchOutput\",type:\"boolean\",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:\"listFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:\"explainFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:\"listEmittedFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:\"pretty\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:\"traceResolution\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:\"diagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"extendedDiagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"generateCpuProfile\",type:\"string\",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:\"profile.cpuprofile\"},{name:\"generateTrace\",type:\"string\",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:\"incremental\",shortName:\"i\",type:\"boolean\",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declaration\",shortName:\"d\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declarationMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:\"emitDeclarationOnly\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"sourceMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:\"inlineSourceMap\",type:\"boolean\",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"assumeChangesOnlyAffectDirectDependencies\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:\"locale\",type:\"string\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],Y2={name:\"target\",shortName:\"t\",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set([\"es3\"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},dU={name:\"module\",shortName:\"m\",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},uU=[{name:\"all\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:\"version\",shortName:\"v\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:\"init\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:\"project\",shortName:\"p\",type:\"string\",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:\"build\",type:\"boolean\",shortName:\"b\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:\"showConfig\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:\"listFilesOnly\",type:\"boolean\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Y2,dU,{name:\"lib\",type:\"list\",element:{name:\"lib\",type:G6,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:\"allowJs\",type:\"boolean\",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:\"checkJs\",type:\"boolean\",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:\"jsx\",type:Hie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:\"outFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:\"outDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:\"rootDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"composite\",type:\"boolean\",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:\"tsBuildInfoFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:\".tsbuildinfo\",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:\"removeComments\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:\"noEmit\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"importHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:\"importsNotUsedAsValues\",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:\"downlevelIteration\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:\"isolatedModules\",type:\"boolean\",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"verbatimModuleSyntax\",type:\"boolean\",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:\"strict\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:\"noImplicitAny\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictNullChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictFunctionTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictBindCallApply\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictPropertyInitialization\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noImplicitThis\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"useUnknownInCatchVariables\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"alwaysStrict\",type:\"boolean\",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noUnusedLocals\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:\"noUnusedParameters\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:\"exactOptionalPropertyTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:\"noImplicitReturns\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:\"noFallthroughCasesInSwitch\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:\"noUncheckedIndexedAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:\"noImplicitOverride\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:\"noPropertyAccessFromIndexSignature\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:\"moduleResolution\",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set([\"node\"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:\"baseUrl\",type:\"string\",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:\"paths\",type:\"object\",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:\"rootDirs\",type:\"list\",isTSConfigOnly:!0,element:{name:\"rootDirs\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"typeRoots\",type:\"list\",element:{name:\"typeRoots\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:\"types\",type:\"list\",element:{name:\"types\",type:\"string\"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:\"allowSyntheticDefaultImports\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:\"esModuleInterop\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:\"preserveSymlinks\",type:\"boolean\",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:\"allowUmdGlobalAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:\"moduleSuffixes\",type:\"list\",element:{name:\"suffix\",type:\"string\"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:\"allowImportingTsExtensions\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:\"resolvePackageJsonExports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"resolvePackageJsonImports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"customConditions\",type:\"list\",element:{name:\"condition\",type:\"string\"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:\"sourceRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:\"mapRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:\"inlineSources\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"experimentalDecorators\",type:\"boolean\",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:\"emitDecoratorMetadata\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:\"jsxFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:\"`React.createElement`\"},{name:\"jsxFragmentFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:\"React.Fragment\"},{name:\"jsxImportSource\",type:\"string\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:\"react\"},{name:\"resolveJsonModule\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:\"allowArbitraryExtensions\",type:\"boolean\",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:\"out\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:\"reactNamespace\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:\"`React`\"},{name:\"skipDefaultLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:\"charset\",type:\"string\",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:\"utf8\"},{name:\"emitBOM\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:\"newLine\",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:\"lf\"},{name:\"noErrorTruncation\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:\"noLib\",type:\"boolean\",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"noResolve\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"stripInternal\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:\"disableSizeLimit\",type:\"boolean\",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:\"disableSourceOfProjectReferenceRedirect\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:\"disableSolutionSearching\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:\"disableReferencedProjectLoad\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:\"noImplicitUseStrict\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:\"noEmitHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:\"noEmitOnError\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:\"preserveConstEnums\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:\"declarationDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:\"skipLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:\"allowUnusedLabels\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:\"allowUnreachableCode\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:\"suppressExcessPropertyErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:\"suppressImplicitAnyIndexErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:\"forceConsistentCasingInFileNames\",type:\"boolean\",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:\"maxNodeModuleJsDepth\",type:\"number\",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:\"noStrictGenericChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:\"useDefineForClassFields\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:\"preserveValueImports\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:\"keyofStringsOnly\",type:\"boolean\",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:\"plugins\",type:\"list\",isTSConfigOnly:!0,element:{name:\"plugin\",type:\"object\"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:\"moduleDetection\",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:\"ignoreDeprecations\",type:\"string\",defaultValueDescription:void 0}],Nh=[...X2,...uU],pU=Nh.filter(e=>!!e.affectsSemanticDiagnostics),fU=Nh.filter(e=>!!e.affectsEmit),mU=Nh.filter(e=>!!e.affectsDeclarationPath),V6=Nh.filter(e=>!!e.affectsModuleResolution),j6=Nh.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),_U=Nh.filter(e=>!!e.affectsProgramStructure),hU=Nh.filter(e=>rs(e,\"transpileOptionValue\")),gU=[{name:\"verbose\",shortName:\"v\",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:\"boolean\",defaultValueDescription:!1},{name:\"dry\",shortName:\"d\",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:\"boolean\",defaultValueDescription:!1},{name:\"force\",shortName:\"f\",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:\"boolean\",defaultValueDescription:!1},{name:\"clean\",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:\"boolean\",defaultValueDescription:!1}],U6=[...X2,...gU],$2=[{name:\"enable\",type:\"boolean\",defaultValueDescription:!1},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"}},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"}},{name:\"disableFilenameBasedTypeAcquisition\",type:\"boolean\",defaultValueDescription:!1}],S0e={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:VEe},H6={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Q2={alternateMode:S0e,getOptionsNameMap:Xx,optionDeclarations:Nh,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},A0e={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Xx},I0e={alternateMode:A0e,getOptionsNameMap:VEe,optionDeclarations:U6,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Jie={optionDeclarations:$2,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},q6={getOptionsNameMap:HEe,optionDeclarations:Yx,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},Z2={name:\"extends\",type:\"listOrElement\",element:{name:\"extends\",type:\"string\"},category:f.File_Management,disallowNullOrUndefined:!0},Kie={name:\"compilerOptions\",type:\"object\",elementOptions:qEe(),extraKeyDiagnostics:Q2},Xie={name:\"watchOptions\",type:\"object\",elementOptions:JEe(),extraKeyDiagnostics:q6},Yie={name:\"typeAcquisition\",type:\"object\",elementOptions:KEe(),extraKeyDiagnostics:Jie},J6=\"**/*\",N0e=/(^|\\/)\\*\\*\\/?$/,P0e=/^[^*?]*(?=\\/[^/]*[*?])/}});function to(e,t,...r){e.trace(SV(t,...r))}function cg(e,t){return!!e.traceResolution&&t.trace!==void 0}function yI(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name==\"string\"&&typeof i.version==\"string\"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Os.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function vU(e){return yI(void 0,e)}function M0e(e){if(e)return x.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function K6(e){let t=[];return e&1&&t.push(\"TypeScript\"),e&2&&t.push(\"JavaScript\"),e&4&&t.push(\"Declaration\"),e&8&&t.push(\"JSON\"),t.join(\", \")}function H4e(e){let t=[];return e&1&&t.push(...l2),e&2&&t.push(...Px),e&4&&t.push(...s2),e&8&&t.push(\".json\"),t}function Qie(e){if(e)return x.assert(mF(e.extension)),{fileName:e.path,packageId:e.packageId}}function L0e(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Ic(e)){let{resolvedFileName:h,originalPath:m}=w0e(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return k0e(t,r,i,o,s,l.resultFromCache,d,p)}function k0e(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:Zie(s.failedLookupLocations,r),affectingLocations:Zie(s.affectingLocations,i),resolutionDiagnostics:Zie(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=$x(s.failedLookupLocations,r),s.affectingLocations=$x(s.affectingLocations,i),s.resolutionDiagnostics=$x(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:xN(r),affectingLocations:xN(i),resolutionDiagnostics:xN(o),alternateResult:d}}function xN(e){return e.length?e:void 0}function $x(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Zie(e,t){return e?.length?t.length?[...e,...t]:e.slice():xN(t)}function O0e(e,t,r,i){if(!rs(e,t)){i.traceEnabled&&to(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&to(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?\"null\":typeof o);return}return o}function yU(e,t,r,i){let o=O0e(e,t,\"string\",i);if(o===void 0)return;if(!o){i.traceEnabled&&to(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=Yo(wr(r,o));return i.traceEnabled&&to(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function q4e(e,t,r){return yU(e,\"typings\",t,r)||yU(e,\"types\",t,r)}function J4e(e,t,r){return yU(e,\"tsconfig\",t,r)}function K4e(e,t,r){return yU(e,\"main\",t,r)}function X4e(e,t){let r=O0e(e,\"typesVersions\",\"object\",t);if(r!==void 0)return t.traceEnabled&&to(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y4e(e,t){let r=X4e(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)rs(r,l)&&!hM.tryParse(l)&&to(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=X6(r);if(!i){t.traceEnabled&&to(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,jm);return}let{version:o,paths:s}=i;if(typeof s!=\"object\"){t.traceEnabled&&to(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,\"object\",typeof s);return}return i}function X6(e){foe||(foe=new zf(bp));for(let t in e){if(!rs(e,t))continue;let r=hM.tryParse(t);if(r!==void 0&&r.test(foe))return{version:t,paths:e[t]}}}function RN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=Ur(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $4e(r)}function $4e(e){let t;return Vf(Yo(e),r=>{let i=wr(r,iSe);(t??(t=[])).push(i)}),t}function Q4e(e,t,r){let i=typeof r.useCaseSensitiveFileNames==\"function\"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Xh(e,t,!i)===0}function w0e(e,t,r){let i=d3e(e,t,r),o=Q4e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function W0e(e,t,r){let i=Zs(e,\"/node_modules/@types\")||Zs(e,\"/node_modules/@types/\")?tSe(t,r):t;return wr(e,i)}function eoe(e,t,r,i,o,s,l){x.assert(typeof e==\"string\",\"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.\");let d=cg(r,i);o&&(r=o.commandLine.options);let p=t?Ur(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Ic(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(to(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),to(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),F(h)),h;let m=RN(r,i);d&&(t===void 0?m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let v=[],E=[],S=toe(r);l!==void 0&&(S|=30);let A=zd(r);l===99&&3<=A&&A<=99&&(S|=32);let C=S&8?hy(r,l):[],R=[],L={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:v,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:C,requestContainingDirectory:p,reportDiagnostic:$=>void R.push($),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},G=oe(),U=!0;G||(G=W(),U=!1);let K;if(G){let{fileName:$,packageId:de}=G,fe=$,q;r.preserveSymlinks||({resolvedFileName:fe,originalPath:q}=w0e($,i,d)),K={primary:U,resolvedFileName:fe,originalPath:q,packageId:de,isExternalLibraryImport:Gb($)}}return h={resolvedTypeReferenceDirective:K,failedLookupLocations:xN(v),affectingLocations:xN(E),resolutionDiagnostics:xN(R)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Ic(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&F(h),h;function F($){var de;(de=$.resolvedTypeReferenceDirective)!=null&&de.resolvedFileName?$.resolvedTypeReferenceDirective.packageId?to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,$.resolvedTypeReferenceDirective.resolvedFileName,Qv($.resolvedTypeReferenceDirective.packageId),$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,$.resolvedTypeReferenceDirective.resolvedFileName,$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_not_resolved,e)}function oe(){if(m&&m.length)return d&&to(i,f.Resolving_with_primary_search_path_0,m.join(\", \")),ml(m,$=>{let de=W0e($,e,L),fe=gm($,i);if(!fe&&d&&to(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,$),r.typeRoots){let q=eR(4,de,!fe,L);if(q){let H=tk(q.path),ee=H?m0(H,!1,L):void 0;return Qie(yI(ee,q))}}return Qie(coe(4,de,!fe,L))});d&&to(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function W(){let $=t&&Ur(t);if($!==void 0){let de;if(!r.typeRoots||!Zs(t,lR))if(d&&to(i,f.Looking_up_in_node_modules_folder_initial_location_0,$),Ic(e)){let{path:fe}=j0e($,e);de=AU(4,fe,!1,L,!0)}else{let fe=$0e(4,e,$,L,void 0,void 0);de=fe&&fe.value}else d&&to(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Qie(de)}else d&&to(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function toe(e){let t=0;switch(zd(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function hy(e,t){let r=zd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?[\"import\"]:[\"require\"];return e.noDtsResolution||i.push(\"types\"),r!==100&&i.push(\"node\"),ro(i,e.customConditions)}function bU(e,t,r,i,o){let s=nk(o?.getPackageJsonInfoCache(),i,r);return Vf(t,l=>{if(Ll(l)!==\"node_modules\"){let d=wr(l,\"node_modules\"),p=wr(d,e);return m0(p,!1,s)}})}function Y6(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=RN(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=Yo(s),d=wr(o,l,\"package.json\");if(!(t.fileExists(d)&&kC(d,t).typings===null)){let h=Ll(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function $6(e){return!!e?.contents}function noe(e){return!!e&&!e.contents}function roe(e){var t;if(e===null||typeof e!=\"object\")return\"\"+e;if(oo(e))return`[${(t=e.map(i=>roe(i)))==null?void 0:t.join(\",\")}]`;let r=\"{\";for(let i in e)rs(e,i)&&(r+=`${i}: ${roe(e[i])}`);return r+\"}\"}function EU(e,t){return t.map(r=>roe(iF(e,r))).join(\"|\")+`|${e.pathsBasePath}`}function SU(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(v){return v?p(v.commandLine.options,!1):o}function l(v){return v?p(v.commandLine.options,!0):o}function d(v){e!==v&&(e?o=p(v,!0):r.set(v,o),e=v)}function p(v,E){let S=r.get(v);if(S)return S;let A=m(v);if(S=i.get(A),!S){if(e){let C=m(e);C===A?S=o:i.has(C)||i.set(C,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(v,S),S}function h(){let v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function m(v){let E=t.get(v);return E||t.set(v,E=EU(v,V6)),E}}function Z4e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(ks(d,e,t))}function o(d,p){(r||(r=new Map)).set(ks(d,e,t),p)}function s(){r=void 0}function l(){return r}}function F0e(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function e3e(e,t,r,i){let o=SU(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let v=ks(h,e,t);return F0e(o,m,v,()=>bI())}function p(h,m,v,E){var S,A;let C=ks(v,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(C))==null?void 0:A.get(h,m)}}function DN(e,t){return t===void 0?e:`${t}|${e}`}function bI(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=DN(o,s);return t.set(l,[o,s]),l}}function t3e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function n3e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function r3e(e,t,r,i,o){let s=SU(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(v){s.update(v)}function p(v,E,S,A){var C,R;return x.assert(!Ic(v)),(R=(C=s.getMapOfCacheRedirects(A))==null?void 0:C.get(DN(v,E)))==null?void 0:R.get(S)}function h(v,E,S){return x.assert(!Ic(v)),F0e(s,S,DN(v,E),m)}function m(){let v=new Map;return{get:E,set:S};function E(C){return v.get(ks(C,e,t))}function S(C,R){let L=ks(C,e,t);if(v.has(L))return;v.set(L,R);let G=i(R),U=G&&A(L,G),K=L;for(;K!==U;){let F=Ur(K);if(F===K||v.has(F))break;v.set(F,R),K=F}}function A(C,R){let L=ks(Ur(R),e,t),G=0,U=Math.min(C.length,L.length);for(;G<U&&C.charCodeAt(G)===L.charCodeAt(G);)G++;if(G===C.length&&(L.length===G||L[G]===Os))return C;let K=M_(C);if(G<K)return;let F=C.lastIndexOf(Os,G-1);if(F!==-1)return C.substr(0,Math.max(F,K))}}}function z0e(e,t,r,i,o,s){s??(s=new Map);let l=e3e(e,t,r,s),d=r3e(e,t,r,o,s);return i??(i=Z4e(e,t)),{...i,...l,...d,clear:p,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(v){l.update(v),d.update(v)}}function Qx(e,t,r,i,o){let s=z0e(e,t,r,i,t3e,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function Q6(e,t,r,i,o){return z0e(e,t,r,i,n3e,o)}function TU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Z6(e,t,r,i,o){return Zx(e,t,TU(r),i,o)}function B0e(e,t,r,i){let o=Ur(t);return r.getFromDirectoryCache(e,i,o,void 0)}function Zx(e,t,r,i,o,s,l){var d,p,h;let m=cg(r,i);s&&(r=s.commandLine.options),m&&(to(i,f.Resolving_module_0_from_1,e,t),s&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let v=Ur(t),E=o?.getFromDirectoryCache(e,l,v,s);if(E)m&&to(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,v);else{let S=r.moduleResolution;switch(S===void 0?(S=zd(r),m&&to(i,f.Module_resolution_kind_is_not_specified_using_0,O1[S])):m&&to(i,f.Explicitly_specified_module_resolution_kind_Colon_0,O1[S]),(d=Pd)==null||d.logStartResolveModule(e),S){case 3:E=s3e(e,t,r,i,o,s,l);break;case 99:E=l3e(e,t,r,i,o,s,l);break;case 2:E=aoe(e,t,r,i,o,s,l?hy(r,l):void 0);break;case 1:E=uoe(e,t,r,i,o,s);break;case 100:E=ooe(e,t,r,i,o,s,l?hy(r,l):void 0);break;default:return x.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=Pd)==null||p.logInfoEvent(`Module \"${e}\" resolved to \"${E.resolvedModule.resolvedFileName}\"`)),(h=Pd)==null||h.logStopResolveModule(E&&E.resolvedModule?\"\"+E.resolvedModule.resolvedFileName:\"null\"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(v,s).set(e,l,E),Ic(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(v,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?to(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,Qv(E.resolvedModule.packageId)):to(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):to(i,f.Module_name_0_was_not_resolved,e)),E}function G0e(e,t,r,i,o){let s=i3e(e,t,i,o);return s?s.value:Ic(t)?o3e(e,t,r,i,o):a3e(e,t,i,o)}function i3e(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!op(t)){i.traceEnabled&&(s&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),to(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=zW(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=fF(l)):void 0;return doe(e,t,p,l,h,r,!1,i)}}function o3e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&to(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=Yo(wr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=Yo(p);Zs(h,Os)||(h+=Os);let m=Ui(s,h)&&(d===void 0||d.length<h.length);o.traceEnabled&&to(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,m),m&&(d=h,l=p)}if(d){o.traceEnabled&&to(o.host,f.Longest_matching_prefix_for_0_is_1,s,d);let p=s.substr(d.length);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,d,s);let h=i(e,s,!gm(r,o.host),o);if(h)return h;o.traceEnabled&&to(o.host,f.Trying_other_entries_in_rootDirs);for(let m of o.compilerOptions.rootDirs){if(m===l)continue;let v=wr(Yo(m),p);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,m,v);let E=Ur(v),S=i(e,v,!gm(E,o.host),o);if(S)return S}o.traceEnabled&&to(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function a3e(e,t,r,i){let{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);let s=Yo(wr(o,t));return i.traceEnabled&&to(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!gm(Ur(s),i.host),i)}function ioe(e,t,r){let{resolvedModule:i,failedLookupLocations:o}=c3e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(\", \")}`);return i.resolvedFileName}function s3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function l3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function V0e(e,t,r,i,o,s,l,d,p){let h=Ur(r),m=d===99?32:0,v=i.noDtsResolution?3:7;return Mb(i)&&(v|=8),ek(e|m,t,h,i,o,s,v,!1,l,p)}function c3e(e,t,r){return ek(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function ooe(e,t,r,i,o,s,l){let d=Ur(t),p=r.noDtsResolution?3:7;return Mb(r)&&(p|=8),ek(toe(r),e,d,r,i,o,p,!1,s,l)}function aoe(e,t,r,i,o,s,l,d){let p;return d?p=8:r.noDtsResolution?(p=3,Mb(r)&&(p|=8)):p=Mb(r)?15:7,ek(l?30:0,e,Ur(t),r,i,o,p,!!d,s,l)}function soe(e,t,r){return ek(30,e,Ur(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function ek(e,t,r,i,o,s,l,d,p,h){var m,v,E,S,A;let C=cg(i,o),R=[],L=[],G=zd(i);h??(h=hy(i,G===100||G===2?void 0:e&32?99:1));let U=[],K={compilerOptions:i,host:o,traceEnabled:C,failedLookupLocations:R,affectingLocations:L,packageJsonInfoCache:s,features:e,conditions:h??je,requestContainingDirectory:r,reportDiagnostic:$=>void U.push($),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};C&&HA(G)&&to(o,f.Resolving_in_0_mode_with_conditions_1,e&32?\"ESM\":\"CJS\",K.conditions.map($=>`'${$}'`).join(\", \"));let F;if(G===2){let $=l&5,de=l&-6;F=$&&W($,K)||de&&W(de,K)||void 0}else F=W(l,K);let oe;if(K.resolvedPackageDirectory&&!d&&!Ic(t)){let $=F?.value&&l&5&&!K0e(5,F.value.resolved.extension);if((m=F?.value)!=null&&m.isExternalLibraryImport&&$&&e&8&&h?.includes(\"import\")){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let de={...K,features:K.features&-9,reportDiagnostic:Ca},fe=W(l&5,de);(v=fe?.value)!=null&&v.isExternalLibraryImport&&(oe=fe.value.resolved.path)}else if((!F?.value||$)&&G===2){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let de={...K.compilerOptions,moduleResolution:100},fe={...K,compilerOptions:de,features:30,conditions:hy(de),reportDiagnostic:Ca},q=W(l&5,fe);(E=q?.value)!=null&&E.isExternalLibraryImport&&(oe=q.value.resolved.path)}}return L0e(t,(S=F?.value)==null?void 0:S.resolved,(A=F?.value)==null?void 0:A.isExternalLibraryImport,R,L,U,K,s,oe);function W($,de){let q=G0e($,t,r,(H,ee,le,Ee)=>AU(H,ee,le,Ee,!0),de);if(q)return Rp({resolved:q,isExternalLibraryImport:Gb(q.path)});if(Ic(t)){let{path:H,parts:ee}=j0e(r,t),le=AU($,H,!1,de,!0);return le&&Rp({resolved:le,isExternalLibraryImport:To(ee,\"node_modules\")})}else{let H;if(e&2&&Ui(t,\"#\")&&(H=m3e($,t,r,de,s,p)),!H&&e&4&&(H=f3e($,t,r,de,s,p)),!H){if(t.includes(\":\")){C&&to(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,K6($));return}C&&to(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,K6($)),H=$0e($,t,r,de,s,p)}return $&4&&(H??(H=rSe(t,de))),H&&{value:H.value&&{resolved:H.value,isExternalLibraryImport:!0}}}}}function j0e(e,t){let r=wr(e,t),i=mc(r),o=Ns(i);return{path:o===\".\"||o===\"..\"?_c(Yo(r)):Yo(r),parts:i}}function d3e(e,t,r){if(!t.realpath)return e;let i=Yo(t.realpath(e));return r&&to(t,f.Resolving_real_path_for_0_result_1,e,i),i}function AU(e,t,r,i,o){if(i.traceEnabled&&to(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,K6(e)),!Jg(t)){if(!r){let l=Ur(t);gm(l,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=eR(e,t,r,i);if(s){let l=o?tk(s.path):void 0,d=l?m0(l,!1,i):void 0;return yI(d,s)}}if(r||gm(t,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return coe(e,t,r,i,o)}function Gb(e){return e.includes(q_)}function tk(e,t){let r=Yo(e),i=r.lastIndexOf(q_);if(i===-1)return;let o=i+q_.length,s=U0e(r,o,t);return r.charCodeAt(o)===64&&(s=U0e(r,s,t)),r.slice(0,s)}function U0e(e,t,r){let i=e.indexOf(Os,t+1);return i===-1?r?e.length:t:i}function loe(e,t,r,i){return vU(eR(e,t,r,i))}function eR(e,t,r,i){let o=H0e(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=q0e(t,e,\"\",r,i);if(s)return s}}function H0e(e,t,r,i){if(!Ll(t).includes(\".\"))return;let s=Yd(t);s===t&&(s=t.substring(0,t.lastIndexOf(\".\")));let l=t.substring(s.length);return i.traceEnabled&&to(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),q0e(s,e,l,r,i)}function IU(e,t,r,i){return e&1&&$l(t,l2)||e&4&&$l(t,s2)?xU(t,r,i)!==void 0?{path:t,ext:JW(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&el(t,\".json\")?xU(t,r,i)!==void 0?{path:t,ext:\".json\",resolvedUsingTsExtension:void 0}:void 0:H0e(e,t,r,i)}function q0e(e,t,r,i,o){if(!i){let l=Ur(e);l&&(i=!gm(l,o.host))}switch(r){case\".mjs\":case\".mts\":case\".d.mts\":return t&1&&s(\".mts\",r===\".mts\"||r===\".d.mts\")||t&4&&s(\".d.mts\",r===\".mts\"||r===\".d.mts\")||t&2&&s(\".mjs\")||void 0;case\".cjs\":case\".cts\":case\".d.cts\":return t&1&&s(\".cts\",r===\".cts\"||r===\".d.cts\")||t&4&&s(\".d.cts\",r===\".cts\"||r===\".d.cts\")||t&2&&s(\".cjs\")||void 0;case\".json\":return t&4&&s(\".d.json.ts\")||t&8&&s(\".json\")||void 0;case\".tsx\":case\".jsx\":return t&1&&(s(\".tsx\",r===\".tsx\")||s(\".ts\",r===\".tsx\"))||t&4&&s(\".d.ts\",r===\".tsx\")||t&2&&(s(\".jsx\")||s(\".js\"))||void 0;case\".ts\":case\".d.ts\":case\".js\":case\"\":return t&1&&(s(\".ts\",r===\".ts\"||r===\".d.ts\")||s(\".tsx\",r===\".ts\"||r===\".d.ts\"))||t&4&&s(\".d.ts\",r===\".ts\"||r===\".d.ts\")||t&2&&(s(\".js\")||s(\".jsx\"))||o.isConfigLookup&&s(\".json\")||void 0;default:return t&4&&!Yc(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=xU(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function xU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return J0e(e,t,r);let o=og(e)??\"\",s=o?QL(e,o):e;return an(r.compilerOptions.moduleSuffixes,l=>J0e(s+l+o,t,r))}function J0e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&to(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&to(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function coe(e,t,r,i,o=!0){let s=o?m0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&e4(s,i);return yI(s,DU(e,t,r,i,l,d))}function RU(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=toe(t),p=nk(i?.getPackageJsonInfoCache(),r,t);p.conditions=hy(t),p.requestContainingDirectory=e.packageDirectory;let h=DU(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,e4(e,p));if(s=pn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=NE([hy(t,99),hy(t,1)],mm);for(let v of m){let E={...p,failedLookupLocations:[],conditions:v,host:r},S=u3e(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=Kh(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function u3e(e,t,r,i){let o;if(oo(t))for(let l of t)s(l);else if(typeof t==\"object\"&&t!==null&&t4(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l==\"string\"&&Ui(l,\"./\"))if(l.includes(\"*\")&&r.host.readDirectory){if(l.indexOf(\"*\")!==l.lastIndexOf(\"*\"))return!1;r.host.readDirectory(e.packageDirectory,H4e(i),void 0,[pee(KA(l,\"**/*\"),\".*\")]).forEach(h=>{o=Kh(o,{path:h,ext:w1(h),resolvedUsingTsExtension:void 0})})}else{let h=mc(l).slice(2);if(h.includes(\"..\")||h.includes(\".\")||h.includes(\"node_modules\"))return!1;let m=wr(e.packageDirectory,l),v=Qi(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=IU(i,v,!1,r);if(E)return o=Kh(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l==\"object\"&&l!==null)return an(fh(l),h=>{if(h===\"default\"||To(r.conditions,h)||ok(r.conditions,h))return s(l[h]),!0})}}function nk(e,t,r){return{host:t,compilerOptions:r,traceEnabled:cg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:je,requestContainingDirectory:void 0,reportDiagnostic:Ca,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function rk(e,t){let r=mc(e);for(r.pop();r.length>0;){let i=m0(Vv(r),!1,t);if(i)return i;r.pop()}}function e4(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y4e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,v=wr(e,\"package.json\");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(E!==void 0){if($6(E))return m&&to(h,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&to(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}let S=gm(e,h);if(S&&h.fileExists(v)){let A=kC(v,h);m&&to(h,f.Found_package_json_at_0,v);let C={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,C),(d=r.affectingLocations)==null||d.push(v),C}else S&&m&&to(h,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(v)}function DU(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=J4e(o,t,i):l=e&4&&q4e(o,t,i)||e&7&&K4e(o,t,i)||void 0);let d=(E,S,A,C)=>{let R=IU(E,S,A,C);if(R)return vU(R);let L=E===4?5:E,G=C.features,U=C.candidateIsFromPackageJsonField;C.candidateIsFromPackageJsonField=!0,o?.type!==\"module\"&&(C.features&=-33);let K=AU(L,S,A,C,!1);return C.features=G,C.candidateIsFromPackageJsonField=U,K},p=l?!gm(Ur(l),i.host):void 0,h=r||!gm(t,i.host),m=wr(t,i.isConfigLookup?\"tsconfig\":\"index\");if(s&&(!l||Bf(t,l))){let E=Gf(t,l||m,!1);i.traceEnabled&&to(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,bp,E);let S=doe(e,E,t,s.paths,void 0,d,p||h,i);if(S)return M0e(S.value)}let v=l&&M0e(d(e,l,p,i));if(v)return v;if(!(i.features&32))return eR(e,m,h,i)}function K0e(e,t){return e&2&&(t===\".js\"||t===\".jsx\"||t===\".mjs\"||t===\".cjs\")||e&1&&(t===\".ts\"||t===\".tsx\"||t===\".mts\"||t===\".cts\")||e&4&&(t===\".d.ts\"||t===\".d.mts\"||t===\".d.cts\")||e&8&&t===\".json\"||!1}function ik(e){let t=e.indexOf(Os);return e[0]===\"@\"&&(t=e.indexOf(Os,t+1)),t===-1?{packageName:e,rest:\"\"}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function t4(e){return ji(fh(e),t=>Ui(t,\".\"))}function p3e(e){return!ct(fh(e),t=>Ui(t,\".\"))}function f3e(e,t,r,i,o,s){var l,d;let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!=\"string\")return;let m=mc(t),v=mc(h.contents.packageJsonContent.name);if(!ji(v,(R,L)=>m[L]===R))return;let E=m.slice(v.length),S=yn(E)?`.${Os}${E.join(Os)}`:\".\";if(sy(i.compilerOptions)&&!Gb(r))return CU(h,e,S,i,o,s);let A=e&5,C=e&-6;return CU(h,A,S,i,o,s)||CU(h,C,S,i,o,s)}function CU(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r===\".\"){let l;if(typeof e.contents.packageJsonContent.exports==\"string\"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports==\"object\"&&p3e(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:rs(e.contents.packageJsonContent.exports,\".\")&&(l=e.contents.packageJsonContent.exports[\".\"]),l)return Y0e(t,i,o,s,r,e,!1)(l,\"\",!1,\".\")}else if(t4(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!=\"object\")return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0);let l=X0e(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0)}}function m3e(e,t,r,i,o,s){var l,d;if(t===\"#\"||Ui(t,\"#/\"))return i.traceEnabled&&to(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),Rp(void 0);let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h)return i.traceEnabled&&to(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),Rp(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&to(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),Rp(void 0);let m=X0e(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&to(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),Rp(void 0))}function NU(e,t){let r=e.indexOf(\"*\"),i=t.indexOf(\"*\"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function X0e(e,t,r,i,o,s,l,d){let p=Y0e(e,t,r,i,o,l,d);if(!Zs(o,Os)&&!o.includes(\"*\")&&rs(s,o)){let v=s[o];return p(v,\"\",!1,o)}let h=uS(Cr(fh(s),v=>v.includes(\"*\")||Zs(v,\"/\")),NU);for(let v of h)if(t.features&16&&m(v,o)){let E=s[v],S=v.indexOf(\"*\"),A=o.substring(v.substring(0,S).length,o.length-(v.length-1-S));return p(E,A,!0,v)}else if(Zs(v,\"*\")&&Ui(o,v.substring(0,v.length-1))){let E=s[v],S=o.substring(v.length-1);return p(E,S,!0,v)}else if(Ui(o,v)){let E=s[v],S=o.substring(v.length);return p(E,S,!1,v)}function m(v,E){if(Zs(v,\"*\"))return!1;let S=v.indexOf(\"*\");return S===-1?!1:Ui(E,v.substring(0,S))&&Zs(E,v.substring(S+1))}}function Y0e(e,t,r,i,o,s,l){return d;function d(p,h,m,v){if(typeof p==\"string\"){if(!m&&h.length>0&&!Zs(p,\"/\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);if(!Ui(p,\"./\")){if(l&&!Ui(p,\"../\")&&!Ui(p,\"/\")&&!Ou(p)){let F=m?p.replace(/\\*/g,h):p+h;gy(t,f.Using_0_subpath_1_with_target_2,\"imports\",v,F),gy(t,f.Resolving_module_0_from_1,F,s.packageDirectory+\"/\");let oe=ek(t.features,F,s.packageDirectory+\"/\",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return Rp(oe.resolvedModule?{path:oe.resolvedModule.resolvedFileName,extension:oe.resolvedModule.extension,packageId:oe.resolvedModule.packageId,originalPath:oe.resolvedModule.originalPath,resolvedUsingTsExtension:oe.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0)}let R=(op(p)?mc(p).slice(1):mc(p)).slice(1);if(R.includes(\"..\")||R.includes(\".\")||R.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);let L=wr(s.packageDirectory,p),G=mc(h);if(G.includes(\"..\")||G.includes(\".\")||G.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);t.traceEnabled&&to(t.host,f.Using_0_subpath_1_with_target_2,l?\"imports\":\"exports\",v,m?p.replace(/\\*/g,h):p+h);let U=E(m?L.replace(/\\*/g,h):L+h),K=A(U,h,wr(s.packageDirectory,\"package.json\"),l);return K||Rp(yI(s,IU(e,U,!1,t)))}else if(typeof p==\"object\"&&p!==null)if(Array.isArray(p)){if(!yn(p))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);for(let C of p){let R=d(C,h,m,v);if(R)return R}}else{gy(t,f.Entering_conditional_exports);for(let C of fh(p))if(C===\"default\"||t.conditions.includes(C)||ok(t.conditions,C)){gy(t,f.Matched_0_condition_1,l?\"imports\":\"exports\",C);let R=p[C],L=d(R,h,m,v);if(L)return gy(t,f.Resolved_under_condition_0,C),gy(t,f.Exiting_conditional_exports),L;gy(t,f.Failed_to_resolve_under_condition_0,C)}else gy(t,f.Saw_non_matching_condition_0,C);gy(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&to(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),Rp(void 0);return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);function E(C){var R,L;return C===void 0?C:Qi(C,(L=(R=t.host).getCurrentDirectory)==null?void 0:L.call(R))}function S(C,R){return _c(wr(C,R))}function A(C,R,L,G){var U,K,F,oe;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!C.includes(\"/node_modules/\")&&(!t.compilerOptions.configFile||Bf(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!PU(t)))){let $=ev({useCaseSensitiveFileNames:()=>PU(t)}),de=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let fe=E(VN(t.compilerOptions,()=>[],((K=(U=t.host).getCurrentDirectory)==null?void 0:K.call(U))||\"\",$));de.push(fe)}else if(t.requestContainingDirectory){let fe=E(wr(t.requestContainingDirectory,\"index.ts\")),q=E(VN(t.compilerOptions,()=>[fe,E(L)],((oe=(F=t.host).getCurrentDirectory)==null?void 0:oe.call(F))||\"\",$));de.push(q);let H=_c(q);for(;H&&H.length>1;){let ee=mc(H);ee.pop();let le=Vv(ee);de.unshift(le),H=_c(le)}}de.length>1&&t.reportDiagnostic(bl(G?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,R===\"\"?\".\":R,L));for(let fe of de){let q=W(fe);for(let H of q)if(Bf(H,C,!PU(t))){let ee=C.slice(H.length+1),le=wr(fe,ee),Ee=[\".mjs\",\".cjs\",\".js\",\".json\",\".d.mts\",\".d.cts\",\".d.ts\"];for(let ce of Ee)if(el(le,ce)){let Z=une(le);for(let pe of Z){if(!K0e(e,pe))continue;let Ae=xM(le,pe,ce,!PU(t));if(t.host.fileExists(Ae))return Rp(yI(s,IU(e,Ae,!1,t)))}}}}}return;function W($){var de,fe;let q=t.compilerOptions.configFile?((fe=(de=t.host).getCurrentDirectory)==null?void 0:fe.call(de))||\"\":$,H=[];return t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.outDir))),H}}}}function ok(e,t){if(!e.includes(\"types\")||!Ui(t,\"types@\"))return!1;let r=hM.tryParse(t.substring(6));return r?r.test(bp):!1}function $0e(e,t,r,i,o,s){return Q0e(e,t,r,i,!1,o,s)}function _3e(e,t,r){return Q0e(4,e,t,r,!0,void 0,void 0)}function Q0e(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){gy(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,K6(p));let v=m(p);if(v)return v}if(h&&!o)return gy(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,K6(h)),m(h);function m(v){return Vf(ad(r),E=>{if(Ll(E)!==\"node_modules\"){let S=nSe(s,t,d,E,l,i);return S||Rp(Z0e(v,t,E,i,o,s,l))}})}}function Z0e(e,t,r,i,o,s,l){let d=wr(r,\"node_modules\"),p=gm(d,i.host);if(!p&&i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=eSe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=wr(d,\"@types\"),m=p;return p&&!gm(h,i.host)&&(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),eSe(4,tSe(t,i),h,m,i,s,l)}}function eSe(e,t,r,i,o,s,l){var d,p;let h=Yo(wr(r,t)),{packageName:m,rest:v}=ik(t),E=wr(r,m),S,A=m0(h,!i,o);if(v!==\"\"&&A&&(!(o.features&8)||!rs(((d=S=m0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??je,\"exports\"))){let L=eR(e,h,!i,o);if(L)return vU(L);let G=DU(e,h,!i,o,A.contents.packageJsonContent,e4(A,o));return yI(A,G)}let C=(L,G,U,K)=>{let F=(v||!(K.features&32))&&eR(L,G,U,K)||DU(L,G,U,K,A&&A.contents.packageJsonContent,A&&e4(A,K));return!F&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&K.features&32&&(F=eR(L,wr(G,\"index.js\"),U,K)),yI(A,F)};if(v!==\"\"&&(A=S??m0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=CU(A,e,wr(\".\",v),o,s,l))==null?void 0:p.value;let R=v!==\"\"&&A?e4(A,o):void 0;if(R){o.traceEnabled&&to(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,R.version,bp,v);let L=i&&gm(E,o.host),G=doe(e,v,E,R.paths,void 0,C,!L,o);if(G)return G.value}return C(e,h,!i,o)}function doe(e,t,r,i,o,s,l,d){o||(o=fF(i));let p=CV(o,t);if(p){let h=fo(p)?void 0:qZ(p,t),m=fo(p)?p:HZ(p);return d.traceEnabled&&to(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:an(i[m],E=>{let S=h?KA(E,h):E,A=Yo(wr(r,S));d.traceEnabled&&to(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let C=og(E);if(C!==void 0){let R=xU(A,l,d);if(R!==void 0)return vU({path:R,ext:C,resolvedUsingTsExtension:void 0})}return s(e,A,l||!gm(Ur(A),d.host),d)})}}}function tSe(e,t){let r=tR(e);return t.traceEnabled&&r!==e&&to(t.host,f.Scoped_package_detected_looking_in_0,r),r}function n4(e){return`@types/${tR(e)}`}function tR(e){if(Ui(e,\"@\")){let t=e.replace(Os,LU);if(t!==e)return t.slice(1)}return e}function CN(e){let t=jD(e,\"@types/\");return t!==e?ak(t):e}function ak(e){return e.includes(LU)?\"@\"+e.replace(LU,Os):e}function nSe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&to(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function uoe(e,t,r,i,o,s){let l=cg(r,i),d=[],p=[],h=Ur(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return L0e(e,E&&E.value,E?.value&&Gb(E.value.path),d,p,m,v,o);function S(A){let C=G0e(A,e,h,loe,v);if(C)return{value:C};if(Ic(e)){let R=Yo(wr(h,e));return Rp(loe(A,R,!1,v))}else{let R=Vf(h,L=>{let G=nSe(o,e,void 0,L,s,v);if(G)return G;let U=Yo(wr(L,e));return Rp(loe(A,U,!1,v))});if(R)return R;if(A&5){let L=_3e(e,h,v);return A&4&&(L??(L=rSe(e,v))),L}}}}function rSe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=W0e(r,e,t),o=gm(r,t.host);!o&&t.traceEnabled&&to(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=eR(4,i,!o,t);if(s){let d=tk(s.path),p=d?m0(d,!1,t):void 0;return Rp(yI(p,s))}let l=coe(4,i,!o,t);if(l)return Rp(l)}}function nR(e,t){return!!e.allowImportingTsExtensions||t&&Yc(t)}function poe(e,t,r,i,o,s){let l=cg(r,i);l&&to(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=Z0e(4,e,o,m,!1,void 0,void 0);return k0e(v,!0,d,p,h,m.resultFromCache,void 0)}function Rp(e){return e!==void 0?{value:e}:void 0}function gy(e,t,...r){e.traceEnabled&&to(e.host,t,...r)}function PU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames==\"boolean\"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var foe,iSe,MU,q_,LU,h3e=pt({\"src/compiler/moduleNameResolver.ts\"(){\"use strict\";wo(),iSe=wr(\"node_modules\",\"@types\"),MU=(e=>(e[e.None=0]=\"None\",e[e.Imports=2]=\"Imports\",e[e.SelfName=4]=\"SelfName\",e[e.Exports=8]=\"Exports\",e[e.ExportsPatternTrailers=16]=\"ExportsPatternTrailers\",e[e.AllFeatures=30]=\"AllFeatures\",e[e.Node16Default=30]=\"Node16Default\",e[e.NodeNextDefault=30]=\"NodeNextDefault\",e[e.BundlerDefault=30]=\"BundlerDefault\",e[e.EsmMode=32]=\"EsmMode\",e))(MU||{}),q_=\"/node_modules/\",LU=\"__\"}});function dg(e,t){return e.body&&!e.body.parent&&(Aa(e.body,e),oy(e.body,!1)),e.body?moe(e.body,t):1}function moe(e,t=new Map){let r=Fa(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=g3e(e,t);return t.set(r,i),i}function g3e(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(BE(e))return 2;break;case 272:case 271:if(!Wr(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=v3e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ao(e,o=>{let s=moe(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:x.assertNever(s)}}),i}case 267:return dg(e,t);case 80:if(e.flags&4096)return 0}return 1}function v3e(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Do(i)||n_(i)||Li(i)){let o=i.statements,s;for(let l of o)if(zM(l,r)){l.parent||(Aa(l,i),oy(l,!1));let d=moe(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function EI(e){return x.attachFlowNodeDebugInfo(e),e}function _oe(e,t){var r,i;Ls(\"beforeBind\"),(r=Pd)==null||r.logStartBindFile(\"\"+e.fileName),aSe(e,t),(i=Pd)==null||i.logStopBindFile(),Ls(\"afterBind\"),Sp(\"Bind\",\"beforeBind\",\"afterBind\")}function y3e(){var e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K,F,oe=!1,W=0,$,de,fe={flags:1},q={flags:1},H=V();return le;function ee(k,ge,...Xe){return vf(Nn(k)||e,k,ge,...Xe)}function le(k,ge){var Xe,Mt;e=k,t=ge,r=Wa(t),F=Ee(e,ge),de=new Set,W=0,$=wc.getSymbolConstructor(),x.attachFlowNodeDebugInfo(fe),x.attachFlowNodeDebugInfo(q),e.locals||((Xe=qn)==null||Xe.push(qn.Phase.Bind,\"bindSourceFile\",{path:e.path},!0),xe(e),(Mt=qn)==null||Mt.pop(),e.symbolCount=W,e.classifiableNames=de,Fc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,v=void 0,E=void 0,S=void 0,A=void 0,C=void 0,R=void 0,G=void 0,U=!1,oe=!1,K=0}function Ee(k,ge){return Fd(ge,\"alwaysStrict\")&&!k.isDeclarationFile?!0:!!k.externalModuleIndicator}function ce(k,ge){return W++,new $(k,ge)}function Z(k,ge,Xe){k.flags|=Xe,ge.symbol=k,k.declarations=Kh(k.declarations,ge),Xe&1955&&!k.exports&&(k.exports=Vo()),Xe&6240&&!k.members&&(k.members=Vo()),k.constEnumOnlyModule&&k.flags&304&&(k.constEnumOnlyModule=!1),Xe&111551&&IL(k,ge)}function pe(k){if(k.kind===277)return k.isExportEquals?\"export=\":\"default\";let ge=mo(k);if(ge){if(sd(k)){let Xe=Ef(ge);return Jm(k)?\"__global\":`\"${Xe}\"`}if(ge.kind===167){let Xe=ge.expression;if(Ap(Xe))return Hs(Xe.text);if(LW(Xe))return qo(Xe.operator)+Xe.operand.text;x.fail(\"Only computed properties with literal names have declaration names\")}if(Ci(ge)){let Xe=Oc(k);if(!Xe)return;let Mt=Xe.symbol;return wL(Mt,ge.escapedText)}return Em(ge)?JA(ge):Xm(ge)?AC(ge):void 0}switch(k.kind){case 176:return\"__constructor\";case 184:case 179:case 330:return\"__call\";case 185:case 180:return\"__new\";case 181:return\"__index\";case 278:return\"__export\";case 312:return\"export=\";case 226:if(hl(k)===2)return\"export=\";x.fail(\"Unknown binary declaration kind\");break;case 324:return dx(k)?\"__new\":\"__call\";case 169:return x.assert(k.parent.kind===324,\"Impossible parameter parent kind\",()=>`parent is: ${x.formatSyntaxKind(k.parent.kind)}, expected JSDocFunctionType`),\"arg\"+k.parent.parameters.indexOf(k)}}function Ae(k){return Ld(k)?is(k.name):Ii(x.checkDefined(pe(k)))}function Oe(k,ge,Xe,Mt,Vn,jr,Or){x.assert(Or||!ty(Xe));let zi=Wr(Xe,2048)||Ed(Xe)&&Xe.name.escapedText===\"default\",_a=Or?\"__computed\":zi&&ge?\"default\":pe(Xe),ha;if(_a===void 0)ha=ce(0,\"__missing\");else if(ha=k.get(_a),Mt&2885600&&de.add(_a),!ha)k.set(_a,ha=ce(0,_a)),jr&&(ha.isReplaceableByMethod=!0);else{if(jr&&!ha.isReplaceableByMethod)return ha;if(ha.flags&Vn){if(ha.isReplaceableByMethod)k.set(_a,ha=ce(0,_a));else if(!(Mt&3&&ha.flags&67108864)){Ld(Xe)&&Aa(Xe.name,Xe);let pl=ha.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Gc=!0;(ha.flags&384||Mt&384)&&(pl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Gc=!1);let nc=!1;yn(ha.declarations)&&(zi||ha.declarations&&ha.declarations.length&&Xe.kind===277&&!Xe.isExportEquals)&&(pl=f.A_module_cannot_have_multiple_default_exports,Gc=!1,nc=!0);let Xu=[];Xf(Xe)&&_l(Xe.type)&&Wr(Xe,32)&&ha.flags&2887656&&Xu.push(ee(Xe,f.Did_you_mean_0,`export type { ${Ii(Xe.name.escapedText)} }`));let _u=mo(Xe)||Xe;an(ha.declarations,(ja,em)=>{let tm=mo(ja)||ja,Ri=Gc?ee(tm,pl,Ae(ja)):ee(tm,pl);e.bindDiagnostics.push(nc?fa(Ri,ee(_u,em===0?f.Another_export_default_is_here:f.and_here)):Ri),nc&&Xu.push(ee(tm,f.The_first_export_default_is_here))});let Ay=Gc?ee(_u,pl,Ae(Xe)):ee(_u,pl);e.bindDiagnostics.push(fa(Ay,...Xu)),ha=ce(0,_a)}}}return Z(ha,Xe,Mt),ha.parent?x.assert(ha.parent===ge,\"Existing symbol parent should match new one\"):ha.parent=ge,ha}function _e(k,ge,Xe){let Mt=!!(gb(k)&32)||be(k);if(ge&2097152)return k.kind===281||k.kind===271&&Mt?Oe(o.symbol.exports,o.symbol,k,ge,Xe):(x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe));if(bf(k)&&x.assert(Jn(k)),!sd(k)&&(Mt||o.flags&128)){if(!L_(o)||!o.locals||Wr(k,2048)&&!pe(k))return Oe(o.symbol.exports,o.symbol,k,ge,Xe);let Vn=ge&111551?1048576:0,jr=Oe(o.locals,void 0,k,Vn,Xe);return jr.exportSymbol=Oe(o.symbol.exports,o.symbol,k,ge,Xe),k.localSymbol=jr,jr}else return x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}function be(k){if(k.parent&&Il(k)&&(k=k.parent),!bf(k))return!1;if(!C2(k)&&k.fullName)return!0;let ge=mo(k);return ge?!!(UL(ge.parent)&&Nl(ge.parent)||bd(ge.parent)&&gb(ge.parent)&32):!1}function Te(k,ge){let Xe=o,Mt=s,Vn=l;if(ge&1?(k.kind!==219&&(s=o),o=l=k,ge&32&&(o.locals=Vo(),jn(o))):ge&2&&(l=k,ge&32&&(l.locals=void 0)),ge&4){let jr=m,Or=v,zi=E,_a=S,ha=R,pl=G,Gc=U,nc=ge&16&&!Wr(k,1024)&&!k.asteriskToken&&!!RS(k)||k.kind===175;nc||(m=EI({flags:2}),ge&144&&(m.node=k)),S=nc||k.kind===176||Jn(k)&&(k.kind===262||k.kind===218)?gn():void 0,R=void 0,v=void 0,E=void 0,G=void 0,U=!1,Le(k),k.flags&=-5633,!(m.flags&1)&&ge&8&&gf(k.body)&&(k.flags|=512,U&&(k.flags|=1024),k.endFlowNode=m),k.kind===312&&(k.flags|=K,k.endFlowNode=m),S&&(Wt(S,m),m=Gn(S),(k.kind===176||k.kind===175||Jn(k)&&(k.kind===262||k.kind===218))&&(k.returnFlowNode=m)),nc||(m=jr),v=Or,E=zi,S=_a,R=ha,G=pl,U=Gc}else ge&64?(h=!1,Le(k),x.assertNotNode(k,Me),k.flags=h?k.flags|256:k.flags&-257):Le(k);o=Xe,s=Mt,l=Vn}function De(k){ft(k,ge=>ge.kind===262?xe(ge):void 0),ft(k,ge=>ge.kind!==262?xe(ge):void 0)}function ft(k,ge=xe){k!==void 0&&an(k,ge)}function he(k){Ao(k,xe,ft)}function Le(k){let ge=oe;if(oe=!1,Nt(k)){he(k),dt(k),oe=ge;return}switch(k.kind>=243&&k.kind<=259&&!t.allowUnreachableCode&&(k.flowNode=m),k.kind){case 247:ki(k);break;case 246:so(k);break;case 248:Jo(k);break;case 249:case 250:Ea(k);break;case 245:ln(k);break;case 253:case 257:Tn(k);break;case 252:case 251:tt(k);break;case 258:yt(k);break;case 255:re(k);break;case 269:Ce(k);break;case 296:et(k);break;case 244:z(k);break;case 256:_t(k);break;case 224:on(k);break;case 225:Qt(k);break;case 226:if(nv(k)){oe=ge,Zt(k);return}H(k);break;case 220:Re(k);break;case 227:St(k);break;case 260:te(k);break;case 211:case 212:ti(k);break;case 213:di(k);break;case 235:Cn(k);break;case 353:case 345:case 347:Ie(k);break;case 312:{De(k.statements),xe(k.endOfFileToken);break}case 241:case 268:De(k.statements);break;case 208:j(k);break;case 169:se(k);break;case 210:case 209:case 303:case 230:oe=ge;default:he(k);break}dt(k),oe=ge}function Ke(k){switch(k.kind){case 80:case 81:case 110:case 211:case 212:return st(k);case 213:return Ge(k);case 217:if(Ux(k))return!1;case 235:return Ke(k.expression);case 226:return Vt(k);case 224:return k.operator===54&&Ke(k.operand);case 221:return Ke(k.expression)}return!1}function Dt(k){return MC(k)||(Er(k)||dI(k)||uu(k))&&Dt(k.expression)||Zn(k)&&k.operatorToken.kind===28&&Dt(k.right)||Rs(k)&&(Ap(k.argumentExpression)||gl(k.argumentExpression))&&Dt(k.expression)||lc(k)&&Dt(k.left)}function st(k){return Dt(k)||yd(k)&&st(k.expression)}function Ge(k){if(k.arguments){for(let ge of k.arguments)if(st(ge))return!0}return!!(k.expression.kind===211&&st(k.expression.expression))}function ot(k,ge){return Wx(k)&&jt(k.expression)&&Ga(ge)}function Vt(k){switch(k.operatorToken.kind){case 64:case 76:case 77:case 78:return st(k.left);case 35:case 36:case 37:case 38:return jt(k.left)||jt(k.right)||ot(k.right,k.left)||ot(k.left,k.right)||sC(k.right)&&Ke(k.left)||sC(k.left)&&Ke(k.right);case 104:return jt(k.left);case 103:return Ke(k.right);case 28:return Ke(k.right)}return!1}function jt(k){switch(k.kind){case 217:return jt(k.expression);case 226:switch(k.operatorToken.kind){case 64:return jt(k.left);case 28:return jt(k.right)}}return st(k)}function gn(){return EI({flags:4,antecedents:void 0})}function On(){return EI({flags:8,antecedents:void 0})}function en(k,ge,Xe){return EI({flags:1024,target:k,antecedents:ge,antecedent:Xe})}function zt(k){k.flags|=k.flags&2048?4096:2048}function Wt(k,ge){!(ge.flags&1)&&!To(k.antecedents,ge)&&((k.antecedents||(k.antecedents=[])).push(ge),zt(ge))}function ei(k,ge,Xe){return ge.flags&1?ge:Xe?(Xe.kind===112&&k&64||Xe.kind===97&&k&32)&&!F8(Xe)&&!jG(Xe.parent)?fe:Ke(Xe)?(zt(ge),EI({flags:k,antecedent:ge,node:Xe})):ge:k&32?ge:fe}function Ki(k,ge,Xe,Mt){return zt(k),EI({flags:128,antecedent:k,switchStatement:ge,clauseStart:Xe,clauseEnd:Mt})}function gi(k,ge,Xe){zt(ge);let Mt=EI({flags:k,antecedent:ge,node:Xe});return R&&Wt(R,Mt),Mt}function io(k,ge){return zt(k),EI({flags:512,antecedent:k,node:ge})}function Gn(k){let ge=k.antecedents;return ge?ge.length===1?ge[0]:k:fe}function Nr(k){let ge=k.parent;switch(ge.kind){case 245:case 247:case 246:return ge.expression===k;case 248:case 227:return ge.condition===k}return!1}function cr(k){for(;;)if(k.kind===217)k=k.expression;else if(k.kind===224&&k.operator===54)k=k.operand;else return jL(k)}function Jt(k){return cV(Ka(k))}function Ue(k){for(;uu(k.parent)||fy(k.parent)&&k.parent.operator===54;)k=k.parent;return!Nr(k)&&!cr(k.parent)&&!(yd(k.parent)&&k.parent.expression===k)}function Rt(k,ge,Xe,Mt){let Vn=A,jr=C;A=Xe,C=Mt,k(ge),A=Vn,C=jr}function mn(k,ge,Xe){Rt(xe,k,ge,Xe),(!k||!Jt(k)&&!cr(k)&&!(yd(k)&&nC(k)))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function qr(k,ge,Xe){let Mt=v,Vn=E;v=ge,E=Xe,xe(k),v=Mt,E=Vn}function ni(k,ge){let Xe=G;for(;Xe&&k.parent.kind===256;)Xe.continueTarget=ge,Xe=Xe.next,k=k.parent;return ge}function ki(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();Wt(ge,m),m=ge,mn(k.expression,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),Wt(ge,m),m=Gn(Mt)}function so(k){let ge=On(),Xe=ni(k,gn()),Mt=gn();Wt(ge,m),m=ge,qr(k.statement,Mt,Xe),Wt(Xe,m),m=Gn(Xe),mn(k.expression,ge,Mt),m=Gn(Mt)}function Jo(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();xe(k.initializer),Wt(ge,m),m=ge,mn(k.condition,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),xe(k.incrementor),Wt(ge,m),m=Gn(Mt)}function Ea(k){let ge=ni(k,On()),Xe=gn();xe(k.expression),Wt(ge,m),m=ge,k.kind===250&&xe(k.awaitModifier),Wt(Xe,m),xe(k.initializer),k.initializer.kind!==261&&it(k.initializer),qr(k.statement,Xe,ge),Wt(ge,m),m=Gn(Xe)}function ln(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.expression,ge,Xe),m=Gn(ge),xe(k.thenStatement),Wt(Mt,m),m=Gn(Xe),xe(k.elseStatement),Wt(Mt,m),m=Gn(Mt)}function Tn(k){xe(k.expression),k.kind===253&&(U=!0,S&&Wt(S,m)),m=fe}function ke(k){for(let ge=G;ge;ge=ge.next)if(ge.name===k)return ge}function nt(k,ge,Xe){let Mt=k.kind===252?ge:Xe;Mt&&(Wt(Mt,m),m=fe)}function tt(k){if(xe(k.label),k.label){let ge=ke(k.label.escapedText);ge&&(ge.referenced=!0,nt(k,ge.breakTarget,ge.continueTarget))}else nt(k,v,E)}function yt(k){let ge=S,Xe=R,Mt=gn(),Vn=gn(),jr=gn();if(k.finallyBlock&&(S=Vn),Wt(jr,m),R=jr,xe(k.tryBlock),Wt(Mt,m),k.catchClause&&(m=Gn(jr),jr=gn(),Wt(jr,m),R=jr,xe(k.catchClause),Wt(Mt,m)),S=ge,R=Xe,k.finallyBlock){let Or=gn();Or.antecedents=ro(ro(Mt.antecedents,jr.antecedents),Vn.antecedents),m=Or,xe(k.finallyBlock),m.flags&1?m=fe:(S&&Vn.antecedents&&Wt(S,en(Or,Vn.antecedents,m)),R&&jr.antecedents&&Wt(R,en(Or,jr.antecedents,m)),m=Mt.antecedents?en(Or,Mt.antecedents,m):fe)}else m=Gn(Mt)}function re(k){let ge=gn();xe(k.expression);let Xe=v,Mt=L;v=ge,L=m,xe(k.caseBlock),Wt(ge,m);let Vn=an(k.caseBlock.clauses,jr=>jr.kind===297);k.possiblyExhaustive=!Vn&&!ge.antecedents,Vn||Wt(ge,Ki(L,k,0,0)),v=Xe,L=Mt,m=Gn(ge)}function Ce(k){let ge=k.clauses,Xe=k.parent.expression.kind===112||Ke(k.parent.expression),Mt=fe;for(let Vn=0;Vn<ge.length;Vn++){let jr=Vn;for(;!ge[Vn].statements.length&&Vn+1<ge.length;)Mt===fe&&(m=L),xe(ge[Vn]),Vn++;let Or=gn();Wt(Or,Xe?Ki(L,k.parent,jr,Vn+1):L),Wt(Or,Mt),m=Gn(Or);let zi=ge[Vn];xe(zi),Mt=m,!(m.flags&1)&&Vn!==ge.length-1&&t.noFallthroughCasesInSwitch&&(zi.fallthroughFlowNode=m)}}function et(k){let ge=m;m=L,xe(k.expression),m=ge,ft(k.statements)}function z(k){xe(k.expression),Je(k.expression)}function Je(k){if(k.kind===213){let ge=k;ge.expression.kind!==108&&MC(ge.expression)&&(m=io(m,ge))}}function _t(k){let ge=gn();G={next:G,name:k.label.escapedText,breakTarget:ge,continueTarget:void 0,referenced:!1},xe(k.label),xe(k.statement),!G.referenced&&!t.allowUnusedLabels&&tc(Kne(t),k.label,f.Unused_label),G=G.next,Wt(ge,m),m=Gn(ge)}function ze(k){k.kind===226&&k.operatorToken.kind===64?it(k.left):it(k)}function it(k){if(Dt(k))m=gi(16,m,k);else if(k.kind===209)for(let ge of k.elements)ge.kind===230?it(ge.expression):ze(ge);else if(k.kind===210)for(let ge of k.properties)ge.kind===303?ze(ge.initializer):ge.kind===304?it(ge.name):ge.kind===305&&it(ge.expression)}function Ct(k,ge,Xe){let Mt=gn();k.operatorToken.kind===56||k.operatorToken.kind===77?mn(k.left,Mt,Xe):mn(k.left,ge,Mt),m=Gn(Mt),xe(k.operatorToken),PC(k.operatorToken.kind)?(Rt(xe,k.right,ge,Xe),it(k.left),Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k))):mn(k.right,ge,Xe)}function on(k){if(k.operator===54){let ge=A;A=C,C=ge,he(k),C=A,A=ge}else he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Qt(k){he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Zt(k){oe?(oe=!1,xe(k.operatorToken),xe(k.right),oe=!0,xe(k.left)):(oe=!0,xe(k.left),oe=!1,xe(k.operatorToken),xe(k.right)),it(k.left)}function V(){return M6(k,ge,Xe,Mt,Vn,void 0);function k(Or,zi){if(zi){zi.stackIndex++,Aa(Or,i);let ha=F;tr(Or);let pl=i;i=Or,zi.skip=!1,zi.inStrictModeStack[zi.stackIndex]=ha,zi.parentStack[zi.stackIndex]=pl}else zi={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let _a=Or.operatorToken.kind;if(VL(_a)||PC(_a)){if(Ue(Or)){let ha=gn();Ct(Or,ha,ha),m=Gn(ha)}else Ct(Or,A,C);zi.skip=!0}return zi}function ge(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Xe(Or,zi,_a){zi.skip||xe(Or)}function Mt(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Vn(Or,zi){if(!zi.skip){let pl=Or.operatorToken.kind;if(tv(pl)&&!Sh(Or)&&(it(Or.left),pl===64&&Or.left.kind===212)){let Gc=Or.left;jt(Gc.expression)&&(m=gi(256,m,Or))}}let _a=zi.inStrictModeStack[zi.stackIndex],ha=zi.parentStack[zi.stackIndex];_a!==void 0&&(F=_a),ha!==void 0&&(i=ha),zi.skip=!1,zi.stackIndex--}function jr(Or){if(Or&&Zn(Or)&&!nv(Or))return Or;xe(Or)}}function Re(k){he(k),k.expression.kind===211&&it(k.expression)}function St(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.condition,ge,Xe),m=Gn(ge),xe(k.questionToken),xe(k.whenTrue),Wt(Mt,m),m=Gn(Xe),xe(k.colonToken),xe(k.whenFalse),Wt(Mt,m),m=Gn(Mt)}function M(k){let ge=vc(k)?void 0:k.name;if(ko(ge))for(let Xe of ge.elements)M(Xe);else m=gi(16,m,k)}function te(k){he(k),(k.initializer||H1(k.parent.parent))&&M(k)}function j(k){xe(k.dotDotDotToken),xe(k.propertyName),Pe(k.initializer),xe(k.name)}function se(k){ft(k.modifiers),xe(k.dotDotDotToken),xe(k.questionToken),xe(k.type),Pe(k.initializer),xe(k.name)}function Pe(k){if(!k)return;let ge=m;if(xe(k),ge===fe||ge===m)return;let Xe=gn();Wt(Xe,ge),Wt(Xe,m),m=Gn(Xe)}function Ie(k){xe(k.tagName),k.kind!==347&&k.fullName&&(Aa(k.fullName,k),oy(k.fullName,!1)),typeof k.comment!=\"string\"&&ft(k.comment)}function gt(k){he(k);let ge=xb(k);ge&&ge.kind!==174&&Z(ge.symbol,ge,32)}function bt(k,ge,Xe){Rt(xe,k,ge,Xe),(!yd(k)||nC(k))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function Ot(k){switch(k.kind){case 211:xe(k.questionDotToken),xe(k.name);break;case 212:xe(k.questionDotToken),xe(k.argumentExpression);break;case 213:xe(k.questionDotToken),ft(k.typeArguments),ft(k.arguments);break}}function dn(k,ge,Xe){let Mt=tC(k)?gn():void 0;bt(k.expression,Mt||ge,Xe),Mt&&(m=Gn(Mt)),Rt(Ot,k,ge,Xe),nC(k)&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function An(k){if(Ue(k)){let ge=gn();dn(k,ge,ge),m=Gn(ge)}else dn(k,A,C)}function Cn(k){yd(k)?An(k):he(k)}function ti(k){yd(k)?An(k):he(k)}function di(k){if(yd(k))An(k);else{let ge=Ka(k.expression);ge.kind===218||ge.kind===219?(ft(k.typeArguments),ft(k.arguments),xe(k.expression)):(he(k),k.expression.kind===108&&(m=io(m,k)))}if(k.expression.kind===211){let ge=k.expression;Me(ge.name)&&jt(ge.expression)&&K9(ge.name)&&(m=gi(256,m,k))}}function jn(k){d&&(d.nextContainer=k),d=k}function Ar(k,ge,Xe){switch(o.kind){case 267:return _e(k,ge,Xe);case 312:return _i(k,ge,Xe);case 231:case 263:return Zi(k,ge,Xe);case 266:return Oe(o.symbol.exports,o.symbol,k,ge,Xe);case 187:case 329:case 210:case 264:case 292:return Oe(o.symbol.members,o.symbol,k,ge,Xe);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}}function Zi(k,ge,Xe){return zo(k)?Oe(o.symbol.exports,o.symbol,k,ge,Xe):Oe(o.symbol.members,o.symbol,k,ge,Xe)}function _i(k,ge,Xe){return wl(e)?_e(k,ge,Xe):Oe(e.locals,void 0,k,ge,Xe)}function ui(k){let ge=Li(k)?k:Vr(k.body,n_);return!!ge&&ge.statements.some(Xe=>xl(Xe)||dl(Xe))}function Mr(k){k.flags&33554432&&!ui(k)?k.flags|=128:k.flags&=-129}function lo(k){if(Mr(k),sd(k))if(Wr(k,32)&&ls(k,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),_9(k))_n(k);else{let ge;if(k.name.kind===11){let{text:Mt}=k.name;ge=xx(Mt),ge===void 0&&ls(k.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Mt)}let Xe=Ar(k,512,110735);e.patternAmbientModules=pn(e.patternAmbientModules,ge&&!fo(ge)?{pattern:ge,symbol:Xe}:void 0)}else{let ge=_n(k);if(ge!==0){let{symbol:Xe}=k;Xe.constEnumOnlyModule=!(Xe.flags&304)&&ge===2&&Xe.constEnumOnlyModule!==!1}}}function _n(k){let ge=dg(k),Xe=ge!==0;return Ar(k,Xe?512:1024,Xe?110735:0),ge}function ms(k){let ge=ce(131072,pe(k));Z(ge,k,131072);let Xe=ce(2048,\"__type\");Z(Xe,k,2048),Xe.members=Vo(),Xe.members.set(ge.escapedName,ge)}function Dl(k){return vs(k,4096,\"__object\")}function _o(k){return vs(k,4096,\"__jsxAttributes\")}function Va(k,ge,Xe){return Ar(k,ge,Xe)}function vs(k,ge,Xe){let Mt=ce(ge,Xe);return ge&106508&&(Mt.parent=o.symbol),Z(Mt,k,ge),Mt}function Js(k,ge,Xe){switch(l.kind){case 267:_e(k,ge,Xe);break;case 312:if(sp(o)){_e(k,ge,Xe);break}default:x.assertNode(l,L_),l.locals||(l.locals=Vo(),jn(l)),Oe(l.locals,void 0,k,ge,Xe)}}function Fc(){if(!p)return;let k=o,ge=d,Xe=l,Mt=i,Vn=m;for(let jr of p){let Or=jr.parent.parent;o=S9(Or)||e,l=w_(Or)||e,m=EI({flags:2}),i=jr,xe(jr.typeExpression);let zi=mo(jr);if((C2(jr)||!jr.fullName)&&zi&&UL(zi.parent)){let _a=Nl(zi.parent);if(_a){Ks(e.symbol,zi.parent,_a,!!Rn(zi,pl=>Er(pl)&&pl.name.escapedText===\"prototype\"),!1);let ha=o;switch(TL(zi.parent)){case 1:case 2:sp(e)?o=e:o=void 0;break;case 4:o=zi.parent.expression;break;case 3:o=zi.parent.expression.name;break;case 5:o=_0(e,zi.parent.expression)?e:Er(zi.parent.expression)?zi.parent.expression.name:zi.parent.expression;break;case 0:return x.fail(\"Shouldn't have detected typedef or enum on non-assignment declaration\")}o&&_e(jr,524288,788968),o=ha}}else C2(jr)||!jr.fullName||jr.fullName.kind===80?(i=jr.parent,Js(jr,524288,788968)):xe(jr.fullName)}o=k,d=ge,l=Xe,i=Mt,m=Vn}function $i(k){if(!e.parseDiagnostics.length&&!(k.flags&33554432)&&!(k.flags&16777216)&&!rne(k)){let ge=vb(k);if(ge===void 0)return;F&&ge>=119&&ge<=127?e.bindDiagnostics.push(ee(k,Uo(k),is(k))):ge===135?wl(e)&&hW(k)?e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,is(k))):k.flags&65536&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k))):ge===127&&k.flags&16384&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k)))}}function Uo(k){return Oc(k)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function zc(k){k.escapedText===\"#constructor\"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ee(k,f.constructor_is_a_reserved_word,is(k))))}function ts(k){F&&Tu(k.left)&&tv(k.operatorToken.kind)&&Wl(k,k.left)}function ua(k){F&&k.variableDeclaration&&Wl(k,k.variableDeclaration.name)}function Us(k){if(F&&k.expression.kind===80){let ge=IS(e,k.expression);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function tf(k){return Me(k)&&(k.escapedText===\"eval\"||k.escapedText===\"arguments\")}function Wl(k,ge){if(ge&&ge.kind===80){let Xe=ge;if(tf(Xe)){let Mt=IS(e,ge);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,il(k),ar(Xe)))}}}function il(k){return Oc(k)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function zs(k){F&&Wl(k,k.name)}function ho(k){return Oc(k)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ut(k){if(r<2&&l.kind!==312&&l.kind!==267&&!U1(l)){let ge=IS(e,k);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,ho(k)))}}function ys(k){F&&Wl(k,k.operand)}function Pc(k){F&&(k.operator===46||k.operator===47)&&Wl(k,k.operand)}function Bc(k){F&&ls(k,f.with_statements_are_not_allowed_in_strict_mode)}function Ju(k){F&&Wa(t)>=2&&(ate(k.statement)||cl(k.statement))&&ls(k.label,f.A_label_is_not_allowed_here)}function ls(k,ge,...Xe){let Mt=W_(e,k.pos);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,ge,...Xe))}function tc(k,ge,Xe){ae(k,ge,ge,Xe)}function ae(k,ge,Xe,Mt){X(k,{pos:Tb(ge,e),end:Xe.end},Mt)}function X(k,ge,Xe){let Mt=Rc(e,ge.pos,ge.end-ge.pos,Xe);k?e.bindDiagnostics.push(Mt):e.bindSuggestionDiagnostics=pn(e.bindSuggestionDiagnostics,{...Mt,category:2})}function xe(k){if(!k)return;Aa(k,i),qn&&(k.tracingPath=e.path);let ge=F;if(tr(k),k.kind>165){let Xe=i;i=k;let Mt=kU(k);Mt===0?Le(k):Te(k,Mt),i=Xe}else{let Xe=i;k.kind===1&&(i=k),dt(k),i=Xe}F=ge}function dt(k){if(ap(k))if(Jn(k))for(let ge of k.jsDoc)xe(ge);else for(let ge of k.jsDoc)Aa(ge,k),oy(ge,!1)}function $t(k){if(!F)for(let ge of k){if(!Hf(ge))return;if(sr(ge)){F=!0;return}}}function sr(k){let ge=FE(e,k.expression);return ge==='\"use strict\"'||ge===\"'use strict'\"}function tr(k){switch(k.kind){case 80:if(k.flags&4096){let Or=k.parent;for(;Or&&!bf(Or);)Or=Or.parent;Js(Or,524288,788968);break}case 110:return m&&(lt(k)||i.kind===304)&&(k.flowNode=m),$i(k);case 166:m&&EW(k)&&(k.flowNode=m);break;case 236:case 108:k.flowNode=m;break;case 81:return zc(k);case 211:case 212:let ge=k;m&&Dt(ge)&&(ge.flowNode=m),Yte(ge)&&Ln(ge),Jn(ge)&&e.commonJsModuleIndicator&&Eh(ge)&&!r4(l,\"module\")&&Oe(e.locals,void 0,ge.expression,134217729,111550);break;case 226:switch(hl(k)){case 1:Du(k);break;case 2:pc(k);break;case 3:Oo(k.left,k);break;case 6:eo(k);break;case 4:Vd(k);break;case 5:let Or=k.left.expression;if(Jn(k)&&Me(Or)){let zi=r4(l,Or.escapedText);if(gW(zi?.valueDeclaration)){Vd(k);break}}Kl(k);break;case 0:break;default:x.fail(\"Unknown binary expression special property assignment kind\")}return ts(k);case 299:return ua(k);case 220:return Us(k);case 225:return ys(k);case 224:return Pc(k);case 254:return Bc(k);case 256:return Ju(k);case 197:h=!0;return;case 182:break;case 168:return Ye(k);case 169:return mg(k);case 260:return fd(k);case 208:return k.flowNode=m,fd(k);case 172:case 171:return Ir(k);case 303:case 304:return mu(k,4,0);case 306:return mu(k,8,900095);case 179:case 180:case 181:return Ar(k,131072,0);case 174:case 173:return mu(k,8192|(k.questionToken?16777216:0),qf(k)?0:103359);case 262:return Ku(k);case 176:return Ar(k,16384,0);case 177:return mu(k,32768,46015);case 178:return mu(k,65536,78783);case 184:case 324:case 330:case 185:return ms(k);case 187:case 329:case 200:return pi(k);case 339:return gt(k);case 210:return Dl(k);case 218:case 219:return Lh(k);case 213:switch(hl(k)){case 7:return Cl(k);case 8:return Ec(k);case 9:return Po(k);case 0:break;default:return x.fail(\"Unknown call expression assignment declaration kind\")}Jn(k)&&u_(k);break;case 231:case 263:return F=!0,X_(k);case 264:return Js(k,64,788872);case 265:return Js(k,524288,788968);case 266:return fg(k);case 267:return lo(k);case 292:return _o(k);case 291:return Va(k,4,0);case 271:case 274:case 276:case 281:return Ar(k,2097152,2097152);case 270:return bc(k);case 273:return Jl(k);case 278:return bs(k);case 277:return Qs(k);case 312:return $t(k.statements),hr();case 241:if(!U1(k.parent))return;case 268:return $t(k.statements);case 348:if(k.parent.kind===330)return mg(k);if(k.parent.kind!==329)break;case 355:let Vn=k,jr=Vn.isBracketed||Vn.typeExpression&&Vn.typeExpression.type.kind===323?16777220:4;return Ar(Vn,jr,0);case 353:case 345:case 347:return(p||(p=[])).push(k);case 346:return xe(k.typeExpression)}}function Ir(k){let ge=su(k),Xe=ge?98304:4,Mt=ge?13247:0;return mu(k,Xe|(k.questionToken?16777216:0),Mt)}function pi(k){return vs(k,2048,\"__type\")}function hr(){if(Mr(e),wl(e))No();else if(yf(e)){No();let k=e.symbol;Oe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=k}}function No(){vs(e,512,`\"${Yd(e.fileName)}\"`)}function Qs(k){if(!o.symbol||!o.symbol.exports)vs(k,111551,pe(k));else{let ge=px(k)?2097152:4,Xe=Oe(o.symbol.exports,o.symbol,k,ge,-1);k.isExportEquals&&IL(Xe,k)}}function bc(k){ct(k.modifiers)&&e.bindDiagnostics.push(ee(k,f.Modifiers_cannot_appear_here));let ge=Li(k.parent)?wl(k.parent)?k.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;ge?e.bindDiagnostics.push(ee(k,ge)):(e.symbol.globalExports=e.symbol.globalExports||Vo(),Oe(e.symbol.globalExports,e.symbol,k,2097152,2097152))}function bs(k){!o.symbol||!o.symbol.exports?vs(k,8388608,pe(k)):k.exportClause?j_(k.exportClause)&&(Aa(k.exportClause,k),Oe(o.symbol.exports,o.symbol,k.exportClause,2097152,2097152)):Oe(o.symbol.exports,o.symbol,k,8388608,0)}function Jl(k){k.name&&Ar(k,2097152,2097152)}function Za(k){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=k,e.externalModuleIndicator||No()),!0)}function Ec(k){if(!Za(k))return;let ge=nf(k.arguments[0],void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));ge&&Oe(ge.exports,ge,k,1048580,0)}function Du(k){if(!Za(k))return;let ge=nf(k.left.expression,void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));if(ge){let Mt=kL(k.right)&&(DS(k.left.expression)||Eh(k.left.expression))?2097152:1048580;Aa(k.left,k),Oe(ge.exports,ge,k.left,Mt,0)}}function pc(k){if(!Za(k))return;let ge=bL(k.right);if(fV(ge)||o===e&&_0(e,ge))return;if(ma(ge)&&ji(ge.properties,xu)){an(ge.properties,Nf);return}let Xe=px(k)?2097152:1049092,Mt=Oe(e.symbol.exports,e.symbol,k,Xe|67108864,0);IL(Mt,k)}function Nf(k){Oe(e.symbol.exports,e.symbol,k,69206016,0)}function Vd(k){if(x.assert(Jn(k)),Zn(k)&&Er(k.left)&&Ci(k.left.name)||Er(k)&&Ci(k.name))return;let Xe=lu(k,!1,!1);switch(Xe.kind){case 262:case 218:let Mt=Xe.symbol;if(Zn(Xe.parent)&&Xe.parent.operatorToken.kind===64){let Or=Xe.parent.left;UE(Or)&&ry(Or.expression)&&(Mt=tu(Or.expression.expression,s))}Mt&&Mt.valueDeclaration&&(Mt.members=Mt.members||Vo(),ty(k)?Se(k,Mt,Mt.members):Oe(Mt.members,Mt,k,67108868,0),Z(Mt,Mt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Vn=Xe.parent,jr=zo(Xe)?Vn.symbol.exports:Vn.symbol.members;ty(k)?Se(k,Vn.symbol,jr):Oe(jr,Vn.symbol,k,67108868,0,!0);break;case 312:if(ty(k))break;Xe.commonJsModuleIndicator?Oe(Xe.symbol.exports,Xe.symbol,k,1048580,0):Ar(k,1,111550);break;case 267:break;default:x.failBadSyntaxKind(Xe)}}function Se(k,ge,Xe){Oe(Xe,ge,k,4,0,!0,!0),At(k,ge)}function At(k,ge){ge&&(ge.assignmentDeclarationMembers||(ge.assignmentDeclarationMembers=new Map)).set(Fa(k),k)}function Ln(k){k.expression.kind===110?Vd(k):UE(k)&&k.parent.parent.kind===312&&(ry(k.expression)?Oo(k,k.parent):Bs(k))}function eo(k){Aa(k.left,k),Aa(k.right,k),Sc(k.left.expression,k.left,!1,!0)}function Po(k){let ge=tu(k.arguments[0].expression);ge&&ge.valueDeclaration&&Z(ge,ge.valueDeclaration,32),vl(k,ge,!0)}function Oo(k,ge){let Xe=k.expression,Mt=Xe.expression;Aa(Mt,Xe),Aa(Xe,k),Aa(k,ge),Sc(Mt,k,!0,!0)}function Cl(k){let ge=tu(k.arguments[0]),Xe=k.parent.parent.kind===312;ge=Ks(ge,k.arguments[0],Xe,!1,!1),vl(k,ge,!1)}function Kl(k){var ge;let Xe=tu(k.left.expression,l)||tu(k.left.expression,o);if(!Jn(k)&&!$te(Xe))return;let Mt=Tx(k.left);if(!(Me(Mt)&&((ge=r4(o,Mt.escapedText))==null?void 0:ge.flags)&2097152))if(Aa(k.left,k),Aa(k.right,k),Me(k.left.expression)&&o===e&&_0(e,k.left.expression))Du(k);else if(ty(k)){vs(k,67108868,\"__computed\");let Vn=Ks(Xe,k.left.expression,Nl(k.left),!1,!1);At(k,Vn)}else Bs(Fo(k.left,NS))}function Bs(k){x.assert(!Me(k)),Aa(k.expression,k),Sc(k.expression,k,!1,!1)}function Ks(k,ge,Xe,Mt,Vn){return k?.flags&2097152||(Xe&&!Mt&&(k=nf(ge,k,(zi,_a,ha)=>{if(_a)return Z(_a,zi,67110400),_a;{let pl=ha?ha.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Vo());return Oe(pl,ha,zi,67110400,110735)}})),Vn&&k&&k.valueDeclaration&&Z(k,k.valueDeclaration,32)),k}function vl(k,ge,Xe){if(!ge||!kp(ge))return;let Mt=Xe?ge.members||(ge.members=Vo()):ge.exports||(ge.exports=Vo()),Vn=0,jr=0;hs(LA(k))?(Vn=8192,jr=103359):Bo(k)&&CS(k)&&(ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"set\"})&&(Vn|=65540,jr|=78783),ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"get\"})&&(Vn|=32772,jr|=46015)),Vn===0&&(Vn=4,jr=0),Oe(Mt,ge,k,Vn|67108864,jr&-67108865)}function Nl(k){return Zn(k.parent)?fu(k.parent).parent.kind===312:k.parent.parent.kind===312}function Sc(k,ge,Xe,Mt){let Vn=tu(k,l)||tu(k,o),jr=Nl(ge);Vn=Ks(Vn,ge.expression,jr,Xe,Mt),vl(ge,Vn,Xe)}function kp(k){if(k.flags&1072)return!0;let ge=k.valueDeclaration;if(ge&&Bo(ge))return!!LA(ge);let Xe=ge?yi(ge)?ge.initializer:Zn(ge)?ge.right:Er(ge)&&Zn(ge.parent)?ge.parent.right:void 0:void 0;if(Xe=Xe&&bL(Xe),Xe){let Mt=ry(yi(ge)?ge.name:Zn(ge)?ge.left:ge);return!!Ib(Zn(Xe)&&(Xe.operatorToken.kind===57||Xe.operatorToken.kind===61)?Xe.right:Xe,Mt)}return!1}function fu(k){for(;Zn(k.parent);)k=k.parent;return k.parent}function tu(k,ge=o){if(Me(k))return r4(ge,k.escapedText);{let Xe=tu(k.expression);return Xe&&Xe.exports&&Xe.exports.get(tg(k))}}function nf(k,ge,Xe){if(_0(e,k))return e.symbol;if(Me(k))return Xe(k,tu(k),ge);{let Mt=nf(k.expression,ge,Xe),Vn=SL(k);return Ci(Vn)&&x.fail(\"unexpected PrivateIdentifier\"),Xe(Vn,Mt&&Mt.exports&&Mt.exports.get(tg(k)),Mt)}}function u_(k){!e.commonJsModuleIndicator&&Xd(k,!1)&&Za(k)}function X_(k){if(k.kind===263)Js(k,32,899503);else{let Vn=k.name?k.name.escapedText:\"__class\";vs(k,32,Vn),k.name&&de.add(k.name.escapedText)}let{symbol:ge}=k,Xe=ce(4194308,\"prototype\"),Mt=ge.exports.get(Xe.escapedName);Mt&&(k.name&&Aa(k.name,k),e.bindDiagnostics.push(ee(Mt.declarations[0],f.Duplicate_identifier_0,$s(Xe)))),ge.exports.set(Xe.escapedName,Xe),Xe.parent=ge}function fg(k){return BE(k)?Js(k,128,899967):Js(k,256,899327)}function fd(k){if(F&&Wl(k,k.name),!ko(k.name)){let ge=k.kind===260?k:k.parent.parent;Jn(k)&&jE(ge)&&!yb(k)&&!(gb(k)&32)?Ar(k,2097152,2097152):p9(k)?Js(k,2,111551):JE(k)?Ar(k,1,111551):Ar(k,1,111550)}}function mg(k){if(!(k.kind===348&&o.kind!==330)&&(F&&!(k.flags&33554432)&&Wl(k,k.name),ko(k.name)?vs(k,1,\"__\"+k.parent.parameters.indexOf(k)):Ar(k,1,111551),wu(k,k.parent))){let ge=k.parent.parent;Oe(ge.symbol.members,ge.symbol,k,4|(k.questionToken?16777216:0),0)}}function Ku(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),zs(k),F?(Ut(k),Js(k,16,110991)):Ar(k,16,110991)}function Lh(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&(k.flowNode=m),zs(k);let ge=k.name?k.name.escapedText:\"__function\";return vs(k,16,ge)}function mu(k,ge,Xe){return!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&pW(k)&&(k.flowNode=m),ty(k)?vs(k,ge,\"__computed\"):Ar(k,ge,Xe)}function Y(k){let ge=Rn(k,Xe=>Xe.parent&&lI(Xe.parent)&&Xe.parent.extendsType===Xe);return ge&&ge.parent}function Ye(k){if(Df(k.parent)){let ge=NW(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):Ar(k,262144,526824)}else if(k.parent.kind===195){let ge=Y(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):vs(k,262144,pe(k))}else Ar(k,262144,526824)}function xt(k){let ge=dg(k);return ge===1||ge===2&&n0(t)}function Nt(k){if(!(m.flags&1))return!1;if(m===fe&&(QM(k)&&k.kind!==242||k.kind===263||k.kind===267&&xt(k))&&(m=q,!t.allowUnreachableCode)){let Xe=Jne(t)&&!(k.flags&33554432)&&(!cl(k)||!!(Xg(k.declarationList)&7)||k.declarationList.declarations.some(Mt=>!!Mt.initializer));b3e(k,(Mt,Vn)=>ae(Xe,Mt,Vn,f.Unreachable_code_detected))}return!0}}function b3e(e,t){if(Di(e)&&oSe(e)&&Do(e.parent)){let{statements:r}=e.parent,i=NV(r,e);Z5(i,oSe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function oSe(e){return!Ql(e)&&!E3e(e)&&!kb(e)&&!(cl(e)&&!(Xg(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function E3e(e){switch(e.kind){case 264:case 265:return!0;case 267:return dg(e)!==1;case 266:return Wr(e,4096);default:return!1}}function _0(e,t){let r=0,i=mM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),DS(t)||Eh(t))return!0;if(Me(t)){let o=r4(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),lc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function kU(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(pW(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Lo(e.parent)||nl(e.parent)?0:34}return 0}function r4(e,t){var r,i,o,s;let l=(i=(r=Vr(e,L_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(qm(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var OU,wU,aSe,S3e=pt({\"src/compiler/binder.ts\"(){\"use strict\";wo(),mS(),OU=(e=>(e[e.NonInstantiated=0]=\"NonInstantiated\",e[e.Instantiated=1]=\"Instantiated\",e[e.ConstEnumOnly=2]=\"ConstEnumOnly\",e))(OU||{}),wU=(e=>(e[e.None=0]=\"None\",e[e.IsContainer=1]=\"IsContainer\",e[e.IsBlockScopedContainer=2]=\"IsBlockScopedContainer\",e[e.IsControlFlowContainer=4]=\"IsControlFlowContainer\",e[e.IsFunctionLike=8]=\"IsFunctionLike\",e[e.IsFunctionExpression=16]=\"IsFunctionExpression\",e[e.HasLocals=32]=\"HasLocals\",e[e.IsInterface=64]=\"IsInterface\",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]=\"IsObjectLiteralOrClassExpressionMethodOrAccessor\",e))(wU||{}),aSe=y3e()}});function hoe(e,t,r,i,o,s,l,d,p,h){return m;function m(v=()=>!0){let E=[],S=[];return{walkType:de=>{try{return A(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}},walkSymbol:de=>{try{return $(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}}};function A(de){if(!(!de||E[de.id]||(E[de.id]=de,$(de.symbol)))){if(de.flags&524288){let q=de,H=q.objectFlags;H&4&&C(de),H&32&&K(de),H&3&&oe(de),H&24&&W(q)}de.flags&262144&&R(de),de.flags&3145728&&L(de),de.flags&4194304&&G(de),de.flags&8388608&&U(de)}}function C(de){A(de.target),an(h(de),A)}function R(de){A(d(de))}function L(de){an(de.types,A)}function G(de){A(de.type)}function U(de){A(de.objectType),A(de.indexType),A(de.constraint)}function K(de){A(de.typeParameter),A(de.constraintType),A(de.templateType),A(de.modifiersType)}function F(de){let fe=t(de);fe&&A(fe.type),an(de.typeParameters,A);for(let q of de.parameters)$(q);A(e(de)),A(r(de))}function oe(de){W(de),an(de.typeParameters,A),an(i(de),A),A(de.thisType)}function W(de){let fe=o(de);for(let q of fe.indexInfos)A(q.keyType),A(q.type);for(let q of fe.callSignatures)F(q);for(let q of fe.constructSignatures)F(q);for(let q of fe.properties)$(q)}function $(de){if(!de)return!1;let fe=na(de);if(S[fe])return!1;if(S[fe]=de,!v(de))return!0;let q=s(de);return A(q),de.exports&&de.exports.forEach($),an(de.declarations,H=>{if(H.type&&H.type.kind===186){let ee=H.type,le=l(p(ee.exprName));$(le)}}),!1}}}var T3e=pt({\"src/compiler/symbolWalker.ts\"(){\"use strict\";wo()}});function sk({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Ic(o)?0:1:e===\"relative\"?0:e===\"non-relative\"?1:e===\"project-relative\"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return nR(r,i.fileName)?[3,2]:[2];if(zd(r)===1)return p===2?[2,1]:[1,2];let h=nR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:x.assertNever(p)}}};function l(d){if(o!==void 0){if(QE(o))return 2;if(Zs(o,\"/index\"))return 1}return nre(t,d??i.impliedNodeFormat,r,i)}}function A3e(e,t,r,i,o,s,l={}){let d=sSe(e,t,r,i,o,sk({},e,t,s),{},l);if(d!==s)return d}function i4(e,t,r,i,o,s={}){return sSe(e,t,r,i,o,sk({},e,t),{},s)}function I3e(e,t,r,i,o,s={}){let l=WU(t.fileName,i),d=mSe(l,r,i,o,s);return ml(d,p=>voe(p,l,t,i,e,o,!0,s.overrideImportMode))}function sSe(e,t,r,i,o,s,l,d={}){let p=WU(r,o),h=mSe(p,i,o,l,d);return ml(h,m=>voe(m,p,t,o,e,l,void 0,d.overrideImportMode))||uSe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function x3e(e,t,r,i,o={}){return lSe(e,t,r,i,o)[0]}function lSe(e,t,r,i,o={}){var s;let l=eW(e);if(!l)return je;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function cSe(e,t,r,i,o,s,l={}){return dSe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function dSe(e,t,r,i,o,s,l={},d){let p=!1,h=C3e(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,v,E,S]=lSe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!v)return{moduleSpecifiers:je,computedWithoutCache:p};p=!0,E||(E=_Se(WU(i.fileName,o),v.originalFileName,o));let A=R3e(E,r,i,o,s,l,d);return S?.set(i.path,v.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function R3e(e,t,r,i,o,s={},l){let d=WU(r.fileName,i),p=sk(o,t,r),h=an(e,C=>an(i.getFileIncludeReasons().get(ks(C.path,i.getCurrentDirectory(),d.getCanonicalFileName)),R=>{if(R.kind!==3||R.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Dae(r,R.index,t))return;let L=Ak(r,R.index).text;return p.relativePreference!==1||!op(L)?L:void 0}));if(h)return[h];let m=ct(e,C=>C.isInNodeModules),v,E,S,A;for(let C of e){let R=C.isInNodeModules?voe(C,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(v=pn(v,R),R&&C.isRedirect)return v;if(!R){let L=uSe(C.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,C.isRedirect);if(!L)continue;C.isRedirect?S=pn(S,L):RG(L)?Gb(L)?A=pn(A,L):E=pn(E,L):(l||!m||C.isInNodeModules)&&(A=pn(A,L))}}return E?.length?E:S?.length?S:v?.length?v:x.checkDefined(A)}function WU(e,t){e=Qi(e,t.getCurrentDirectory());let r=od(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Ur(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function uSe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:v,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),C=m&&M3e(m,e,v,S,A,r)||lk(ME(Gf(v,e,S)),A,r);if(!p&&!h&&!DF(r)||l===0)return d?void 0:C;let R=Qi(zW(r,i)||p,i.getCurrentDirectory()),L=ySe(e,R,S);if(!L)return d?void 0:C;let G=d?void 0:P3e(e,v,r,i,o),U=d||G===void 0?h&&hSe(L,h,A,i,r):void 0;if(d)return U;let K=G??(U===void 0&&p!==void 0?lk(L,A,r):U);if(!K)return C;if(l===1&&!op(K))return K;if(l===3&&!op(K)){let F=r.configFilePath?ks(Ur(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),oe=ks(e,F,S),W=Ui(E,F),$=Ui(oe,F);if(W&&!$||!W&&$)return K;let de=goe(i,Ur(oe)),fe=goe(i,v),q=!yx(i);return D3e(de,fe,q)?C:K}return bSe(K)||o4(C)<o4(K)?C:K}function D3e(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Xh(e,t,r)===0}function o4(e){let t=0;for(let r=Ui(e,\"./\")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function pSe(e,t){return zv(t.isRedirect,e.isRedirect)||$L(e.path,t.path)}function goe(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Vf(t,r=>e.fileExists(wr(r,\"package.json\"))?r:void 0)}function fSe(e,t,r,i,o){var s;let l=ev(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=ks(t,d,l),m=r.redirectTargetsMap.get(h)||je,E=[...p?[p]:je,t,...m].map(L=>Qi(L,d)),S=!ji(E,KC);if(!i){let L=an(E,G=>!(S&&KC(G))&&o(G,p===G));if(L)return L}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),C=Qi(t,d);return A&&Vf(Ur(C),L=>{let G=A.get(_c(ks(L,d,l)));if(G)return CG(e,L,l)?!1:an(E,U=>{if(!CG(U,L,l))return;let K=Gf(L,U,l);for(let F of G){let oe=jv(F,K),W=o(oe,U===p);if(S=!0,W)return W}})})||(i?an(E,L=>S&&KC(L)?void 0:o(L,L===p)):void 0)}function mSe(e,t,r,i,o={}){var s;let l=ks(e.importingSourceFileName,r.getCurrentDirectory(),ev(r)),d=ks(t,r.getCurrentDirectory(),ev(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=_Se(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function _Se(e,t,r){let i=new Map,o=!1;fSe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=Gb(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=_c(l),p;i.forEach(({path:m,isRedirect:v,isInNodeModules:E},S)=>{Ui(m,d)&&((p||(p=[])).push({path:S,isRedirect:v,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(pSe),s.push(...p));let h=Ur(l);if(h===l)break;l=h}if(i.size){let l=bo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(pSe),s.push(...l)}return s}function C3e(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>m9(l)&&(!zE(l)||!Ic(Ef(l.name))));if(i)return i.name.text;let s=Fi(e.declarations,l=>{var d,p,h,m;if(!Il(l))return;let v=C(l);if(!((d=v?.parent)!=null&&d.parent&&n_(v.parent)&&sd(v.parent.parent)&&Li(v.parent.parent.parent)))return;let E=(m=(h=(p=v.parent.parent.symbol.exports)==null?void 0:p.get(\"export=\"))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return v.parent.parent;function C(R){for(;R.flags&8;)R=R.parent;return R}})[0];if(s)return s.name.text}function hSe(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=Yo(d),h=p.indexOf(\"*\"),m=r.map(v=>({ending:v,value:lk(e,[v],o)}));if(og(p)&&m.push({ending:void 0,value:e}),h!==-1){let v=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=v.length+E.length&&Ui(A,v)&&Zs(A,E)&&s({ending:S,value:A})){let C=A.substring(v.length,A.length-E.length);if(!op(C))return KA(l,C)}}else if(ct(m,v=>v.ending!==0&&p===v.value)||ct(m,v=>v.ending===0&&p===v.value&&s(v)))return l}function s({ending:l,value:d}){return l!==0||d===lk(e,[l],o,i)}}function a4(e,t,r,i,o,s,l,d,p){if(typeof s==\"string\"){let h=!yx(t),m=()=>t.getCommonSourceDirectory(),v=p&&fH(r,e,h,m),E=p&&pH(r,e,h,m),S=Qi(wr(i,s),void 0),A=qA(r)?Yd(r)+boe(r,e):void 0;switch(d){case 0:if(A&&Xh(A,S,h)===0||Xh(r,S,h)===0||v&&Xh(v,S,h)===0||E&&Xh(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&Bf(S,A,h)){let G=Gf(S,A,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(Bf(S,r,h)){let G=Gf(S,r,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(v&&Bf(S,v,h)){let G=Gf(S,v,!1);return{moduleFileToTry:wr(o,G)}}if(E&&Bf(S,E,h)){let G=Gf(S,E,!1);return{moduleFileToTry:wr(o,G)}}break;case 2:let C=S.indexOf(\"*\"),R=S.slice(0,C),L=S.slice(C+1);if(A&&Ui(A,R,h)&&Zs(A,L,h)){let G=A.slice(R.length,A.length-L.length);return{moduleFileToTry:KA(o,G)}}if(Ui(r,R,h)&&Zs(r,L,h)){let G=r.slice(R.length,r.length-L.length);return{moduleFileToTry:KA(o,G)}}if(v&&Ui(v,R,h)&&Zs(v,L,h)){let G=v.slice(R.length,v.length-L.length);return{moduleFileToTry:KA(o,G)}}if(E&&Ui(E,R,h)&&Zs(E,L,h)){let G=E.slice(R.length,E.length-L.length);return{moduleFileToTry:KA(o,G)}}break}}else{if(Array.isArray(s))return an(s,h=>a4(e,t,r,i,o,h,l,d,p));if(typeof s==\"object\"&&s!==null){for(let h of fh(s))if(h===\"default\"||l.indexOf(h)>=0||ok(l,h)){let m=s[h],v=a4(e,t,r,i,o,m,l,d,p);if(v)return v}}}}function N3e(e,t,r,i,o,s,l){return typeof s==\"object\"&&s!==null&&!Array.isArray(s)&&t4(s)?an(fh(s),d=>{let p=Qi(wr(o,d),void 0),h=Zs(d,\"/\")?1:d.includes(\"*\")?2:0;return a4(e,t,r,i,p,s[d],l,h,!1)}):a4(e,t,r,i,o,s,l,0,!1)}function P3e(e,t,r,i,o){var s,l,d;if(!i.readFile||!DF(r))return;let p=goe(i,t);if(!p)return;let h=wr(p,\"package.json\"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(noe(m)||!i.fileExists(h))return;let v=m?.contents.packageJsonContent||KW(i.readFile(h)),E=v?.imports;if(!E)return;let S=hy(r,o);return(d=an(fh(E),A=>{if(!Ui(A,\"#\")||A===\"#\"||Ui(A,\"#/\"))return;let C=Zs(A,\"/\")?1:A.includes(\"*\")?2:0;return a4(r,i,e,p,A,E[A],S,C,!0)}))==null?void 0:d.moduleFileToTry}function M3e(e,t,r,i,o,s){let l=gSe(t,e,i);if(l===void 0)return;let d=gSe(r,e,i),p=ta(d,m=>nn(l,v=>ME(Gf(m,v,i)))),h=cB(p,$L);if(h)return lk(h,o,s)}function voe({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=yF(e);if(!m)return;let E=sk(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let K=m.packageRootIndex,F;for(;;){let{moduleFileToTry:oe,packageRootPath:W,blockedByExports:$,verbatimFromExports:de}=U(K);if(zd(l)!==1){if($)return;if(de)return oe}if(W){S=W,A=!0;break}if(F||(F=oe),K=e.indexOf(Os,K+1),K===-1){S=lk(F,E,l,s);break}}}if(t&&!A)return;let C=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),R=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(Ui(i,R)||C&&Ui(r(C),R)))return;let L=S.substring(m.topLevelPackageNameIndex+1),G=CN(L);return zd(l)===1&&G===L?void 0:G;function U(K){var F,oe;let W=e.substring(0,K),$=wr(W,\"package.json\"),de=e,fe=!1,q=(oe=(F=s.getPackageJsonInfoCache)==null?void 0:F.call(s))==null?void 0:oe.getPackageJsonInfo($);if($6(q)||q===void 0&&s.fileExists($)){let H=q?.contents.packageJsonContent||KW(s.readFile($)),ee=h||o.impliedNodeFormat;if(RF(l)){let ce=W.substring(m.topLevelPackageNameIndex+1),Z=CN(ce),pe=hy(l,ee),Ae=H?.exports?N3e(l,s,e,W,Z,H.exports,pe):void 0;if(Ae)return{...Ae,verbatimFromExports:!0};if(H?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let le=H?.typesVersions?X6(H.typesVersions):void 0;if(le){let ce=e.slice(W.length+1),Z=hSe(ce,le.paths,E,s,l);Z===void 0?fe=!0:de=wr(W,Z)}let Ee=H?.typings||H?.types||H?.main||\"index.js\";if(fo(Ee)&&!(fe&&CV(fF(le.paths),Ee))){let ce=ks(Ee,W,r),Z=r(de);if(Yd(ce)===Yd(Z))return{packageRootPath:W,moduleFileToTry:de};if(H?.type!==\"module\"&&!$l(Z,c2)&&Ui(Z,ce)&&Ur(Z)===fb(ce)&&Yd(Ll(Z))===\"index\")return{packageRootPath:W,moduleFileToTry:de}}}else{let H=r(de.substring(m.packageRootIndex+1));if(H===\"index.d.ts\"||H===\"index.js\"||H===\"index.ts\"||H===\"index.tsx\")return{moduleFileToTry:de,packageRootPath:W}}return{moduleFileToTry:de}}}function L3e(e,t){if(!e.fileExists)return;let r=Ff(GC({allowJs:!0},[{extension:\"node\",isMixedContent:!1},{extension:\"json\",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function gSe(e,t,r){return Fi(t,i=>{let o=ySe(e,i,r);return o!==void 0&&bSe(o)?void 0:o})}function lk(e,t,r,i){if($l(e,[\".json\",\".mjs\",\".cjs\"]))return e;let o=Yd(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if($l(e,[\".mts\",\".cts\"])&&l!==-1&&l<s)return e;if($l(e,[\".d.mts\",\".mts\",\".d.cts\",\".cts\"]))return o+yoe(e,r);if(!$l(e,[\".d.ts\"])&&$l(e,[\".ts\"])&&e.includes(\".d.\"))return vSe(e);switch(t[0]){case 0:let d=C1(o,\"/index\");return i&&d!==o&&L3e(i,d)?o:d;case 1:return o;case 2:return o+yoe(e,r);case 3:if(Yc(e)){let p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+yoe(e,r)}return e;default:return x.assertNever(t[0])}}function vSe(e){let t=Ll(e);if(!Zs(e,\".ts\")||!t.includes(\".d.\")||$l(t,[\".d.ts\"]))return;let r=QL(e,\".ts\"),i=r.substring(r.lastIndexOf(\".\"));return r.substring(0,r.indexOf(\".d.\"))+i}function yoe(e,t){return boe(e,t)??x.fail(`Extension ${jC(e)} is unsupported:: FileName:: ${e}`)}function boe(e,t){let r=og(e);switch(r){case\".ts\":case\".d.ts\":return\".js\";case\".tsx\":return t.jsx===1?\".jsx\":\".js\";case\".js\":case\".jsx\":case\".json\":return r;case\".d.mts\":case\".mts\":case\".mjs\":return\".mjs\";case\".d.cts\":case\".cts\":case\".cjs\":return\".cjs\";default:return}}function ySe(e,t,r){let i=AA(t,e,t,r,!1);return Ou(i)?void 0:i}function bSe(e){return Ui(e,\"..\")}var Eoe,Soe=pt({\"src/compiler/moduleSpecifiers.ts\"(){\"use strict\";wo(),Eoe=(e=>(e[e.Relative=0]=\"Relative\",e[e.NonRelative=1]=\"NonRelative\",e[e.Shortest=2]=\"Shortest\",e[e.ExternalNonRelative=3]=\"ExternalNonRelative\",e))(Eoe||{})}}),h0={};la(h0,{RelativePreference:()=>Eoe,countPathComponents:()=>o4,forEachFileNameOfModule:()=>fSe,getModuleSpecifier:()=>i4,getModuleSpecifierPreferences:()=>sk,getModuleSpecifiers:()=>cSe,getModuleSpecifiersWithCacheInfo:()=>dSe,getNodeModulesPackageName:()=>I3e,tryGetJSExtensionForFile:()=>boe,tryGetModuleSpecifiersFromCache:()=>x3e,tryGetRealFileNameForNonJsDeclarationFileName:()=>vSe,updateModuleSpecifier:()=>A3e});var Toe=pt({\"src/compiler/_namespaces/ts.moduleSpecifiers.ts\"(){\"use strict\";Soe()}});function k3e(){this.flags=0}function Fa(e){return e.id||(e.id=xoe,xoe++),e.id}function na(e){return e.id||(e.id=Ioe,Ioe++),e.id}function FU(e,t){let r=dg(e);return r===1||t&&r===2}function Aoe(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=wc.getSymbolConstructor(),p=wc.getTypeConstructor(),h=wc.getSignatureConstructor(),m=0,v=0,E=0,S=0,A=0,C=0,R,L,G=!1,U=Vo(),K=[1],F=e.getCompilerOptions(),oe=Wa(F),W=ld(F),$=!!F.experimentalDecorators,de=nN(F),fe=Xne(F),q=zS(F),H=Fd(F,\"strictNullChecks\"),ee=Fd(F,\"strictFunctionTypes\"),le=Fd(F,\"strictBindCallApply\"),Ee=Fd(F,\"strictPropertyInitialization\"),ce=Fd(F,\"noImplicitAny\"),Z=Fd(F,\"noImplicitThis\"),pe=Fd(F,\"useUnknownInCatchVariables\"),Ae=!!F.keyofStringsOnly,Oe=Ae?1:0,_e=F.suppressExcessPropertyErrors?0:8192,be=F.exactOptionalPropertyTypes,Te=plt(),De=Hut(),ft=h_(),he=Vo(),Le=Ra(4,\"undefined\");Le.declarations=[];var Ke=Ra(1536,\"globalThis\",8);Ke.exports=he,Ke.declarations=[],he.set(Ke.escapedName,Ke);var Dt=Ra(4,\"arguments\"),st=Ra(4,\"require\"),Ge=F.verbatimModuleSyntax?\"verbatimModuleSyntax\":\"isolatedModules\",ot=!F.verbatimModuleSyntax||!!F.importsNotUsedAsValues,Vt,jt,gn=0,On,en=0;let zt={getNodeCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,v),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:hu.size,identity:Cu.size,subtype:Y_.size,strictSubtype:rf.size}),isUndefinedSymbol:n=>n===Le,isArgumentsSymbol:n=>n===Dt,isUnknownSymbol:n=>n===tt,getMergedSymbol:Oa,getDiagnostics:V8e,getGlobalDiagnostics:sut,getRecursionIdentity:dQ,getUnmatchedProperties:ehe,getTypeOfSymbolAtLocation:(n,a)=>{let c=uo(a);return c?eot(n,c):it},getTypeOfSymbol:Yn,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=uo(n,ao);return c===void 0?x.fail(\"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.\"):(x.assert(wu(c,c.parent)),TP(c,Hs(a)))},getDeclaredTypeOfSymbol:Cs,getPropertiesOfType:Xa,getPropertyOfType:(n,a)=>Qo(n,Hs(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=uo(c);if(!u)return;let _=Hs(a),g=GQ(_,u);return g?zhe(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Fe(n,Hs(a)),getIndexInfoOfType:(n,a)=>Uh(n,a===0?Ie:gt),getIndexInfosOfType:Ud,getIndexInfosOfIndexSymbol:Kme,getSignaturesOfType:Co,getIndexTypeOfType:(n,a)=>yE(n,a===0?Ie:gt),getIndexType:n=>y_(n),getBaseTypes:ep,getBaseTypeOfLiteralType:wg,getWidenedType:gp,getTypeFromTypeNode:n=>{let a=uo(n,xi);return a?si(a):it},getParameterType:zm,getParameterIdentifierInfoAtPosition:Nst,getPromisedTypeOfPromise:kw,getAwaitedType:n=>pA(n),getReturnTypeOfSignature:Ha,isNullableType:h5,getNullableType:e5,getNonNullableType:Wg,getNonOptionalType:mQ,getTypeArguments:Ts,typeToTypeNode:ft.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ft.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ft.signatureToSignatureDeclaration,symbolToEntityName:ft.symbolToEntityName,symbolToExpression:ft.symbolToExpression,symbolToNode:ft.symbolToNode,symbolToTypeParameterDeclarations:ft.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ft.symbolToParameterDeclaration,typeParameterToDeclaration:ft.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=uo(n);return c?lut(c,a):[]},getSymbolAtLocation:n=>{let a=uo(n);return a?um(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=uo(n);return a?hut(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=uo(n);return a?gut(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=uo(n,Ed);return a?vut(a):void 0},getExportSymbolOfSymbol(n){return Oa(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=uo(n);return a?S1(a):it},getTypeOfAssignmentPattern:n=>{let a=uo(n,lC);return a&&gZ(a)||it},getPropertySymbolOfDestructuringAssignment:n=>{let a=uo(n,Me);return a?yut(a):void 0},signatureToString:(n,a,c,u)=>th(n,uo(a),c,u),typeToString:(n,a,c)=>Pn(n,uo(a),c),symbolToString:(n,a,c,u)=>ai(n,uo(a),c,u),typePredicateToString:(n,a,c)=>nh(n,uo(a),c),writeSignature:(n,a,c,u,_)=>th(n,uo(a),c,u,_),writeType:(n,a,c,u)=>Pn(n,uo(a),c,u),writeSymbol:(n,a,c,u,_)=>ai(n,uo(a),c,u,_),writeTypePredicate:(n,a,c,u)=>nh(n,uo(a),c,u),getAugmentedPropertiesOfType:Bge,getRootSymbols:Y8e,getSymbolOfExpando:YQ,getContextualType:(n,a)=>{let c=uo(n,lt);if(c)return a&4?Ki(c,()=>bu(c,a)):bu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=uo(n,Zh);return a?Ihe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=uo(n,WE);return c&&Ahe(c,a)},getContextualTypeForJsxAttribute:n=>{let a=uo(n,H8);return a&&dOe(a,void 0)},isContextSensitive:uf,getTypeOfPropertyOfContextualType:DE,getFullyQualifiedName:mp,getResolvedSignature:(n,a,c)=>gi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Wt,getResolvedSignatureForSignatureHelp:(n,a,c)=>ei(n,()=>gi(n,a,c,16)),getExpandedParameters:uLe,hasEffectiveRestParameter:dh,containsArgumentsReference:Hme,getConstantValue:n=>{let a=uo(n,tWe);return a?Gge(a):void 0},isValidPropertyAccess:(n,a)=>{let c=uo(n,$ee);return!!c&&zat(c,Hs(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=uo(n,Er);return!!u&&BOe(u,a,c)},getSignatureFromDeclaration:n=>{let a=uo(n,Lo);return a?kf(a):void 0},isImplementationOfOverload:n=>{let a=uo(n,Lo);return a?Z8e(a):void 0},getImmediateAliasedSymbol:Nhe,getAliasedSymbol:fc,getEmitResolver:Ev,getExportsOfModule:wT,getExportsAndPropertiesOfModule:eD,forEachExportAndPropertyOfModule:tD,getSymbolWalker:hoe(Stt,df,Ha,ep,Om,Yn,cm,iu,dp,Ts),getAmbientModules:kpt,getJsxIntrinsicTagNamesAt:vat,isOptionalParameter:n=>{let a=uo(n,ao);return a?ow(a):!1},tryGetMemberInModuleExports:(n,a)=>WT(Hs(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>nD(Hs(n),a),tryFindAmbientModule:n=>w$(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>w$(n,!1),getApparentType:ou,getUnionType:Br,isTypeAssignableTo:ea,createAnonymousType:cs,createSignature:jh,createSymbol:Ra,createIndexInfo:sh,getAnyType:()=>z,getStringType:()=>Ie,getStringLiteralType:yu,getNumberType:()=>gt,getNumberLiteralType:Wm,getBigIntType:()=>bt,createPromiseType:R5,createArrayType:_d,getElementTypeOfArrayType:Z7,getBooleanType:()=>ti,getFalseType:n=>n?Ot:dn,getTrueType:n=>n?An:Cn,getVoidType:()=>jn,getUndefinedType:()=>Re,getNullType:()=>se,getESSymbolType:()=>di,getNeverType:()=>Ar,getOptionalType:()=>j,getPromiseType:()=>W7(!1),getPromiseLikeType:()=>QLe(!1),getAsyncIterableType:()=>{let n=q$(!1);if(n!==ho)return n},isSymbolAccessible:vi,isArrayType:ff,isTupleType:ga,isArrayLikeType:Lv,isEmptyAnonymousObjectType:ch,isTypeInvalidDueToUnionDiscriminant:rtt,getExactOptionalProperties:Nrt,getAllPossiblePropertiesOfTypes:itt,getSuggestedSymbolForNonexistentProperty:Vhe,getSuggestionForNonexistentProperty:jhe,getSuggestedSymbolForNonexistentJSXAttribute:FOe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Uhe(n,Hs(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Oat(n,Hs(a),c),getSuggestedSymbolForNonexistentModule:jQ,getSuggestionForNonexistentExport:wat,getSuggestedSymbolForNonexistentClassMember:WOe,getBaseConstraintOfType:md,getDefaultFromTypeParameter:n=>n&&n.flags&262144?KT(n):void 0,resolveName(n,a,c,u){return Xs(a,Hs(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Ii(tE(n)),getJsxFragmentFactory:n=>{let a=jge(n);return a&&Ii(dp(a).escapedText)},getAccessibleSymbolChain:Wy,getTypePredicateOfSignature:df,resolveExternalModuleName:n=>{let a=uo(n,lt);return a&&jd(a,a,!0)},resolveExternalModuleSymbol:$u,tryGetThisTypeAt:(n,a,c)=>{let u=uo(n);return u&&bhe(u,a,c)},getTypeArgumentConstraint:n=>{let a=uo(n,xi);return a&&Ult(a)},getSuggestionDiagnostics:(n,a)=>{let c=uo(n,Li)||x.fail(\"Could not determine parsed source file.\");if(UC(c,F,e))return je;let u;try{return i=a,Fge(c),x.assert(!!(Fr(c).flags&1)),u=Pr(u,yT.getDiagnostics(c.fileName)),i8e(G8e(c),(_,g,T)=>{!X1(_)&&!B8e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||je}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(zt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:gr,isDeclarationVisible:Pm,isPropertyAccessible:qhe,getTypeOnlyAliasDeclaration:of,getMemberOverrideModifierStatus:Sdt,isTypeParameterPossiblyReferenced:U7,typeHasCallOrConstructSignatures:vZ};function Wt(n,a){let c=new Set,u=[];Ki(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,ei(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);return bo(c)}function ei(n,a){if(n=Rn(n,ZG),n){let c=[],u=[];for(;n;){let g=Fr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,e0(n)){let T=Pi(dr(n)),N=T.type;u.push([T,N]),T.type=void 0}n=Rn(n.parent,ZG)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function Ki(n,a){let c=Rn(n,WE);if(c){let _=n;do Fr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}G=!0;let u=ei(n,a);if(G=!1,c){let _=n;do Fr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function gi(n,a,c,u){let _=uo(n,WE);Vt=c;let g=_?xD(_,a,u):void 0;return Vt=void 0,g}var io=new Map,Gn=new Map,Nr=new Map,cr=new Map,Jt=new Map,Ue=new Map,Rt=new Map,mn=new Map,qr=new Map,ni=new Map,ki=new Map,so=new Map,Jo=new Map,Ea=new Map,ln=new Map,Tn=[],ke=new Map,nt=new Set,tt=Ra(4,\"unknown\"),yt=Ra(0,\"__resolving__\"),re=new Map,Ce=new Map,et=new Set,z=Fl(1,\"any\"),Je=Fl(1,\"any\",262144,\"auto\"),_t=Fl(1,\"any\",void 0,\"wildcard\"),ze=Fl(1,\"any\",void 0,\"blocked string\"),it=Fl(1,\"error\"),Ct=Fl(1,\"unresolved\"),on=Fl(1,\"any\",65536,\"non-inferrable\"),Qt=Fl(1,\"intrinsic\"),Zt=Fl(2,\"unknown\"),V=Fl(2,\"unknown\",void 0,\"non-null\"),Re=Fl(32768,\"undefined\"),St=H?Re:Fl(32768,\"undefined\",65536,\"widening\"),M=Fl(32768,\"undefined\",void 0,\"missing\"),te=be?M:Re,j=Fl(32768,\"undefined\",void 0,\"optional\"),se=Fl(65536,\"null\"),Pe=H?se:Fl(65536,\"null\",65536,\"widening\"),Ie=Fl(4,\"string\"),gt=Fl(8,\"number\"),bt=Fl(64,\"bigint\"),Ot=Fl(512,\"false\",void 0,\"fresh\"),dn=Fl(512,\"false\"),An=Fl(512,\"true\",void 0,\"fresh\"),Cn=Fl(512,\"true\");An.regularType=Cn,An.freshType=An,Cn.regularType=Cn,Cn.freshType=An,Ot.regularType=dn,Ot.freshType=Ot,dn.regularType=dn,dn.freshType=Ot;var ti=Br([dn,Cn]),di=Fl(4096,\"symbol\"),jn=Fl(16384,\"void\"),Ar=Fl(131072,\"never\"),Zi=Fl(131072,\"never\",262144,\"silent\"),_i=Fl(131072,\"never\",void 0,\"implicit\"),ui=Fl(131072,\"never\",void 0,\"unreachable\"),Mr=Fl(67108864,\"object\"),lo=Br([Ie,gt]),_n=Br([Ie,gt,di]),ms=Ae?Ie:_n,Dl=Br([gt,bt]),_o=Br([Ie,gt,ti,bt,se,Re]),Va=YT([\"\",\"\"],[gt]),vs=j7(n=>n.flags&262144?rrt(n):n,()=>\"(restrictive mapper)\"),Js=j7(n=>n.flags&262144?_t:n,()=>\"(permissive mapper)\"),Fc=Fl(131072,\"never\",void 0,\"unique literal\"),$i=j7(n=>n.flags&262144?Fc:n,()=>\"(unique literal mapper)\"),Uo,zc=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!0),n),()=>\"(unmeasurable reporter)\"),ts=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!1),n),()=>\"(unreliable reporter)\"),ua=cs(void 0,U,je,je,je),Us=cs(void 0,U,je,je,je);Us.objectFlags|=2048;var tf=Ra(2048,\"__type\");tf.members=Vo();var Wl=cs(tf,U,je,je,je),il=cs(void 0,U,je,je,je),zs=H?Br([Re,se,il]):Zt,ho=cs(void 0,U,je,je,je);ho.instantiations=new Map;var Ut=cs(void 0,U,je,je,je);Ut.objectFlags|=262144;var ys=cs(void 0,U,je,je,je),Pc=cs(void 0,U,je,je,je),Bc=cs(void 0,U,je,je,je),Ju=Bp(),ls=Bp();ls.constraint=Ju;var tc=Bp(),ae=Bp(),X=Bp();X.constraint=ae;var xe=O7(1,\"<<unresolved>>\",0,z),dt=jh(void 0,void 0,void 0,je,z,void 0,0,0),$t=jh(void 0,void 0,void 0,je,it,void 0,0,0),sr=jh(void 0,void 0,void 0,je,z,void 0,0,0),tr=jh(void 0,void 0,void 0,je,Zi,void 0,0,0),Ir=sh(gt,Ie,!0),pi=new Map,hr={get yieldType(){return x.fail(\"Not supported\")},get returnType(){return x.fail(\"Not supported\")},get nextType(){return x.fail(\"Not supported\")}},No=wv(z,z,z),Qs=wv(z,z,Zt),bc=wv(Ar,z,Re),bs={iterableCacheKey:\"iterationTypesOfAsyncIterable\",iteratorCacheKey:\"iterationTypesOfAsyncIterator\",iteratorSymbolName:\"asyncIterator\",getGlobalIteratorType:Wtt,getGlobalIterableType:q$,getGlobalIterableIteratorType:Ftt,getGlobalGeneratorType:ztt,resolveIterationType:(n,a)=>pA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Jl={iterableCacheKey:\"iterationTypesOfIterable\",iteratorCacheKey:\"iterationTypesOfIterator\",iteratorSymbolName:\"iterator\",getGlobalIteratorType:Btt,getGlobalIterableType:a_e,getGlobalIterableIteratorType:Gtt,getGlobalGeneratorType:Vtt,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Za,Ec=new Map,Du=[],pc,Nf,Vd,Se,At,Ln,eo,Po,Oo,Cl,Kl,Bs,Ks,vl,Nl,Sc,kp,fu,tu,nf,u_,X_,fg,fd,mg,Ku,Lh,mu,Y,Ye,xt,Nt,k,ge,Xe,Mt,Vn,jr,Or,zi,_a,ha,pl,Gc,nc,Xu,_u,Ay,ja,em,tm,Ri,_g,yv,nm,D0,C0,Op=new Map,p_=0,wp=0,hg=0,Ne=!1,Ve=0,Tt,Pt,rn,wn=[],tn=[],Wn=[],Qr=0,Kn=[],Gr=[],Qn=0,Mo=yu(\"\"),xa=Wm(0),xd=$$({negative:!1,base10Value:\"0\"}),Vc=[],gg=[],$b=[],UI=0,Qb=!1,GR=0,VR=10,jR=[],gT=[],N0=[],HI=[],UR=[],qI=[],JI=[],KI=[],XI=[],vT=[],YI=[],P0=[],M0=[],Iy=[],xy=[],kh=[],Zb=[],La=hx(),yT=hx(),HR=eh(),eE,vg,Y_=new Map,rf=new Map,hu=new Map,Yu=new Map,Cu=new Map,bv=new Map,bT=Vo();bT.set(Le.escapedName,Le);var qR=[[\".mts\",\".mjs\"],[\".ts\",\".js\"],[\".cts\",\".cjs\"],[\".mjs\",\".mjs\"],[\".js\",\".js\"],[\".cjs\",\".cjs\"],[\".tsx\",F.jsx===1?\".jsx\":\".js\"],[\".jsx\",\".jsx\"],[\".json\",\".json\"]];return qut(),zt;function $I(n){return n?ln.get(n):void 0}function Ry(n,a){return n&&ln.set(n,a),a}function tE(n){if(n){let a=Nn(n);if(a)if(fI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get(\"jsxfrag\");if(c){let _=oo(c)?c[0]:c;if(a.localJsxFragmentFactory=gI(_.arguments.factory,oe),He(a.localJsxFragmentFactory,Xl,Su),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=dp(a.localJsxFragmentFactory).escapedText}let u=jge(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=dp(u).escapedText}else{let c=QI(a);if(c)return a.localJsxNamespace=c}}return eE||(eE=\"React\",F.jsxFactory?(vg=gI(F.jsxFactory,oe),He(vg,Xl),vg&&(eE=dp(vg).escapedText)):F.reactNamespace&&(eE=Hs(F.reactNamespace))),vg||(vg=P.createQualifiedName(P.createIdentifier(Ii(eE)),\"createElement\")),eE}function QI(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get(\"jsx\");if(a){let c=oo(a)?a[0]:a;if(n.localJsxFactory=gI(c.arguments.factory,oe),He(n.localJsxFactory,Xl,Su),n.localJsxFactory)return n.localJsxNamespace=dp(n.localJsxFactory).escapedText}}function Xl(n){return F_(n,-1,-1),un(n,Xl,void 0)}function Ev(n,a){return V8e(n,a),De}function ZI(n,a,...c){let u=n?vr(n,a,...c):bl(a,...c),_=La.lookup(u);return _||(La.add(u),u)}function xm(n,a,c,...u){let _=we(a,c,...u);return _.skippedOn=n,_}function ET(n,a,...c){return n?vr(n,a,...c):bl(a,...c)}function we(n,a,...c){let u=ET(n,a,...c);return La.add(u),u}function Rm(n,a){n?La.add(a):yT.add({...a,category:2})}function jc(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Nn(a);Rm(n,\"message\"in c?Rc(_,0,0,c,...u):T9(_,c));return}Rm(n,\"message\"in c?vr(a,c,...u):eg(Nn(a),a,c))}function nE(n,a,c,...u){let _=we(n,c,...u);if(a){let g=vr(n,f.Did_you_forget_to_use_await);fa(_,g)}return _}function e1(n,a){let c=Array.isArray(n)?an(n,zG):zG(n);return c&&fa(a,vr(c,f.The_declaration_was_marked_as_deprecated_here)),yT.add(a),a}function Dy(n){let a=nu(n);return a&&yn(n.declarations)>1?a.flags&64?ct(n.declarations,Sv):ji(n.declarations,Sv):!!n.valueDeclaration&&Sv(n.valueDeclaration)||yn(n.declarations)&&ji(n.declarations,Sv)}function Sv(n){return!!(lS(n)&536870912)}function Tv(n,a,c){let u=vr(n,f._0_is_deprecated,c);return e1(a,u)}function SP(n,a,c,u){let _=c?vr(n,f.The_signature_0_of_1_is_deprecated,u,c):vr(n,f._0_is_deprecated,u);return e1(a,_)}function Ra(n,a,c){v++;let u=new d(n|33554432,a);return u.links=new Coe,u.links.checkFlags=c||0,u}function Dm(n,a){let c=Ra(1,n);return c.links.type=a,c}function ST(n,a){let c=Ra(4,n);return c.links.type=a,c}function TT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function rE(n,a){a.mergeId||(a.mergeId=Roe,Roe++),jR[a.mergeId]=n}function AT(n){let a=Ra(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),rE(a,n),a}function Pf(n,a,c=!1){if(!(n.flags&TT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=yl(n);if(_===tt)return a;n=AT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&IL(n,a.valueDeclaration),Pr(n.declarations,a.declarations),a.members&&(n.members||(n.members=Vo()),Cm(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=Vo()),Cm(n.exports,a.exports,c)),c||rE(n,a)}else if(n.flags&1024)n!==Ke&&we(a.declarations&&mo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ai(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,N=a.declarations&&Nn(a.declarations[0]),O=n.declarations&&Nn(n.declarations[0]),B=nL(N,F.checkJs),Q=nL(O,F.checkJs),me=ai(a);if(N&&O&&Za&&!_&&N!==O){let ue=Xh(N.path,O.path)===-1?N:O,We=ue===N?O:N,at=FD(Za,`${ue.path}|${We.path}`,()=>({firstFile:ue,secondFile:We,conflictingSymbols:new Map})),ht=FD(at.conflictingSymbols,me,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));B||u(ht.firstFileLocations,a),Q||u(ht.secondFileLocations,n)}else B||Mf(a,T,me,n),Q||Mf(n,T,me,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)jp(_,T)}}function Mf(n,a,c,u){an(n.declarations,_=>{yg(_,a,c,u.declarations)})}function yg(n,a,c,u){let _=(Ib(n,!1)?L9(n):mo(n))||n,g=ZI(_,a,c);for(let T of u||je){let N=(Ib(T,!1)?L9(T):mo(T))||T;if(N===_)continue;g.relatedInformation=g.relatedInformation||[];let O=vr(N,f._0_was_also_declared_here,c),B=vr(N,f.and_here);yn(g.relatedInformation)>=5||ct(g.relatedInformation,Q=>zC(Q,B)===0||zC(Q,O)===0)||fa(g,yn(g.relatedInformation)?B:O)}}function t1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=Vo();return Cm(c,n),Cm(c,a),c}function Cm(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?Pf(g,u,c):Oa(u))})}function JR(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){x.assert(_.symbol.declarations.length>1);return}if(Jm(_))Cm(he,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=Tg(n,n,g,!0);if(!T)return;if(T=$u(T),T.flags&1920)if(ct(Nf,N=>T===N.symbol)){let N=Pf(_.symbol,T,!0);Vd||(Vd=new Map),Vd.set(n.text,N)}else{if((c=T.exports)!=null&&c.get(\"__export\")&&((u=_.symbol.exports)!=null&&u.size)){let N=Dme(T,\"resolvedExports\");for(let[O,B]of bo(_.symbol.exports.entries()))N.has(O)&&!T.exports.has(O)&&Pf(N.get(O),B)}Pf(T,_.symbol)}else we(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function L0(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?an(T.declarations,u(Ii(g),c)):n.set(g,_)});function u(_,g){return T=>La.add(vr(T,g,_))}}function Pi(n){if(n.flags&33554432)return n.links;let a=na(n);return gT[a]??(gT[a]=new Coe)}function Fr(n){let a=Fa(n);return N0[a]||(N0[a]=new k3e)}function $_(n){return n.kind===312&&!sp(n)}function gu(n,a,c){if(c){let u=Oa(n.get(a));if(u&&(x.assert((tl(u)&1)===0,\"Should never get an instantiated symbol here.\"),u.flags&c||u.flags&2097152&&Qc(u)&c))return u}}function TP(n,a){let c=n.parent,u=n.parent.parent,_=gu(c.locals,a,111551),g=gu(Ky(u.symbol),a,111551);return _&&g?[_,g]:x.fail(\"There should exist two symbols, one as property declaration and one as parameter declaration\")}function bg(n,a){let c=Nn(n),u=Nn(a),_=w_(n);if(c!==u){if(W&&(c.externalModuleIndicator||u.externalModuleIndicator)||!ss(F)||OS(a)||n.flags&33554432||T(a,n))return!0;let O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(u)}if(a.flags&16777216||OS(a)||she(a))return!0;if(n.pos<=a.pos&&!(xo(n)&&fL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let O=Db(a,208);return O?Rn(O,Na)!==Rn(n,Na)||n.pos<O.pos:bg(Db(n,260),a)}else{if(n.kind===260)return!g(n,a);if(Kr(n))return!Rn(a,O=>Pa(O)&&O.parent.parent===n);if(xo(n))return!N(n,a,!1);if(wu(n,n.parent))return!(fe&&Oc(n)===Oc(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return fe&&Oc(n)&&(xo(n)||wu(n,n.parent))?!N(n,a,!0):!0;return!1;function g(O,B){switch(O.parent.parent.kind){case 243:case 248:case 250:if(O0(B,O,_))return!0;break}let Q=O.parent.parent;return H1(Q)&&O0(B,Q.expression,_)}function T(O,B){return!!Rn(O,Q=>{if(Q===_)return\"quit\";if(Lo(Q))return!0;if(nl(Q))return B.pos<O.pos;let me=Vr(Q.parent,xo);if(me&&me.initializer===Q){if(zo(Q.parent)){if(B.kind===174)return!0;if(xo(B)&&Oc(O)===Oc(B)){let We=B.name;if(Me(We)||Ci(We)){let at=Yn(dr(B)),ht=Cr(B.parent.members,nl);if(Ddt(We,at,ht,B.parent.pos,Q.pos))return!0}}}else if(!(B.kind===172&&!zo(B))||Oc(O)!==Oc(B))return!0}return!1})}function N(O,B,Q){return B.end>O.end?!1:Rn(B,ue=>{if(ue===O)return\"quit\";switch(ue.kind){case 219:return!0;case 172:return Q&&(xo(O)&&ue.parent===O.parent||wu(O,O.parent)&&ue.parent===O.parent.parent)?\"quit\":!0;case 241:switch(ue.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function AP(n,a,c){let u=Wa(F),_=a;if(ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let N=Fr(_);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=an(_.parameters,g)||!1),!N.declarationRequiresScopeChange}return!1;function g(N){return T(N.name)||!!N.initializer&&T(N.initializer)}function T(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(N.name);case 172:return jl(N)?!fe:T(N.name);default:return jG(N)||yd(N)?u<7:Na(N)&&N.dotDotDotToken&&Rf(N.parent)?u<4:xi(N)?!1:Ao(N,T)||!1}}}function Cy(n){return ES(n)&&Qh(n.type)||gN(n)&&Qh(n.typeExpression)}function Xs(n,a,c,u,_,g,T=!1,N=!0){return pp(n,a,c,u,_,g,T,N,gu)}function pp(n,a,c,u,_,g,T,N,O){var B,Q,me;let ue=n,We,at,ht,qt,Xt,Hn=!1,En=n,Kt,In=!1;e:for(;n;){if(a===\"const\"&&Cy(n))return;if($M(n)&&at&&n.name===at&&(at=n,n=n.parent),L_(n)&&n.locals&&!$_(n)&&(We=O(n.locals,a,c))){let zn=!0;if(Lo(n)&&at&&at!==n.body?(c&We.flags&788968&&at.kind!==327&&(zn=We.flags&262144?at===n.type||at.kind===169||at.kind===348||at.kind===349||at.kind===168:!1),c&We.flags&3&&(AP(We,n,at)?zn=!1:We.flags&1&&(zn=at.kind===169||at===n.type&&!!Rn(We.valueDeclaration,ao)))):n.kind===194&&(zn=at===n.trueType),zn)break e;We=void 0}switch(Hn=Hn||Lf(n,at),n.kind){case 312:if(!sp(n))break;In=!0;case 267:let zn=((B=dr(n))==null?void 0:B.exports)||U;if(n.kind===312||Il(n)&&n.flags&33554432&&!Jm(n)){if(We=zn.get(\"default\")){let co=Ex(We);if(co&&We.flags&c&&co.escapedName===a)break e;We=void 0}let Bn=zn.get(a);if(Bn&&Bn.flags===2097152&&(Vs(Bn,281)||Vs(Bn,280)))break}if(a!==\"default\"&&(We=O(zn,a,c&2623475)))if(Li(n)&&n.commonJsModuleIndicator&&!((Q=We.declarations)!=null&&Q.some(bf)))We=void 0;else break e;break;case 266:if(We=O(((me=dr(n))==null?void 0:me.exports)||U,a,c&8)){u&&xf(F)&&!(n.flags&33554432)&&Nn(n)!==Nn(We.valueDeclaration)&&we(En,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ii(a),Ge,`${Ii(Fp(n).escapedName)}.${Ii(a)}`);break e}break;case 172:if(!zo(n)){let Bn=Ag(n.parent);Bn&&Bn.locals&&O(Bn.locals,a,c&111551)&&(x.assertNode(n,xo),qt=n)}break;case 263:case 231:case 264:if(We=O(dr(n).members||U,a,c&788968)){if(!Eg(We,n)){We=void 0;break}if(at&&zo(at)){u&&we(En,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Dc(n)&&c&32){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 233:if(at===n.expression&&n.parent.token===96){let Bn=n.parent.parent;if(Kr(Bn)&&(We=O(dr(Bn).members,a,c&788968))){u&&we(En,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Kt=n.parent.parent,(Kr(Kt)||Kt.kind===264)&&(We=O(dr(Kt).members,a,c&788968))){u&&we(En,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Wa(F)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a===\"arguments\"){We=Dt;break e}break;case 218:if(c&3&&a===\"arguments\"){We=Dt;break e}if(c&16){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(xc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let Mn=ux(n);Mn&&(n=Mn.parent);break;case 169:at&&(at===n.initializer||at===n.name&&ko(at))&&(Xt||(Xt=n));break;case 208:at&&(at===n.initializer||at===n.name&&ko(at))&&JE(n)&&!Xt&&(Xt=n);break;case 195:if(c&262144){let Bn=n.typeParameter.name;if(Bn&&a===Bn.escapedText){We=n.typeParameter.symbol;break e}}break;case 281:at&&at===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Ny(n)&&(ht=n),at=n,n=Df(n)?NW(n)||n.parent:(Tm(n)||T6(n))&&xb(n)||n.parent}if(g&&We&&(!ht||We!==ht.symbol)&&(We.isReferenced|=c),!We){if(at&&(x.assertNode(at,Li),at.commonJsModuleIndicator&&a===\"exports\"&&c&at.symbol.flags))return at.symbol;T||(We=O(he,a,c))}if(!We&&ue&&Jn(ue)&&ue.parent&&Xd(ue.parent,!1))return st;function Sn(){return qt&&!fe?(we(En,En&&qt.type&&wM(qt.type,En.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,is(qt.name),rm(_)),!0):!1}if(We){if(u&&Sn())return}else{u&&r(()=>{if(!En||En.parent.kind!==331&&!k0(En,a,_)&&!Sn()&&!IT(En)&&!n1(En,a,c)&&!Av(En,a)&&!xT(En,a,c)&&!KR(En,a,c)&&!Wh(En,a,c)){let zn,Mn;if(_&&(Mn=Lat(_),Mn&&we(En,u,rm(_),Mn)),!Mn&&N&&GR<VR&&(zn=Uhe(ue,a,c),zn?.valueDeclaration&&sd(zn.valueDeclaration)&&Jm(zn.valueDeclaration)&&(zn=void 0),zn)){let co=ai(zn),no=Ghe(ue,zn,!1),Eo=c===1920||_&&typeof _!=\"string\"&&xs(_)?f.Cannot_find_namespace_0_Did_you_mean_1:no?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,Yi=ET(En,Eo,rm(_),co);Rm(!no,Yi),zn.valueDeclaration&&fa(Yi,vr(zn.valueDeclaration,f._0_is_declared_here,co))}!zn&&!Mn&&_&&we(En,u,rm(_)),GR++}});return}return u&&r(()=>{var zn;if(En&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Mn=zp(We);(Mn.flags&2||Mn.flags&32||Mn.flags&384)&&Ds(Mn,En)}if(We&&In&&(c&111551)===111551&&!(ue.flags&16777216)){let Mn=Oa(We);yn(Mn.declarations)&&ji(Mn.declarations,Bn=>D2(Bn)||Li(Bn)&&!!Bn.symbol.globalExports)&&jc(!F.allowUmdGlobalAccess,En,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ii(a))}if(We&&Xt&&!Hn&&(c&111551)===111551){let Mn=Oa(L$(We)),Bn=Ym(Xt);Mn===dr(Xt)?we(En,f.Parameter_0_cannot_reference_itself,is(Xt.name)):Mn.valueDeclaration&&Mn.valueDeclaration.pos>Xt.pos&&Bn.parent.locals&&O(Bn.parent.locals,Mn.escapedName,c)===Mn&&we(En,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,is(Xt.name),is(En))}if(We&&En&&c&111551&&We.flags&2097152&&!(We.flags&111551)&&!Pb(En)){let Mn=of(We,111551);if(Mn){let Bn=Mn.kind===281||Mn.kind===278||Mn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,co=Ii(a);Oh(we(En,Bn,co),Mn,co)}}if(F.isolatedModules&&We&&In&&(c&111551)===111551){let Bn=O(he,a,c)===We&&Li(at)&&at.locals&&O(at.locals,a,-111552);if(Bn){let co=(zn=Bn.declarations)==null?void 0:zn.find(no=>no.kind===276||no.kind===273||no.kind===274||no.kind===271);co&&!UM(co)&&we(co,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ii(a))}}}),We}function Oh(n,a,c){return a?fa(n,vr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function Lf(n,a){return n.kind!==219&&n.kind!==218?oI(n)||(hs(n)||n.kind===172&&!zo(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Wr(n,1024)?!0:!RS(n)}function Ny(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function rm(n){return fo(n)?Ii(n):is(n)}function Eg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(Df(c.parent)?PS(c.parent):c.parent)===a)return!(Df(c.parent)&&Dr(c.parent.parent.tags,bf))}return!1}function k0(n,a,c){if(!Me(n)||n.escapedText!==a||j8e(n)||OS(n))return!1;let u=lu(n,!1,!1),_=u;for(;_;){if(Kr(_.parent)){let g=dr(_.parent);if(!g)break;let T=Yn(g);if(Qo(T,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,rm(c),ai(g)),!0;if(_===u&&!zo(_)){let N=Cs(g).thisType;if(Qo(N,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,rm(c)),!0}}_=_.parent}return!1}function IT(n){let a=wh(n);return a&&Es(a,64,!0)?(we(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Vl(a)),!0):!1}function wh(n){switch(n.kind){case 80:case 211:return n.parent?wh(n.parent):void 0;case 233:if(gl(n.expression))return n.expression;default:return}}function n1(n,a,c){let u=1920|(Jn(n)?111551:0);if(c===u){let _=yl(Xs(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if($d(g)){x.assert(g.left===n,\"Should only be resolving left side of qualified name as a namespace\");let T=g.right.escapedText;if(Qo(Cs(_),T))return we(g,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ii(a),Ii(T)),!0}return we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ii(a)),!0}}return!1}function Wh(n,a,c){if(c&788584){let u=yl(Xs(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return we(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ii(a)),!0}return!1}function f_(n){return n===\"any\"||n===\"string\"||n===\"number\"||n===\"boolean\"||n===\"never\"||n===\"unknown\"}function Av(n,a){return f_(a)&&n.parent.kind===281?(we(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function KR(n,a,c){if(c&111551){if(f_(a)){let g=n.parent.parent;if(g&&g.parent&&xp(g)){let T=g.token,N=g.parent.kind;N===264&&T===96?we(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ii(a)):N===263&&T===96?we(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ii(a)):N===263&&T===119&&we(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ii(a))}else we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ii(a));return!0}let u=yl(Xs(n,a,788544,void 0,void 0,!1)),_=u&&Qc(u);if(u&&_!==void 0&&!(_&111551)){let g=Ii(a);return YR(a)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):XR(n,u)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g===\"K\"?\"P\":\"K\"):we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function XR(n,a){let c=Rn(n.parent,u=>Pa(u)||Gu(u)?!1:ju(u)||\"quit\");if(c&&c.members.length===1){let u=Cs(a);return!!(u.flags&1048576)&&N5(u,384,!0)}return!1}function YR(n){switch(n){case\"Promise\":case\"Symbol\":case\"Map\":case\"WeakMap\":case\"Set\":case\"WeakSet\":return!0}return!1}function xT(n,a,c){if(c&111127){if(yl(Xs(n,a,1024,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_value,Ii(a)),!0}else if(c&788544&&yl(Xs(n,a,1536,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_type,Ii(a)),!0;return!1}function Ds(n,a){var c;if(x.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>p9(_)||Kr(_)||_.kind===266);if(u===void 0)return x.fail(\"checkResolvedBlockScopedVariable could not find block-scoped declaration\");if(!(u.flags&33554432)&&!bg(u,a)){let _,g=is(mo(u));n.flags&2?_=we(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=we(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=we(a,f.Enum_0_used_before_its_declaration,g):(x.assert(!!(n.flags&128)),xf(F)&&(_=we(a,f.Enum_0_used_before_its_declaration,g))),_&&fa(_,vr(u,f._0_is_declared_here,g))}}function O0(n,a,c){return!!a&&!!Rn(n,u=>u===a||(u===c||Lo(u)&&(!RS(u)||gc(u)&3)?\"quit\":!1))}function RT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function im(n){return n.declarations&&hA(n.declarations,Py)}function Py(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&px(n)||Zn(n)&&hl(n)===2&&px(n)||us(n)&&Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&$R(n.parent.right)||n.kind===304||n.kind===303&&$R(n.initializer)||n.kind===260&&jE(n)||n.kind===208&&jE(n.parent.parent)}function $R(n){return kL(n)||ps(n)&&T_(n)}function DT(n,a){let c=Ly(n);if(c){let _=Tx(c.expression).arguments[0];return Me(c.name)?yl(Qo(PLe(_),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===283){let _=jd(n,N9(n)||gC(n)),g=$u(_);return Nu(n,_,g,!1),g}let u=i1(n.moduleReference,a);return IP(n,u),u}function IP(n,a){if(Nu(n,void 0,a,!1)&&!n.isTypeOnly){let c=of(dr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?\"*\":Ii(c.name.escapedText);fa(we(n.moduleReference,_),vr(c,g,T))}}function nr(n,a,c,u){let _=n.exports.get(\"export=\"),g=_?Qo(Yn(_),a,!0):n.exports.get(a),T=yl(g,u);return Nu(c,g,T,!1),T}function Mc(n){return dl(n)&&!n.isExportEquals||Wr(n,2048)||Ed(n)||j_(n)}function Oi(n){return Ga(n)?e.getModeForUsageLocation(Nn(n),n):void 0}function Wp(n,a){return n===99&&a===1}function Iv(n){return Oi(n)===99&&Zs(n.text,\".json\")}function m_(n,a,c,u){let _=n&&Oi(u);if(n&&_!==void 0&&100<=W&&W<=199){let g=Wp(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=nr(a,\"default\",void 0,!0);return!(g&&ct(g.declarations,Mc)||nr(a,Hs(\"__esModule\"),void 0,c))}return wd(n)?typeof n.externalModuleIndicator!=\"object\"&&!nr(a,Hs(\"__esModule\"),void 0,c):xv(a)}function Xn(n,a){let c=jd(n,n.parent.moduleSpecifier);if(c)return CT(c,n,a)}function CT(n,a,c){var u;let _;pC(n)?_=n:_=nr(n,\"default\",a,c);let g=(u=n.declarations)==null?void 0:u.find(Li),T=iE(a);if(!T)return _;let N=Iv(T),O=m_(g,n,c,T);if(!_&&!O&&!N)if(xv(n)&&!q){let B=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\",me=n.exports.get(\"export=\").valueDeclaration,ue=we(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,ai(n),B);me&&fa(ue,vr(me,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,B))}else V_(a)?Tc(n,a):NT(n,n,a,RA(a)&&a.propertyName||a.name);else if(O||N){let B=$u(n,c)||yl(n,c);return Nu(a,n,B,!1),B}return Nu(a,_,void 0,!1),_}function iE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return U_(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return x.assertNever(n)}}function Tc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))we(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ai(n),ai(a.symbol));else{let g=we(a.name,f.Module_0_has_no_default_export,ai(n)),T=(u=n.exports)==null?void 0:u.get(\"__export\");if(T){let N=(_=T.declarations)==null?void 0:_.find(O=>{var B,Q;return!!(xl(O)&&O.moduleSpecifier&&((Q=(B=jd(O,O.moduleSpecifier))==null?void 0:B.exports)!=null&&Q.has(\"default\")))});N&&fa(g,vr(N,f.export_Asterisk_does_not_re_export_a_default))}}}function Q_(n,a){let c=n.parent.parent.moduleSpecifier,u=jd(n,c),_=Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function om(n,a){let c=n.parent.moduleSpecifier,u=c&&jd(n,c),_=c&&Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function w0(n,a){if(n===tt&&a===tt)return tt;if(n.flags&790504)return n;let c=Ra(n.flags|a.flags,n.escapedName);return x.assert(n.declarations||a.declarations),c.declarations=NE(ro(n.declarations,a.declarations),Hg),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function W0(n,a,c,u){var _;if(n.flags&1536){let g=Qu(n).get(a.escapedText),T=yl(g,u),N=(_=Pi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return Nu(c,g,T,!1,N,a.escapedText),T}}function My(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return yl(Qo(si(c),a))}}function Sg(n,a,c=!1){var u;let _=N9(n)||n.moduleSpecifier,g=jd(n,_),T=!Er(a)&&a.propertyName||a.name;if(!Me(T))return;let N=T.escapedText===\"default\"&&q,O=Pu(g,_,!1,N);if(O&&T.escapedText){if(pC(g))return g;let B;g&&g.exports&&g.exports.get(\"export=\")?B=Qo(Yn(O),T.escapedText,!0):B=My(O,T.escapedText),B=yl(B,c);let Q=W0(O,T,a,c);if(Q===void 0&&T.escapedText===\"default\"){let ue=(u=g.declarations)==null?void 0:u.find(Li);(Iv(_)||m_(ue,g,c,_))&&(Q=$u(g,c)||yl(g,c))}let me=Q&&B&&Q!==B?w0(B,Q):Q||B;return me||NT(g,O,n,T),me}}function NT(n,a,c,u){var _;let g=mp(n,c),T=is(u),N=jQ(u,a);if(N!==void 0){let O=ai(N),B=we(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,O);N.valueDeclaration&&fa(B,vr(N.valueDeclaration,f._0_is_declared_here,O))}else(_=n.exports)!=null&&_.has(\"default\")?we(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):am(c,u,T,n,g)}function am(n,a,c,u,_){var g,T;let N=(T=(g=Vr(u.valueDeclaration,L_))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),O=u.exports;if(N){let B=O?.get(\"export=\");if(B)Nm(B,N)?oE(n,a,c,_):we(a,f.Module_0_has_no_exported_member_1,_,c);else{let Q=O?Dr(Ume(O),ue=>!!Nm(ue,N)):void 0,me=Q?we(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,ai(Q)):we(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);N.declarations&&fa(me,...nn(N.declarations,(ue,We)=>vr(ue,We===0?f._0_is_declared_here:f.and_here,c)))}}else we(a,f.Module_0_has_no_exported_member_1,_,c)}function oE(n,a,c,u){if(W>=5){let _=z_(F)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else if(Jn(n)){let _=z_(F)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else{let _=z_(F)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c,c,u)}}function Fh(n,a){if(Iu(n)&&ar(n.propertyName||n.name)===\"default\"){let T=iE(n),N=T&&jd(n,T);if(N)return CT(N,n,a)}let c=Na(n)?Ym(n):n.parent.parent.parent,u=Ly(c),_=Sg(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Me(g)?yl(Qo(Yn(_),g.escapedText),a):(Nu(n,void 0,_,!1),_)}function Ly(n){if(yi(n)&&n.initializer&&Er(n.initializer))return n.initializer}function r1(n,a){if(qm(n.parent)){let c=$u(n.parent.symbol,a);return Nu(n,void 0,c,!1),c}}function aE(n,a,c){if(ar(n.propertyName||n.name)===\"default\"){let _=iE(n),g=_&&jd(n,_);if(g)return CT(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?Sg(n.parent.parent,n,c):Es(n.propertyName||n.name,a,!1,c);return Nu(n,void 0,u,!1),u}function QR(n,a){let c=dl(n)?n.expression:n.right,u=F0(c,a);return Nu(n,void 0,u,!1),u}function F0(n,a){if(Dc(n))return Ml(n).symbol;if(!Su(n)&&!gl(n))return;let c=Es(n,901119,!0,a);return c||(Ml(n),Fr(n).resolvedSymbol)}function PT(n,a){if(Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return F0(n.parent.right,a)}function fp(n,a=!1){switch(n.kind){case 271:case 260:return DT(n,a);case 273:return Xn(n,a);case 274:return Q_(n,a);case 280:return om(n,a);case 276:case 208:return Fh(n,a);case 281:return aE(n,901119,a);case 277:case 226:return QR(n,a);case 270:return r1(n,a);case 304:return Es(n.name,901119,!0,a);case 303:return F0(n.initializer,a);case 212:case 211:return PT(n,a);default:return x.fail()}}function MT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function yl(n,a){return!a&&MT(n)?fc(n):n}function fc(n){x.assert((n.flags&2097152)!==0,\"Should only get Alias here.\");let a=Pi(n);if(a.aliasTarget)a.aliasTarget===yt&&(a.aliasTarget=tt);else{a.aliasTarget=yt;let c=im(n);if(!c)return x.fail();let u=fp(c);a.aliasTarget===yt?a.aliasTarget=u||tt:we(c,f.Circular_definition_of_import_alias_0,ai(n))}return a.aliasTarget}function LT(n){if(Pi(n).aliasTarget!==yt)return fc(n)}function Qc(n,a,c){let u=a&&of(n),_=u&&xl(u),g=u&&(_?jd(u.moduleSpecifier,u.moduleSpecifier,!0):fc(u.symbol)),T=_&&g?Z_(g):void 0,N=c?0:n.flags,O;for(;n.flags&2097152;){let B=zp(fc(n));if(!_&&B===g||T?.get(B.escapedName)===B)break;if(B===tt)return-1;if(B===n||O?.has(B))break;B.flags&2097152&&(O?O.add(B):O=new Set([n,B])),N|=B.flags,n=B}return N}function Nu(n,a,c,u,_,g){if(!n||Er(n))return!1;let T=dr(n);if(Sb(n)){let O=Pi(T);return O.typeOnlyDeclaration=n,!0}if(_){let O=Pi(T);return O.typeOnlyDeclaration=_,T.escapedName!==g&&(O.typeOnlyExportStarName=g),!0}let N=Pi(T);return sE(N,a,u)||sE(N,c,u)}function sE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get(\"export=\"))??a,g=_.declarations&&Dr(_.declarations,Sb);n.typeOnlyDeclaration=g??Pi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function of(n,a){if(!(n.flags&2097152))return;let c=Pi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?yl(Z_(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):fc(c.typeOnlyDeclaration.symbol);return Qc(u)&a?c.typeOnlyDeclaration:void 0}}function ky(n){if(!ot)return;let a=dr(n),c=fc(a);c&&(c===tt||Qc(a,!0)&111551&&!Bw(c))&&Oy(a)}function Oy(n){x.assert(ot);let a=Pi(n);if(!a.referenced){a.referenced=!0;let c=im(n);if(!c)return x.fail();ox(c)&&Qc(yl(n))&111551&&Ml(c.moduleReference)}}function Lc(n){let a=Pi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function i1(n,a){return n.kind===80&&LC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Es(n,1920,!1,a):(x.assert(n.parent.kind===271),Es(n,901119,!1,a))}function mp(n,a){return n.parent?mp(n.parent,a)+\".\"+ai(n):ai(n,a,void 0,36)}function kT(n){for(;$d(n.parent);)n=n.parent;return n}function OT(n){let a=dp(n),c=Xs(a,a.escapedText,111551,void 0,a,!0);if(c){for(;$d(a.parent);){let u=Yn(c);if(c=Qo(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Es(n,a,c,u,_){if(_l(n))return;let g=1920|(Jn(n)?a&111551:0),T;if(n.kind===80){let N=a===g||xs(n)?f.Cannot_find_namespace_0:Ake(dp(n)),O=Jn(n)&&!xs(n)?ZR(n,a):void 0;if(T=Oa(Xs(_||n,n.escapedText,a,c||O?void 0:N,n,!0,!1)),!T)return Oa(O)}else if(n.kind===166||n.kind===211){let N=n.kind===166?n.left:n.expression,O=n.kind===166?n.right:n.name,B=Es(N,g,c,!1,_);if(!B||_l(O))return;if(B===tt)return B;if(B.valueDeclaration&&Jn(B.valueDeclaration)&&zd(F)!==100&&yi(B.valueDeclaration)&&B.valueDeclaration.initializer&&lwe(B.valueDeclaration.initializer)){let Q=B.valueDeclaration.initializer.arguments[0],me=jd(Q,Q);if(me){let ue=$u(me);ue&&(B=ue)}}if(T=Oa(gu(Qu(B),O.escapedText,a)),!T&&B.flags&2097152&&(T=Oa(gu(Qu(fc(B)),O.escapedText,a))),!T){if(!c){let Q=mp(B),me=is(O),ue=jQ(O,B);if(ue){we(O,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,me,ai(ue));return}let We=$d(n)&&kT(n);if(Se&&a&788968&&We&&!Wx(We.parent)&&OT(We)){we(We,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Wu(We));return}if(a&1920&&$d(n.parent)){let ht=Oa(gu(Qu(B),O.escapedText,788968));if(ht){we(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ai(ht),Ii(n.parent.right.escapedText));return}}we(O,f.Namespace_0_has_no_exported_member_1,Q,me)}return}}else x.assertNever(n,\"Unknown entity name kind.\");return x.assert((tl(T)&1)===0,\"Should never get an instantiated symbol here.\"),!xs(n)&&Su(n)&&(T.flags&2097152||n.parent.kind===277)&&Nu(V9(n),T,void 0,!0),T.flags&a||u?T:fc(T)}function ZR(n,a){if(U$(n.parent)){let c=lE(n.parent);if(c)return Xs(c,n.escapedText,a,void 0,n,!0)}}function lE(n){if(Rn(n,_=>q1(_)||_.flags&16777216?bf(_):\"quit\"))return;let c=PS(n);if(c&&Cc(c)&&AL(c.expression)){let _=dr(c.expression.left);if(_)return z0(_)}if(c&&ps(c)&&AL(c.parent)&&Cc(c.parent.parent)){let _=dr(c.parent.left);if(_)return z0(_)}if(c&&(qf(c)||Hl(c))&&Zn(c.parent.parent)&&hl(c.parent.parent)===6){let _=dr(c.parent.parent.left);if(_)return z0(_)}let u=Rb(n);if(u&&Lo(u)){let _=dr(u);return _&&_.valueDeclaration}}function z0(n){let a=n.parent.valueDeclaration;return a?(vC(a)?LA(a):SS(a)?yL(a):void 0)||a:void 0}function xP(n){let a=n.valueDeclaration;if(!a||!Jn(a)||n.flags&524288||Ib(a,!1))return;let c=yi(a)?yL(a):LA(a);if(c){let u=Fp(c);if(u)return Zhe(u,n)}}function jd(n,a,c){let _=zd(F)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return Tg(n,a,c?void 0:_)}function Tg(n,a,c,u=!1){return Ga(a)?__(n,a.text,c,a,u):void 0}function __(n,a,c,u,_=!1){var g,T,N,O,B,Q,me,ue,We,at,ht;if(Ui(a,\"@types/\")){let Bn=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,co=jD(a,\"@types/\");we(u,Bn,co,a)}let qt=w$(a,!0);if(qt)return qt;let Xt=Nn(n),Hn=Ga(n)?n:((g=Il(n)?n:n.parent&&Il(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=ey(n)?n:void 0)==null?void 0:T.argument.literal)||(yi(n)&&n.initializer&&Xd(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((N=Rn(n,lp))==null?void 0:N.arguments[0])||((O=Rn(n,cc))==null?void 0:O.moduleSpecifier)||((B=Rn(n,Ab))==null?void 0:B.moduleReference.expression)||((Q=Rn(n,xl))==null?void 0:Q.moduleSpecifier),En=Hn&&Ga(Hn)?e.getModeForUsageLocation(Xt,Hn):Xt.impliedNodeFormat,Kt=zd(F),In=(me=e.getResolvedModule(Xt,a,En))==null?void 0:me.resolvedModule,Sn=In&&FH(F,In,Xt),zn=In&&(!Sn||Sn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(In.resolvedFileName);if(zn){if(Sn&&we(u,Sn,a,In.resolvedFileName),In.resolvedUsingTsExtension&&Yc(a)){let Bn=((ue=Rn(n,cc))==null?void 0:ue.importClause)||Rn(n,hm(Nc,xl));(Bn&&!Bn.isTypeOnly||Rn(n,lp))&&we(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Mn(x.checkDefined(JW(a))))}else if(In.resolvedUsingTsExtension&&!nR(F,Xt.fileName)){let Bn=((We=Rn(n,cc))==null?void 0:We.importClause)||Rn(n,hm(Nc,xl));if(!(Bn?.isTypeOnly||Rn(n,Dh))){let co=x.checkDefined(JW(a));we(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,co)}}if(zn.symbol){if(In.isExternalLibraryImport&&!VC(In.extension)&&o1(!1,u,Xt,En,In,a),Kt===3||Kt===99){let Bn=Xt.impliedNodeFormat===1&&!Rn(n,lp)||!!Rn(n,Nc),co=Rn(n,no=>Dh(no)||xl(no)||cc(no));if(Bn&&zn.impliedNodeFormat===99&&!hre(co))if(Rn(n,Nc))we(u,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let no,Eo=og(Xt.fileName);if(Eo===\".ts\"||Eo===\".js\"||Eo===\".tsx\"||Eo===\".jsx\"){let Yi=Xt.packageJsonScope,ic=Eo===\".ts\"?\".mts\":Eo===\".js\"?\".mjs\":void 0;Yi&&!Yi.contents.packageJsonContent.type?ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,ic,wr(Yi.packageDirectory,\"package.json\")):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,wr(Yi.packageDirectory,\"package.json\")):ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,ic):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}La.add(eg(Nn(u),u,So(no,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return Oa(zn.symbol)}c&&we(u,f.File_0_is_not_a_module,zn.fileName);return}if(Nf){let Bn=pB(Nf,co=>co.pattern,a);if(Bn){let co=Vd&&Vd.get(a);return Oa(co||Bn.symbol)}}if(In&&!VC(In.extension)&&Sn===void 0||Sn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let Bn=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;we(u,Bn,a,In.resolvedFileName)}else o1(ce&&!!c,u,Xt,En,In,a);return}if(c){if(In){let Bn=e.getProjectReferenceRedirect(In.resolvedFileName);if(Bn){we(u,f.Output_file_0_has_not_been_built_from_source_file_1,Bn,In.resolvedFileName);return}}if(Sn)we(u,Sn,a,In.resolvedFileName);else{let Bn=op(a)&&!TA(a),co=Kt===3||Kt===99;if(!Mb(F)&&el(a,\".json\")&&Kt!==1&&rF(F))we(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(En===99&&co&&Bn){let no=Qi(a,Ur(Xt.path)),Eo=(at=qR.find(([Yi,ic])=>e.fileExists(no+Yi)))==null?void 0:at[1];Eo?we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Eo):we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((ht=e.getResolvedModule(Xt,a,En))!=null&&ht.alternateResult){let no=Q8(Xt,e,a,En,a);jc(!0,u,So(no,c,a))}else we(u,c,a)}}return;function Mn(Bn){let co=QL(a,Bn);if(nF(W)||En===99){let no=Yc(a)&&nR(F);return co+(Bn===\".mts\"||Bn===\".d.mts\"?no?\".mts\":\".mjs\":Bn===\".cts\"||Bn===\".d.mts\"?no?\".cts\":\".cjs\":no?\".ts\":\".js\")}return co}}function o1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let N;!Ic(T)&&_&&(N=Q8(c,e,T,u,_.name)),jc(n,a,So(N,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function $u(n,a){if(n?.exports){let c=yl(n.exports.get(\"export=\"),a),u=a1(Oa(c),Oa(n));return Oa(u)||n}}function a1(n,a){if(!n||n===tt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=Pi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:AT(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=Vo()),a.exports.forEach((_,g)=>{g!==\"export=\"&&u.exports.set(g,u.exports.has(g)?Pf(u.exports.get(g),_):_)}),u===n&&(Pi(u).resolvedExports=void 0,Pi(u).resolvedMembers=void 0),Pi(u).cjsExportMerged=u,c.cjsExportMerged=u}function Pu(n,a,c,u){var _;let g=$u(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!Vs(g,312)){let N=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\";return we(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),g}let T=a.parent;if(cc(T)&&cx(T)||lp(T)){let N=lp(T)?T.arguments[0]:T.moduleSpecifier,O=Yn(g),B=awe(O,g,n,N);if(B)return s1(g,B,T);let Q=(_=n?.declarations)==null?void 0:_.find(Li),me=Q&&Wp(Oi(N),Q.impliedNodeFormat);if(z_(F)||me){let ue=k7(O,0);if((!ue||!ue.length)&&(ue=k7(O,1)),ue&&ue.length||Qo(O,\"default\",!0)||me){let We=O.flags&3670016?swe(O,g,n,N):ege(g,g.parent);return s1(g,We,T)}}}}return g}function s1(n,a,c){let u=Ra(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=Om(a);return u.links.type=cs(u,_.members,je,je,_.indexInfos),u}function xv(n){return n.exports.get(\"export=\")!==void 0}function wT(n){return Ume(Z_(n))}function eD(n){let a=wT(n),c=$u(n);if(c!==n){let u=Yn(c);wy(u)&&Pr(a,Xa(u))}return a}function tD(n,a){Z_(n).forEach((_,g)=>{V0(g)||a(_,g)});let u=$u(n);if(u!==n){let _=Yn(u);wy(_)&&ntt(_,(g,T)=>{a(g,T)})}}function WT(n,a){let c=Z_(a);if(c)return c.get(n)}function nD(n,a){let c=WT(n,a);if(c)return c;let u=$u(a);if(u===a)return;let _=Yn(u);return wy(_)?Qo(_,n):void 0}function wy(n){return!(n.flags&402784252||br(n)&1||ff(n)||ga(n))}function Qu(n){return n.flags&6256?Dme(n,\"resolvedExports\"):n.flags&1536?Z_(n):n.exports||U}function Z_(n){let a=Pi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=FT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function rD(n,a,c,u){a&&a.forEach((_,g)=>{if(g===\"default\")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:Vl(u.moduleSpecifier)});else if(c&&u&&T&&yl(T)!==yl(_)){let N=c.get(g);N.exportsWithDuplicate?N.exportsWithDuplicate.push(u):N.exportsWithDuplicate=[u]}})}function FT(n){let a=[],c,u=new Set;n=$u(n);let _=g(n)||U;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,N,O){if(!O&&T?.exports&&T.exports.forEach((me,ue)=>u.add(ue)),!(T&&T.exports&&jp(a,T)))return;let B=new Map(T.exports),Q=T.exports.get(\"__export\");if(Q){let me=Vo(),ue=new Map;if(Q.declarations)for(let We of Q.declarations){let at=jd(We,We.moduleSpecifier),ht=g(at,We,O||We.isTypeOnly);rD(me,ht,ue,We)}ue.forEach(({exportsWithDuplicate:We},at)=>{if(!(at===\"export=\"||!(We&&We.length)||B.has(at)))for(let ht of We)La.add(vr(ht,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ue.get(at).specifierText,Ii(at)))}),rD(B,me)}return N?.isTypeOnly&&(c??(c=new Map),B.forEach((me,ue)=>c.set(ue,N))),B}}function Oa(n){let a;return n&&n.mergeId&&(a=jR[n.mergeId])?a:n}function dr(n){return Oa(n.symbol&&L$(n.symbol))}function Fp(n){return qm(n)?dr(n):void 0}function nu(n){return Oa(n.parent&&L$(n.parent))}function B0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&Fp(n.valueDeclaration.parent)||n}function iD(n,a){let c=Nn(a),u=Fa(c),_=Pi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let N of c.imports){if(xs(N))continue;let O=jd(a,N,!0);!O||!zh(O,n)||(g=pn(g,O))}if(yn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let N of T){if(!wl(N))continue;let O=dr(N);zh(O,n)&&(g=pn(g,O))}return _.extendedContainers=g||je}function cE(n,a,c){let u=nu(n);if(u&&!(n.flags&262144))return O(u);let _=Fi(n.declarations,Q=>{if(!sd(Q)&&Q.parent){if(Rd(Q.parent))return dr(Q.parent);if(n_(Q.parent)&&Q.parent.parent&&$u(dr(Q.parent.parent))===n)return dr(Q.parent.parent)}if(Dc(Q)&&Zn(Q.parent)&&Q.parent.operatorToken.kind===64&&us(Q.parent.left)&&gl(Q.parent.left.expression))return Eh(Q.parent.left)||DS(Q.parent.left.expression)?dr(Nn(Q)):(Ml(Q.parent.left.expression),Fr(Q.parent.left.expression).resolvedSymbol)});if(!yn(_))return;let g=Fi(_,Q=>zh(Q,n)?Q:void 0),T=[],N=[];for(let Q of g){let[me,...ue]=O(Q);T=pn(T,me),N=Pr(N,ue)}return ro(T,N);function O(Q){let me=Fi(Q.declarations,B),ue=a&&iD(n,a),We=G0(Q,c);if(a&&Q.flags&Ig(c)&&Wy(Q,a,1920,!1))return pn(ro(ro([Q],me),ue),We);let at=!(Q.flags&Ig(c))&&Q.flags&788968&&Cs(Q).flags&524288&&c===111551?U0(a,qt=>hc(qt,Xt=>{if(Xt.flags&Ig(c)&&Yn(Xt)===Cs(Q))return Xt})):void 0,ht=at?[at,...me,Q]:[...me,Q];return ht=pn(ht,We),ht=Pr(ht,ue),ht}function B(Q){return u&&zT(Q,u)}}function G0(n,a){let c=!!yn(n.declarations)&&Ta(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(ma(c)&&c===c.parent.initializer||ju(c)&&c===c.parent.type))return dr(c.parent)}function zT(n,a){let c=wi(n),u=c&&c.exports&&c.exports.get(\"export=\");return u&&Nm(u,a)?c:void 0}function zh(n,a){if(n===nu(a))return a;let c=n.exports&&n.exports.get(\"export=\");if(c&&Nm(c,a))return n;let u=Qu(n),_=u.get(a.escapedName);return _&&Nm(_,a)?_:hc(u,g=>{if(Nm(g,a))return g})}function Nm(n,a){if(Oa(yl(Oa(n)))===Oa(yl(Oa(a))))return n}function zp(n){return Oa(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function sm(n,a){return!!(n.flags&111551||n.flags&2097152&&Qc(n,!a)&111551)}function Ag(n){let a=n.members;for(let c of a)if(c.kind===176&&gf(c.body))return c}function Bh(n){var a;let c=new p(zt,n);return m++,c.id=m,(a=qn)==null||a.recordType(c),c}function Gh(n,a){let c=Bh(n);return c.symbol=a,c}function l1(n){return new p(zt,n)}function Fl(n,a,c=0,u){oD(a,u);let _=Bh(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function oD(n,a){let c=`${n},${a??\"\"}`;et.has(c)&&x.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:\"\"}; you may need to pass a name to createIntrinsicType.`),et.add(c)}function af(n,a){let c=Gh(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function eh(){return Br(bo(GU.keys(),yu))}function Bp(n){return Gh(262144,n)}function V0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function dE(n){let a;return n.forEach((c,u)=>{c1(c,u)&&(a||(a=[])).push(c)}),a||je}function c1(n,a){return!V0(a)&&sm(n)}function BT(n){let a=dE(n),c=z$(n);return c?ro(a,[c]):a}function Gp(n,a,c,u,_){let g=n;return g.members=a,g.properties=je,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==U&&(g.properties=dE(a)),g}function cs(n,a,c,u,_){return Gp(af(16,n),a,c,u,_)}function j0(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Cr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=cs(n.symbol,n.members,n.callSignatures,ct(a)?a:je,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function U0(n,a){let c;for(let u=n;u;u=u.parent){if(L_(u)&&u.locals&&!$_(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!sp(u))break;case 267:let _=dr(u);if(c=a(_?.exports||U,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((dr(u).members||U).forEach((T,N)=>{T.flags&788968&&(g||(g=Vo())).set(N,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(he,void 0,!0)}function Ig(n){return n===111551?111551:1920}function Wy(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=Pi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),N=U0(a,(Xt,Hn,En,Kt)=>Kt),O=`${u?0:1}|${N&&Fa(N)}|${c}`;if(T.has(O))return T.get(O);let B=na(n),Q=_.get(B);Q||_.set(B,Q=[]);let me=U0(a,ue);return T.set(O,me),me;function ue(Xt,Hn,En){if(!jp(Q,Xt))return;let Kt=ht(Xt,Hn,En);return Q.pop(),Kt}function We(Xt,Hn){return!uE(Xt,a,Hn)||!!Wy(Xt.parent,a,Ig(Hn),u,_)}function at(Xt,Hn,En){return(n===(Hn||Xt)||Oa(n)===Oa(Hn||Xt))&&!ct(Xt.declarations,Rd)&&(En||We(Oa(Xt),c))}function ht(Xt,Hn,En){return at(Xt.get(n.escapedName),void 0,Hn)?[n]:hc(Xt,In=>{if(In.flags&2097152&&In.escapedName!==\"export=\"&&In.escapedName!==\"default\"&&!(QW(In)&&a&&wl(Nn(a)))&&(!u||ct(In.declarations,Ab))&&(!En||!ct(In.declarations,Jte))&&(Hn||!Vs(In,281))){let Sn=fc(In),zn=qt(In,Sn,Hn);if(zn)return zn}if(In.escapedName===n.escapedName&&In.exportSymbol&&at(Oa(In.exportSymbol),void 0,Hn))return[n]})||(Xt===he?qt(Ke,Ke,Hn):void 0)}function qt(Xt,Hn,En){if(at(Xt,Hn,En))return[Xt];let Kt=Qu(Hn),In=Kt&&ue(Kt,!0);if(In&&We(Xt,Ig(c)))return[Xt].concat(In)}}function uE(n,a,c){let u=!1;return U0(a,_=>{let g=Oa(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!Vs(g,281);return g=T?fc(g):g,(T?Qc(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ne(n,a){return ri(n,a,788968,!1,!0).accessibility===0}function rt(n,a){return ri(n,a,111551,!1,!0).accessibility===0}function Ht(n,a,c){return ri(n,a,c,!1,!1).accessibility===0}function yr(n,a,c,u,_,g){if(!yn(n))return;let T,N=!1;for(let O of n){let B=Wy(O,a,u,!1);if(B){T=O;let ue=ru(B[0],_);if(ue)return ue}if(g&&ct(O.declarations,Rd)){if(_){N=!0;continue}return{accessibility:0}}let Q=cE(O,a,u),me=yr(Q,a,c,c===O?Ig(u):u,_,g);if(me)return me}if(N)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ai(c,a,u),errorModuleName:T!==c?ai(T,a,1920):void 0}}function vi(n,a,c,u){return ri(n,a,c,u,!0)}function ri(n,a,c,u,_){if(n&&a){let g=yr([n],a,n,c,u,_);if(g)return g;let T=an(n.declarations,wi);if(T){let N=wi(a);if(T!==N)return{accessibility:2,errorSymbolName:ai(n,a,c),errorModuleName:ai(T),errorNode:Jn(a)?a:void 0}}return{accessibility:1,errorSymbolName:ai(n,a,c)}}return{accessibility:0}}function wi(n){let a=Rn(n,$o);return a&&dr(a)}function $o(n){return sd(n)||n.kind===312&&sp(n)}function Rd(n){return iW(n)||n.kind===312&&sp(n)}function ru(n,a){let c;if(!ji(Cr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,N;if(!Pm(g)){let O=RT(g);if(O&&!Wr(O,32)&&Pm(O.parent))return _(g,O);if(yi(g)&&cl(g.parent.parent)&&!Wr(g.parent.parent,32)&&Pm(g.parent.parent.parent))return _(g,g.parent.parent);if(oW(g)&&!Wr(g,32)&&Pm(g.parent))return _(g,g);if(Na(g)){if(n.flags&2097152&&Jn(g)&&((T=g.parent)!=null&&T.parent)&&yi(g.parent.parent)&&((N=g.parent.parent.parent)!=null&&N.parent)&&cl(g.parent.parent.parent.parent)&&!Wr(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&Pm(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let B=Rn(g,cl);return Wr(B,32)?!0:Pm(B.parent)?_(g,B):!1}}return!1}return!0}function _(g,T){return a&&(Fr(g).isVisible=!0,c=Kh(c,T)),!0}}function sf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!yh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Fy(n,a){let c=sf(n),u=dp(n),_=Xs(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&YE(u)&&vi(dr(lu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&ru(_,!0)||{accessibility:1,errorSymbolName:Vl(u),errorNode:u}}function ai(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?ft.symbolToNode:ft.symbolToEntityName;return _?N(_).getText():dC(N);function N(O){let B=T(n,c,a,g),Q=a?.kind===312?hH():y0(),me=a&&Nn(a);return Q.writeNode(4,B,me,O),O}}function th(n,a,c=0,u,_){return _?g(_).getText():dC(g);function g(T){let N;c&262144?N=u===1?185:184:N=u===1?180:179;let O=ft.signatureToSignatureDeclaration(n,N,a,GT(c)|70221824|512),B=hk(),Q=a&&Nn(a);return B.writeNode(4,O,Q,nV(T)),T}}function Pn(n,a,c=1064960,u=GL(\"\")){let _=F.noErrorTruncation||c&1,g=ft.typeToTypeNode(n,a,GT(c)|70221824|(_?1:0));if(g===void 0)return x.fail(\"should always get typenode\");let T=n!==Ct?y0():_H(),N=a&&Nn(a);T.writeNode(4,g,N,u);let O=u.getText(),B=_?AF*2:i2*2;return B&&O&&O.length>=B?O.substr(0,B-3)+\"...\":O}function d1(n,a){let c=By(n.symbol)?Pn(n,n.symbol.valueDeclaration):Pn(n),u=By(a.symbol)?Pn(a,a.symbol.valueDeclaration):Pn(a);return c===u&&(c=zy(n),u=zy(a)),[c,u]}function zy(n){return Pn(n,void 0,64)}function By(n){return n&&!!n.valueDeclaration&&lt(n.valueDeclaration)&&!uf(n.valueDeclaration)}function GT(n=0){return n&848330095}function H0(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===cf(n.symbol)||!!(n.flags&524288)&&!!(br(n)&16777216))}function h_(){return{typeToTypeNode:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>u(Qe,Xr)),indexInfoToIndexSignatureDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>Q(Qe,Xr,void 0)),signatureToSignatureDeclaration:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>me(Qe,ve,li)),symbolToEntityName:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>Yi(Qe,li,ve,!1)),symbolToExpression:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>ic(Qe,li,ve)),symbolToTypeParameterDeclarations:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>In(Qe,Xr)),symbolToParameterDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>qt(Qe,Xr)),typeParameterToDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>at(Qe,Xr)),symbolTableToDeclarationStatements:(Qe,ve,vn,_r,Xr)=>a(ve,vn,_r,li=>Ys(Qe,li,Xr)),symbolToNode:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>n(Qe,li,ve))};function n(Qe,ve,vn){if(ve.flags&1073741824){if(Qe.valueDeclaration){let Xr=mo(Qe.valueDeclaration);if(Xr&&Pa(Xr))return Xr}let _r=Pi(Qe).nameType;if(_r&&_r.flags&9216)return ve.enclosingDeclaration=_r.symbol.valueDeclaration,P.createComputedPropertyName(ic(_r.symbol,ve,vn))}return ic(Qe,ve,vn)}function a(Qe,ve,vn,_r){x.assert(Qe===void 0||(Qe.flags&16)===0);let Xr=vn?.trackSymbol?vn.moduleResolverHost:ve&134217728?w3e(e):void 0,li={enclosingDeclaration:Qe,flags:ve||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};li.tracker=new VU(li,vn,Xr);let ci=_r(li);return li.truncating&&li.flags&1&&li.tracker.reportTruncationError(),li.encounteredError?void 0:ci}function c(Qe){return Qe.truncating?Qe.truncating:Qe.truncating=Qe.approximateLength>(Qe.flags&1?AF:i2)}function u(Qe,ve){let vn=ve.flags,_r=_(Qe,ve);return ve.flags=vn,_r}function _(Qe,ve){var vn,_r;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xr=ve.flags&8388608;if(ve.flags&=-8388609,!Qe){if(!(ve.flags&262144)){ve.encounteredError=!0;return}return ve.approximateLength+=3,P.createKeywordTypeNode(133)}if(ve.flags&536870912||(Qe=wm(Qe)),Qe.flags&1)return Qe.aliasSymbol?P.createTypeReferenceNode(Bn(Qe.aliasSymbol),O(Qe.aliasTypeArguments,ve)):Qe===Ct?iN(P.createKeywordTypeNode(133),3,\"unresolved\"):(ve.approximateLength+=3,P.createKeywordTypeNode(Qe===Qt?141:133));if(Qe.flags&2)return P.createKeywordTypeNode(159);if(Qe.flags&4)return ve.approximateLength+=6,P.createKeywordTypeNode(154);if(Qe.flags&8)return ve.approximateLength+=6,P.createKeywordTypeNode(150);if(Qe.flags&64)return ve.approximateLength+=6,P.createKeywordTypeNode(163);if(Qe.flags&16&&!Qe.aliasSymbol)return ve.approximateLength+=7,P.createKeywordTypeNode(136);if(Qe.flags&1056){if(Qe.symbol.flags&8){let fn=nu(Qe.symbol),zr=co(fn,ve,788968);if(Cs(fn)===Qe)return zr;let Ai=$s(Qe.symbol);return Tp(Ai,0)?ii(zr,P.createTypeReferenceNode(Ai,void 0)):Dh(zr)?(zr.isTypeOf=!0,P.createIndexedAccessTypeNode(zr,P.createLiteralTypeNode(P.createStringLiteral(Ai)))):Yp(zr)?P.createIndexedAccessTypeNode(P.createTypeQueryNode(zr.typeName),P.createLiteralTypeNode(P.createStringLiteral(Ai))):x.fail(\"Unhandled type node kind returned from `symbolToTypeNode`.\")}return co(Qe.symbol,ve,788968)}if(Qe.flags&128)return ve.approximateLength+=Qe.value.length+2,P.createLiteralTypeNode($n(P.createStringLiteral(Qe.value,!!(ve.flags&268435456)),16777216));if(Qe.flags&256){let fn=Qe.value;return ve.approximateLength+=(\"\"+fn).length,P.createLiteralTypeNode(fn<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-fn)):P.createNumericLiteral(fn))}if(Qe.flags&2048)return ve.approximateLength+=ZE(Qe.value).length+1,P.createLiteralTypeNode(P.createBigIntLiteral(Qe.value));if(Qe.flags&512)return ve.approximateLength+=Qe.intrinsicName.length,P.createLiteralTypeNode(Qe.intrinsicName===\"true\"?P.createTrue():P.createFalse());if(Qe.flags&8192){if(!(ve.flags&1048576)){if(rt(Qe.symbol,ve.enclosingDeclaration))return ve.approximateLength+=6,co(Qe.symbol,ve,111551);ve.tracker.reportInaccessibleUniqueSymbolError&&ve.tracker.reportInaccessibleUniqueSymbolError()}return ve.approximateLength+=13,P.createTypeOperatorNode(158,P.createKeywordTypeNode(155))}if(Qe.flags&16384)return ve.approximateLength+=4,P.createKeywordTypeNode(116);if(Qe.flags&32768)return ve.approximateLength+=9,P.createKeywordTypeNode(157);if(Qe.flags&65536)return ve.approximateLength+=4,P.createLiteralTypeNode(P.createNull());if(Qe.flags&131072)return ve.approximateLength+=5,P.createKeywordTypeNode(146);if(Qe.flags&4096)return ve.approximateLength+=6,P.createKeywordTypeNode(155);if(Qe.flags&67108864)return ve.approximateLength+=6,P.createKeywordTypeNode(151);if(YC(Qe))return ve.flags&4194304&&(!ve.encounteredError&&!(ve.flags&32768)&&(ve.encounteredError=!0),(_r=(vn=ve.tracker).reportInaccessibleThisError)==null||_r.call(vn)),ve.approximateLength+=4,P.createThisTypeNode();if(!Xr&&Qe.aliasSymbol&&(ve.flags&16384||ne(Qe.aliasSymbol,ve.enclosingDeclaration))){let fn=O(Qe.aliasTypeArguments,ve);return V0(Qe.aliasSymbol.escapedName)&&!(Qe.aliasSymbol.flags&32)?P.createTypeReferenceNode(P.createIdentifier(\"\"),fn):yn(fn)===1&&Qe.aliasSymbol===Po.symbol?P.createArrayTypeNode(fn[0]):co(Qe.aliasSymbol,ve,788968,fn)}let li=br(Qe);if(li&4)return x.assert(!!(Qe.flags&524288)),Qe.node?Ft(Qe,xn):xn(Qe);if(Qe.flags&262144||li&3){if(Qe.flags&262144&&To(ve.inferTypeParameters,Qe)){ve.approximateLength+=$s(Qe.symbol).length+6;let zr,Ai=iu(Qe);if(Ai){let Ji=OLe(Qe,!0);Ji&&kg(Ai,Ji)||(ve.approximateLength+=9,zr=Ai&&u(Ai,ve))}return P.createInferTypeNode(We(Qe,ve,zr))}if(ve.flags&4&&Qe.flags&262144){let zr=Eo(Qe,ve);return ve.approximateLength+=ar(zr).length,P.createTypeReferenceNode(P.createIdentifier(ar(zr)),void 0)}if(Qe.symbol)return co(Qe.symbol,ve,788968);let fn=(Qe===ae||Qe===X)&&L&&L.symbol?(Qe===X?\"sub-\":\"super-\")+$s(L.symbol):\"?\";return P.createTypeReferenceNode(P.createIdentifier(fn),void 0)}if(Qe.flags&1048576&&Qe.origin&&(Qe=Qe.origin),Qe.flags&3145728){let fn=Qe.flags&1048576?aD(Qe.types):Qe.types;if(yn(fn)===1)return u(fn[0],ve);let zr=O(fn,ve,!0);if(zr&&zr.length>0)return Qe.flags&1048576?P.createUnionTypeNode(zr):P.createIntersectionTypeNode(zr);!ve.encounteredError&&!(ve.flags&262144)&&(ve.encounteredError=!0);return}if(li&48)return x.assert(!!(Qe.flags&524288)),Gt(Qe);if(Qe.flags&4194304){let fn=Qe.type;ve.approximateLength+=6;let zr=u(fn,ve);return P.createTypeOperatorNode(143,zr)}if(Qe.flags&134217728){let fn=Qe.texts,zr=Qe.types,Ai=P.createTemplateHead(fn[0]),Ji=P.createNodeArray(nn(zr,(Ho,Yl)=>P.createTemplateLiteralTypeSpan(u(Ho,ve),(Yl<zr.length-1?P.createTemplateMiddle:P.createTemplateTail)(fn[Yl+1]))));return ve.approximateLength+=2,P.createTemplateLiteralType(Ai,Ji)}if(Qe.flags&268435456){let fn=u(Qe.type,ve);return co(Qe.symbol,ve,788968,[fn])}if(Qe.flags&8388608){let fn=u(Qe.objectType,ve),zr=u(Qe.indexType,ve);return ve.approximateLength+=2,P.createIndexedAccessTypeNode(fn,zr)}if(Qe.flags&16777216)return Ft(Qe,fn=>ci(fn));if(Qe.flags&33554432){let fn=u(Qe.baseType,ve),zr=wP(Qe)&&r_e(\"NoInfer\",!1);return zr?co(zr,ve,788968,[fn]):fn}return x.fail(\"Should be unreachable.\");function ci(fn){let zr=u(fn.checkType,ve);if(ve.approximateLength+=15,ve.flags&4&&fn.root.isDistributive&&!(fn.checkType.flags&262144)){let al=Bp(Ra(262144,\"T\")),Ba=Eo(al,ve),oc=P.createTypeReferenceNode(Ba);ve.approximateLength+=37;let As=eA(fn.root.checkType,al,fn.mapper),Gm=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let qe=u(Gi(fn.root.extendsType,As),ve);ve.inferTypeParameters=Gm;let ut=xr(Gi(si(fn.root.node.trueType),As)),Bt=xr(Gi(si(fn.root.node.falseType),As));return P.createConditionalTypeNode(zr,P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(oc.typeName))),P.createConditionalTypeNode(P.createTypeReferenceNode(P.cloneNode(Ba)),u(fn.checkType,ve),P.createConditionalTypeNode(oc,qe,ut,Bt),P.createKeywordTypeNode(146)),P.createKeywordTypeNode(146))}let Ai=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let Ji=u(fn.extendsType,ve);ve.inferTypeParameters=Ai;let Ho=xr(EE(fn)),Yl=xr(SE(fn));return P.createConditionalTypeNode(zr,Ji,Ho,Yl)}function xr(fn){var zr,Ai,Ji;return fn.flags&1048576?(zr=ve.visitedTypes)!=null&&zr.has(Hd(fn))?(ve.flags&131072||(ve.encounteredError=!0,(Ji=(Ai=ve.tracker)==null?void 0:Ai.reportCyclicStructureError)==null||Ji.call(Ai)),g(ve)):Ft(fn,Ho=>u(Ho,ve)):u(fn,ve)}function ur(fn){return!!fw(fn)}function $e(fn){return!!fn.target&&ur(fn.target)&&!ur(fn)}function It(fn){var zr;x.assert(!!(fn.flags&524288));let Ai=fn.declaration.readonlyToken?P.createToken(fn.declaration.readonlyToken.kind):void 0,Ji=fn.declaration.questionToken?P.createToken(fn.declaration.questionToken.kind):void 0,Ho,Yl,al=!fD(fn)&&!(HT(fn).flags&2)&&ve.flags&4&&!(Vp(fn).flags&262144&&((zr=iu(Vp(fn)))==null?void 0:zr.flags)&4194304);if(fD(fn)){if($e(fn)&&ve.flags&4){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt)}Ho=P.createTypeOperatorNode(143,Yl||u(HT(fn),ve))}else if(al){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt),Ho=Yl}else Ho=u(Vp(fn),ve);let Ba=We(km(fn),ve,Ho),oc=fn.declaration.nameType?u(Dv(fn),ve):void 0,As=u(ob(Ng(fn),!!(oh(fn)&4)),ve),Gm=P.createMappedTypeNode(Ai,Ba,oc,Ji,As,void 0);ve.approximateLength+=10;let qe=$n(Gm,1);if($e(fn)&&ve.flags&4){let ut=Gi(iu(si(fn.declaration.typeParameter.constraint.type))||Zt,fn.mapper);return P.createConditionalTypeNode(u(HT(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),ut.flags&2?void 0:u(ut,ve))),qe,P.createKeywordTypeNode(146))}else if(al)return P.createConditionalTypeNode(u(Vp(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),P.createTypeOperatorNode(143,u(HT(fn),ve)))),qe,P.createKeywordTypeNode(146));return qe}function Gt(fn){var zr,Ai;let Ji=fn.id,Ho=fn.symbol;if(Ho){if(!!(br(fn)&8388608)){let As=fn.node;if(oI(As)&&si(As)===fn){let Gm=fl(ve,As);if(Gm)return Gm}return(zr=ve.visitedTypes)!=null&&zr.has(Ji)?g(ve):Ft(fn,Yt)}let Ba=H0(fn)?788968:111551;if(T_(Ho.valueDeclaration))return co(Ho,ve,Ba);if(Ho.flags&32&&!D$(Ho)&&!(Ho.valueDeclaration&&Kr(Ho.valueDeclaration)&&ve.flags&2048&&(!Zl(Ho.valueDeclaration)||vi(Ho,ve.enclosingDeclaration,Ba,!1).accessibility!==0))||Ho.flags&896||Yl())return co(Ho,ve,Ba);if((Ai=ve.visitedTypes)!=null&&Ai.has(Ji)){let oc=S7(fn);return oc?co(oc,ve,788968):g(ve)}else return Ft(fn,Yt)}else return Yt(fn);function Yl(){var al;let Ba=!!(Ho.flags&8192)&&ct(Ho.declarations,As=>zo(As)),oc=!!(Ho.flags&16)&&(Ho.parent||an(Ho.declarations,As=>As.parent.kind===312||As.parent.kind===268));if(Ba||oc)return(!!(ve.flags&4096)||((al=ve.visitedTypes)==null?void 0:al.has(Ji)))&&(!(ve.flags&8)||rt(Ho,ve.enclosingDeclaration))}}function Ft(fn,zr){var Ai,Ji,Ho;let Yl=fn.id,al=br(fn)&16&&fn.symbol&&fn.symbol.flags&32,Ba=br(fn)&4&&fn.node?\"N\"+Fa(fn.node):fn.flags&16777216?\"N\"+Fa(fn.root.node):fn.symbol?(al?\"+\":\"\")+na(fn.symbol):void 0;ve.visitedTypes||(ve.visitedTypes=new Set),Ba&&!ve.symbolDepth&&(ve.symbolDepth=new Map);let oc=ve.enclosingDeclaration&&Fr(ve.enclosingDeclaration),As=`${Hd(fn)}|${ve.flags}`;oc&&(oc.serializedTypes||(oc.serializedTypes=new Map));let Gm=(Ai=oc?.serializedTypes)==null?void 0:Ai.get(As);if(Gm)return(Ji=Gm.trackedSymbols)==null||Ji.forEach(([Rr,Si,yo])=>ve.tracker.trackSymbol(Rr,Si,yo)),Gm.truncating&&(ve.truncating=!0),ve.approximateLength+=Gm.addedLength,cn(Gm.node);let qe;if(Ba){if(qe=ve.symbolDepth.get(Ba)||0,qe>10)return g(ve);ve.symbolDepth.set(Ba,qe+1)}ve.visitedTypes.add(Yl);let ut=ve.trackedSymbols;ve.trackedSymbols=void 0;let Bt=ve.approximateLength,kn=zr(fn),pr=ve.approximateLength-Bt;return!ve.reportedDiagnostic&&!ve.encounteredError&&((Ho=oc?.serializedTypes)==null||Ho.set(As,{node:kn,truncating:ve.truncating,addedLength:pr,trackedSymbols:ve.trackedSymbols})),ve.visitedTypes.delete(Yl),Ba&&ve.symbolDepth.set(Ba,qe),ve.trackedSymbols=ut,kn;function cn(Rr){return!xs(Rr)&&uo(Rr)===Rr?Rr:Ze(P.cloneNode(un(Rr,cn,void 0,rr)),Rr)}function rr(Rr,Si,yo,Ko,Xo){return Rr&&Rr.length===0?Ze(P.createNodeArray(void 0,Rr.hasTrailingComma),Rr):Dn(Rr,Si,yo,Ko,Xo)}}function Yt(fn){if(vu(fn)||fn.containsError)return It(fn);let zr=Om(fn);if(!zr.properties.length&&!zr.indexInfos.length){if(!zr.callSignatures.length&&!zr.constructSignatures.length)return ve.approximateLength+=2,$n(P.createTypeLiteralNode(void 0),1);if(zr.callSignatures.length===1&&!zr.constructSignatures.length){let al=zr.callSignatures[0];return me(al,184,ve)}if(zr.constructSignatures.length===1&&!zr.callSignatures.length){let al=zr.constructSignatures[0];return me(al,185,ve)}}let Ai=Cr(zr.constructSignatures,al=>!!(al.flags&4));if(ct(Ai)){let al=nn(Ai,XT);return zr.callSignatures.length+(zr.constructSignatures.length-Ai.length)+zr.indexInfos.length+(ve.flags&2048?Wv(zr.properties,oc=>!(oc.flags&4194304)):yn(zr.properties))&&al.push(j0(zr)),u(Zo(al),ve)}let Ji=ve.flags;ve.flags|=4194304;let Ho=qi(zr);ve.flags=Ji;let Yl=P.createTypeLiteralNode(Ho);return ve.approximateLength+=2,$n(Yl,ve.flags&1024?0:1),Yl}function xn(fn){let zr=Ts(fn);if(fn.target===Po||fn.target===Oo){if(ve.flags&2){let Ho=u(zr[0],ve);return P.createTypeReferenceNode(fn.target===Po?\"Array\":\"ReadonlyArray\",[Ho])}let Ai=u(zr[0],ve),Ji=P.createArrayTypeNode(Ai);return fn.target===Po?Ji:P.createTypeOperatorNode(148,Ji)}else if(fn.target.objectFlags&8){if(zr=sc(zr,(Ai,Ji)=>ob(Ai,!!(fn.target.elementFlags[Ji]&2))),zr.length>0){let Ai=Nv(fn),Ji=O(zr.slice(0,Ai),ve);if(Ji){let{labeledElementDeclarations:Ho}=fn.target;for(let al=0;al<Ji.length;al++){let Ba=fn.target.elementFlags[al],oc=Ho?.[al];oc?Ji[al]=P.createNamedTupleMember(Ba&12?P.createToken(26):void 0,P.createIdentifier(Ii(ige(oc))),Ba&2?P.createToken(58):void 0,Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ji[al]=Ba&12?P.createRestTypeNode(Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ba&2?P.createOptionalTypeNode(Ji[al]):Ji[al]}let Yl=$n(P.createTupleTypeNode(Ji),1);return fn.target.readonly?P.createTypeOperatorNode(148,Yl):Yl}}if(ve.encounteredError||ve.flags&524288){let Ai=$n(P.createTupleTypeNode([]),1);return fn.target.readonly?P.createTypeOperatorNode(148,Ai):Ai}ve.encounteredError=!0;return}else{if(ve.flags&2048&&fn.symbol.valueDeclaration&&Kr(fn.symbol.valueDeclaration)&&!rt(fn.symbol,ve.enclosingDeclaration))return Gt(fn);{let Ai=fn.target.outerTypeParameters,Ji=0,Ho;if(Ai){let oc=Ai.length;for(;Ji<oc;){let As=Ji,Gm=wLe(Ai[Ji]);do Ji++;while(Ji<oc&&wLe(Ai[Ji])===Gm);if(!nB(Ai,zr,As,Ji)){let qe=O(zr.slice(As,Ji),ve),ut=ve.flags;ve.flags|=16;let Bt=co(Gm,ve,788968,qe);ve.flags=ut,Ho=Ho?ii(Ho,Bt):Bt}}}let Yl;if(zr.length>0){let oc=(fn.target.typeParameters||je).length;Yl=O(zr.slice(Ji,oc),ve)}let al=ve.flags;ve.flags|=16;let Ba=co(fn.symbol,ve,788968,Yl);return ve.flags=al,Ho?ii(Ho,Ba):Ba}}}function ii(fn,zr){if(Dh(fn)){let Ai=fn.typeArguments,Ji=fn.qualifier;Ji&&(Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai)))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=Ji?P.createQualifiedName(Ji,Yl):Yl;return P.updateImportTypeNode(fn,fn.argument,fn.attributes,Ji,Ai,fn.isTypeOf)}else{let Ai=fn.typeArguments,Ji=fn.typeName;Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=P.createQualifiedName(Ji,Yl);return P.updateTypeReferenceNode(fn,Ji,Ai)}}function Yr(fn){let zr=fn.typeName,Ai=[];for(;!Me(zr);)Ai.unshift(zr.right),zr=zr.left;return Ai.unshift(zr),Ai}function qi(fn){if(c(ve))return[P.createPropertySignature(void 0,\"...\",void 0,void 0)];let zr=[];for(let Ho of fn.callSignatures)zr.push(me(Ho,179,ve));for(let Ho of fn.constructSignatures)Ho.flags&4||zr.push(me(Ho,180,ve));for(let Ho of fn.indexInfos)zr.push(Q(Ho,ve,fn.objectFlags&1024?g(ve):void 0));let Ai=fn.properties;if(!Ai)return zr;let Ji=0;for(let Ho of Ai){if(Ji++,ve.flags&2048){if(Ho.flags&4194304)continue;Kp(Ho)&6&&ve.tracker.reportPrivateInBaseOfClassExpression&&ve.tracker.reportPrivateInBaseOfClassExpression(Ii(Ho.escapedName))}if(c(ve)&&Ji+2<Ai.length-1){zr.push(P.createPropertySignature(void 0,`... ${Ai.length-Ji} more ...`,void 0,void 0)),N(Ai[Ai.length-1],ve,zr);break}N(Ho,ve,zr)}return zr.length?zr:void 0}}function g(Qe){return Qe.approximateLength+=3,Qe.flags&1?P.createKeywordTypeNode(133):P.createTypeReferenceNode(P.createIdentifier(\"...\"),void 0)}function T(Qe,ve){var vn;return!!(tl(Qe)&8192)&&(To(ve.reverseMappedStack,Qe)||((vn=ve.reverseMappedStack)==null?void 0:vn[0])&&!(br(Da(ve.reverseMappedStack).links.propertyType)&16))}function N(Qe,ve,vn){var _r;let Xr=!!(tl(Qe)&8192),li=T(Qe,ve)?z:qy(Qe),ci=ve.enclosingDeclaration;if(ve.enclosingDeclaration=void 0,ve.tracker.canTrackSymbol&&nw(Qe.escapedName))if(Qe.declarations){let Yt=Ta(Qe.declarations);if(D7(Yt))if(Zn(Yt)){let xn=mo(Yt);xn&&Rs(xn)&&UL(xn.argumentExpression)&&Hn(xn.argumentExpression,ci,ve)}else Hn(Yt.name.expression,ci,ve)}else ve.tracker.reportNonSerializableProperty(ai(Qe));ve.enclosingDeclaration=Qe.valueDeclaration||((_r=Qe.declarations)==null?void 0:_r[0])||ci;let xr=bn(Qe,ve);if(ve.enclosingDeclaration=ci,ve.approximateLength+=$s(Qe).length+1,Qe.flags&98304){let Yt=q0(Qe);if(li!==Yt&&!Lt(li)&&!Lt(Yt)){let xn=Vs(Qe,177),ii=kf(xn);vn.push(Ol(me(ii,177,ve,{name:xr}),xn));let Yr=Vs(Qe,178),qi=kf(Yr);vn.push(Ol(me(qi,178,ve,{name:xr}),Yr));return}}let ur=Qe.flags&16777216?P.createToken(58):void 0;if(Qe.flags&8208&&!Xy(li).length&&!Bm(Qe)){let Yt=Co(Bl(li,xn=>!(xn.flags&32768)),0);for(let xn of Yt){let ii=me(xn,173,ve,{name:xr,questionToken:ur});vn.push(Ft(ii))}if(Yt.length||!ur)return}let $e;T(Qe,ve)?$e=g(ve):(Xr&&(ve.reverseMappedStack||(ve.reverseMappedStack=[]),ve.reverseMappedStack.push(Qe)),$e=li?es(ve,li,Qe,ci):P.createKeywordTypeNode(133),Xr&&ve.reverseMappedStack.pop());let It=Bm(Qe)?[P.createToken(148)]:void 0;It&&(ve.approximateLength+=9);let Gt=P.createPropertySignature(It,xr,ur,$e);vn.push(Ft(Gt));function Ft(Yt){var xn;let ii=(xn=Qe.declarations)==null?void 0:xn.find(Yr=>Yr.kind===355);if(ii){let Yr=VM(ii.comment);Yr&&Lb(Yt,[{kind:3,text:`*","vulnerability":{}},{"path":"dify-agent-runtime/internal/server/config.go","start_line":31,"end_line":31,"snippet":"\tDefaultAuthTokenEnv                  = \"SHELLCTL_AUTH_TOKEN\"","vulnerability":{"severity":"HIGH"}},{"path":"api/clients/agent_backend/factory.py","start_line":44,"end_line":51,"snippet":"    return DifyAgentBackendRunClient(\n        create_agent_backend_client(\n            base_url=base_url,\n            api_token=api_token,\n            stream_timeout=stream_read_timeout_seconds,\n        ),\n        stream_max_reconnects=stream_max_reconnects,\n    )","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":32,"end_line":32,"snippet":"        valid_password(new_password)","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":37,"end_line":37,"snippet":"    application_services().accounts.lifecycle.reset_password(account.id, new_password, email=normalized_email)","vulnerability":{"severity":"WARNING"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0003","rule_version":"1.3.0","rule_name":"Runtime Command Injection via Process Execution","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"medium","rationale":"The dify-agent / dify-agent-runtime component's declared purpose is to run arbitrary user-submitted shell scripts/commands as a sandboxed agent tool (shellctl), so argv-based exec is within its declared contract rather than an injection bug. Tracing the sinks: (1) dify-agent-runtime/cmd/runner/main.go uses exec.Command(self, childArgs...) / syscall.Exec(binary, argv, ...) with a fixed, hardcoded self-reexec argv (binary + '--exec' + script_path + cwd) -- the actual user-supplied SCRIPT CONTENT is never concatenated into a shell string for this sink; it is written as file content at scriptPath and only the fixed path string is passed as an argv element, with shebang/`sh <path>` dispatch (buildExecArgv) -- the semgrep LOW-confidence 'non-static command' flags are the exec of the controller's OWN re-exec'd binary, not attacker-constructed shell text. (2) dify-agent-runtime/internal/server/tmux.go wraps user script execution via tmux using shellJoin/shellQuote helpers that quote each argument before composing the wrapper script, and the user's script itself runs inside a Landlock-restricted (default SHELLCTL_ENABLE_PATH_ISOLATION=true, envvar.go:34-40) sandboxed process tree that confines filesystem access -- i.e. arbitrary command execution is the TOOL'S DECLARED JOB, with sandboxing as the mitigating control, not a hidden injection flaw. api/libs/helper.py:127-128 run(script) (subprocess.getstatusoutput('source /root/.bashrc && '+script), a real shell-injection-shaped sink) has NO callers anywhere in the api/ runtime tree (grep confirms only this definition, zero call sites) -- dead code, not reachable from any HTTP/tool-call path, so it does not establish execution_reachability for a VULNERABLE verdict.","vulnerability_details":null,"fix_guidance":"Remove the unreferenced api/libs/helper.py:run() dead code to eliminate future-reachability risk; keep SHELLCTL_ENABLE_PATH_ISOLATION defaulted to true and do not allow it to be disabled in multi-tenant deployments.","why_this_matters":"Unsanitized command construction in shipped runtime code can give a remote attacker arbitrary code execution with the application's privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":108,"end_line":117,"snippet":"\tself, _ := os.Executable()\n\tchildArgs := []string{\"--exec\", scriptPath, cwd}\n\tif enableIsolation {\n\t\tchildArgs = append([]string{\"--exec\", \"--landlock\"}, childArgs[1:]...)\n\t}\n\n\tcmd := exec.Command(self, childArgs...)\n\tcmd.Env = env\n\tcmd.Dir = cwd"},{"path":"dify-agent-runtime/internal/envvar/envvar.go","start_line":33,"end_line":40,"snippet":"// PathIsolationEnabled returns whether Landlock filesystem isolation is active.\nfunc PathIsolationEnabled() bool {\n\tv, ok := os.LookupEnv(EnvEnablePathIsolation)\n\tif !ok {\n\t\treturn true\n\t}\n\treturn v == \"true\"\n}"},{"path":"api/libs/helper.py","start_line":127,"end_line":128,"snippet":"def run(script):\n    return subprocess.getstatusoutput(\"source /root/.bashrc && \" + script)"},{"path":"dify-agent-runtime/internal/server/tmux.go","start_line":246,"end_line":246,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":320,"end_line":320,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":115,"end_line":115,"snippet":null,"vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0004","rule_version":"1.2.0","rule_name":"DoS Protections: Timeouts, Concurrency, Streaming Limits","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The codebase implements layered DoS protections: (1) a generic rate-limit decorator/library (api/libs/rate_limit.py) with per-IP/session/account/email/token sliding-window limits applied to auth-sensitive endpoints (device code, SSO initiate, bearer token validation, etc.); (2) the outbound SSRF-protected HTTP client enforces connect/read/write/total timeouts by default (SSRF_DEFAULT_TIME_OUT family) and a bounded buffer_response() that raises ResponseTooLargeError once decoded bytes exceed a configured cap, preventing unbounded streaming responses from exhausting memory; (3) upload size limits are enforced per content type (UPLOAD_FILE_SIZE_LIMIT, UPLOAD_IMAGE_FILE_SIZE_LIMIT, UPLOAD_VIDEO_FILE_SIZE_LIMIT, UPLOAD_AUDIO_FILE_SIZE_LIMIT, UPLOAD_SKILL_FILE_SIZE_LIMIT) in api/configs/feature/__init__.py and enforced in FileService.is_file_size_within_limit before any save() call.","vulnerability_details":null,"fix_guidance":"Continue to audit newly added external-facing endpoints to ensure they are decorated with an appropriate RateLimit spec; consider a global default body-size limit at the WSGI/reverse-proxy layer as defense in depth.","why_this_matters":"Resource exhaustion can crash or stall MCP.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/helper/ssrf_proxy.py","start_line":287,"end_line":300,"snippet":"def buffer_response(response: httpx.Response, *, max_response_bytes: int) -> httpx.Response:\n    \"\"\"Consume one open identity response under a decoded byte limit and close its stream.\"\"\"\n    if max_response_bytes <= 0:\n        raise ValueError(\"max_response_bytes must be positive\")\n    try:\n        content_encoding = response.headers.get(\"content-encoding\", \"identity\").strip().lower()\n        if content_encoding not in {\"\", \"identity\"}:\n            raise UnsupportedResponseEncodingError(...)\n        content = bytearray()\n        for chunk in response.iter_bytes():\n            if len(content) + len(chunk) > max_response_bytes:\n                raise ResponseTooLargeError(f\"response exceeded {max_response_bytes} bytes\")\n            content.extend(chunk)"},{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_DEVICE_FLOW_APPROVE = RateLimit(...)\nLIMIT_LOOKUP_PUBLIC = RateLimit(60, timedelta(minutes=5), (RateLimitScope.IP,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/configs/feature/__init__.py","start_line":458,"end_line":488,"snippet":"    UPLOAD_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    KNOWLEDGE_UPLOAD_FILE_SIZE_LIMIT_FOR_PAID_PLAN: NonNegativeInt = Field(...)\n    UPLOAD_IMAGE_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_VIDEO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_AUDIO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_SKILL_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0005","rule_version":"1.2.0","rule_name":"Logging Hygiene (No Secrets/PII/Tokens) & Audit Trail","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"api/libs/helper.py's TokenManager.get_token_data() logs the FULL raw token value at WARNING level (enabled by default under LOG_LEVEL=INFO) whenever a lookup misses. TokenManager mints these tokens for password-reset and other auth flows, so a reset-password token lands in application logs verbatim, with no central redaction filter in place.","vulnerability_details":"api/libs/helper.py line 549: `logger.warning(\"%s token %s not found with key %s\", token_type, token, key)` logs the raw `token` argument (a UUID minted by TokenManager.generate_token for sensitive flows including password reset, api/services/account/login_adapters.py:328) at WARNING level, enabled under the default LOG_LEVEL=INFO. Anyone with read access to application logs (log-aggregation/SIEM access, a separate log-exposure bug, or an insider) can harvest live password-reset tokens straight from this log line and use them to take over the corresponding account before the token's TTL expires -- turning a routine 'token not found' debug log into an account-takeover credential leak.","fix_guidance":"Change helper.py:549 to log only a hash/prefix of the token (e.g. token[:8]+'...') or omit it entirely and log the Redis key alone; add a logging filter/formatter that redacts known credential-shaped fields project-wide as defense in depth.","why_this_matters":"Prevents sensitive data leakage; enables forensics.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0005 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"api/libs/helper.py","start_line":544,"end_line":551,"snippet":"    @classmethod\n    def get_token_data(cls, token: str, token_type: str) -> dict[str, Any] | None:\n        key = cls._get_token_key(token, token_type)\n        token_data_json = redis_client.get(key)\n        if token_data_json is None:\n            logger.warning(\"%s token %s not found with key %s\", token_type, token, key)\n            return None\n        return dict(_token_data_adapter.validate_json(token_data_json))"},{"path":"api/services/account/login_adapters.py","start_line":325,"end_line":330,"snippet":"            token = TokenManager.generate_token(\n                account_id=account_id,\n                email=email,"},{"path":"api/configs/feature/__init__.py","start_line":804,"end_line":807,"snippet":"    LOG_LEVEL: str = Field(\n        description=\"Logging level, default to INFO. Set to ERROR for production environments.\",\n        default=\"INFO\",\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0006","rule_version":"1.2.0","rule_name":"Container/Runtime Hardening","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"Trivy config scan identifies concrete hardening gaps: docker/couchbase-server/Dockerfile uses the floating ':latest' tag (DS-0001) and never sets a non-root USER (DS-0002, HIGH) -- confirmed by manual read, no USER directive exists so the container runs as root by inheritance from the base image. .devcontainer/Dockerfile also runs as root (DS-0002) and misses --no-install-recommends on apt-get install (DS-0029, HIGH). All Dockerfiles lack HEALTHCHECK (DS-0026, LOW). The two internet-facing production images (api/Dockerfile, web/Dockerfile) DO create and switch to a non-root 'dify' user, so the primary attack surface is hardened; the finding is scoped to the auxiliary Couchbase and dev-container images.","vulnerability_details":"docker/couchbase-server/Dockerfile runs its vector-DB backing service container as root (no USER directive) with an unpinned FROM couchbase/server:latest base. If an attacker achieves any code-execution foothold inside that container (e.g. via a future Couchbase CVE pulled in silently by the floating tag, or a vulnerability in init-cbserver.sh), running as root removes the standard UID-separation barrier, giving the attacker root-equivalent privileges inside the container and a larger blast radius for container-breakout primitives (e.g. abusing any mounted docker.sock, writable host paths, or kernel-level capabilities available to root but not to an unprivileged UID). The floating :latest tag means a rebuild can silently pull a newer and differently-vulnerable image without the change being reviewed.","fix_guidance":"Pin docker/couchbase-server/Dockerfile to a specific Couchbase version tag (not :latest) and add a non-root USER switch after setup; add USER directives to .devcontainer/Dockerfile and use --no-install-recommends there; add HEALTHCHECK instructions to all shipped Dockerfiles.","why_this_matters":"Reduces blast radius of exploits.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0006 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM couchbase/server:latest AS stage_base\n# FROM couchbase:latest AS stage_base\nCOPY init-cbserver.sh /opt/couchbase/init/\nRUN chmod +x /opt/couchbase/init/init-cbserver.sh"},{"path":".devcontainer/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM mcr.microsoft.com/devcontainers/python:3.13-bookworm\n\nRUN apt-get update && export DEBIAN_FRONTEND=noninteractive \\\n     && apt-get -y install libgmp-dev libmpfr-dev libmpc-dev"},{"path":"api/Dockerfile","start_line":125,"end_line":125,"snippet":"USER dify"},{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":1,"snippet":"FROM couchbase/server:latest AS stage_base"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0007","rule_version":"1.2.0","rule_name":"Dependency Risk & Supply Chain","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"Trivy's scan of the committed lockfiles (api/uv.lock, dify-agent/uv.lock, pnpm-lock.yaml, dify-agent-runtime/go.mod) found 23 known CVEs in pinned, locked dependency versions, including chromadb==0.5.20 (pinned in api/uv.lock as the Chroma vector-store provider's declared runtime dependency) mapped to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH), and CVE-2026-45831 (HIGH) with no fixed version yet published, alongside other HIGH/MEDIUM findings (e.g. pydantic-ai-slim, golang.org/x/mod, socket.io-parser) that do have published fixed versions the project has not yet adopted. The presence of these scanner-confirmed, unpatched CVEs in exact pinned dependency versions constitutes a supply-chain risk on its own; this finding does not assert a specific demonstrated remote-exploit path through the Chroma vector-store API, only that the vulnerable versions are locked and declared as runtime dependencies.","vulnerability_details":"api/uv.lock pins chromadb to exact version 0.5.20, which Trivy's vulnerability database maps to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH) and CVE-2026-45831 (HIGH) with no fixed version yet published. chromadb is Dify's vector-database client, used by the RAG/knowledge-base subsystem that ingests and queries attacker-influenceable document content; a deployment that enables the Chroma vector-store provider runs this vulnerable client code against untrusted document/query content, exposing whatever remote-code-execution/data-exposure primitive CVE-2026-45833 represents to any user who can trigger a knowledge-base query or ingest a document into a Chroma-backed dataset.","fix_guidance":"Upgrade or replace chromadb beyond 0.5.20 once a patched release addressing CVE-2026-45833/45830/45831 is available (or pin to a patched fork / disable the Chroma vector-store provider until then); separately upgrade pydantic-ai-slim to >=2.53.0, bump the vulnerable golang.org/x/mod dependency, and update socket.io-parser to a fixed release; add a scheduled dependency CVE scan to CI to catch newly disclosed CVEs in already-pinned packages.","why_this_matters":"Prevents typosquat and malicious update compromise.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0007 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The scan reported mitigation_present but the independent adjudication did not corroborate it; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/uv.lock","start_line":880,"end_line":883,"snippet":"name = \"chromadb\"\nversion = \"0.5.20\"\nsource = { registry = \"https://pypi.org/simple\" }\ndependencies = ["},{"path":"Makefile","start_line":170,"end_line":1,"snippet":"(go.mod pins golang.org/x/mod to a version affected by CVE-2026-56864 HIGH / CVE-2026-56865 HIGH, per trivy-fs.json Results[] for Target=='dify-agent-runtime/go.mod')"},{"path":"web/package.json","start_line":29,"end_line":29,"snippet":"\"preinstall\": \"npx only-allow pnpm\","},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45833","pkg_name":"chromadb","severity":"CRITICAL","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45830","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45831","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107286","pkg_name":"pydantic-ai-slim","severity":"HIGH","installed_version":"2.31.0","fixed_version":"2.53.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-69185","pkg_name":"socket.io-parser","severity":"HIGH","installed_version":"4.2.6","fixed_version":"4.2.7, 3.4.5, 3.3.6"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-102991","pkg_name":"mako","severity":"MEDIUM","installed_version":"1.3.12","fixed_version":"1.4.2"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-104874","pkg_name":"multidict","severity":"MEDIUM","installed_version":"6.7.0","fixed_version":"6.9.1"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49264","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49265","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107287","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.7, 2.52.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107289","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107290","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107291","pkg_name":"pydantic-ai-slim","severity":"LOW","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-103923","pkg_name":"katex","severity":"LOW","installed_version":"0.16.47","fixed_version":"0.18.2"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0008","rule_version":"1.2.0","rule_name":"Missing or Inadequate Input Validation","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Dify's console/service/web API controllers consistently validate request bodies against typed schemas before use: console endpoints use flask-restx `@console_ns.expect(...)` model bindings plus a `model_validate(SomeModel)` decorator pattern (e.g. api/controllers/console/auth/login.py `@console_ns.expect(console_ns.models[EmailPayload.__name__])` + `@model_validate(EmailPayload)`) backed by Pydantic models, and service-api / inner-api endpoints use Pydantic `TypeAdapter`/`BaseModel.model_validate_json` for structured payload validation (e.g. api/services/data_source/notion_oauth_gateway.py uses `_NOTION_SOURCE_INFO_ADAPTER`/`_NOTION_PAGE_SUMMARY_ADAPTER` TypeAdapters to validate even third-party OAuth provider responses before use). File-upload input is explicitly constrained (extension blacklist, size limits, filename character blacklist) in FileService before any filesystem write. This is the rule's documented negative-indicator pattern (strict schema validation; type/length checks) applied broadly across the controller surface.","vulnerability_details":null,"fix_guidance":"Keep enforcing Pydantic/TypeAdapter schema validation for all new endpoints and third-party response parsing; add `.strict()`/reject-unknown-fields where the framework supports it.","why_this_matters":"Frontline control to prevent multiple classes of vulns.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/services/file_service.py","start_line":100,"end_line":113,"snippet":"        extension = os.path.splitext(filename)[1].lstrip(\".\").lower()\n        if any(c in filename for c in [\"/\", \"\\\\\"]):\n            raise ValueError(\"Filename contains invalid characters\")\n        if len(filename) > 200:\n            filename = filename.split(\".\")[0][:200] + \".\" + extension\n        if extension and extension in dify_config.UPLOAD_FILE_EXTENSION_BLACKLIST:\n            raise BlockedFileExtensionError(f\"File extension '.{extension}' is not allowed for security reasons\")\n        if source == \"datasets\" and extension not in DOCUMENT_EXTENSIONS:\n            raise UnsupportedFileTypeError()"},{"path":"api/services/data_source/notion_oauth_gateway.py","start_line":25,"end_line":34,"snippet":"class _NotionSourceInfo(TypedDict):\n    workspace_name: str | None\n    workspace_icon: str | None\n    workspace_id: str | None\n    pages: list[_NotionPageSummary]\n    total: int\n\n_NOTION_SOURCE_INFO_ADAPTER = TypeAdapter(_NotionSourceInfo)\n_NOTION_PAGE_SUMMARY_ADAPTER = TypeAdapter(_NotionPageSummary)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0009","rule_version":"1.2.0","rule_name":"Insecure Deserialization","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"pickle is used to serialize/deserialize RAG embedding vectors (api/models/dataset.py:744-747, api/core/rag/embedding/cached_embedding.py:115,198), but tracing the write path shows embedding bytes are produced exclusively by CacheEmbedding, which pickles the FLOAT LIST returned directly from the configured embedding model's own invoke_text_embedding()/invoke_multimodal_embedding() output -- there is no code path where externally-supplied bytes (an uploaded file, an HTTP body, a tool argument) are passed to pickle.loads. Reaching the sink with attacker-chosen bytes would require an independent primitive (e.g. direct DB write access or a different injection bug) that is not present in this codebase, so the required attacker_controlled_source and continuous source_to_sink_flow this rule demands cannot be established from the cited code; the evaluation_rubric's 'Deserialization of constants only' false_positive_guard class applies by analogy (model-generated, not request-controlled). Separately, api/services/agent/roster_package_reader.py:352-379 deserializes untrusted Roster Agent package YAML using a hardened yaml.SafeLoader subclass (_PackageYamlLoader) that explicitly rejects YAML aliases and non-string mapping keys -- the one YAML-deserialization sink that DOES take externally-supplied (uploaded package) content uses the safe loader, which is the rule's documented negative indicator.","vulnerability_details":null,"fix_guidance":"Defense-in-depth: replace pickle with numpy .tobytes()/np.frombuffer (fixed dtype) or a JSON float array for the Embedding.embedding column so this stored blob can never become a code-execution primitive even if a future bug (SQLi, bulk-import, compromised worker) lets an attacker write to that column directly.","why_this_matters":"Can lead to arbitrary code execution.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/rag/embedding/cached_embedding.py","start_line":107,"end_line":119,"snippet":"                cache_embeddings = []\n                try:\n                    for i, n_embedding in zip(embedding_queue_indices, embedding_queue_embeddings):\n                        text_embeddings[i] = n_embedding\n                        hash = helper.generate_text_hash(texts[i])\n                        if hash not in cache_embeddings:\n                            embedding_cache = Embedding(\n                                model_name=self._model_instance.model_name,\n                                hash=hash,\n                                provider_name=self._model_instance.provider,\n                                embedding=pickle.dumps(n_embedding, protocol=pickle.HIGHEST_PROTOCOL),\n                            )"},{"path":"api/models/dataset.py","start_line":743,"end_line":747,"snippet":"    def set_embedding(self, embedding_data: list[float]):\n        self.embedding = pickle.dumps(embedding_data, protocol=pickle.HIGHEST_PROTOCOL)\n\n    def get_embedding(self) -> list[float]:\n        return cast(list[float], pickle.loads(self.embedding))  # noqa: S301"},{"path":"api/services/agent/roster_package_reader.py","start_line":352,"end_line":379,"snippet":"            return yaml.load(payload, Loader=_PackageYamlLoader), size  # noqa: S506\n        except (UnicodeDecodeError, yaml.YAMLError, ValueError, RecursionError) as exc:\n            raise InvalidRosterAgentPackageError(...)\n                f\"Roster Agent package {path.removesuffix('.yaml')} is invalid\"\n            ) from exc\n\n\nclass _PackageYamlLoader(yaml.SafeLoader):\n    \"\"\"Reject ambiguous mappings and aliases in untrusted package documents.\"\"\"\n\n    @override"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0010","rule_version":"1.2.0","rule_name":"Lack of Output Encoding/Sanitization","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The semgrep XSS-shaped hits (python.flask.security.audit.xss.make-response-with-unknown-content, 8 occurrences across login.py, agent_config_inspector.py, recommended_app.py, tool_providers.py, trigger_providers.py) all resolve on inspection to `make_response(dump_response(SomeTypedModel, {...}))` calls -- i.e. a structured, schema-typed JSON-shaped payload serialized through a typed response-dump helper, not raw/unescaped user input written into an HTML content-type response. The project's web frontend (React/Next.js in web/) uses JSX's default auto-escaping for rendered text and the two `render-template-string` hits (api/libs/email_template_renderer.py, api/tasks/mail_inner_task.py) go through a Jinja2 `ImmutableSandboxedEnvironment` in SANDBOX mode by default (MAIL_TEMPLATING_MODE default = SANDBOX), which blocks template-level code/attribute-traversal exploitation even if the template string itself were attacker-influenced.","vulnerability_details":null,"fix_guidance":"Keep MAIL_TEMPLATING_MODE defaulted to SANDBOX (never UNSAFE) in production configuration guidance; continue returning typed/serialized model objects from make_response rather than raw string concatenation.","why_this_matters":"Prevents UI-level injection and operator compromise.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/controllers/console/auth/login.py","start_line":173,"end_line":177,"snippet":"        response = make_response(dump_response(SimpleResultResponse, {\"result\": \"success\"}))\n        clear_access_token_from_cookie(response)\n        clear_refresh_token_from_cookie(response)\n        clear_csrf_token_from_cookie(response)\n        return response"},{"path":"api/libs/email_template_renderer.py","start_line":17,"end_line":28,"snippet":"class SandboxedEnvironment(ImmutableSandboxedEnvironment):\n    \"\"\"Sandboxed environment with execution timeout.\"\"\"\n    def __init__(self, timeout: int, *args: Any, **kwargs: Any):\n        self._deadline = time.time() + timeout if timeout else None\n        super().__init__(*args, **kwargs)\n    @override\n    def call(self, context: Context, obj: Any, *args: Any, **kwargs: Any) -> Any:\n        if self._deadline is not None and time.time() > self._deadline:\n            raise TimeoutError(\"Template rendering timeout\")\n        return super().call(context, obj, *args, **kwargs)"},{"path":"api/configs/feature/__init__.py","start_line":1155,"end_line":1158,"snippet":"    MAIL_TEMPLATING_MODE: TemplateMode = Field(\n        description=\"Template mode for email services\",\n        default=TemplateMode.SANDBOX,\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0011","rule_version":"1.4.0","rule_name":"Path Traversal & Symlink Bypass (Filesystem Tools)","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The agent CLI's skill-pull flow (dify-agent-runtime/internal/agentcli/config.go) builds the download archive path and extraction directory directly from a skill name supplied via CLI argument or a downloaded manifest, using filepath.Join(targetDir, name+\".zip\") and a matching skillDir, without checking for path separators, absolute paths, or containment within targetDir. filepath.Join normalizes '../' segments, so a name such as '../../outside' causes the resulting path to escape targetDir, and the subsequent MkdirAll/os.WriteFile calls can then create or overwrite files outside the intended skills directory. The earlier SECURE verdict considered only the UUID-keyed API upload path (which is safely indirected) and did not examine this separate CLI/manifest-driven skill-pull flow, which has no equivalent indirection or validation before the filesystem sink.","vulnerability_details":null,"fix_guidance":"Validate the skill name before it is used to build any filesystem path in config.go's skill-pull flow: reject names containing path separators or '..' segments, or that resolve (after filepath.Clean/filepath.Abs) outside targetDir, before calling filepath.Join/MkdirAll/os.WriteFile.","why_this_matters":"Traversal exposes arbitrary host files; can lead to code execution.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":56,"end_line":63,"snippet":"// RunConfigSkillsPull executes the `config skills pull` command.\nfunc RunConfigSkillsPull(env *Environment, names []string, localDir string, jsonOutput bool) error {\n\tclient, err := NewStubClient(env)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer func() { _ = client.Close() }()\n"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":76,"end_line":83,"snippet":"\t\t\t\t} `json:\"items\"`\n\t\t\t} `json:\"skills\"`\n\t\t}\n\t\tif err := json.Unmarshal(body, &manifest); err != nil {\n\t\t\treturn fmt.Errorf(\"parse manifest: %w\", err)\n\t\t}\n\t\tfor _, item := range manifest.Skills.Items {\n\t\t\tnames = append(names, item.Name)"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":104,"end_line":123,"snippet":"\t}\n\n\terr = runConfigPulls(len(names), func(index int) error {\n\t\tname := names[index]\n\t\tdownload, err := client.CreateConfigDownloadURL(ctx, \"skill\", name)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"request config skill %q download URL: %w\", name, err)\n\t\t}\n\t\tarchiveBytes, err := client.DownloadFromURL(download.DownloadURL)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"download config skill %q: %w\", name, err)\n\t\t}\n\n\t\tarchivePath := filepath.Join(targetDir, name+\".zip\")\n\t\tskillDir := filepath.Join(targetDir, name)\n\t\tif err := os.MkdirAll(skillDir, 0o755); err != nil {\n\t\t\treturn fmt.Errorf(\"create skill directory: %w\", err)\n\t\t}\n\t\tif err := os.WriteFile(archivePath, archiveBytes, 0o644); err != nil {\n\t\t\treturn fmt.Errorf(\"write archive: %w\", err)"},{"path":"dify-agent-runtime/internal/snapshot/save.go","start_line":83,"end_line":83,"snippet":"\t\t\tf, err := os.Open(p)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":763,"end_line":763,"snippet":"\tendedAtRaw, err := os.ReadFile(endedAtPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":759,"end_line":759,"snippet":"\texitCodeRaw, err := os.ReadFile(exitCodePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":106,"end_line":106,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":38,"end_line":38,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/sanitize/sanitize.go","start_line":155,"end_line":155,"snippet":"\t\tf, err := os.Create(readyFile)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/httpclient.go","start_line":72,"end_line":72,"snippet":"\treturn os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":548,"end_line":548,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":471,"end_line":471,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":133,"end_line":133,"snippet":"\t\tif data, err := os.ReadFile(skillMDPath); err == nil {","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":120,"end_line":120,"snippet":"\t\toutFile, err := os.Create(destPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":71,"end_line":71,"snippet":"\t\tfile, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":15,"end_line":15,"snippet":"\toutFile, err := os.Create(archivePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":343,"end_line":343,"snippet":"\tdata, err := os.ReadFile(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":325,"end_line":325,"snippet":"\tf, err := os.Open(scriptPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":254,"end_line":254,"snippet":"\tfile, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0600)","vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0012","rule_version":"1.2.0","rule_name":"Denial of Wallet / Cost Controls","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"Model/tool invocation paths are protected by multiple quota/budget layers: api/libs/rate_limit.py provides per-IP/account/session/email/token sliding-window rate limits applied to auth and API-bearer-token validation; FeatureService (api/services/feature_service.py referenced throughout controllers, e.g. human_input_delivery_test_service.py's `features.human_input_email_delivery_enabled` gate) enforces plan-based feature/quota gating before billable operations execute; and dataset/knowledge upload size limits (UPLOAD_FILE_SIZE_LIMIT family) bound the cost of ingestion-triggered embedding calls. The SSRF-protected HTTP client additionally bounds retries (SSRF_DEFAULT_MAX_RETRIES) and response size (buffer_response max_response_bytes), preventing unbounded retry storms or oversized-response costs on outbound calls to paid third-party APIs/model providers.","vulnerability_details":null,"fix_guidance":"Continue enforcing plan-based quotas (FeatureService) on any newly added billable/model-invocation endpoint; ensure per-tenant model-call quotas are consistently checked before each LLM/tool invocation.","why_this_matters":"Prevents cost-based disruption.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/core/helper/ssrf_proxy.py","start_line":226,"end_line":284,"snippet":"    retries = 0\n    while retries <= max_retries:\n        ...\n        retries += 1\n        if retries <= max_retries:\n            time.sleep(BACKOFF_FACTOR * (2 ** (retries - 1)))\n    raise MaxRetriesExceededError(f\"Reached maximum retries ({max_retries}) for URL {url}\")"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0013","rule_version":"1.1.0","rule_name":"Tool Output Sanitization & Injection Containment","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"low","rationale":"Dify's CoT agent runner assigns tool invocation results verbatim to scratchpad.observation and then interpolates that value verbatim into the 'Observation:' section of model-visible assistant history (api/core/agent/cot_agent_runner.py), with no sanitization, escaping, role-marker stripping, or untrusted-return annotation applied anywhere between the tool-output assignment and the point it re-enters the model's context. This allows tool-sourced content (e.g. a malicious web page or API response surfaced through a fetch/scrape-style tool) to inject text that the model treats as part of its own reasoning history, with no host-enforced trust boundary on that path.","vulnerability_details":null,"fix_guidance":"Add a sanitization/escaping layer for tool outputs before they are concatenated into the agent scratchpad: strip or neutralize control characters and fake role/system markers, and wrap tool output in an explicit untrusted-content envelope before it is interpolated into the Observation: section in cot_agent_runner.py and fc_agent_runner.py.","why_this_matters":"Tool outputs are a primary prompt-injection vector. Third-party content (web pages, files, API responses) may contain text crafted to override instructions or impersonate system/tool messages. Without a host-enforced envelope, sanitization, and an explicit untrusted-return signal, the model can be coerced into executing attacker-controlled directives, leaking secrets, or chaining further tool calls on behalf of the adversary.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0013 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/agent/cot_agent_runner.py","start_line":244,"end_line":252,"snippet":"                    tool_invoke_response, tool_invoke_meta = self._handle_invoke_action(\n                        session=session,\n                        action=scratchpad.action,\n                        tool_instances=tool_instances,\n                        message_file_ids=message_file_ids,\n                        trace_manager=trace_manager,\n                    )\n                    scratchpad.observation = tool_invoke_response\n                    scratchpad.agent_response = tool_invoke_response"},{"path":"api/core/agent/cot_agent_runner.py","start_line":400,"end_line":413,"snippet":"    def _format_assistant_message(self, agent_scratchpad: list[AgentScratchpadUnit]) -> str:\n        \"\"\"\n        format assistant message\n        \"\"\"\n        message = \"\"\n        for scratchpad in agent_scratchpad:\n            if scratchpad.is_final():\n                message += f\"Final Answer: {scratchpad.agent_response}\"\n            else:\n                message += f\"Thought: {scratchpad.thought}\\n\\n\"\n                if scratchpad.action_str:\n                    message += f\"Action: {scratchpad.action_str}\\n\\n\"\n                if scratchpad.observation:\n                    message += f\"Observation: {scratchpad.observation}\\n\\n\""}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0014","rule_version":"1.2.0","rule_name":"CI/CD Workflow Script Injection","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Reviewed all workflows using dangerous triggers (workflow_run, repository_dispatch, workflow_dispatch) for attacker-controlled interpolation into shell run blocks. The i18n translation pipeline (trigger-i18n-sync.yml -> translate-i18n-claude.yml) passes attacker-influenceable data (PR/commit content) only through typed client_payload fields consumed as quoted shell variables (BASE_SHA=\"...\"), and the PR-coverage-comment workflows (pyrefly-diff-comment.yml, pyrefly-type-coverage-comment.yml) using workflow_run only check out the DEFAULT branch (trusted code) and fetch data via the GitHub API/artifacts rather than interpolating untrusted strings directly into a run: block. The 12 semgrep yaml.github-actions.security.run-shell-injection hits (accessibility-e2e.yml, cli-e2e.yml, pyrefly-diff.yml, pyrefly-type-coverage.yml, style.yml, translate-i18n-claude.yml) all resolve to either workflow_dispatch 'choice' inputs enforced by a fixed options list, maintainer-only manual dispatch, values interpolated only within an already-double-quoted shell string consumed as data (not re-parsed/eval'd), or SHA values resolved via git/GitHub Actions context rather than free-form attacker text. No case shows a continuous source-to-sink path from an untrusted field to an unguarded shell execution with secrets/write-token exposure.","vulnerability_details":null,"fix_guidance":"Continue pinning actions by SHA (already done); keep workflow_dispatch choice-type inputs server-enforced; avoid ever switching the i18n pipeline to pull_request_target without validating client_payload fields against a strict allowlist/regex before use.","why_this_matters":"CI/CD script injection can execute attacker-controlled commands with workflow tokens, repository secrets, trusted-runner access, artifact or cache authority, and release or deployment privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":".github/workflows/translate-i18n-claude.yml","start_line":75,"end_line":95,"snippet":"if [ \"${{ github.event_name }}\" = \"repository_dispatch\" ]; then\n  BASE_SHA=\"${{ github.event.client_payload.base_sha }}\"\n  HEAD_SHA=\"${{ github.event.client_payload.head_sha }}\"\n  CHANGED_FILES=\"${{ github.event.client_payload.changed_files }}\"\n  ...\n  if [ -n \"${{ github.event.client_payload.changes_base64 }}\" ]; then\n    printf '%s' '${{ github.event.client_payload.changes_base64 }}' | base64 -d > /tmp/i18n-changes.json"},{"path":".github/workflows/pyrefly-type-coverage-comment.yml","start_line":20,"end_line":29,"snippet":"if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.pull_requests[0].head.repo.full_name != github.repository }}\nsteps:\n  - name: Checkout default branch (trusted code)\n    uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-R0001","rule_version":"1.3.0","rule_name":"Weaponization: Malicious-Purpose Artifact (Offensive Capability by Design)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Investigated all 3 YARA matches flagged repo-wide. (1) api/configs/remote_settings_sources/apollo/utils.py:46-47 'Zeus_Malware_Reverse_Shell' -- this is a UDP connect()-to-8.8.8.8 trick used purely to discover the machine's outbound-facing local IP address for Apollo remote-config client registration; there is no socket-to-shell wiring, no subprocess/exec, no network listener -- a benign, extremely common Python idiom misidentified by the socket+connect co-occurrence heuristic. (2) dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py:57-61 -- a pytest fixture that spawns a throwaway, loopback-bound (127.0.0.1) redis-server subprocess for an integration test and tears it down in a finally block; it is test infrastructure, not an operational reverse shell (no socket piped to a shell, no attacker-facing listener). (3) e2e/AGENTS.md:26-56 'tool_poisoning secondary-objective wide-span' match itself carries confidence 25 and is explicitly annotated by the scanner as 'likely ordinary prose, not a poisoned tool description' -- reading the cited span confirms it is contributor-facing documentation about E2E test runner architecture (tags, seeds, cleanup) with zero instructions directing model/agent behavior, no injected directives, and no secondary objective. Dify's overall product is a LLM app-development/agent-orchestration platform (not an offensive-security tool), and none of its shipped code, skills, or agent instructions direct generation of malware/exploits/credential theft or mass-abuse tooling.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact whose purpose is to weaponize the agent -- to produce malware, steal credentials, evade defenses, or run attacks at scale -- is dangerous regardless of how securely it is built; posture controls (auth, input validation, least privilege) cannot make a weapon safe, which is why a confirmed weaponization finding caps the trust verdict to `blocked` rather than being averaged against a good posture score. Catching malicious PURPOSE is a distinct safety control, and it must be conservative because offensive capability is dual-use: legitimate pentest, CTF, defensive, and research work must abstain (UNKNOWN), never block -- unless the artifact itself hides from the people who install, run or audit it.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"api/configs/remote_settings_sources/apollo/utils.py","start_line":42,"end_line":52,"snippet":"def init_ip() -> str:\n    ip = \"\"\n    s = None\n    try:\n        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n        s.connect((\"8.8.8.8\", 53))\n        ip = s.getsockname()[0]\n    finally:\n        if s:\n            s.close()\n    return ip","vulnerability":{}},{"path":"dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py","start_line":50,"end_line":76,"snippet":"@pytest.fixture\ndef redis_url() -> Iterator[str]:\n    \"\"\"Start an isolated Redis when the binary is available locally.\"\"\"\n    redis_server = shutil.which(\"redis-server\")\n    if redis_server is None:\n        pytest.skip(\"redis-server is required for run terminal integration tests\")\n    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as probe:\n        probe.bind((\"127.0.0.1\", 0))\n        port = probe.getsockname()[1]\n    process = subprocess.Popen(  # noqa: S603\n        [redis_server, \"--bind\", \"127.0.0.1\", \"--port\", str(port), \"--save\", \"\", \"--appendonly\", \"no\"],\n        stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT,\n    )","vulnerability":{}},{"path":"e2e/AGENTS.md","start_line":26,"end_line":56,"snippet":"- Generate disposable resource names through `support/naming.ts` with an `E2E` prefix.\n- Keep deterministic upload material in `fixtures/test-materials/`...\n- Seed scripts own shared long-lived fixtures; scenarios own disposable resources...\n- Use typed `DifyWorld` cleanup fields... Registered callbacks run LIFO after typed cleanup queues.\n- Remove child and referencing resources before owners. Attach cleanup failures to the report instead of swallowing them.\n(contributor-facing E2E test architecture doc; no agent-directed secondary objective)","vulnerability":{}}],"affected_tools":null,"component_name":null}],"component_tools":[],"summary":{"high_level_risks":["Known CVEs in pinned dependency versions, notably chromadb==0.5.20 (CVE-2026-45833 CRITICAL, plus two HIGH CVEs) with no fix currently available, and additional HIGH CVEs in pydantic-ai-slim, golang.org/x/mod, and socket.io-parser (ATR-C0007, HIGH).","Hardcoded default secrets shipped in docker-compose.yaml/docker-compose-template.yaml (PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY, DIFY_AGENT_SERVER_SECRET_KEY, MINIO_SECRET_KEY) take effect on any deployment that does not override them, giving a publicly-known static credential for internal plugin-daemon/inner-API/object-storage channels (ATR-C0002, HIGH).","Dify's app-as-MCP-server feature (api/controllers/mcp/mcp.py, api/core/mcp/server/streamable_http.py) exposes a remote streamable-HTTP MCP endpoint gated solely by a 16-char CSPRNG 'server_code' embedded in the URL path -- there is no standard Authorization/Bearer check, no OAuth 2.1/PKCE flow, and no rate limiting on the server_code lookup, making it a bearer-URL style credential with brute-force risk and typical URL-secret leakage via proxy/access logs and Referer headers.","The `mcp` Flask blueprint is the only blueprint registered in extensions/ext_blueprints.py with NO CORS/Origin policy applied, leaving no Origin/Host validation in front of a host-side-effectful endpoint that invokes full Dify app generation.","A password-reset / sensitive auth token is logged in full at WARNING level in api/libs/helper.py TokenManager.get_token_data, exposing a usable account-takeover credential to anyone with log access (ATR-C0005, MEDIUM).","The reference deployment ships insecure-by-default transport settings: the API container's gunicorn process binds 0.0.0.0 with no TLS, and NGINX_HTTPS_ENABLED defaults to false in docker/docker-compose.yaml / docker/.env.example, making TLS opt-in rather than mandatory.","Insecure deserialization (pickle) used for the RAG embedding cache column; the stored BLOB has no integrity binding, so any future write primitive against that column becomes an RCE vector (ATR-C0009).","Auxiliary/dev container images (docker/couchbase-server/Dockerfile, .devcontainer/Dockerfile) run as root and/or use a floating ':latest' base tag, unlike the hardened production api/Dockerfile and web/Dockerfile (ATR-C0006, MEDIUM).","Tool-output-to-LLM-context sanitization (ATR-C0013) could not be fully verified across the plugin-daemon boundary; the agent scratchpad/Observation concatenation path and plugin-daemon tool-result boundary lack confirmed control-character/injection-marker stripping.","skills/difyctl destructive operations (remove/revoke) have no enforced confirmation prompt, relying on the model volunteering confirmation rather than enforcing it in the agent harness."],"top_remediations":["Upgrade or disable the chromadb vector-store provider pending a fix for CVE-2026-45833/45830/45831; upgrade pydantic-ai-slim, golang.org/x/mod, and socket.io-parser to patched versions.","Remove hardcoded fallback secret values from docker-compose*.yaml; fail-fast or auto-generate random secrets on first run instead.","Add OAuth 2.1 (with PKCE) as the primary authorization mechanism for the inbound MCP server endpoint, or at minimum require a standard Authorization header bearer token in addition to server_code, plus rate limiting/lockout on failed server_code lookups.","Apply an explicit CORS/Origin allowlist (or host-based validation) to the `mcp` Flask blueprint consistent with the other blueprints in extensions/ext_blueprints.py.","Stop logging raw token values in api/libs/helper.py TokenManager.get_token_data; log only a hash/prefix or the Redis key.","Make TLS mandatory (NGINX_HTTPS_ENABLED default true) for any deployment exposing MCP/API endpoints beyond localhost, and default DIFY_BIND_ADDRESS to loopback for standalone (non-compose) runs.","Replace pickle-based embedding serialization with a safe format (numpy tobytes/JSON) as defense-in-depth against any future write-path compromise.","Add non-root USER directives and pin a specific (non-'latest') base image tag for docker/couchbase-server/Dockerfile and .devcontainer/Dockerfile; add HEALTHCHECK to all shipped Dockerfiles.","Conduct a focused audit of the tool-output-to-context concatenation path (agent scratchpad Observation field) and the plugin-daemon boundary for control-character/prompt-injection-marker sanitization.","Harden skills/difyctl's destructive-operation guidance into an enforced confirmation gate in the surrounding agent harness."]},"rollup":{"component_findings_count":{"vulnerable":0,"secure":6,"not_applicable":2},"repo_findings_inherited_count":{"vulnerable":7,"secure":8,"not_applicable":0},"component_tools_count":{},"worst_case_severity":"HIGH"},"trust_scores":{"repo_level":{"score":25,"tier":"critical","capability_band":"extreme","score_confidence":"low","score_interval":{"low":8,"high":42},"factors":["ATR-M0003 HIGH","ATR-M0009 HIGH","ATR-C0001 HIGH","ATR-C0002 HIGH","ATR-C0005 MEDIUM","ATR-C0006 MEDIUM","ATR-C0007 HIGH","ATR-C0011 HIGH","ATR-C0013 HIGH"]},"component_level":{"score":100,"tier":"high","capability_band":"minimal","score_confidence":"high","score_interval":{"low":96,"high":100},"factors":[]}}},{"artifact_version":"2.0","component":{"component_type":"mcp-server","component_name":"mcp-server/api","component_path":"api","metadata":{"transports":["streamable_http"]}},"scan_provenance":{"scanned_at":"2026-10-14T23:52:06.135Z","resolved_ref":"f77facfe6520ed379d723288aed0b4806ad76143","resolved_ver":null},"repo_context":{"repo_url":"https://github.com/langgenius/dify","languages":["Python","TypeScript","JavaScript","Go","Dockerfile"],"transports_detected":["stdio","sse","streamable_http"],"deployment_artifacts":["docker/docker-compose.yaml","docker/Dockerfile","api/Dockerfile","web/Dockerfile","docker/docker-compose.middleware.yaml"],"provenance":{"publisher":"langgenius","publisher_verified":true,"signed_build":false,"dependency_cve_count":34,"maintenance_active":true,"declared_policy":false}},"component_findings":[{"rule_id":"ATR-M0001","rule_version":"1.2.0","rule_name":"Tool Definition Integrity & Versioning (ETDI-style)","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"The MCP server here exposes exactly one tool per published Dify app: a single tool named after the app, whose definition (description/parameters) is derived server-side from the app's own workflow/input-form configuration (core/mcp/server/streamable_http.py handle_list_tools, build_parameter_schema). Tool definitions are not fetched from an external/untrusted URL, not hot-reloaded from third-party JSON, and are regenerated fresh on every ListToolsRequest directly from the app's own DB-backed configuration (which itself requires console RBAC to edit, see controllers/console/app/mcp_server.py AppMCPServerController with RBACCheck(APP_EDIT)). There is no tool-signature/versioning scheme, but there is also no remote/third-party tool manifest ingestion path for this server to rug-pull -- the only mutation path is the app owner editing their own app via an authenticated console API.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Prevents rug-pull tool poisoning.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/mcp/server/streamable_http.py","start_line":181,"end_line":203,"snippet":"def handle_list_tools(\n    app_name: str,\n    app_mode: str,\n    user_input_form: list[VariableEntity],\n    description: str,\n    parameters_dict: dict[str, str],\n    protocol_version: str = mcp_types.DEFAULT_NEGOTIATED_VERSION,\n) -> mcp_types.ListToolsResult:\n    \"\"\"Handle list tools request\"\"\"\n    parameter_schema = build_parameter_schema(app_mode, user_input_form, parameters_dict)\n    supports_structured = _supports_structured_output(protocol_version)\n    tool = mcp_types.Tool(\n        name=app_name,\n        title=app_name if supports_structured else None,\n        description=description,\n        inputSchema=cast(dict[str, Any], parameter_schema),\n        outputSchema={\"type\": \"object\"} if supports_structured else None,\n    )\n    return mcp_types.ListToolsResult(tools=[tool])"},{"path":"api/controllers/console/app/mcp_server.py","start_line":108,"end_line":109,"snippet":"@console_account_admission(allowed_roles=_EDIT_ROLES, rbac_checks=[RBACCheck(RBACPermission.APP_EDIT, PlainApp())])\n    def post(self, request_context: RequestContext, app_id: UUID):\n        payload = validate_request(MCPServerCreatePayload)\n        try:\n            server = application_services().app_mcp_servers.create(\n                request_context, str(app_id), description=payload.description, parameters=payload.parameters\n            )"}],"affected_tools":null,"component_name":"mcp-server/api"},{"rule_id":"ATR-M0002","rule_version":"1.1.0","rule_name":"Unrestricted Tool Permissions (Overprivileged Tools)","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"The single MCP tool exposed per server maps 1:1 to the app it was published from, and its invocation is bounded to exactly that app's own workflow/completion/chat execution via AppGenerateService.generate -- it cannot reach arbitrary filesystem paths, arbitrary processes, or other tenants' apps/data. The tool's capability is scoped by construction to the app's own declared input form and workflow graph (which the app owner authored and controls via console RBAC). It is not a generic 'exec' or broad filesystem/network tool.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Limits blast radius and privilege escalation.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/mcp/server/streamable_http.py","start_line":206,"end_line":237,"snippet":"def handle_call_tool(\n    session: Session,\n    app: App,\n    request: mcp_types.ClientRequest,\n    user_input_form: list[VariableEntity],\n    end_user: EndUser | None,\n    protocol_version: str = mcp_types.DEFAULT_NEGOTIATED_VERSION,\n) -> mcp_types.CallToolResult:\n    \"\"\"Handle call tool request\"\"\"\n    request_obj = cast(mcp_types.CallToolRequest, request.root)\n    args = prepare_tool_arguments(app, request_obj.params.arguments or {})\n\n    if not end_user:\n        raise ValueError(\"End user not found\")\n\n    response = AppGenerateService.generate(\n        session=session,\n        app_model=app,\n        user=end_user,\n        args=args,\n        invoke_from=InvokeFrom.SERVICE_API,\n        streaming=app.mode == AppMode.AGENT_CHAT,\n    )"}],"affected_tools":null,"component_name":"mcp-server/api"},{"rule_id":"ATR-M0003","rule_version":"1.3.1","rule_name":"CORS / Origin / Host Validation (DNS Rebinding Defense)","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The `mcp` Flask blueprint that serves the remote streamable-HTTP MCP endpoint (`POST /mcp/server/<server_code>/mcp`) is registered in extensions/ext_blueprints.py WITHOUT any call to `_apply_cors_once(mcp_bp, ...)` -- unlike every other blueprint (service_api, openapi, web, console, files, trigger) which each get an explicit CORS policy. No Origin header validation exists anywhere in controllers/mcp/mcp.py or core/mcp/server/streamable_http.py either. The server binds beyond loopback (0.0.0.0:5001 in api/docker/entrypoint.sh / gunicorn --bind) and the exposed MCP tool invokes AppGenerateService.generate -- a host-side effect that runs the full Dify app (workflow/LLM calls, possible plugin/tool execution) scoped to that app's tenant. Missing Origin validation plus this host-side impact meets the rule's VULNERABLE bar.","vulnerability_details":null,"fix_guidance":"Apply an explicit CORS/Origin allowlist policy to the mcp blueprint, and validate the Host/Origin header server-side consistent with the MCP Authorization spec's DNS-rebinding guidance.","why_this_matters":"Prevents DNS rebinding/browser hijack of local or remote MCP.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-M0003 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"api/extensions/ext_blueprints.py","start_line":28,"end_line":121,"snippet":"def init_app(app: DifyApp):\n    ...\n    _apply_cors_once(service_api_bp, ...)\n    from controllers.console import bp as console_app_bp\n    from controllers.files import bp as files_bp\n        _apply_cors_once(openapi_bp, ...)\n    from controllers.mcp import bp as mcp_bp\n    _apply_cors_once(web_bp, ...)\n    from controllers.service_api import bp as service_api_bp\n    _apply_cors_once(console_app_bp, ...)\n    from controllers.web import bp as web_bp\n    _apply_cors_once(files_bp, ...)\n    _apply_cors_once(\n        service_api_bp,\n        allow_headers=list(SERVICE_API_HEADERS),\n    _apply_cors_once(trigger_bp, ...)\n        expose_headers=list(EXPOSED_HEADERS),"},{"path":"api/controllers/mcp/mcp.py","start_line":45,"end_line":55,"snippet":"@mcp_ns.route(\"/server/<string:server_code>/mcp\")\nclass MCPAppApi(Resource):\n    @mcp_ns.expect(mcp_ns.models[MCPRequestPayload.__name__])\n    @mcp_ns.doc(\"handle_mcp_request\")\n    @mcp_ns.doc(description=\"Handle Model Context Protocol (MCP) requests for a specific server\")\n    @mcp_ns.doc(params={\"server_code\": \"Unique identifier for the MCP server\"})\n    @mcp_ns.response(200, \"MCP JSON-RPC response\", mcp_ns.models[MCPJSONRPCResponse.__name__])\n    @mcp_ns.response(202, \"MCP notification accepted\")\n    @mcp_ns.response(400, \"Invalid MCP request or parameters\")\n    @mcp_ns.response(404, \"Server or app not found\")\n    def post(self, server_code: str):"}],"affected_tools":null,"component_name":"mcp-server/api"},{"rule_id":"ATR-M0004","rule_version":"1.2.0","rule_name":"Binding to 0.0.0.0 Without Auth/TLS","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"The API/gunicorn process binds to 0.0.0.0:5001 without TLS, but every request requires an exact match against server_code, a CSPRNG-generated capability secret, before the app is invoked; this satisfies the authentication condition this rule evaluates jointly with TLS. The absence of TLS at this layer remains tracked under the dedicated transport-security rule for this component.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"LAN/Internet exposure enables remote exploitation.","context_note":null,"within_declared_contract":false,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/docker/entrypoint.sh","start_line":120,"end_line":130,"snippet":"else\n  if [[ \"${DEBUG}\" == \"true\" ]]; then\n    export HOST=${DIFY_BIND_ADDRESS:-0.0.0.0}\n    export PORT=${DIFY_PORT:-5001}\n    exec python -m app\n  else\n    exec gunicorn \\\n      --no-control-socket \\\n      --bind \"${DIFY_BIND_ADDRESS:-0.0.0.0}:${DIFY_PORT:-5001}\" \\\n      --workers ${SERVER_WORKER_AMOUNT:-1} \\\n      --worker-class ${SERVER_WORKER_CLASS:-geventwebsocket.gunicorn.workers.GeventWebSocketWorker} \\\n      --timeout ${GUNICORN_TIMEOUT:-200} \\\n      app:socketio_app\n  fi\nfi"},{"path":"api/controllers/mcp/mcp.py","start_line":45,"end_line":55,"snippet":"@mcp_ns.route(\"/server/<string:server_code>/mcp\")\nclass MCPAppApi(Resource):\n    @mcp_ns.expect(mcp_ns.models[MCPRequestPayload.__name__])\n    @mcp_ns.doc(\"handle_mcp_request\")\n    @mcp_ns.doc(description=\"Handle Model Context Protocol (MCP) requests for a specific server\")\n    @mcp_ns.doc(params={\"server_code\": \"Unique identifier for the MCP server\"})\n    def post(self, server_code: str):\n        args = MCPRequestPayload.model_validate(mcp_ns.payload or {})"},{"path":"api/core/mcp/server/streamable_http.py","start_line":221,"end_line":228,"snippet":"    response = AppGenerateService.generate(\n        session=session,\n        app_model=app,\n        user=end_user,\n        args=args,\n        invoke_from=InvokeFrom.SERVICE_API,\n        streaming=app.mode == AppMode.AGENT_CHAT,\n    )"}],"affected_tools":null,"component_name":"mcp-server/api"},{"rule_id":"ATR-M0005","rule_version":"1.4.0","rule_name":"OAuth 2.1 + PKCE Correctness (MCP Authorization)","finding":"VULNERABLE","severity":"CRITICAL","realized_severity":"HIGH","confidence":"medium","rationale":"The app-published MCP server at `/mcp/server/<server_code>/mcp` is a remote streamable-HTTP transport with NO OAuth 2.1 authorization layer at all: there is no `/.well-known/oauth-protected-resource` metadata endpoint, no `Authorization: Bearer` validation, and no PKCE flow for MCP clients connecting to this endpoint. The sole access control is knowledge of the `server_code` path segment (a 16-char CSPRNG string, see models/model.py / libs/helper.py generate_string, and repositories/app/mcp_server_repository.py _SERVER_CODE_LENGTH=16). Per the MCP Authorization spec (2025-06-18) a remote transport server is expected to implement OAuth 2.1; a bearer-style opaque-token-in-URL scheme with no token issuance/rotation/revocation flow, no audience binding, and no per-client consent is exactly the gap this rule targets. (Note: this repo DOES implement a full OAuth 2.1 + PKCE client flow in core/mcp/auth/auth_flow.py, but that code path is Dify acting as an MCP CLIENT connecting OUT to third-party MCP servers, not Dify's own MCP SERVER endpoint authenticating inbound MCP clients -- the two are architecturally distinct and this finding is about the inbound server side.)","vulnerability_details":null,"fix_guidance":"Implement the MCP Authorization spec for this inbound server surface: publish OAuth 2.1 protected-resource metadata, require PKCE-backed bearer tokens scoped per-user/per-client with expiry and revocation, instead of relying solely on a static server_code value embedded in the URL.","why_this_matters":"Misconfig enables token theft and confused-deputy attacks.","context_note":"[capability_by_design|relief:-40%|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-M0005 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. Realized severity HIGH (from CRITICAL: 40% context relief -- mitigation_present -40%).","within_declared_contract":false,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/controllers/mcp/mcp.py","start_line":45,"end_line":55,"snippet":"@mcp_ns.route(\"/server/<string:server_code>/mcp\")\nclass MCPAppApi(Resource):\n    @mcp_ns.expect(mcp_ns.models[MCPRequestPayload.__name__])\n    @mcp_ns.doc(\"handle_mcp_request\")\n    @mcp_ns.doc(description=\"Handle Model Context Protocol (MCP) requests for a specific server\")\n    @mcp_ns.doc(params={\"server_code\": \"Unique identifier for the MCP server\"})\n    def post(self, server_code: str):"},{"path":"api/repositories/app/mcp_server_repository.py","start_line":67,"end_line":70,"snippet":"                    server_code=AppMCPServer.generate_server_code(_SERVER_CODE_LENGTH, session=session),"}],"affected_tools":null,"component_name":"mcp-server/api"},{"rule_id":"ATR-M0006","rule_version":"1.2.0","rule_name":"Tool Name Collision / Spoofing","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"Each MCP server instance is per-app (keyed by server_code, 1 app <-> 1 server) and exposes exactly one tool named after that app's own name -- there is no multi-tool namespace within a single server where collision/shadowing of a well-known tool name is architecturally possible, and the tool name is the app owner's own chosen app name, not an attacker-controlled value distinct from the server's identity.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Prevents malicious tool shadowing.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/mcp/server/streamable_http.py","start_line":196,"end_line":203,"snippet":"    tool = mcp_types.Tool(\n        name=app_name,\n        title=app_name if supports_structured else None,\n        description=description,\n        inputSchema=cast(dict[str, Any], parameter_schema),\n        outputSchema={\"type\": \"object\"} if supports_structured else None,\n    )\n    return mcp_types.ListToolsResult(tools=[tool])"}],"affected_tools":null,"component_name":"mcp-server/api"},{"rule_id":"ATR-M0007","rule_version":"1.2.0","rule_name":"Prompt/Metadata Injection in Tool Descriptions","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The tool description surfaced to MCP clients (`mcp_server.description`, echoed as both `instructions` on InitializeResult and the tool's `description` on ListToolsResult) is free text set by the app's own owner/editor/admin through the authenticated console API (RBACCheck(APP_EDIT) in controllers/console/app/mcp_server.py), not attacker-supplied content injected from an untrusted lower-privilege source. There is no sanitization against control characters/zero-width characters, but the only party who can set this text is already the trusted operator of that MCP server/app -- there is no cross-trust-boundary injection path (a different, lower-privileged user cannot write this field and have it surfaced to a higher-trust context). Hardening gap (missing sanitization) is noted but does not constitute a cross-boundary injection vulnerability given the single-trust-level authorship.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Prevents covert model manipulation.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"api/core/mcp/server/streamable_http.py","start_line":159,"end_line":178,"snippet":"def handle_initialize(description: str, requested_version: str | int) -> mcp_types.InitializeResult:\n    negotiated_version: str = mcp_types.SERVER_LATEST_PROTOCOL_VERSION\n    if isinstance(requested_version, str) and requested_version in mcp_types.SERVER_SUPPORTED_PROTOCOL_VERSIONS:\n        negotiated_version = requested_version\n    capabilities = mcp_types.ServerCapabilities(\n        tools=mcp_types.ToolsCapability(listChanged=False),\n    )\n    return mcp_types.InitializeResult(\n        protocolVersion=negotiated_version,\n        capabilities=capabilities,\n        serverInfo=mcp_types.Implementation(name=\"Dify\", version=dify_config.project.version),\n        instructions=description,\n    )"},{"path":"api/controllers/console/app/mcp_server.py","start_line":107,"end_line":109,"snippet":"    @console_account_admission(allowed_roles=_EDIT_ROLES, rbac_checks=[RBACCheck(RBACPermission.APP_EDIT, PlainApp())])\n    def post(self, request_context: RequestContext, app_id: UUID):\n        payload = validate_request(MCPServerCreatePayload)"}],"affected_tools":null,"component_name":"mcp-server/api"},{"rule_id":"ATR-M0008","rule_version":"1.2.0","rule_name":"CORS Misuse: Wildcard with Credentials","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"No CORS policy (wildcard or otherwise) is applied to the mcp blueprint at all -- flask-cors is never invoked for mcp_bp (see extensions/ext_blueprints.py), so there is no `Access-Control-Allow-Origin: *` + `Access-Control-Allow-Credentials: true` combination to misuse. (The absence of CORS entirely is a distinct DNS-rebinding/Origin-validation gap already reported under ATR-M0003; this rule specifically targets the wildcard-with-credentials anti-pattern, which is not present here since no CORS directive of any kind is set.)","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Prevents credentialed cross-origin abuse.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"api/extensions/ext_blueprints.py","start_line":111,"end_line":112,"snippet":"    app.register_blueprint(inner_api_bp)\n    app.register_blueprint(mcp_bp)"}],"affected_tools":null,"component_name":"mcp-server/api"},{"rule_id":"ATR-M0009","rule_version":"1.3.0","rule_name":"Transport Security: TLS Everywhere (Remote)","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The API/gunicorn process serving the MCP endpoint speaks plain HTTP on its own -- the gunicorn invocation in api/docker/entrypoint.sh never loads a certificate/key or enables an SSL context, so TLS (when present at all) is solely the responsibility of whatever sits in front of this container. Any deployment that reaches this container's own listener directly (bare docker run, custom K8s Service, or a misconfigured proxy bypass) serves the MCP JSON-RPC endpoint, including app credentials and conversation content, over plaintext HTTP.","vulnerability_details":null,"fix_guidance":"Require TLS termination (nginx or equivalent) in front of this process for any non-loopback deployment, and document that NGINX_HTTPS_ENABLED should default to true (or be mandatory) for production templates.","why_this_matters":"MitM can steal tokens and tamper responses.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-M0009 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The scan reported mitigation_present but the independent adjudication did not corroborate it; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/docker/entrypoint.sh","start_line":126,"end_line":129,"snippet":"    exec gunicorn \\\n      --no-control-socket \\\n      --bind \"${DIFY_BIND_ADDRESS:-0.0.0.0}:${DIFY_PORT:-5001}\" \\\n      --workers ${SERVER_WORKER_AMOUNT:-1} \\"},{"path":"api/controllers/mcp/mcp.py","start_line":55,"end_line":56,"snippet":"    def post(self, server_code: str):\n        \"\"\"Handle MCP requests for a specific server."},{"path":"api/core/mcp/server/streamable_http.py","start_line":221,"end_line":228,"snippet":"    response = AppGenerateService.generate(\n        session=session,\n        app_model=app,\n        user=end_user,\n        args=args,\n        invoke_from=InvokeFrom.SERVICE_API,\n        streaming=app.mode == AppMode.AGENT_CHAT,\n    )"}],"affected_tools":null,"component_name":"mcp-server/api"},{"rule_id":"ATR-M0010","rule_version":"1.4.0","rule_name":"No Authentication or Authorization Checks (General)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"medium","rationale":"The MCP endpoint requires an exact match against server_code, a CSPRNG-generated secret that functions as a capability credential, before any request is dispatched; the lookup path denies access on failure and provides no fallback. This satisfies the authentication condition required by this rule. Separate concerns -- such as the lack of an OAuth 2.1 flow and server_code's presence in the URL -- remain tracked under their own dedicated rules.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Prevents unauthorized tool use and data access.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/controllers/mcp/mcp.py","start_line":120,"end_line":130,"snippet":"    def _get_mcp_server_and_app(self, server_code: str, session: Session) -> tuple[AppMCPServer, App]:\n        \"\"\"Get and validate MCP server and app in one query session\"\"\"\n        mcp_server = session.scalar(select(AppMCPServer).where(AppMCPServer.server_code == server_code).limit(1))\n        if not mcp_server:\n            raise MCPRequestError(mcp_types.INVALID_REQUEST, \"Server Not Found\")\n\n        app = session.scalar(select(App).where(App.id == mcp_server.app_id).limit(1))\n        if not app:\n            raise MCPRequestError(mcp_types.INVALID_REQUEST, \"App Not Found\")\n\n        return mcp_server, app"},{"path":"api/core/mcp/server/streamable_http.py","start_line":206,"end_line":228,"snippet":"def handle_call_tool(\n    session: Session,\n    app: App,\n    request: mcp_types.ClientRequest,\n    user_input_form: list[VariableEntity],\n    end_user: EndUser | None,\n    protocol_version: str = mcp_types.DEFAULT_NEGOTIATED_VERSION,\n) -> mcp_types.CallToolResult:\n    \"\"\"Handle call tool request\"\"\"\n    request_obj = cast(mcp_types.CallToolRequest, request.root)\n    args = prepare_tool_arguments(app, request_obj.params.arguments or {})\n    if not end_user:\n        raise ValueError(\"End user not found\")\n    response = AppGenerateService.generate(\n        session=session,\n        app_model=app,\n        user=end_user,\n        args=args,\n        invoke_from=InvokeFrom.SERVICE_API,\n        streaming=app.mode == AppMode.AGENT_CHAT,\n    )"}],"affected_tools":null,"component_name":"mcp-server/api"},{"rule_id":"ATR-M0011","rule_version":"1.2.0","rule_name":"OAuth Proxy Per-Client Consent (Confused Deputy Defense)","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"The Dify MCP SERVER component evaluated here (api/controllers/mcp/mcp.py, api/core/mcp/server/streamable_http.py) does not act as an OAuth proxy forwarding inbound MCP client authorization to a distinct upstream IdP on that client's behalf -- its inbound auth model is the server_code scheme analyzed under ATR-M0010, with no OAuth/consent flow at all. The OAuth 2.1 client flow that DOES exist in this repo (core/mcp/auth/auth_flow.py) is Dify acting as an MCP CLIENT authenticating itself to third-party MCP servers (core/tools/mcp_tool/provider.py), not an OAuth proxy mediating between external MCP clients and an upstream authorization server on their behalf -- there is no dynamic MCP-client-registration endpoint here that issues a shared upstream client_id to third parties. This rule's confused-deputy shape does not apply to this architecture.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Shared upstream client + dynamic MCP-client registration + no per-client consent enables attacker-registered MCP clients to receive bridge codes carrying victim upstream tokens — the documented MCP Confused Deputy attack.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"api/core/mcp/auth/auth_flow.py","start_line":316,"end_line":330,"snippet":"def start_authorization(\n    server_url: str,\n    metadata: OAuthMetadata | None,\n    client_information: OAuthClientInformation,\n    redirect_url: str,\n    provider_id: str,\n    tenant_id: str,\n    scope: str | None = None,\n) -> tuple[str, str]:"}],"affected_tools":null,"component_name":"mcp-server/api"}],"repo_findings_inherited":[{"rule_id":"ATR-C0001","rule_version":"1.2.0","rule_name":"Unrestricted Network Fetch / SSRF","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The outbound HTTP client used for custom tool invocations and HTTP Request nodes falls back to a direct httpx client whenever SSRF_PROXY_HTTP_URL/SSRF_PROXY_HTTPS_URL are unset (they default to None in api/core/helper/ssrf_proxy.py), meaning the SSRF-blocking Squid proxy is an opt-in deployment choice rather than a code-enforced control. The custom-tool invocation path (api/core/tools/custom_tool/tool.py) dispatches the tool's configured server URL through this client with no in-code destination gate (no check against private/loopback/link-local ranges) before the request is sent. A deployment that does not explicitly configure the SSRF proxy environment variables -- which is possible under the project's supported configuration surface, not just the shipped Compose example -- allows a custom tool's configured URL to reach internal or private network destinations unguarded.","vulnerability_details":null,"fix_guidance":"Enforce SSRF protection in code rather than relying solely on an external proxy default: add a destination-validation check (reject private/loopback/link-local IP ranges) directly in the HTTP client construction path in api/core/helper/ssrf_proxy.py so protection applies even when SSRF_PROXY_HTTP_URL/HTTPS_URL are unset, and add an explicit gate in the custom-tool dispatch path in api/core/tools/custom_tool/tool.py before the configured server URL is fetched.","why_this_matters":"Enables internal pivoting and data exfiltration.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/tools/custom_tool/tool.py","start_line":65,"end_line":76,"snippet":"        self, credentials: dict[str, Any], parameters: dict[str, Any], format_only: bool = False\n    ) -> str:\n        \"\"\"\n        validate the credentials for Api tool\n        \"\"\"\n        # assemble validate request and request parameters\n        headers = self.assembling_request(parameters)\n\n        if format_only:\n            return \"\"\n\n        response = self.do_http_request(self.api_bundle.server_url, self.api_bundle.method, headers, parameters)"},{"path":"api/configs/feature/__init__.py","start_line":725,"end_line":738,"snippet":"    SSRF_PROXY_ALL_URL: str | None = Field(\n        description=\"Proxy URL for HTTP or HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTP_URL: str | None = Field(\n        description=\"Proxy URL for HTTP requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTPS_URL: str | None = Field(\n        description=\"Proxy URL for HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )"},{"path":"api/core/helper/ssrf_proxy.py","start_line":86,"end_line":101,"snippet":"def _build_ssrf_client(verify: bool) -> httpx.Client:\n    if dify_config.SSRF_PROXY_ALL_URL:\n        return httpx.Client(\n            proxy=dify_config.SSRF_PROXY_ALL_URL,\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    if dify_config.SSRF_PROXY_HTTP_URL and dify_config.SSRF_PROXY_HTTPS_URL:\n        return httpx.Client(\n            mounts=_create_proxy_mounts(verify=verify),\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    return httpx.Client(verify=verify, limits=_SSRF_CLIENT_LIMITS)"},{"path":"api/core/tools/custom_tool/tool.py","start_line":292,"end_line":306,"snippet":"            raise ValueError(f\"Invalid http method {method}\")\n        response: httpx.Response = _METHOD_MAP[\n            method_lc\n        ](  # https://discuss.python.org/t/type-inference-for-function-return-types/42926\n            url,\n            max_retries=0,\n            params=params,\n            headers=headers,\n            cookies=cookies,\n            data=body,\n            files=files,\n            timeout=API_TOOL_DEFAULT_TIMEOUT,\n            follow_redirects=True,\n        )\n        return response"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0002","rule_version":"1.3.2","rule_name":"Static Secrets","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"docker-compose.yaml and docker-compose-template.yaml ship REAL-LOOKING hardcoded default secret VALUES for inter-service authentication that take effect the moment an operator runs `docker compose up` without overriding the env vars: PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY default to the fixed base64-looking string 'lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi' / 'QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1' (identical across every public clone of the repo), DIFY_AGENT_SERVER_SECRET_KEY defaults to the fixed hex string '0123456789abcdef0123456789abcdef', and MINIO_SECRET_KEY defaults to 'minioadmin'. These are not placeholder/empty values in a .env.example (which would be the negative case) -- they are live fallback defaults baked directly into the shipped docker-compose YAML that is the project's documented one-command quick-start path, so any internet-reachable deployment that forgets to override them authenticates its internal plugin-daemon/inner-API channel and MinIO object storage with a publicly known static secret. This matches the rule's positive_indicator 'default changeme-style value' and its CWE-798/312 class directly.","vulnerability_details":"docker/docker-compose.yaml uses shell-style `${VAR:-default}` substitution where `default` is a concrete, realistic-looking secret baked into the committed YAML (not a placeholder like 'changeme' or empty string), for PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY/INNER_API_KEY_FOR_PLUGIN, DIFY_AGENT_SERVER_SECRET_KEY, and MINIO_SECRET_KEY. Any deployment that does not explicitly set these environment variables before `docker compose up` will run with these known-to-the-public credentials protecting the plugin-daemon <-> API inner channel and the MinIO backing store, letting anyone with network access to those internal ports (e.g. via SSRF, container escape, or a misconfigured network) authenticate as a trusted internal service.","fix_guidance":"Remove hardcoded fallback values from docker-compose for PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY/DIFY_AGENT_SERVER_SECRET_KEY/MINIO_SECRET_KEY; instead fail fast (or auto-generate a random secret at first-run via an init script) when the operator has not supplied a value, so no installation ever runs with a secret value that is identical and publicly known across every Dify deployment.","why_this_matters":"Plaintext secrets are easily exfiltrated.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0002 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/docker-compose.yaml","start_line":600,"end_line":604,"snippet":"      SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}\n      ...\n      DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":688,"end_line":688,"snippet":"      DIFY_AGENT_SERVER_SECRET_KEY: ${DIFY_AGENT_SERVER_SECRET_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":1104,"end_line":1104,"snippet":"      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}"},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":16,"end_line":17,"snippet":"PLUGIN_DAEMON_KEY=[REDACTED]\nPLUGIN_DIFY_INNER_API_KEY=[REDACTED]"},{"path":"api/Dockerfile","start_line":57,"end_line":57,"snippet":"ARG NODESOURCE_KEY_FPR=6F71F525282841EEDAF851B42F59B5F99B1BE0B4","vulnerability":{}},{"path":"api/.env.example","start_line":239,"end_line":239,"snippet":"# Prefix used to create collection name in vector database","vulnerability":{}},{"path":"api/.env.example","start_line":701,"end_line":701,"snippet":"POSITION_TOOL_EXCLUDES=","vulnerability":{}},{"path":"api/.env.example","start_line":715,"end_line":715,"snippet":"PLUGIN_MODEL_PROVIDERS_CACHE_TTL=86400","vulnerability":{}},{"path":"api/knowledge-fs-contract.lock.json","start_line":3,"end_line":3,"snippet":"  \"openapiSha256\": \"f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb\",","vulnerability":{}},{"path":"api/providers/vdb/vdb-alibabacloud-mysql/pyproject.toml","start_line":10,"end_line":10,"snippet":"alibabacloud_mysql = \"dify_vdb_alibabacloud_mysql.alibabacloud_mysql_vector:AlibabaCloudMySQLVectorFactory\"","vulnerability":{}},{"path":"api/services/agent/package_resource_exporter.py","start_line":257,"end_line":257,"snippet":"                    try:","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":30,"end_line":30,"snippet":"DIFY_AGENT_PLUGIN_DAEMON_API_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":36,"end_line":36,"snippet":"DIFY_AGENT_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":91,"end_line":91,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"dify-agent/docs/dify-agent/guide/index.md","start_line":151,"end_line":151,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/worker.env.example","start_line":10,"end_line":10,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/api.env.example","start_line":13,"end_line":13,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":165,"end_line":165,"snippet":"WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":174,"end_line":174,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":224,"end_line":224,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/.env.example","start_line":234,"end_line":234,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":280,"end_line":280,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":17,"end_line":17,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/dify-agent.env.example","start_line":118,"end_line":118,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/security.env.example","start_line":28,"end_line":29,"snippet":"OTLP_API_KEY=\nBAIDU_VECTOR_DB_API_KEY=dify","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":133,"end_line":133,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":166,"end_line":166,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":179,"end_line":179,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/vectorstores/weaviate.env.example","start_line":11,"end_line":11,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":204,"end_line":205,"snippet":"SENDGRID_API_KEY=\nINVITE_EXPIRY_HOURS=72","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":495,"end_line":495,"snippet":"VECTOR_STORE=weaviate","vulnerability":{}},{"path":"docker/docker-compose.yaml","start_line":1273,"end_line":1273,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"docker/docker-compose-template.yaml","start_line":1267,"end_line":1267,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"packages/contracts/generated/knowledge-fs/metadata.gen.ts","start_line":4,"end_line":5,"snippet":"export const knowledgeFsSourceOpenapiSha256 =\n  'f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb'","vulnerability":{}},{"path":"web/public/vs/editor/editor.main.js","start_line":631,"end_line":631,"snippet":"`))}}e.Trace=t}),define(ne[689],se([1,0,8,247,140]),function(oe,e,d,k,I){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.BaseResolvedKeybinding=void 0;class E extends I.ResolvedKeybinding{constructor(m,_){if(super(),_.length===0)throw(0,d.illegalArgument)(\"chords\");this._os=m,this._chords=_}getLabel(){return k.UILabelProvider.toLabel(this._os,this._chords,m=>this._getLabel(m))}getAriaLabel(){return k.AriaLabelProvider.toLabel(this._os,this._chords,m=>this._getAriaLabel(m))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:k.ElectronAcceleratorLabelProvider.toLabel(this._os,this._chords,m=>this._getElectronAccelerator(m))}getUserSettingsLabel(){return k.UserSettingsLabelProvider.toLabel(this._os,this._chords,m=>this._getUserSettingsLabel(m))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(m=>this._getChord(m))}_getChord(m){return new I.ResolvedChord(m.ctrlKey,m.shiftKey,m.altKey,m.metaKey,this._getLabel(m),this._getAriaLabel(m))}getDispatchChords(){return this._chords.map(m=>this._getChordDispatch(m))}getSingleModifierDispatchChords(){return this._chords.map(m=>this._getSingleModifierChordDispatch(m))}}e.BaseResolvedKeybinding=E}),define(ne[31],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,d.createDecorator)(\"keybindingService\")}),define(ne[391],se([1,0,5,174,2,31]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorHoverStatusBar=void 0;const y=d.$;let m=class extends I.Disposable{get hasContent(){return this._hasContent}constructor(b){super(),this._keybindingService=b,this.actions=[],this._hasContent=!1,this.hoverElement=y(\"div.hover-row.status-bar\"),this.hoverElement.tabIndex=0,this.actionsElement=d.append(this.hoverElement,y(\"div.actions\"))}addAction(b){const p=this._keybindingService.lookupKeybinding(b.commandId),n=p?p.getLabel():null;this._hasContent=!0;const o=this._register(k.HoverAction.render(this.actionsElement,b,n));return this.actions.push(o),o}append(b){const p=d.append(this.actionsElement,b);return this._hasContent=!0,p}};e.EditorHoverStatusBar=m,e.EditorHoverStatusBar=m=ke([ce(0,E.IKeybindingService)],m)}),define(ne[690],se([1,0,5,31,670,12,28,61,20,174,6]),function(oe,e,d,k,I,E,y,m,_,b,p){\"use strict\";var n;Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContentHoverWidget=void 0;const o=30,t=6;let i=class extends I.ResizableContentWidget{static{n=this}static{this.ID=\"editor.contrib.resizableContentHoverWidget\"}static{this._lastDimensions=new d.Dimension(0,0)}get isVisibleFromKeyboard(){return this._renderedHover?.source===1}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(c,l,a,r,u){const C=c.getOption(67)+8,f=150,h=new d.Dimension(f,C);super(c,h),this._configurationService=a,this._accessibilityService=r,this._keybindingService=u,this._hover=this._register(new b.HoverWidget),this._onDidResize=this._register(new p.Emitter),this.onDidResize=this._onDidResize.event,this._minimumSize=h,this._hoverVisibleKey=_.EditorContextKeys.hoverVisible.bindTo(l),this._hoverFocusedKey=_.EditorContextKeys.hoverFocused.bindTo(l),d.append(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex=\"50\",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(w=>{w.hasChanged(50)&&this._updateFont()}));const v=this._register(d.trackFocus(this._resizableNode.domNode));this._register(v.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(v.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return n.ID}static _applyDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.width=r,c.style.height=u}_setContentsDomNodeDimensions(c,l){const a=this._hover.contentsDomNode;return n._applyDimensions(a,c,l)}_setContainerDomNodeDimensions(c,l){const a=this._hover.containerDomNode;return n._applyDimensions(a,c,l)}_setHoverWidgetDimensions(c,l){this._setContentsDomNodeDimensions(c,l),this._setContainerDomNodeDimensions(c,l),this._layoutContentWidget()}static _applyMaxDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.maxWidth=r,c.style.maxHeight=u}_setHoverWidgetMaxDimensions(c,l){n._applyMaxDimensions(this._hover.contentsDomNode,c,l),n._applyMaxDimensions(this._hover.containerDomNode,c,l),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-maxWidth\",typeof c==\"number\"?`${c}px`:c),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(c){this._setHoverWidgetMaxDimensions(\"none\",\"none\");const l=c.width,a=c.height;this._setHoverWidgetDimensions(l,a)}_updateResizableNodeMaxDimensions(){const c=this._findMaximumRenderingWidth()??1/0,l=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new d.Dimension(c,l),this._setHoverWidgetMaxDimensions(c,l)}_resize(c){n._lastDimensions=new d.Dimension(c.width,c.height),this._setAdjustedHoverWidgetDimensions(c),this._resizableNode.layout(c.height,c.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const c=this._renderedHover?.showAtPosition;if(c)return this._positionPreference===1?this._availableVerticalSpaceAbove(c):this._availableVerticalSpaceBelow(c)}_findMaximumRenderingHeight(){const c=this._findAvailableSpaceVertically();if(!c)return;let l=t;return Array.from(this._hover.contentsDomNode.children).forEach(a=>{l+=a.clientHeight}),Math.min(c,l)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty(\"--vscode-hover-whiteSpace\",\"nowrap\"),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-sourceWhiteSpace\",\"nowrap\");const c=Array.from(this._hover.contentsDomNode.children).some(l=>l.scrollWidth>l.clientWidth);return this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-whiteSpace\"),this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-sourceWhiteSpace\"),c}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const c=this._isHoverTextOverflowing(),l=typeof this._contentWidth>\"u\"?0:this._contentWidth-2;return c||this._hover.containerDomNode.clientWidth<l?d.getClientArea(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(c,l){if(!this._renderedHover)return!1;if(this._renderedHover.initialMousePosX===void 0||this._renderedHover.initialMousePosY===void 0)return this._renderedHover.initialMousePosX=c,this._renderedHover.initialMousePosY=l,!1;const a=d.getDomNodePagePosition(this.getDomNode());this._renderedHover.closestMouseDistance===void 0&&(this._renderedHover.closestMouseDistance=s(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,a.left,a.top,a.width,a.height));const r=s(c,l,a.left,a.top,a.width,a.height);return r>this._renderedHover.closestMouseDistance+4?!1:(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,r),!0)}_setRenderedHover(c){this._renderedHover?.dispose(),this._renderedHover=c,this._hoverVisibleKey.set(!!c),this._hover.containerDomNode.classList.toggle(\"hidden\",!c)}_updateFont(){const{fontSize:c,lineHeight:l}=this._editor.getOption(50),a=this._hover.contentsDomNode;a.style.fontSize=`${c}px`,a.style.lineHeight=`${l/c}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName(\"code\")).forEach(u=>this._editor.applyFontInfo(u))}_updateContent(c){const l=this._hover.contentsDomNode;l.style.paddingBottom=\"\",l.textContent=\"\",l.appendChild(c)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const c=Math.max(this._editor.getLayoutInfo().height/4,250,n._lastDimensions.height),l=Math.max(this._editor.getLayoutInfo().width*.66,500,n._lastDimensions.width);this._setHoverWidgetMaxDimensions(l,c)}_render(c){this._setRenderedHover(c),this._updateFont(),this._updateContent(c.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(c){if(!this._editor||!this._editor.hasModel())return;this._render(c);const l=d.getTotalHeight(this._hover.containerDomNode),a=c.showAtPosition;this._positionPreference=this._findPositionPreference(l,a)??1,this.onContentsChanged(),c.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const u=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,b.getHoverAccessibleViewHint)(this._configurationService.getValue(\"accessibility.verbosity.hover\")===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding(\"editor.action.accessibleView\")?.getAriaLabel()??\"\");u&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+\", \"+u)}hide(){if(!this._renderedHover)return;const c=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new d.Dimension(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),c&&this._editor.focus()}_removeConstraintsRenderNormally(){const c=this._editor.getLayoutInfo();this._resizableNode.layout(c.height,c.width),this._setHoverWidgetDimensions(\"auto\",\"auto\")}setMinimumDimensions(c){this._minimumSize=new d.Dimension(Math.max(this._minimumSize.width,c.width),Math.max(this._minimumSize.height,c.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const c=typeof this._contentWidth>\"u\"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new d.Dimension(c,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const c=this._hover.containerDomNode;let l=d.getTotalHeight(c),a=d.getTotalWidth(c);if(this._resizableNode.layout(l,a),this._setHoverWidgetDimensions(a,l),l=d.getTotalHeight(c),a=d.getTotalWidth(c),this._contentWidth=a,this._updateMinimumWidth(),this._resizableNode.layout(l,a),this._renderedHover?.showAtPosition){const r=d.getTotalHeight(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(r,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c-l.lineHeight})}scrollDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c+l.lineHeight})}scrollLeft(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c-o})}scrollRight(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c+o})}pageUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c-l})}pageDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c+l})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};e.ContentHoverWidget=i,e.ContentHoverWidget=i=n=ke([ce(1,E.IContextKeyService),ce(2,y.IConfigurationService),ce(3,m.IAccessibilityService),ce(4,k.IKeybindingService)],i);function s(g,c,l,a,r,u){const C=l+r/2,f=a+u/2,h=Math.max(Math.abs(g-C)-r/2,0),v=Math.max(Math.abs(c-f)-u/2,0);return Math.sqrt(h*h+v*v)}}),define(ne[392],se([1,0,12]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.KeybindingResolver=e.NoMatchingKb=void 0,e.NoMatchingKb={kind:0};const k={kind:1};function I(_,b,p){return{kind:2,commandId:_,commandArgs:b,isBubble:p}}class E{constructor(b,p,n){this._log=n,this._defaultKeybindings=b,this._defaultBoundCommands=new Map;for(const o of b){const t=o.command;t&&t.charAt(0)!==\"-\"&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=E.handleRemovals([].concat(b).concat(p));for(let o=0,t=this._keybindings.length;o<t;o++){const i=this._keybindings[o];if(i.chords.length===0)continue;const s=i.when?.substituteConstants();s&&s.type===0||this._addKeyPress(i.chords[0],i)}}static _isTargetedForRemoval(b,p,n){if(p){for(let o=0;o<p.length;o++)if(p[o]!==b.chords[o])return!1}return!(n&&n.type!==1&&(!b.when||!(0,d.expressionsAreEqualWithConstantSubstitution)(n,b.when)))}static handleRemovals(b){const p=new Map;for(let o=0,t=b.length;o<t;o++){const i=b[o];if(i.command&&i.command.charAt(0)===\"-\"){const s=i.command.substring(1);p.has(s)?p.get(s).push(i):p.set(s,[i])}}if(p.size===0)return b;const n=[];for(let o=0,t=b.length;o<t;o++){const i=b[o];if(!i.command||i.command.length===0){n.push(i);continue}if(i.command.charAt(0)===\"-\")continue;const s=p.get(i.command);if(!s||!i.isDefault){n.push(i);continue}let g=!1;for(const c of s){const l=c.when;if(this._isTargetedForRemoval(i,c.chords,l)){g=!0;break}}if(!g){n.push(i);continue}}return n}_addKeyPress(b,p){const n=this._map.get(b);if(typeof n>\"u\"){this._map.set(b,[p]),this._addToLookupMap(p);return}for(let o=n.length-1;o>=0;o--){const t=n[o];if(t.command===p.command)continue;let i=!0;for(let s=1;s<t.chords.length&&s<p.chords.length;s++)if(t.chords[s]!==p.chords[s]){i=!1;break}i&&E.whenIsEntirelyIncluded(t.when,p.when)&&this._removeFromLookupMap(t)}n.push(p),this._addToLookupMap(p)}_addToLookupMap(b){if(!b.command)return;let p=this._lookupMap.get(b.command);typeof p>\"u\"?(p=[b],this._lookupMap.set(b.command,p)):p.push(b)}_removeFromLookupMap(b){if(!b.command)return;const p=this._lookupMap.get(b.command);if(!(typeof p>\"u\")){for(let n=0,o=p.length;n<o;n++)if(p[n]===b){p.splice(n,1);return}}}static whenIsEntirelyIncluded(b,p){return!p||p.type===1?!0:!b||b.type===1?!1:(0,d.implies)(b,p)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(b,p){const n=this._lookupMap.get(b);if(typeof n>\"u\"||n.length===0)return null;if(n.length===1)return n[0];for(let o=n.length-1;o>=0;o--){const t=n[o];if(p.contextMatchesRules(t.when))return t}return n[n.length-1]}resolve(b,p,n){const o=[...p,n];this._log(`| Resolving ${o}`);const t=this._map.get(o[0]);if(t===void 0)return this._log(\"\\\\ No keybinding entries.\"),e.NoMatchingKb;let i=null;if(o.length<2)i=t;else{i=[];for(let g=0,c=t.length;g<c;g++){const l=t[g];if(o.length>l.chords.length)continue;let a=!0;for(let r=1;r<o.length;r++)if(l.chords[r]!==o[r]){a=!1;break}a&&i.push(l)}}const s=this._findCommand(b,i);return s?o.length<s.chords.length?(this._log(`\\\\ From ${i.length} keybinding entries, awaiting ${s.chords.length-o.length} more chord(s), when: ${y(s.when)}, source: ${m(s)}.`),k):(this._log(`\\\\ From ${i.length} keybinding entries, matched ${s.command}, when: ${y(s.when)}, source: ${m(s)}.`),I(s.command,s.commandArgs,s.bubble)):(this._log(`\\\\ From ${i.length} keybinding entries, no when clauses matched the context.`),e.NoMatchingKb)}_findCommand(b,p){for(let n=p.length-1;n>=0;n--){const o=p[n];if(E._contextMatchesRules(b,o.when))return o}return null}static _contextMatchesRules(b,p){return p?p.evaluate(b):!0}}e.KeybindingResolver=E;function y(_){return _?`${_.serialize()}`:\"no when condition\"}function m(_){return _.extensionId?_.isBuiltinExtension?`built-in extension ${_.extensionId}`:`user extension ${_.extensionId}`:_.isDefault?\"built-in\":\"user\"}}),define(ne[691],se([1,0,14,8,6,300,2,3,392]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractKeybindingService=void 0;const b=/^(cursor|delete|undo|redo|tab|editor\\.action\\.clipboard)/;class p extends y.Disposable{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:I.Event.None}get inChordMode(){return this._currentChords.length>0}constructor(t,i,s,g,c){super(),this._contextKeyService=t,this._commandService=i,this._telemetryService=s,this._notificationService=g,this._logService=c,this._onDidUpdateKeybindings=this._register(new I.Emitter),this._currentChords=[],this._currentChordChecker=new d.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new d.TimeoutTimer,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(t){this._logging&&this._logService.info(`[KeybindingService]: ${t}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(t,i){const s=this._getResolver().lookupPrimaryKeybinding(t,i||this._contextKeyService);if(s)return s.resolvedKeybinding}dispatchEvent(t,i){return this._dispatch(t,i)}softDispatch(t,i){this._log(\"/ Soft dispatching keyboard event\");const s=this.resolveKeyboardEvent(t);if(s.hasMultipleChords())return console.warn(\"keyboard event should not be mapped to multiple chords\"),_.NoMatchingKb;const[g]=s.getDispatchChords();if(g===null)return this._log(\"\\\\ Keyboard event cannot be dispatched\"),_.NoMatchingKb;const c=this._contextKeyService.getContext(i),l=this._currentChords.map(({keypress:a})=>a);return this._getResolver().resolve(c,l,g)}_scheduleLeaveChordMode(){const t=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-t>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(t,i){switch(this._currentChords.push({keypress:t,label:i}),this._currentChords.length){case 0:throw(0,k.illegalState)(\"impossible\");case 1:this._currentChordStatusMessage=this._notificationService.status(m.localize(1538,\"({0}) was pressed. Waiting for second key of chord...\",i));break;default:{const s=this._currentChords.map(({label:g})=>g).join(\", \");this._currentChordStatusMessage=this._notificationService.status(m.localize(1539,\"({0}) was pressed. Waiting for next key of chord...\",s))}}this._scheduleLeaveChordMode(),E.IME.enabled&&E.IME.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],E.IME.enable()}_dispatch(t,i){return this._doDispatch(this.resolveKeyboardEvent(t),i,!1)}_singleModifierDispatch(t,i){const s=this.resolveKeyboardEvent(t),[g]=s.getSingleModifierDispatchChords();if(g)return this._ignoreSingleModifiers.has(g)?(this._log(`+ Ignoring single modifier ${g} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${g}.`),this._currentSingleModifier=g,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log(\"+ Clearing single modifier due to 300ms elapsed.\"),this._currentSingleModifier=null},300),!1):g===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${g} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(s,i,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[c]=s.getChords();return this._ignoreSingleModifiers=new n(c),this._currentSingleModifier!==null&&this._log(\"+ Clearing single modifier due to other key up.\"),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(t,i,s=!1){let g=!1;if(t.hasMultipleChords())return console.warn(\"Unexpected keyboard event mapped to multiple chords\"),!1;let c=null,l=null;if(s){const[C]=t.getSingleModifierDispatchChords();c=C,l=C?[C]:[]}else[c]=t.getDispatchChords(),l=this._currentChords.map(({keypress:C})=>C);if(c===null)return this._log(\"\\\\ Keyboard event cannot be dispatched in keydown phase.\"),g;const a=this._contextKeyService.getContext(i),r=t.getLabel(),u=this._getResolver().resolve(a,l,c);switch(u.kind){case 0:{if(this._logService.trace(\"KeybindingService#dispatch\",r,\"[ No matching keybinding ]\"),this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving multi-chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1540,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}return g}case 1:return this._logService.trace(\"KeybindingService#dispatch\",r,\"[ Several keybindings match - more chords needed ]\"),g=!0,this._expectAnotherChord(c,r),this._log(this._currentChords.length===1?\"+ Entering multi-chord mode...\":\"+ Continuing multi-chord mode...\"),g;case 2:{if(this._logService.trace(\"KeybindingService#dispatch\",r,`[ Will dispatch command ${u.commandId} ]`),u.commandId===null||u.commandId===\"\"){if(this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1541,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}}else{this.inChordMode&&this._leaveChordMode(),u.isBubble||(g=!0),this._log(`+ Invoking command ${u.commandId}.`),this._currentlyDispatchingCommandId=u.commandId;try{typeof u.commandArgs>\"u\"?this._commandService.executeCommand(u.commandId).then(void 0,C=>this._notificationService.warn(C)):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,C=>this._notificationService.warn(C))}finally{this._currentlyDispatchingCommandId=null}b.test(u.commandId)||this._telemetryService.publicLog2(\"workbenchActionExecuted\",{id:u.commandId,from:\"keybinding\",detail:t.getUserSettingsLabel()??void 0})}return g}}}mightProducePrintableCharacter(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30}}e.AbstractKeybindingService=p;class n{static{this.EMPTY=new n(null)}constructor(t){this._ctrlKey=t?t.ctrlKey:!1,this._shiftKey=t?t.shiftKey:!1,this._altKey=t?t.altKey:!1,this._metaKey=t?t.metaKey:!1}has(t){switch(t){case\"ctrl\":return this._ctrlKey;case\"shift\":return this._shiftKey;case\"alt\":return this._altKey;case\"meta\":return this._metaKey}}}}),define(ne[393],se([1,0]),function(oe,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ResolvedKeybindingItem=void 0,e.toEmptyArrayIfContainsNull=k;class d{constructor(E,y,m,_,b,p,n){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=E,this.chords=E?k(E.getDispatchChords()):[],E&&this.chords.length===0&&(this.chords=k(E.getSingleModifierDispatchChords())),this.bubble=y?y.charCodeAt(0)===94:!1,this.command=this.bubble?y.substr(1):y,this.commandArgs=m,this.when=_,this.isDefault=b,this.extensionId=p,this.isBuiltinExtension=n}}e.ResolvedKeybindingItem=d;function k(I){const E=[];for(let y=0,m=I.length;y<m;y++){const _=I[y];if(!_)return[];E.push(_)}return E}}),define(ne[692],se([1,0,72,140,689,393]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.USLayoutResolvedKeybinding=void 0;class y extends I.BaseResolvedKeybinding{constructor(_,b){super(b,_)}_keyCodeToUILabel(_){if(this._os===2)switch(_){case 15:return\"\\u2190\";case 16:return\"\\u2191\";case 17:return\"\\u2192\";case 18:return\"\\u2193\"}return d.KeyCodeUtils.toString(_)}_getLabel(_){return _.isDuplicateModifierCase()?\"\":this._keyCodeToUILabel(_.keyCode)}_getAriaLabel(_){return _.isDuplicateModifierCase()?\"\":d.KeyCodeUtils.toString(_.keyCode)}_getElectronAccelerator(_){return d.KeyCodeUtils.toElectronAccelerator(_.keyCode)}_getUserSettingsLabel(_){if(_.isDuplicateModifierCase())return\"\";const b=d.KeyCodeUtils.toUserSettingsUS(_.keyCode);return b&&b.toLowerCase()}_getChordDispatch(_){return y.getDispatchStr(_)}static getDispatchStr(_){if(_.isModifierKey())return null;let b=\"\";return _.ctrlKey&&(b+=\"ctrl+\"),_.shiftKey&&(b+=\"shift+\"),_.altKey&&(b+=\"alt+\"),_.metaKey&&(b+=\"meta+\"),b+=d.KeyCodeUtils.toString(_.keyCode),b}_getSingleModifierChordDispatch(_){return _.keyCode===5&&!_.shiftKey&&!_.altKey&&!_.metaKey?\"ctrl\":_.keyCode===4&&!_.ctrlKey&&!_.altKey&&!_.metaKey?\"shift\":_.keyCode===6&&!_.ctrlKey&&!_.shiftKey&&!_.metaKey?\"alt\":_.keyCode===57&&!_.ctrlKey&&!_.shiftKey&&!_.altKey?\"meta\":null}static _scanCodeToKeyCode(_){const b=d.IMMUTABLE_CODE_TO_KEY_CODE[_];if(b!==-1)return b;switch(_){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(_){if(!_)return null;if(_ instanceof k.KeyCodeChord)return _;const b=this._scanCodeToKeyCode(_.scanCode);return b===0?null:new k.KeyCodeChord(_.ctrlKey,_.shiftKey,_.altKey,_.metaKey,b)}static resolveKeybinding(_,b){const p=(0,E.toEmptyArrayIfContainsNull)(_.chords.map(n=>this._toKeyCodeChord(n)));return p.length>0?[new y(p,b)]:[]}}e.USLayoutResolvedKeybinding=y}),define(ne[181],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,d.createDecorator)(\"labelService\")}),define(ne[119],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILayoutService=void 0,e.ILayoutService=(0,d.createDecorator)(\"layoutService\")}),define(ne[394],se([1,0,5,52,13,6,34,49,119]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorScopedLayoutService=void 0;let b=class{get mainContainer(){return(0,I.firstOrDefault)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??k.mainWindow.document.body}get activeContainer(){return(this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor())?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return d.getClientArea(this.mainContainer)}get activeContainerDimension(){return d.getClientArea(this.activeContainer)}get containers(){return(0,I.coalesce)(this._codeEditorService.listCodeEditors().map(o=>o.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(o){this._codeEditorService=o,this.onDidLayoutMainContainer=E.Event.None,this.onDidLayoutActiveContainer=E.Event.None,this.onDidLayoutContainer=E.Event.None,this.onDidChangeActiveContainer=E.Event.None,this.onDidAddContainer=E.Event.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};b=ke([ce(0,y.ICodeEditorService)],b);let p=class extends b{get mainContainer(){return this._container}constructor(o,t){super(t),this._container=o}};e.EditorScopedLayoutService=p,e.EditorScopedLayoutService=p=ke([ce(1,y.ICodeEditorService)],p),(0,m.registerSingleton)(_.ILayoutService,b,1)}),define(ne[693],se([1,0,5,52,6,2,61,28,12,119]),function(oe,e,d,k,I,E,y,m,_,b){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AccessibilityService=void 0;let p=class extends E.Disposable{constructor(o,t,i){super(),this._contextKeyService=o,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new I.Emitter,this._onDidChangeReducedMotion=new I.Emitter,this._onDidChangeLinkUnderline=new I.Emitter,this._accessibilityModeEnabledContext=y.CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration(\"editor.accessibilitySupport\")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),c.affectsConfiguration(\"workbench.reduceMotion\")&&(this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._onDidChangeReducedMotion.fire())})),s(),this._register(this.onDidChangeScreenReaderOptimized(()=>s()));const g=k.mainWindow.matchMedia(\"(prefers-reduced-motion: reduce)\");this._systemMotionReduced=g.matches,this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._linkUnderlinesEnabled=this._configurationService.getValue(\"accessibility.underlineLinks\"),this.initReducedMotionListeners(g),this.initLinkUnderlineListeners()}initReducedMotionListeners(o){this._register((0,d.addDisposableListener)(o,\"change\",()=>{this._systemMotionReduced=o.matches,this._configMotionReduced===\"auto\"&&this._onDidChangeReducedMotion.fire()}));const t=()=>{const i=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle(\"reduce-motion\",i),this._layoutService.mainContainer.classList.toggle(\"enable-motion\",!i)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration(t=>{if(t.affectsConfiguration(\"accessibility.underlineLinks\")){const i=this._configurationService.getValue(\"accessibility.underlineLinks\");this._linkUnderlinesEnabled=i,this._onDidChangeLinkUnderline.fire()}}));const o=()=>{const t=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle(\"underline-links\",t)};o(),this._register(this.onDidChangeLinkUnderlines(()=>o()))}onDidChangeLinkUnderlines(o){return this._onDidChangeLinkUnderline.event(o)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const o=this._configurationService.getValue(\"editor.accessibilitySupport\");return o===\"on\"||o===\"auto\"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const o=this._configMotionReduced;return o===\"on\"||o===\"auto\"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};e.AccessibilityService=p,e.AccessibilityService=p=ke([ce(0,_.IContextKeyService),ce(1,b.ILayoutService),ce(2,m.IConfigurationService)],p)}),define(ne[395],se([1,0,353,2,119,5]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContextViewService=e.ContextViewHandler=void 0;let y=class extends k.Disposable{constructor(b){super(),this.layoutService=b,this.contextView=this._register(new d.ContextView(this.layoutService.mainContainer,1)),this.layout(),this._register(b.onDidLayoutContainer(()=>this.layout()))}showContextView(b,p,n){let o;p?p===this.layoutService.getContainer((0,E.getWindow)(p))?o=1:n?o=3:o=2:o=1,this.contextView.setContainer(p??this.layoutService.activeContainer,o),this.contextView.show(b);const t={close:()=>{this.openContextView===t&&this.hideContextView()}};return this.openContextView=t,t}layout(){this.contextView.layout()}hideContextView(b){this.contextView.hide(b),this.openContextView=void 0}};e.ContextViewHandler=y,e.ContextViewHandler=y=ke([ce(0,I.ILayoutService)],y);class m extends y{getContextViewElement(){return this.contextView.getViewElement()}}e.ContextViewService=m}),define(ne[62],se([1,0,6,2,12,7]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.CONTEXT_LOG_LEVEL=e.MultiplexLogger=e.ConsoleLogger=e.AbstractLogger=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILogService=void 0,e.LogLevelToString=p,e.ILogService=(0,E.createDecorator)(\"logService\");var y;(function(n){n[n.Off=0]=\"Off\",n[n.Trace=1]=\"Trace\",n[n.Debug=2]=\"Debug\",n[n.Info=3]=\"Info\",n[n.Warning=4]=\"Warning\",n[n.Error=5]=\"Error\"})(y||(e.LogLevel=y={})),e.DEFAULT_LOG_LEVEL=y.Info;class m extends k.Disposable{constructor(){super(...arguments),this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new d.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(o){this.level!==o&&(this.level=o,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(o){return this.level!==y.Off&&this.level<=o}}e.AbstractLogger=m;class _ extends m{constructor(o=e.DEFAULT_LOG_LEVEL,t=!0){super(),this.useColors=t,this.setLevel(o)}trace(o,...t){this.checkLogLevel(y.Trace)&&(this.useColors?console.log(\"%cTRACE\",\"color: #888\",o,...t):console.log(o,...t))}debug(o,...t){this.checkLogLevel(y.Debug)&&(this.useColors?console.log(\"%cDEBUG\",\"background: #eee; color: #888\",o,...t):console.log(o,...t))}info(o,...t){this.checkLogLevel(y.Info)&&(this.useColors?console.log(\"%c INFO\",\"color: #33f\",o,...t):console.log(o,...t))}warn(o,...t){this.checkLogLevel(y.Warning)&&(this.useColors?console.log(\"%c WARN\",\"color: #993\",o,...t):console.log(o,...t))}error(o,...t){this.checkLogLevel(y.Error)&&(this.useColors?console.log(\"%c  ERR\",\"color: #f33\",o,...t):console.error(o,...t))}}e.ConsoleLogger=_;class b extends m{constructor(o){super(),this.loggers=o,o.length&&this.setLevel(o[0].getLevel())}setLevel(o){for(const t of this.loggers)t.setLevel(o);super.setLevel(o)}trace(o,...t){for(const i of this.loggers)i.trace(o,...t)}debug(o,...t){for(const i of this.loggers)i.debug(o,...t)}info(o,...t){for(const i of this.loggers)i.info(o,...t)}warn(o,...t){for(const i of this.loggers)i.warn(o,...t)}error(o,...t){for(const i of this.loggers)i.error(o,...t)}dispose(){for(const o of this.loggers)o.dispose();super.dispose()}}e.MultiplexLogger=b;function p(n){switch(n){case y.Trace:return\"trace\";case y.Debug:return\"debug\";case y.Info:return\"info\";case y.Warning:return\"warn\";case y.Error:return\"error\";case y.Off:return\"off\"}}e.CONTEXT_LOG_LEVEL=new I.RawContextKey(\"logLevel\",p(y.Info))}),define(ne[212],se([1,0,64,5,93,47,296,14,6,2,128,11,310,23,61,62]),function(oe,e,d,k,I,E,y,m,_,b,p,n,o,t,i,s){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.TextAreaWrapper=e.ClipboardEventUtils=e.TextAreaInput=e.InMemoryClipboardMetadataManager=e.CopyOptions=e.TextAreaSyntethicEvents=void 0;var g;(function(u){u.Tap=\"-monaco-textarea-synthetic-tap\"})(g||(e.TextAreaSyntethicEvents=g={})),e.CopyOptions={forceCopyWithSyntaxHighlighting:!1};class c{static{this.INSTANCE=new c}constructor(){this._lastState=null}set(C,f){this._lastState={lastCopiedValue:C,data:f}}get(C){return this._lastState&&this._lastState.lastCopiedValue===C?this._lastState.data:(this._lastState=null,null)}}e.InMemoryClipboardMetadataManager=c;class l{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(C){C=C||\"\";const f={text:C,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=C.length,f}}let a=class extends b.Disposable{get textAreaState(){return this._textAreaState}constructor(C,f,h,v,w,S){super(),this._host=C,this._textArea=f,this._OS=h,this._browser=v,this._accessibilityService=w,this._logService=S,this._onFocus=this._register(new _.Emitter),this.onFocus=this._onFocus.event,this._onBlur=this._register(new _.Emitter),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new _.Emitter),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new _.Emitter),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new _.Emitter),this.onCut=this._onCut.event,this._onPaste=this._register(new _.Emitter),this.onPaste=this._onPaste.event,this._onType=this._register(new _.Emitter),this.onType=this._onType.event,this._onCompositionStart=this._register(new _.Emitter),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new _.Emitter),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new _.Emitter),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new _.Emitter),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new b.MutableDisposable),this._asyncTriggerCut=this._register(new m.RunOnceScheduler(()=>this._onCut.fire(),0)),this._textAreaState=o.TextAreaState.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent(\"ctor\"),this._register(_.Event.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let L=null;this._register(this._textArea.onKeyDown(D=>{const T=new E.StandardKeyboardEvent(D);(T.keyCode===114||this._currentComposition&&T.keyCode===1)&&T.stopPropagation(),T.equals(9)&&T.preventDefault(),L=T,this._onKeyDown.fire(T)})),this._register(this._textArea.onKeyUp(D=>{const T=new E.StandardKeyboardEvent(D);this._onKeyUp.fire(T)})),this._register(this._textArea.onCompositionStart(D=>{o._debugComposition&&console.log(\"[compositionstart]\",D);const T=new l;if(this._currentComposition){this._currentComposition=T;return}if(this._currentComposition=T,this._OS===2&&L&&L.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===D.data&&(L.code===\"ArrowRight\"||L.code===\"ArrowLeft\")){o._debugComposition&&console.log(\"[compositionstart] Handling long press case on macOS + arrow key\",D),T.handleCompositionUpdate(\"x\"),this._onCompositionStart.fire({data:D.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:D.data});return}this._onCompositionStart.fire({data:D.data})})),this._register(this._textArea.onCompositionUpdate(D=>{o._debugComposition&&console.log(\"[compositionupdate]\",D);const T=this._currentComposition;if(!T)return;if(this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionUpdate.fire(D);return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionUpdate.fire(D)})),this._register(this._textArea.onCompositionEnd(D=>{o._debugComposition&&console.log(\"[compositionend]\",D);const T=this._currentComposition;if(!T)return;if(this._currentComposition=null,this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionEnd.fire();return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(D=>{if(o._debugComposition&&console.log(\"[input]\",D),this._textArea.setIgnoreSelectionChangeTime(\"received input event\"),this._currentComposition)return;const T=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),M=o.TextAreaState.deduceInput(this._textAreaState,T,this._OS===2);M.replacePrevCharCnt===0&&M.text.length===1&&(n.isHighSurrogate(M.text.charCodeAt(0))||M.text.charCodeAt(0)===127)||(this._textAreaState=T,(M.text!==\"\"||M.replacePrevCharCnt!==0||M.replaceNextCharCnt!==0||M.positionDelta!==0)&&this._onType.fire(M))})),this._register(this._textArea.onCut(D=>{this._textArea.setIgnoreSelectionChangeTime(\"received cut event\"),this._ensureClipboardGetsEditorSelection(D),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(D=>{this._ensureClipboardGetsEditorSelection(D)})),this._register(this._textArea.onPaste(D=>{if(this._textArea.setIgnoreSelectionChangeTime(\"received paste event\"),D.preventDefault(),!D.clipboardData)return;let[T,M]=e.ClipboardEventUtils.getTextData(D.clipboardData);T&&(M=M||c.INSTANCE.get(T),this._onPaste.fire({text:T,metadata:M}))})),this._register(this._textArea.onFocus(()=>{const D=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!D&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"blurWithoutCompositionEnd\"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"tapWithoutCompositionEnd\"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let C=0;return k.addDisposableListener(this._textArea.ownerDocument,\"selectionchange\",f=>{if(y.inputLatency.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const h=Date.now(),v=h-C;if(C=h,v<5)return;const w=h-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),w<100||!this._textAreaState.selection)return;const S=this._textArea.getValue();if(this._textAreaState.value!==S)return;const L=this._textArea.getSelectionStart(),D=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===L&&this._textAreaState.selectionEnd===D)return;const T=this._textAreaState.deduceEditorPosition(L),M=this._host.deduceModelPosition(T[0],T[1],T[2]),A=this._textAreaState.deduceEditorPosition(D),P=this._host.deduceModelPosition(A[0],A[1],A[2]),N=new t.Selection(M.lineNumber,M.column,P.lineNumber,P.column);this._onSelectionChangeRequest.fire(N)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(C){this._hasFocus!==C&&(this._hasFocus=C,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent(\"focusgain\"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(C,f){this._hasFocus||(f=f.collapseSelection()),f.writeToTextArea(C,this._textArea,this._hasFocus),this._textAreaState=f}writeNativeTextAreaContent(C){!this._accessibilityService.isScreenReaderOptimized()&&C===\"render\"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${C})`),this._setAndWriteTextAreaState(C,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(C){const f=this._host.getDataToCopy(),h={version:1,isFromEmptySelection:f.isFromEmptySelection,multicursorText:f.multicursorText,mode:f.mode};c.INSTANCE.set(this._browser.isFirefox?f.text.replace(/\\r\\n/g,`","vulnerability":{}},{"path":"web/public/vs/language/typescript/tsWorker.js","start_line":320,"end_line":320,"snippet":"`||hn[0]===\"\\r\");)hn.shift()}function CP(hn){for(;hn.length;){let Tr=hn[hn.length-1].trimEnd();if(Tr===\"\")hn.pop();else if(Tr.length<hn[hn.length-1].length){hn[hn.length-1]=Tr;break}else break}}function fE(){for(;;){if(gt(),j()===1)return!0;if(!(j()===5||j()===4))return!1}}function Dg(){if(!((j()===5||j()===4)&&_i(fE)))for(;j()===5||j()===4;)gt()}function jy(){if((j()===5||j()===4)&&_i(fE))return\"\";let hn=t.hasPrecedingLineBreak(),Tr=!1,gr=\"\";for(;hn&&j()===42||j()===5||j()===4;)gr+=t.getTokenText(),j()===4?(hn=!0,Tr=!0,gr=\"\"):j()===42&&(hn=!1),gt();return Tr?gr:\"\"}function lD(hn){x.assert(j()===60);let Tr=t.getTokenStart();gt();let gr=gE(void 0),Ei=jy(),hi;switch(gr.escapedText){case\"author\":hi=Ss(Tr,gr,hn,Ei);break;case\"implements\":hi=Hy(Tr,gr,hn,Ei);break;case\"augments\":case\"extends\":hi=lm(Tr,gr,hn,Ei);break;case\"class\":case\"constructor\":hi=hE(Tr,m.createJSDocClassTag,gr,hn,Ei);break;case\"public\":hi=hE(Tr,m.createJSDocPublicTag,gr,hn,Ei);break;case\"private\":hi=hE(Tr,m.createJSDocPrivateTag,gr,hn,Ei);break;case\"protected\":hi=hE(Tr,m.createJSDocProtectedTag,gr,hn,Ei);break;case\"readonly\":hi=hE(Tr,m.createJSDocReadonlyTag,gr,hn,Ei);break;case\"override\":hi=hE(Tr,m.createJSDocOverrideTag,gr,hn,Ei);break;case\"deprecated\":Nr=!0,hi=hE(Tr,m.createJSDocDeprecatedTag,gr,hn,Ei);break;case\"this\":hi=T7(Tr,gr,hn,Ei);break;case\"enum\":hi=D$(Tr,gr,hn,Ei);break;case\"arg\":case\"argument\":case\"param\":return w(Tr,gr,2,hn);case\"return\":case\"returns\":hi=Be(Tr,gr,hn,Ei);break;case\"template\":hi=Jy(Tr,gr,hn,Ei);break;case\"type\":hi=kt(Tr,gr,hn,Ei);break;case\"typedef\":hi=MP(Tr,gr,hn,Ei);break;case\"callback\":hi=Ame(Tr,gr,hn,Ei);break;case\"overload\":hi=Ime(Tr,gr,hn,Ei);break;case\"satisfies\":hi=_E(Tr,gr,hn,Ei);break;case\"see\":hi=ir(Tr,gr,hn,Ei);break;case\"exception\":case\"throws\":hi=Wi(Tr,gr,hn,Ei);break;default:hi=Uy(Tr,gr,hn,Ei);break}return hi}function _p(hn,Tr,gr,Ei){return Ei||(gr+=Tr-hn),Sa(gr,Ei.slice(gr))}function Sa(hn,Tr){let gr=M(),Ei=[],hi=[],wa,ns=0,Dd;function ih(Cg){Dd||(Dd=hn),Ei.push(Cg),hn+=Cg.length}Tr!==void 0&&(Tr!==\"\"&&ih(Tr),ns=1);let Zu=j();e:for(;;){switch(Zu){case 4:ns=0,Ei.push(t.getTokenText()),hn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:x.assert(ns!==2&&ns!==3,\"whitespace shouldn't come from the scanner while saving comment text\");let Cg=t.getTokenText();Dd!==void 0&&hn+Cg.length>Dd&&(Ei.push(Cg.slice(Dd-hn)),ns=2),hn+=Cg.length;break;case 19:ns=2;let ep=t.getTokenFullStart(),uD=t.getTokenEnd()-1,tw=zl(uD);tw?(hi.push(Ut(m.createJSDocText(Ei.join(\"\")),wa??gr,ep)),hi.push(tw),Ei=[],wa=t.getTokenEnd()):ih(t.getTokenText());break;case 62:ns===3?ns=2:ns=3,ih(t.getTokenText());break;case 82:ns!==3&&(ns=2),ih(t.getTokenValue());break;case 42:if(ns===0){ns=1,hn+=1;break}default:ns!==3&&(ns=2),ih(t.getTokenText());break}ns===2||ns===3?Zu=bt(ns===3):Zu=gt()}DP(Ei);let Lm=Ei.join(\"\").trimEnd();if(hi.length)return Lm.length&&hi.push(Ut(m.createJSDocText(Lm),wa??gr)),ho(hi,gr,t.getTokenEnd());if(Lm.length)return Lm}function zl(hn){let Tr=ui(p1);if(!Tr)return;gt(),Dg();let gr=mE(),Ei=[];for(;j()!==20&&j()!==4&&j()!==1;)Ei.push(t.getTokenText()),gt();let hi=Tr===\"link\"?m.createJSDocLink:Tr===\"linkcode\"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return Ut(hi(gr,Ei.join(\"\")),hn,t.getTokenEnd())}function mE(){if(Md(j())){let hn=M(),Tr=tc();for(;$i(25);)Tr=Ut(m.createQualifiedName(Tr,j()===81?ys(80,!1):ls()),hn);for(;j()===81;)ti(),gt(),Tr=Ut(m.createJSDocMemberName(Tr,ls()),hn);return Tr}}function p1(){if(jy(),j()===19&&gt()===60&&Md(gt())){let hn=t.getTokenValue();if(NP(hn))return hn}}function NP(hn){return hn===\"link\"||hn===\"linkcode\"||hn===\"linkplain\"}function Uy(hn,Tr,gr,Ei){return Ut(m.createJSDocUnknownTag(Tr,_p(hn,M(),gr,Ei)),hn)}function PP(hn){hn&&(Ma?Ma.push(hn):(Ma=[hn],lf=hn.pos),v_=hn.end)}function Un(){return jy(),j()===19?Fe():void 0}function y(){let hn=Rv(23);hn&&Dg();let Tr=Rv(62),gr=dD();return Tr&&ua(62),hn&&(Dg(),Uo(64)&&we(),_n(24)),{name:gr,isBracketed:hn}}function D(hn){switch(hn.kind){case 151:return!0;case 188:return D(hn.elementType);default:return Yp(hn)&&Me(hn.typeName)&&hn.typeName.escapedText===\"Object\"&&!hn.typeArguments}}function w(hn,Tr,gr,Ei){let hi=Un(),wa=!hi;jy();let{name:ns,isBracketed:Dd}=y(),ih=jy();wa&&!_i(p1)&&(hi=Un());let Zu=_p(hn,M(),Ei,ih),Lm=ie(hi,ns,gr,Ei);Lm&&(hi=Lm,wa=!0);let Cg=gr===1?m.createJSDocPropertyTag(Tr,ns,Dd,hi,wa,Zu):m.createJSDocParameterTag(Tr,ns,Dd,hi,wa,Zu);return Ut(Cg,hn)}function ie(hn,Tr,gr,Ei){if(hn&&D(hn.type)){let hi=M(),wa,ns;for(;wa=ui(()=>I7(gr,Ei,Tr));)wa.kind===348||wa.kind===355?ns=pn(ns,wa):wa.kind===352&&Re(wa.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ns){let Dd=Ut(m.createJSDocTypeLiteral(ns,hn.type.kind===188),hi);return Ut(m.createJSDocTypeExpression(Dd),hi)}}}function Be(hn,Tr,gr,Ei){ct(Ma,T6)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Un();return Ut(m.createJSDocReturnTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function kt(hn,Tr,gr,Ei){ct(Ma,gN)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Fe(!0),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocTypeTag(Tr,hi,wa),hn)}function ir(hn,Tr,gr,Ei){let wa=j()===23||_i(()=>gt()===60&&Md(gt())&&NP(t.getTokenValue()))?void 0:mt(),ns=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSeeTag(Tr,wa,ns),hn)}function Wi(hn,Tr,gr,Ei){let hi=Un(),wa=_p(hn,M(),gr,Ei);return Ut(m.createJSDocThrowsTag(Tr,hi,wa),hn)}function Ss(hn,Tr,gr,Ei){let hi=M(),wa=Mm(),ns=t.getTokenFullStart(),Dd=_p(hn,ns,gr,Ei);Dd||(ns=t.getTokenFullStart());let ih=typeof Dd!=\"string\"?ho(ro([Ut(wa,hi,ns)],Dd),hi):wa.text+Dd;return Ut(m.createJSDocAuthorTag(Tr,ih),hn)}function Mm(){let hn=[],Tr=!1,gr=t.getToken();for(;gr!==1&&gr!==4;){if(gr===30)Tr=!0;else{if(gr===60&&!Tr)break;if(gr===32&&Tr){hn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}hn.push(t.getTokenText()),gr=gt()}return m.createJSDocText(hn.join(\"\"))}function Hy(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocImplementsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function lm(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocAugmentsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function _E(hn,Tr,gr,Ei){let hi=Fe(!1),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSatisfiesTag(Tr,hi,wa),hn)}function R$(){let hn=$i(19),Tr=M(),gr=Tme();t.setInJSDocType(!0);let Ei=uE();t.setInJSDocType(!1);let hi=m.createExpressionWithTypeArguments(gr,Ei),wa=Ut(hi,Tr);return hn&&_n(20),wa}function Tme(){let hn=M(),Tr=gE();for(;$i(25);){let gr=gE();Tr=Ut(K(Tr,gr),hn)}return Tr}function hE(hn,Tr,gr,Ei,hi){return Ut(Tr(gr,_p(hn,M(),Ei,hi)),hn)}function T7(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocThisTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function D$(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocEnumTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function MP(hn,Tr,gr,Ei){let hi=Un();jy();let wa=A7();Dg();let ns=Sa(gr),Dd;if(!hi||D(hi.type)){let Zu,Lm,Cg,ep=!1;for(;(Zu=ui(()=>P$(gr)))&&Zu.kind!==352;)if(ep=!0,Zu.kind===351)if(Lm){let uD=Qt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);uD&&fa(uD,Ix(_e,Te,0,0,f.The_tag_was_first_specified_here));break}else Lm=Zu;else Cg=pn(Cg,Zu);if(ep){let uD=hi&&hi.type.kind===188,tw=m.createJSDocTypeLiteral(Cg,uD);hi=Lm&&Lm.typeExpression&&!D(Lm.typeExpression.type)?Lm.typeExpression:Ut(tw,hn),Dd=hi.end}}Dd=Dd||ns!==void 0?M():(wa??hi??Tr).end,ns||(ns=_p(hn,Dd,gr,Ei));let ih=m.createJSDocTypedefTag(Tr,hi,wa,ns);return Ut(ih,hn,Dd)}function A7(hn){let Tr=t.getTokenStart();if(!Md(j()))return;let gr=gE();if($i(25)){let Ei=A7(!0),hi=m.createModuleDeclaration(void 0,gr,Ei,hn?8:void 0);return Ut(hi,Tr)}return hn&&(gr.flags|=4096),gr}function C$(hn){let Tr=M(),gr,Ei;for(;gr=ui(()=>I7(4,hn));){if(gr.kind===352){Re(gr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ei=pn(Ei,gr)}return ho(Ei||[],Tr)}function N$(hn,Tr){let gr=C$(Tr),Ei=ui(()=>{if(Rv(60)){let hi=lD(Tr);if(hi&&hi.kind===349)return hi}});return Ut(m.createJSDocSignature(void 0,gr,Ei),hn)}function Ame(hn,Tr,gr,Ei){let hi=A7();Dg();let wa=Sa(gr),ns=N$(hn,gr);wa||(wa=_p(hn,M(),gr,Ei));let Dd=wa!==void 0?M():ns.end;return Ut(m.createJSDocCallbackTag(Tr,ns,hi,wa),hn,Dd)}function Ime(hn,Tr,gr,Ei){Dg();let hi=Sa(gr),wa=N$(hn,gr);hi||(hi=_p(hn,M(),gr,Ei));let ns=hi!==void 0?M():wa.end;return Ut(m.createJSDocOverloadTag(Tr,wa,hi),hn,ns)}function cD(hn,Tr){for(;!Me(hn)||!Me(Tr);)if(!Me(hn)&&!Me(Tr)&&hn.right.escapedText===Tr.right.escapedText)hn=hn.left,Tr=Tr.left;else return!1;return hn.escapedText===Tr.escapedText}function P$(hn){return I7(1,hn)}function I7(hn,Tr,gr){let Ei=!0,hi=!1;for(;;)switch(gt()){case 60:if(Ei){let wa=q0(hn,Tr);return wa&&(wa.kind===348||wa.kind===355)&&gr&&(Me(wa.name)||!cD(gr,wa.name.left))?!1:wa}hi=!1;break;case 4:Ei=!0,hi=!1;break;case 42:hi&&(Ei=!1),hi=!0;break;case 80:Ei=!1;break;case 1:return!1}}function q0(hn,Tr){x.assert(j()===60);let gr=t.getTokenFullStart();gt();let Ei=gE(),hi=jy(),wa;switch(Ei.escapedText){case\"type\":return hn===1&&kt(gr,Ei);case\"prop\":case\"property\":wa=1;break;case\"arg\":case\"argument\":case\"param\":wa=6;break;case\"template\":return Jy(gr,Ei,Tr,hi);case\"this\":return T7(gr,Ei,Tr,hi);default:return!1}return hn&wa?w(gr,Ei,hn,Tr):!1}function Yn(){let hn=M(),Tr=Rv(23);Tr&&Dg();let gr=eh(!1,!0),Ei=gE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),hi;if(Tr&&(Dg(),_n(64),hi=Ea(16777216,nm),_n(24)),!_l(Ei))return Ut(m.createTypeParameterDeclaration(gr,Ei,void 0,hi),hn)}function qy(){let hn=M(),Tr=[];do{Dg();let gr=Yn();gr!==void 0&&Tr.push(gr),jy()}while(Rv(28));return ho(Tr,hn)}function Jy(hn,Tr,gr,Ei){let hi=j()===19?Fe():void 0,wa=qy();return Ut(m.createJSDocTemplateTag(Tr,hi,wa,_p(hn,M(),gr,Ei)),hn)}function Rv(hn){return j()===hn?(gt(),!0):!1}function dD(){let hn=gE();for($i(23)&&_n(24);$i(25);){let Tr=gE();$i(23)&&_n(24),hn=Ye(hn,Tr)}return hn}function gE(hn){if(!Md(j()))return ys(80,!hn,hn||f.Identifier_expected);Vt++;let Tr=t.getTokenStart(),gr=t.getTokenEnd(),Ei=j(),hi=Pc(t.getTokenValue()),wa=Ut(C(hi,Ei),Tr,gr);return gt(),wa}}})(g_=e.JSDocParser||(e.JSDocParser={}))})(zb||(zb={})),(e=>{function t(S,A,C,R){if(R=R||x.shouldAssert(2),m(S,A,C,R),Iee(C))return S;if(S.statements.length===0)return zb.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let L=S;x.assert(!L.hasBeenIncrementallyParsed),L.hasBeenIncrementallyParsed=!0,zb.fixupParentReferences(L);let G=S.text,U=v(S),K=p(S,C);m(S,A,K,R),x.assert(K.span.start<=C.span.start),x.assert(Al(K.span)===Al(C.span)),x.assert(Al(ZD(K))===Al(ZD(C)));let F=ZD(K).length-K.span.length;d(L,K.span.start,Al(K.span),Al(ZD(K)),F,G,A,R);let oe=zb.parseSourceFile(S.fileName,A,S.languageVersion,U,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return oe.commentDirectives=r(S.commentDirectives,oe.commentDirectives,K.span.start,Al(K.span),F,G,A,R),oe.impliedNodeFormat=S.impliedNodeFormat,oe}e.updateSourceFile=t;function r(S,A,C,R,L,G,U,K){if(!S)return A;let F,oe=!1;for(let $ of S){let{range:de,type:fe}=$;if(de.end<C)F=pn(F,$);else if(de.pos>R){W();let q={range:{pos:de.pos+L,end:de.end+L},type:fe};F=pn(F,q),K&&x.assert(G.substring(de.pos,de.end)===U.substring(q.range.pos,q.range.end))}}return W(),F;function W(){oe||(oe=!0,F?A&&F.push(...A):F=A)}}function i(S,A,C,R,L,G){A?K(S):U(S);return;function U(F){let oe=\"\";if(G&&o(F)&&(oe=R.substring(F.pos,F.end)),F._children&&(F._children=void 0),F_(F,F.pos+C,F.end+C),G&&o(F)&&x.assert(oe===L.substring(F.pos,F.end)),Ao(F,U,K),ap(F))for(let W of F.jsDoc)U(W);l(F,G)}function K(F){F._children=void 0,F_(F,F.pos+C,F.end+C);for(let oe of F)U(oe)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,C,R,L){x.assert(S.end>=A,\"Adjusting an element that was entirely before the change range\"),x.assert(S.pos<=C,\"Adjusting an element that was entirely after the change range\"),x.assert(S.pos<=S.end);let G=Math.min(S.pos,R),U=S.end>=C?S.end+L:Math.min(S.end,R);x.assert(G<=U),S.parent&&(x.assertGreaterThanOrEqual(G,S.parent.pos),x.assertLessThanOrEqual(U,S.parent.end)),F_(S,G,U)}function l(S,A){if(A){let C=S.pos,R=L=>{x.assert(L.pos>=C),C=L.end};if(ap(S))for(let L of S.jsDoc)R(L);Ao(S,R),x.assert(C<=S.end)}}function d(S,A,C,R,L,G,U,K){F(S);return;function F(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!1,L,G,U,K);return}let $=W.end;if($>=A){if(W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L),Ao(W,F,oe),ap(W))for(let de of W.jsDoc)F(de);l(W,K);return}x.assert($<A)}function oe(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!0,L,G,U,K);return}let $=W.end;if($>=A){W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L);for(let de of W)F(de);return}x.assert($<A)}}function p(S,A){let R=A.span.start;for(let U=0;R>0&&U<=1;U++){let K=h(S,R);x.assert(K.pos<=R);let F=K.pos;R=Math.max(0,F-1)}let L=Gl(R,Al(A.span)),G=A.newLength+(A.span.start-R);return FM(L,G)}function h(S,A){let C=S,R;if(Ao(S,G),R){let U=L(R);U.pos>C.pos&&(C=U)}return C;function L(U){for(;;){let K=yV(U);if(K)U=K;else return U}}function G(U){if(!_l(U))if(U.pos<=A){if(U.pos>=C.pos&&(C=U),A<U.end)return Ao(U,G),!0;x.assert(U.end<=A),R=U}else return x.assert(U.pos>A),!0}}function m(S,A,C,R){let L=S.text;if(C&&(x.assert(L.length-C.span.length+C.newLength===A.length),R||x.shouldAssert(3))){let G=L.substr(0,C.span.start),U=A.substr(0,C.span.start);x.assert(G===U);let K=L.substring(Al(C.span),L.length),F=A.substring(Al(ZD(C)),A.length);x.assert(K===F)}}function v(S){let A=S.statements,C=0;x.assert(C<A.length);let R=A[C],L=-1;return{currentNode(U){return U!==L&&(R&&R.end===U&&C<A.length-1&&(C++,R=A[C]),(!R||R.pos!==U)&&G(U)),L=U,x.assert(!R||R.pos===U),R}};function G(U){A=void 0,C=-1,R=void 0,Ao(S,K,F);return;function K(oe){return U>=oe.pos&&U<oe.end?(Ao(oe,K,F),!0):!1}function F(oe){if(U>=oe.pos&&U<oe.end)for(let W=0;W<oe.length;W++){let $=oe[W];if($){if($.pos===U)return A=oe,C=W,R=$,!0;if($.pos<U&&U<$.end)return Ao($,K,F),!0}}return!1}}}e.createSyntaxCursor=v;let E;(S=>{S[S.Value=-1]=\"Value\"})(E||(E={}))})(Zj||(Zj={})),eU=new Map,wEe=/^\\/\\/\\/\\s*<(\\S+)\\s.*?\\/>/im,WEe=/^\\/\\/\\/?\\s*@([^\\s:]+)(.*)\\s*$/im}});function O6(e){let t=new Map,r=new Map;return an(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function Xx(){return E0e||(E0e=O6(Nh))}function Mie(e){return FEe(e,bl)}function FEe(e,t){let r=bo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(\", \");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function w6(e,t,r){return h0e(e,(t??\"\").trim(),r)}function Lie(e,t=\"\",r){if(t=t.trim(),Ui(t,\"-\"))return;if(e.type===\"listOrElement\"&&!t.includes(\",\"))return vI(e,t,r);if(t===\"\")return[];let i=t.split(\",\");switch(e.element.type){case\"number\":return Fi(i,o=>vI(e.element,parseInt(o),r));case\"string\":return Fi(i,o=>vI(e.element,o||\"\",r));case\"boolean\":case\"object\":return x.fail(`List of ${e.element.type} is not yet supported.`);default:return Fi(i,o=>w6(e.element,o,r))}}function zEe(e){return e.name}function kie(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return Bb(o,i,t.alternateMode.diagnostic,e);let l=VD(e,t.optionDeclarations,zEe);return l?Bb(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):Bb(o,i,t.unknownOptionDiagnostic,r||e)}function tU(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;m<h.length;){let v=h[m];if(m++,v.charCodeAt(0)===64)p(v.slice(1));else if(v.charCodeAt(0)===45){let E=v.slice(v.charCodeAt(1)===45?2:1),S=Oie(e.getOptionsNameMap,E,!0);if(S)m=BEe(h,m,e,S,i,l);else{let A=Oie(q6.getOptionsNameMap,E,!0);A?m=BEe(h,m,q6,A,o||(o={}),l):l.push(kie(E,e,v))}}else s.push(v)}}function p(h){let m=SN(h,r||(S=>Hc.readFile(S)));if(!fo(m)){l.push(m);return}let v=[],E=0;for(;;){for(;E<m.length&&m.charCodeAt(E)<=32;)E++;if(E>=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E<m.length&&m.charCodeAt(E)!==34;)E++;E<m.length?(v.push(m.substring(S+1,E)),E++):l.push(bl(f.Unterminated_quoted_string_in_response_file_0,h))}else{for(;m.charCodeAt(E)>32;)E++;v.push(m.substring(S,E))}}d(v)}}function BEe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l===\"null\"?(o[i.name]=void 0,t++):i.type===\"boolean\"?l===\"false\"?(o[i.name]=vI(i,!1,s),t++):(l===\"true\"&&t++,s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!Ui(l,\"-\")&&t++)}else if(!e[t]&&i.type!==\"boolean\"&&s.push(bl(r.optionTypeMismatchDiagnostic,i.name,oU(i))),e[t]!==\"null\")switch(i.type){case\"number\":o[i.name]=vI(i,parseInt(e[t]),s),t++;break;case\"boolean\":let l=e[t];o[i.name]=vI(i,l!==\"false\",s),(l===\"false\"||l===\"true\")&&t++;break;case\"string\":o[i.name]=vI(i,e[t]||\"\",s),t++;break;case\"list\":let d=Lie(i,e[t],s);o[i.name]=d||[],d&&t++;break;case\"listOrElement\":x.fail(\"listOrElement not supported here\");break;default:o[i.name]=w6(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function GEe(e,t){return tU(Q2,e,t)}function nU(e,t){return Oie(Xx,e,t)}function Oie(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function VEe(){return T0e||(T0e=O6(U6))}function jEe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=tU(I0e,e),s=t;return i.length===0&&i.push(\".\"),s.clean&&s.force&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"force\")),s.clean&&s.verbose&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"verbose\")),s.clean&&s.watch&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"watch\")),s.watch&&s.dry&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"watch\",\"dry\")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function UEe(e,...t){return Fo(bl(e,...t).messageText,fo)}function V2(e,t,r,i,o,s){let l=SN(e,h=>r.readFile(h));if(!fo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=G2(e,l),p=r.getCurrentDirectory();return d.path=ks(e,p,od(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,H2(d,r,Qi(Ur(e),p),t,Qi(e,p),void 0,s,i,o)}function j2(e,t){let r=SN(e,t);return fo(r)?rU(e,r):{config:{},error:r}}function rU(e,t){let r=G2(e,t);return{config:XEe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function wie(e,t){let r=SN(e,t);return fo(r)?G2(e,r):{fileName:e,parseDiagnostics:[r]}}function SN(e,t){let r;try{r=t(e)}catch(i){return bl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?bl(f.Cannot_read_file_0,e):r}function iU(e){return PE(e,zEe)}function HEe(){return x0e||(x0e=O6(Yx))}function qEe(){return R0e||(R0e=iU(Nh))}function JEe(){return D0e||(D0e=iU(Yx))}function KEe(){return C0e||(C0e=iU($2))}function R4e(){return $ie===void 0&&($ie={name:void 0,type:\"object\",elementOptions:iU([Kie,Xie,Yie,Z2,{name:\"references\",type:\"list\",element:{name:\"references\",type:\"object\"},category:f.Projects},{name:\"files\",type:\"list\",element:{name:\"files\",type:\"string\"},category:f.File_Management},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},J2])}),$ie}function XEe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(vf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,Ll(e.fileName)===\"jsconfig.json\"?\"jsconfig.json\":\"tsconfig.json\")),Bd(o)){let s=Dr(o.elements,ma);if(s)return U2(e,s,t,!0,r)}return{}}return U2(e,o,t,!0,r)}function Wie(e,t){var r;return U2(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function U2(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var v;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(vf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(vf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,\"?\")),p(S.name)||r.push(vf(e,S.name,f.String_literal_with_double_quotes_expected));let A=aL(S.name)?void 0:$1(S.name),C=A&&Ii(A),R=C?(v=m?.elementOptions)==null?void 0:v.get(C):void 0,L=d(S.initializer,R);typeof C<\"u\"&&(i&&(E[C]=L),o?.onPropertySet(C,L,S,m,R))}return E}function l(h,m){if(!i){h.forEach(v=>d(v,m));return}return Cr(h.map(v=>d(v,m)),v=>v!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(vf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(vf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,oU(m))):r.push(vf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return da(h)&&IW(h,e)}}function oU(e){return e.type===\"listOrElement\"?`${oU(e.element)} or Array`:e.type===\"list\"?\"Array\":fo(e.type)?e.type:\"string\"}function YEe(e,t){if(e){if(q2(t))return!e.disallowNullOrUndefined;if(e.type===\"list\")return oo(t);if(e.type===\"listOrElement\")return oo(t)||YEe(e.element,t);let r=fo(e.type)?e.type:\"string\";return typeof t===r}return!1}function $Ee(e,t,r){var i,o,s;let l=od(r.useCaseSensitiveFileNames),d=nn(Cr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?C4e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ug),A=>RM(Qi(t,r.getCurrentDirectory()),Qi(A,r.getCurrentDirectory()),l)),p={configFilePath:Qi(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=F6(e.options,p),m=e.watchOptions&&N4e(e.watchOptions),v={compilerOptions:{...W6(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&W6(m),references:nn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:\"\",originalPath:void 0})),files:yn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:D4e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in Ul)if(!E.has(A)&&ct(Ul[A].dependencies,C=>E.has(C))){let C=Ul[A].computeValue(e.options),R=Ul[A].computeValue({});C!==R&&(S[A]=Ul[A].computeValue(e.options))}return R1(v.compilerOptions,W6(F6(S,p))),v}function W6(e){return{...bo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function D4e(e){if(yn(e)){if(yn(e)!==1)return e;if(e[0]!==J6)return e}}function C4e(e,t,r,i){if(!t)return Ug;let o=dF(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&iy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&iy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ug}function QEe(e){switch(e.type){case\"string\":case\"number\":case\"boolean\":case\"object\":return;case\"list\":case\"listOrElement\":return QEe(e.element);default:return e.type}}function aU(e,t){return hc(t,(r,i)=>{if(r===e)return i})}function F6(e,t){return ZEe(e,Xx(),t)}function N4e(e){return ZEe(e,HEe())}function ZEe(e,{optionsNameMap:t},r){let i=new Map,o=r&&od(r.useCaseSensitiveFileNames);for(let s in e)if(rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){x.assert(d.type!==\"listOrElement\");let p=QEe(d);p?d.type===\"list\"?i.set(s,l.map(h=>aU(h,p))):i.set(s,aU(l,p)):r&&d.isFilePath?i.set(s,RM(r.configFilePath,Qi(l,Ur(r.configFilePath)),o)):i.set(s,l)}}return i}function e0e(e,t){let r=t0e(e);return o();function i(s){return Array(s+1).join(\" \")}function o(){let s=[],l=i(2);return uU.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=Uie(d);p!==h?s.push(`${l}${d.name}: ${p}`):rs(H6,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function t0e(e){let t=Xw(e,H6);return F6(t)}function n0e(e,t,r){let i=t0e(e);return l();function o(d){return Array(d+1).join(\" \")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of Nh)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:\"\"}),m.push({value:`/* ${vo(A)} */`});for(let C of S){let R;i.has(C.name)?R=`\"${C.name}\": ${JSON.stringify(i.get(C.name))}${(h+=1)===i.size?\"\":\",\"}`:R=`// \"${C.name}\": ${JSON.stringify(Uie(C))},`,m.push({value:R,description:`/* ${C.description&&vo(C.description)||C.name} */`}),p=Math.max(R.length,p)}});let v=o(2),E=[];E.push(\"{\"),E.push(`${v}\"compilerOptions\": {`),E.push(`${v}${v}/* ${vo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push(\"\");for(let S of m){let{value:A,description:C=\"\"}=S;E.push(A&&`${v}${v}${A}${C&&o(p-A.length+2)+C}`)}if(t.length){E.push(`${v}},`),E.push(`${v}\"files\": [`);for(let S=0;S<t.length;S++)E.push(`${v}${v}${JSON.stringify(t[S])}${S===t.length-1?\"\":\",\"}`);E.push(`${v}]`)}else E.push(`${v}}`);return E.push(\"}\"),E.join(r)+r}}function sU(e,t){let r={},i=Xx().optionsNameMap;for(let o in e)rs(e,o)&&(r[o]=P4e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function P4e(e,t,r){if(e&&!q2(t)){if(e.type===\"list\"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);x.assert(e.type!==\"listOrElement\")}return t}function r0e(e,t,r,i,o,s,l,d,p){return o0e(e,void 0,t,r,i,p,o,s,l,d)}function H2(e,t,r,i,o,s,l,d,p){var h,m;(h=qn)==null||h.push(qn.Phase.Parse,\"parseJsonSourceFileConfigFileContent\",{path:e.fileName});let v=o0e(void 0,e,t,r,i,p,o,s,l,d);return(m=qn)==null||m.pop(),v}function lU(e,t){t&&Object.defineProperty(e,\"configFile\",{enumerable:!1,writable:!1,value:t})}function q2(e){return e==null}function i0e(e,t){return Ur(Qi(e,t))}function o0e(e,t,r,i,o={},s,l,d=[],p=[],h){x.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let m=[],v=l0e(e,t,r,i,l,d,m,h),{raw:E}=v,S=Xw(o,v.options||{}),A=s&&v.watchOptions?Xw(s,v.watchOptions):v.watchOptions||s;S.configFilePath=l&&ad(l);let C=L();t&&(t.configFileSpecs=C),lU(S,t);let R=Yo(l?i0e(l,i):i);return{options:S,watchOptions:A,fileNames:G(R),projectReferences:U(R),typeAcquisition:v.typeAcquisition||cU(),raw:E,errors:m,wildcardDirectories:B4e(C,R,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function L(){let $=oe(\"references\",ce=>typeof ce==\"object\",\"object\"),de=K(F(\"files\"));if(de){let ce=$===\"no-prop\"||oo($)&&$.length===0,Z=rs(E,\"extends\");if(de.length===0&&ce&&!Z)if(t){let pe=l||\"tsconfig.json\",Ae=f.The_files_list_in_config_file_0_is_empty,Oe=uL(t,\"files\",be=>be.initializer),_e=Bb(t,Oe,Ae,pe);m.push(_e)}else W(f.The_files_list_in_config_file_0_is_empty,l||\"tsconfig.json\")}let fe=K(F(\"include\")),q=F(\"exclude\"),H=!1,ee=K(q);if(q===\"no-prop\"&&E.compilerOptions){let ce=E.compilerOptions.outDir,Z=E.compilerOptions.declarationDir;(ce||Z)&&(ee=[ce,Z].filter(pe=>!!pe))}de===void 0&&fe===void 0&&(fe=[J6],H=!0);let le,Ee;return fe&&(le=b0e(fe,m,!0,t,\"include\")),ee&&(Ee=b0e(ee,m,!1,t,\"exclude\")),{filesSpecs:de,includeSpecs:fe,excludeSpecs:ee,validatedFilesSpec:Cr(de,fo),validatedIncludeSpecs:le,validatedExcludeSpecs:Ee,pathPatterns:void 0,isDefaultIncludeSpec:H}}function G($){let de=AN(C,$,S,r,p);return s0e(de,TN(E),d)&&m.push(a0e(C,l)),de}function U($){let de,fe=oe(\"references\",q=>typeof q==\"object\",\"object\");if(oo(fe))for(let q of fe)typeof q.path!=\"string\"?W(f.Compiler_option_0_requires_a_value_of_type_1,\"reference.path\",\"string\"):(de||(de=[])).push({path:Qi(q.path,$),originalPath:q.path,prepend:q.prepend,circular:q.circular});return de}function K($){return oo($)?$:void 0}function F($){return oe($,fo,\"string\")}function oe($,de,fe){if(rs(E,$)&&!q2(E[$]))if(oo(E[$])){let q=E[$];return!t&&!ji(q,de)&&m.push(bl(f.Compiler_option_0_requires_a_value_of_type_1,$,fe)),q}else return W(f.Compiler_option_0_requires_a_value_of_type_1,$,\"Array\"),\"not-array\";return\"no-prop\"}function W($,...de){t||m.push(bl($,...de))}}function M4e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function a0e({includeSpecs:e,excludeSpecs:t},r){return bl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||\"tsconfig.json\",JSON.stringify(e||[]),JSON.stringify(t||[]))}function s0e(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function TN(e){return!rs(e,\"files\")&&!rs(e,\"references\")}function z6(e,t,r,i,o){let s=i.length;return s0e(e,o)?i.push(a0e(r,t)):X5(i,l=>!M4e(l)),s!==i.length}function L4e(e){return!!e.options}function l0e(e,t,r,i,o,s,l,d){var p;i=ad(i);let h=Qi(o||\"\",i);if(s.includes(h))return l.push(bl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(\" -> \"))),{raw:e||Wie(t,l)};let m=e?k4e(e,r,i,o,l):O4e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};fo(m.extendedConfigPath)?v(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>v(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=bo(E.extendedSourceFiles.keys())),m.options=R1(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?R1(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function v(E,S){let A=w4e(t,S,r,s,l,d,E);if(A&&L4e(A)){let C=A.raw,R,L=G=>{C[G]&&(E[G]=nn(C[G],U=>Ou(U)?U:wr(R||(R=KD(Ur(S),i,od(r.useCaseSensitiveFileNames))),U)))};L(\"include\"),L(\"exclude\"),L(\"files\"),C.compileOnSave!==void 0&&(E.compileOnSave=C.compileOnSave),R1(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?R1({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function k4e(e,t,r,i,o){rs(e,\"excludes\")&&o.push(bl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=m0e(e.compilerOptions,r,o,i),l=_0e(e.typeAcquisition,r,o,i),d=F4e(e.watchOptions,r,o);e.compileOnSave=W4e(e,r,o);let p=e.extends||e.extends===\"\"?c0e(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function c0e(e,t,r,i,o,s,l,d){let p,h=i?i0e(i,r):r;if(fo(e))p=d0e(e,t,h,o,l,d);else if(oo(e)){p=[];for(let m=0;m<e.length;m++){let v=e[m];fo(v)?p=pn(p,d0e(v,t,h,o,l?.elements[m],d)):eT(Z2.element,e,r,o,s,l?.elements[m],d)}}else eT(Z2,e,r,o,s,l,d);return p}function O4e(e,t,r,i,o){let s=f0e(i),l,d,p,h,m=R4e(),v=XEe(e,o,{rootOptions:m,onPropertySet:E});return l||(l=cU(i)),h&&v&&v.compilerOptions===void 0&&o.push(vf(e,h[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,$1(h[0]))),{raw:v,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p};function E(S,A,C,R,L){if(L&&L!==Z2&&(A=eT(L,A,r,o,C,C.initializer,e)),R?.name)if(L){let G;R===Kie?G=s:R===Xie?G=d??(d={}):R===Yie?G=l??(l=cU(i)):x.fail(\"Unknown option\"),G[L.name]=A}else S&&R?.extraKeyDiagnostics&&(R.elementOptions?o.push(kie(S,R.extraKeyDiagnostics,void 0,C.name,e)):o.push(vf(e,C.name,R.extraKeyDiagnostics.unknownOptionDiagnostic,S)));else R===m&&(L===Z2?p=c0e(A,t,r,i,o,C,C.initializer,e):L||(S===\"excludes\"&&o.push(vf(e,C.name,f.Unknown_option_excludes_Did_you_mean_exclude)),Dr(uU,G=>G.name===S)&&(h=pn(h,C.name))))}}function d0e(e,t,r,i,o,s){if(e=ad(e),Ou(e)||Ui(e,\"./\")||Ui(e,\"../\")){let d=Qi(e,r);if(!t.fileExists(d)&&!Zs(d,\".json\")&&(d=`${d}.json`,!t.fileExists(d))){i.push(Bb(s,o,f.File_0_not_found,e));return}return d}let l=soe(e,wr(r,\"tsconfig.json\"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===\"\"?i.push(Bb(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,\"extends\")):i.push(Bb(s,o,f.File_0_not_found,e))}function w4e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:C_(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=wie(t,v=>r.readFile(v)),h.parseDiagnostics.length||(m=l0e(void 0,h,r,Ur(t),Ll(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let v of h.extendedSourceFiles)l.extendedSourceFiles.add(v);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function W4e(e,t,r){if(!rs(e,J2.name))return!1;let i=eT(J2,e.compileOnSave,t,r);return typeof i==\"boolean\"&&i}function u0e(e,t,r){let i=[];return{options:m0e(e,t,i,r),errors:i}}function p0e(e,t,r){let i=[];return{options:_0e(e,t,i,r),errors:i}}function f0e(e){return e&&Ll(e)===\"jsconfig.json\"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function m0e(e,t,r,i){let o=f0e(i);return Fie(qEe(),e,t,o,Q2,r),i&&(o.configFilePath=ad(i)),o}function cU(e){return{enable:!!e&&Ll(e)===\"jsconfig.json\",include:[],exclude:[]}}function _0e(e,t,r,i){let o=cU(i);return Fie(KEe(),e,t,o,Jie,r),o}function F4e(e,t,r){return Fie(JEe(),e,t,void 0,q6,r)}function Fie(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=eT(d,t[l],r,s):s.push(kie(l,o))}return i}}function Bb(e,t,r,...i){return e&&t?vf(e,t,r,...i):bl(r,...i)}function eT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(Bb(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(YEe(e,t)){let d=e.type;if(d===\"list\"&&oo(t))return g0e(e,t,r,i,o,s,l);if(d===\"listOrElement\")return oo(t)?g0e(e,t,r,i,o,s,l):eT(e.element,t,r,i,o,s,l);if(!fo(e.type))return h0e(e,t,i,s,l);let p=vI(e,t,i,s,l);return q2(p)?p:z4e(e,r,p)}else i.push(Bb(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,oU(e)))}function z4e(e,t,r){return e.isFilePath&&(r=Qi(r,t),r===\"\"&&(r=\".\")),r}function vI(e,t,r,i,o){var s;if(q2(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(Bb(o,i,...l))}function h0e(e,t,r,i,o){if(q2(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return vI(e,l,r,i,o);r.push(FEe(e,(d,...p)=>Bb(o,i,d,...p)))}function g0e(e,t,r,i,o,s,l){return Cr(nn(t,(d,p)=>eT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function AN(e,t,r,i,o=je){t=Yo(t);let s=od(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,E=GC(r,o),S=YL(r,E);if(h)for(let L of h){let G=Qi(L,t);l.set(s(G),G)}let A;if(m&&m.length>0)for(let L of i.readDirectory(t,Ff(S),v,m,void 0)){if(el(L,\".json\")){if(!A){let K=m.filter(oe=>Zs(oe,\".json\")),F=nn(lF(K,t,\"files\"),oe=>`^${oe}$`);A=F?F.map(oe=>iy(oe,i.useCaseSensitiveFileNames)):je}if(Tl(A,K=>K.test(L))!==-1){let K=s(L);!l.has(K)&&!p.has(K)&&p.set(K,L)}continue}if(V4e(L,l,d,E,s))continue;j4e(L,d,E,s);let G=s(L);!l.has(G)&&!d.has(G)&&d.set(G,L)}let C=bo(l.values()),R=bo(d.values());return C.concat(R,bo(p.values()))}function zie(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!yn(l)||!yn(d))return!1;r=Yo(r);let p=od(i);if(s){for(let h of s)if(p(Qi(h,r))===e)return!1}return y0e(e,d,i,o,r)}function v0e(e){let t=Ui(e,\"**/\")?0:e.indexOf(\"/**/\");return t===-1?!1:(Zs(e,\"/..\")?e.length:e.lastIndexOf(\"/../\"))>t}function B6(e,t,r,i){return y0e(e,Cr(t,o=>!v0e(o)),r,i)}function y0e(e,t,r,i,o){let s=BC(t,wr(Yo(i),o),\"exclude\"),l=s&&iy(s,r);return l?l.test(e)?!0:!TA(e)&&l.test(_c(e)):!1}function b0e(e,t,r,i,o){return e.filter(l=>{if(!fo(l))return!1;let d=Bie(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=fW(i,o,d);return Bb(i,p,l,d)}}function Bie(e,t){if(x.assert(typeof e==\"string\"),t&&N0e.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(v0e(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B4e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=BC(t,r,\"exclude\"),s=o&&new RegExp(o,i?\"\":\"i\"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=Yo(wr(r,h));if(s&&s.test(m))continue;let v=G4e(m,i);if(v){let{key:E,path:S,flags:A}=v,C=d.get(E),R=C!==void 0?l[C]:void 0;(R===void 0||R<A)&&(l[C!==void 0?C:S]=A,C===void 0&&d.set(E,S),A===1&&p.push(E))}}for(let h in l)if(rs(l,h))for(let m of p){let v=Gie(h,i);v!==m&&Bf(m,v,r,!i)&&delete l[h]}}return l}function Gie(e,t){return t?e:C_(e)}function G4e(e,t){let r=P0e.exec(e);if(r){let i=e.indexOf(\"?\"),o=e.indexOf(\"*\"),s=e.lastIndexOf(Os);return{key:Gie(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(RV(e.substring(e.lastIndexOf(Os)+1))){let i=fb(e);return{key:Gie(i,t),path:i,flags:1}}}function V4e(e,t,r,i,o){let s=an(i,l=>$l(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(el(e,l)&&(l!==\".ts\"||!el(e,\".d.ts\")))return!1;let d=o(Nb(e,l));if(t.has(d)||r.has(d)){if(l===\".d.ts\"&&(el(e,\".js\")||el(e,\".jsx\")))continue;return!0}}return!1}function j4e(e,t,r,i){let o=an(r,s=>$l(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(el(e,l))return;let d=i(Nb(e,l));t.delete(d)}}function Vie(e){let t={};for(let r in e)if(rs(e,r)){let i=nU(r);i!==void 0&&(t[r]=jie(e[r],i))}return t}function jie(e,t){if(e===void 0)return e;switch(t.type){case\"object\":return\"\";case\"string\":return\"\";case\"number\":return typeof e==\"number\"?e:\"\";case\"boolean\":return typeof e==\"boolean\"?e:\"\";case\"listOrElement\":if(!oo(e))return jie(e,t.element);case\"list\":let r=t.element;return oo(e)?Fi(e,i=>jie(i,r)):\"\";default:return hc(t.type,(i,o)=>{if(i===e)return o})}}function Uie(e){switch(e.type){case\"number\":return 1;case\"boolean\":return!0;case\"string\":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t==\"string\"?t:\"\"}`:\"\";case\"list\":return[];case\"listOrElement\":return Uie(e.element);case\"object\":return{};default:let r=qw(e.type.keys());return r!==void 0?r:x.fail(\"Expected 'option.type' to have entries.\")}}var J2,Hie,IN,qie,K2,G6,Yx,X2,Y2,dU,uU,Nh,pU,fU,mU,V6,j6,_U,hU,gU,U6,$2,E0e,S0e,H6,Q2,T0e,A0e,I0e,Jie,x0e,q6,R0e,D0e,C0e,Z2,Kie,Xie,Yie,$ie,J6,N0e,P0e,U4e=pt({\"src/compiler/commandLineParser.ts\"(){\"use strict\";wo(),J2={name:\"compileOnSave\",type:\"boolean\",defaultValueDescription:!1},Hie=new Map(Object.entries({preserve:1,\"react-native\":3,react:2,\"react-jsx\":4,\"react-jsxdev\":5})),IN=new Map(OD(Hie.entries(),([e,t])=>[\"\"+t,e])),qie=[[\"es5\",\"lib.es5.d.ts\"],[\"es6\",\"lib.es2015.d.ts\"],[\"es2015\",\"lib.es2015.d.ts\"],[\"es7\",\"lib.es2016.d.ts\"],[\"es2016\",\"lib.es2016.d.ts\"],[\"es2017\",\"lib.es2017.d.ts\"],[\"es2018\",\"lib.es2018.d.ts\"],[\"es2019\",\"lib.es2019.d.ts\"],[\"es2020\",\"lib.es2020.d.ts\"],[\"es2021\",\"lib.es2021.d.ts\"],[\"es2022\",\"lib.es2022.d.ts\"],[\"es2023\",\"lib.es2023.d.ts\"],[\"esnext\",\"lib.esnext.d.ts\"],[\"dom\",\"lib.dom.d.ts\"],[\"dom.iterable\",\"lib.dom.iterable.d.ts\"],[\"dom.asynciterable\",\"lib.dom.asynciterable.d.ts\"],[\"webworker\",\"lib.webworker.d.ts\"],[\"webworker.importscripts\",\"lib.webworker.importscripts.d.ts\"],[\"webworker.iterable\",\"lib.webworker.iterable.d.ts\"],[\"webworker.asynciterable\",\"lib.webworker.asynciterable.d.ts\"],[\"scripthost\",\"lib.scripthost.d.ts\"],[\"es2015.core\",\"lib.es2015.core.d.ts\"],[\"es2015.collection\",\"lib.es2015.collection.d.ts\"],[\"es2015.generator\",\"lib.es2015.generator.d.ts\"],[\"es2015.iterable\",\"lib.es2015.iterable.d.ts\"],[\"es2015.promise\",\"lib.es2015.promise.d.ts\"],[\"es2015.proxy\",\"lib.es2015.proxy.d.ts\"],[\"es2015.reflect\",\"lib.es2015.reflect.d.ts\"],[\"es2015.symbol\",\"lib.es2015.symbol.d.ts\"],[\"es2015.symbol.wellknown\",\"lib.es2015.symbol.wellknown.d.ts\"],[\"es2016.array.include\",\"lib.es2016.array.include.d.ts\"],[\"es2016.intl\",\"lib.es2016.intl.d.ts\"],[\"es2017.date\",\"lib.es2017.date.d.ts\"],[\"es2017.object\",\"lib.es2017.object.d.ts\"],[\"es2017.sharedmemory\",\"lib.es2017.sharedmemory.d.ts\"],[\"es2017.string\",\"lib.es2017.string.d.ts\"],[\"es2017.intl\",\"lib.es2017.intl.d.ts\"],[\"es2017.typedarrays\",\"lib.es2017.typedarrays.d.ts\"],[\"es2018.asyncgenerator\",\"lib.es2018.asyncgenerator.d.ts\"],[\"es2018.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"es2018.intl\",\"lib.es2018.intl.d.ts\"],[\"es2018.promise\",\"lib.es2018.promise.d.ts\"],[\"es2018.regexp\",\"lib.es2018.regexp.d.ts\"],[\"es2019.array\",\"lib.es2019.array.d.ts\"],[\"es2019.object\",\"lib.es2019.object.d.ts\"],[\"es2019.string\",\"lib.es2019.string.d.ts\"],[\"es2019.symbol\",\"lib.es2019.symbol.d.ts\"],[\"es2019.intl\",\"lib.es2019.intl.d.ts\"],[\"es2020.bigint\",\"lib.es2020.bigint.d.ts\"],[\"es2020.date\",\"lib.es2020.date.d.ts\"],[\"es2020.promise\",\"lib.es2020.promise.d.ts\"],[\"es2020.sharedmemory\",\"lib.es2020.sharedmemory.d.ts\"],[\"es2020.string\",\"lib.es2020.string.d.ts\"],[\"es2020.symbol.wellknown\",\"lib.es2020.symbol.wellknown.d.ts\"],[\"es2020.intl\",\"lib.es2020.intl.d.ts\"],[\"es2020.number\",\"lib.es2020.number.d.ts\"],[\"es2021.promise\",\"lib.es2021.promise.d.ts\"],[\"es2021.string\",\"lib.es2021.string.d.ts\"],[\"es2021.weakref\",\"lib.es2021.weakref.d.ts\"],[\"es2021.intl\",\"lib.es2021.intl.d.ts\"],[\"es2022.array\",\"lib.es2022.array.d.ts\"],[\"es2022.error\",\"lib.es2022.error.d.ts\"],[\"es2022.intl\",\"lib.es2022.intl.d.ts\"],[\"es2022.object\",\"lib.es2022.object.d.ts\"],[\"es2022.sharedmemory\",\"lib.es2022.sharedmemory.d.ts\"],[\"es2022.string\",\"lib.es2022.string.d.ts\"],[\"es2022.regexp\",\"lib.es2022.regexp.d.ts\"],[\"es2023.array\",\"lib.es2023.array.d.ts\"],[\"es2023.collection\",\"lib.es2023.collection.d.ts\"],[\"esnext.array\",\"lib.es2023.array.d.ts\"],[\"esnext.collection\",\"lib.esnext.collection.d.ts\"],[\"esnext.symbol\",\"lib.es2019.symbol.d.ts\"],[\"esnext.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"esnext.intl\",\"lib.esnext.intl.d.ts\"],[\"esnext.disposable\",\"lib.esnext.disposable.d.ts\"],[\"esnext.bigint\",\"lib.es2020.bigint.d.ts\"],[\"esnext.string\",\"lib.es2022.string.d.ts\"],[\"esnext.promise\",\"lib.esnext.promise.d.ts\"],[\"esnext.weakref\",\"lib.es2021.weakref.d.ts\"],[\"esnext.decorators\",\"lib.esnext.decorators.d.ts\"],[\"esnext.object\",\"lib.esnext.object.d.ts\"],[\"decorators\",\"lib.decorators.d.ts\"],[\"decorators.legacy\",\"lib.decorators.legacy.d.ts\"]],K2=qie.map(e=>e[0]),G6=new Map(qie),Yx=[{name:\"watchFile\",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:\"watchDirectory\",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:\"fallbackPolling\",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:\"synchronousWatchDirectory\",type:\"boolean\",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:\"excludeDirectories\",type:\"list\",element:{name:\"excludeDirectory\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:\"excludeFiles\",type:\"list\",element:{name:\"excludeFile\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],X2=[{name:\"help\",shortName:\"h\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:\"help\",shortName:\"?\",type:\"boolean\",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:\"watch\",shortName:\"w\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:\"preserveWatchOutput\",type:\"boolean\",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:\"listFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:\"explainFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:\"listEmittedFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:\"pretty\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:\"traceResolution\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:\"diagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"extendedDiagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"generateCpuProfile\",type:\"string\",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:\"profile.cpuprofile\"},{name:\"generateTrace\",type:\"string\",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:\"incremental\",shortName:\"i\",type:\"boolean\",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declaration\",shortName:\"d\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declarationMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:\"emitDeclarationOnly\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"sourceMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:\"inlineSourceMap\",type:\"boolean\",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"assumeChangesOnlyAffectDirectDependencies\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:\"locale\",type:\"string\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],Y2={name:\"target\",shortName:\"t\",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set([\"es3\"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},dU={name:\"module\",shortName:\"m\",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},uU=[{name:\"all\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:\"version\",shortName:\"v\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:\"init\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:\"project\",shortName:\"p\",type:\"string\",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:\"build\",type:\"boolean\",shortName:\"b\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:\"showConfig\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:\"listFilesOnly\",type:\"boolean\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Y2,dU,{name:\"lib\",type:\"list\",element:{name:\"lib\",type:G6,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:\"allowJs\",type:\"boolean\",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:\"checkJs\",type:\"boolean\",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:\"jsx\",type:Hie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:\"outFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:\"outDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:\"rootDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"composite\",type:\"boolean\",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:\"tsBuildInfoFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:\".tsbuildinfo\",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:\"removeComments\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:\"noEmit\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"importHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:\"importsNotUsedAsValues\",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:\"downlevelIteration\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:\"isolatedModules\",type:\"boolean\",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"verbatimModuleSyntax\",type:\"boolean\",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:\"strict\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:\"noImplicitAny\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictNullChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictFunctionTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictBindCallApply\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictPropertyInitialization\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noImplicitThis\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"useUnknownInCatchVariables\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"alwaysStrict\",type:\"boolean\",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noUnusedLocals\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:\"noUnusedParameters\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:\"exactOptionalPropertyTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:\"noImplicitReturns\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:\"noFallthroughCasesInSwitch\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:\"noUncheckedIndexedAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:\"noImplicitOverride\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:\"noPropertyAccessFromIndexSignature\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:\"moduleResolution\",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set([\"node\"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:\"baseUrl\",type:\"string\",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:\"paths\",type:\"object\",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:\"rootDirs\",type:\"list\",isTSConfigOnly:!0,element:{name:\"rootDirs\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"typeRoots\",type:\"list\",element:{name:\"typeRoots\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:\"types\",type:\"list\",element:{name:\"types\",type:\"string\"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:\"allowSyntheticDefaultImports\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:\"esModuleInterop\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:\"preserveSymlinks\",type:\"boolean\",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:\"allowUmdGlobalAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:\"moduleSuffixes\",type:\"list\",element:{name:\"suffix\",type:\"string\"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:\"allowImportingTsExtensions\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:\"resolvePackageJsonExports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"resolvePackageJsonImports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"customConditions\",type:\"list\",element:{name:\"condition\",type:\"string\"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:\"sourceRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:\"mapRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:\"inlineSources\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"experimentalDecorators\",type:\"boolean\",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:\"emitDecoratorMetadata\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:\"jsxFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:\"`React.createElement`\"},{name:\"jsxFragmentFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:\"React.Fragment\"},{name:\"jsxImportSource\",type:\"string\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:\"react\"},{name:\"resolveJsonModule\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:\"allowArbitraryExtensions\",type:\"boolean\",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:\"out\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:\"reactNamespace\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:\"`React`\"},{name:\"skipDefaultLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:\"charset\",type:\"string\",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:\"utf8\"},{name:\"emitBOM\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:\"newLine\",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:\"lf\"},{name:\"noErrorTruncation\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:\"noLib\",type:\"boolean\",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"noResolve\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"stripInternal\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:\"disableSizeLimit\",type:\"boolean\",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:\"disableSourceOfProjectReferenceRedirect\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:\"disableSolutionSearching\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:\"disableReferencedProjectLoad\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:\"noImplicitUseStrict\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:\"noEmitHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:\"noEmitOnError\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:\"preserveConstEnums\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:\"declarationDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:\"skipLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:\"allowUnusedLabels\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:\"allowUnreachableCode\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:\"suppressExcessPropertyErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:\"suppressImplicitAnyIndexErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:\"forceConsistentCasingInFileNames\",type:\"boolean\",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:\"maxNodeModuleJsDepth\",type:\"number\",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:\"noStrictGenericChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:\"useDefineForClassFields\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:\"preserveValueImports\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:\"keyofStringsOnly\",type:\"boolean\",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:\"plugins\",type:\"list\",isTSConfigOnly:!0,element:{name:\"plugin\",type:\"object\"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:\"moduleDetection\",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:\"ignoreDeprecations\",type:\"string\",defaultValueDescription:void 0}],Nh=[...X2,...uU],pU=Nh.filter(e=>!!e.affectsSemanticDiagnostics),fU=Nh.filter(e=>!!e.affectsEmit),mU=Nh.filter(e=>!!e.affectsDeclarationPath),V6=Nh.filter(e=>!!e.affectsModuleResolution),j6=Nh.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),_U=Nh.filter(e=>!!e.affectsProgramStructure),hU=Nh.filter(e=>rs(e,\"transpileOptionValue\")),gU=[{name:\"verbose\",shortName:\"v\",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:\"boolean\",defaultValueDescription:!1},{name:\"dry\",shortName:\"d\",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:\"boolean\",defaultValueDescription:!1},{name:\"force\",shortName:\"f\",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:\"boolean\",defaultValueDescription:!1},{name:\"clean\",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:\"boolean\",defaultValueDescription:!1}],U6=[...X2,...gU],$2=[{name:\"enable\",type:\"boolean\",defaultValueDescription:!1},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"}},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"}},{name:\"disableFilenameBasedTypeAcquisition\",type:\"boolean\",defaultValueDescription:!1}],S0e={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:VEe},H6={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Q2={alternateMode:S0e,getOptionsNameMap:Xx,optionDeclarations:Nh,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},A0e={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Xx},I0e={alternateMode:A0e,getOptionsNameMap:VEe,optionDeclarations:U6,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Jie={optionDeclarations:$2,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},q6={getOptionsNameMap:HEe,optionDeclarations:Yx,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},Z2={name:\"extends\",type:\"listOrElement\",element:{name:\"extends\",type:\"string\"},category:f.File_Management,disallowNullOrUndefined:!0},Kie={name:\"compilerOptions\",type:\"object\",elementOptions:qEe(),extraKeyDiagnostics:Q2},Xie={name:\"watchOptions\",type:\"object\",elementOptions:JEe(),extraKeyDiagnostics:q6},Yie={name:\"typeAcquisition\",type:\"object\",elementOptions:KEe(),extraKeyDiagnostics:Jie},J6=\"**/*\",N0e=/(^|\\/)\\*\\*\\/?$/,P0e=/^[^*?]*(?=\\/[^/]*[*?])/}});function to(e,t,...r){e.trace(SV(t,...r))}function cg(e,t){return!!e.traceResolution&&t.trace!==void 0}function yI(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name==\"string\"&&typeof i.version==\"string\"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Os.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function vU(e){return yI(void 0,e)}function M0e(e){if(e)return x.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function K6(e){let t=[];return e&1&&t.push(\"TypeScript\"),e&2&&t.push(\"JavaScript\"),e&4&&t.push(\"Declaration\"),e&8&&t.push(\"JSON\"),t.join(\", \")}function H4e(e){let t=[];return e&1&&t.push(...l2),e&2&&t.push(...Px),e&4&&t.push(...s2),e&8&&t.push(\".json\"),t}function Qie(e){if(e)return x.assert(mF(e.extension)),{fileName:e.path,packageId:e.packageId}}function L0e(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Ic(e)){let{resolvedFileName:h,originalPath:m}=w0e(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return k0e(t,r,i,o,s,l.resultFromCache,d,p)}function k0e(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:Zie(s.failedLookupLocations,r),affectingLocations:Zie(s.affectingLocations,i),resolutionDiagnostics:Zie(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=$x(s.failedLookupLocations,r),s.affectingLocations=$x(s.affectingLocations,i),s.resolutionDiagnostics=$x(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:xN(r),affectingLocations:xN(i),resolutionDiagnostics:xN(o),alternateResult:d}}function xN(e){return e.length?e:void 0}function $x(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Zie(e,t){return e?.length?t.length?[...e,...t]:e.slice():xN(t)}function O0e(e,t,r,i){if(!rs(e,t)){i.traceEnabled&&to(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&to(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?\"null\":typeof o);return}return o}function yU(e,t,r,i){let o=O0e(e,t,\"string\",i);if(o===void 0)return;if(!o){i.traceEnabled&&to(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=Yo(wr(r,o));return i.traceEnabled&&to(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function q4e(e,t,r){return yU(e,\"typings\",t,r)||yU(e,\"types\",t,r)}function J4e(e,t,r){return yU(e,\"tsconfig\",t,r)}function K4e(e,t,r){return yU(e,\"main\",t,r)}function X4e(e,t){let r=O0e(e,\"typesVersions\",\"object\",t);if(r!==void 0)return t.traceEnabled&&to(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y4e(e,t){let r=X4e(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)rs(r,l)&&!hM.tryParse(l)&&to(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=X6(r);if(!i){t.traceEnabled&&to(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,jm);return}let{version:o,paths:s}=i;if(typeof s!=\"object\"){t.traceEnabled&&to(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,\"object\",typeof s);return}return i}function X6(e){foe||(foe=new zf(bp));for(let t in e){if(!rs(e,t))continue;let r=hM.tryParse(t);if(r!==void 0&&r.test(foe))return{version:t,paths:e[t]}}}function RN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=Ur(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $4e(r)}function $4e(e){let t;return Vf(Yo(e),r=>{let i=wr(r,iSe);(t??(t=[])).push(i)}),t}function Q4e(e,t,r){let i=typeof r.useCaseSensitiveFileNames==\"function\"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Xh(e,t,!i)===0}function w0e(e,t,r){let i=d3e(e,t,r),o=Q4e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function W0e(e,t,r){let i=Zs(e,\"/node_modules/@types\")||Zs(e,\"/node_modules/@types/\")?tSe(t,r):t;return wr(e,i)}function eoe(e,t,r,i,o,s,l){x.assert(typeof e==\"string\",\"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.\");let d=cg(r,i);o&&(r=o.commandLine.options);let p=t?Ur(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Ic(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(to(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),to(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),F(h)),h;let m=RN(r,i);d&&(t===void 0?m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let v=[],E=[],S=toe(r);l!==void 0&&(S|=30);let A=zd(r);l===99&&3<=A&&A<=99&&(S|=32);let C=S&8?hy(r,l):[],R=[],L={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:v,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:C,requestContainingDirectory:p,reportDiagnostic:$=>void R.push($),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},G=oe(),U=!0;G||(G=W(),U=!1);let K;if(G){let{fileName:$,packageId:de}=G,fe=$,q;r.preserveSymlinks||({resolvedFileName:fe,originalPath:q}=w0e($,i,d)),K={primary:U,resolvedFileName:fe,originalPath:q,packageId:de,isExternalLibraryImport:Gb($)}}return h={resolvedTypeReferenceDirective:K,failedLookupLocations:xN(v),affectingLocations:xN(E),resolutionDiagnostics:xN(R)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Ic(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&F(h),h;function F($){var de;(de=$.resolvedTypeReferenceDirective)!=null&&de.resolvedFileName?$.resolvedTypeReferenceDirective.packageId?to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,$.resolvedTypeReferenceDirective.resolvedFileName,Qv($.resolvedTypeReferenceDirective.packageId),$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,$.resolvedTypeReferenceDirective.resolvedFileName,$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_not_resolved,e)}function oe(){if(m&&m.length)return d&&to(i,f.Resolving_with_primary_search_path_0,m.join(\", \")),ml(m,$=>{let de=W0e($,e,L),fe=gm($,i);if(!fe&&d&&to(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,$),r.typeRoots){let q=eR(4,de,!fe,L);if(q){let H=tk(q.path),ee=H?m0(H,!1,L):void 0;return Qie(yI(ee,q))}}return Qie(coe(4,de,!fe,L))});d&&to(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function W(){let $=t&&Ur(t);if($!==void 0){let de;if(!r.typeRoots||!Zs(t,lR))if(d&&to(i,f.Looking_up_in_node_modules_folder_initial_location_0,$),Ic(e)){let{path:fe}=j0e($,e);de=AU(4,fe,!1,L,!0)}else{let fe=$0e(4,e,$,L,void 0,void 0);de=fe&&fe.value}else d&&to(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Qie(de)}else d&&to(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function toe(e){let t=0;switch(zd(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function hy(e,t){let r=zd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?[\"import\"]:[\"require\"];return e.noDtsResolution||i.push(\"types\"),r!==100&&i.push(\"node\"),ro(i,e.customConditions)}function bU(e,t,r,i,o){let s=nk(o?.getPackageJsonInfoCache(),i,r);return Vf(t,l=>{if(Ll(l)!==\"node_modules\"){let d=wr(l,\"node_modules\"),p=wr(d,e);return m0(p,!1,s)}})}function Y6(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=RN(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=Yo(s),d=wr(o,l,\"package.json\");if(!(t.fileExists(d)&&kC(d,t).typings===null)){let h=Ll(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function $6(e){return!!e?.contents}function noe(e){return!!e&&!e.contents}function roe(e){var t;if(e===null||typeof e!=\"object\")return\"\"+e;if(oo(e))return`[${(t=e.map(i=>roe(i)))==null?void 0:t.join(\",\")}]`;let r=\"{\";for(let i in e)rs(e,i)&&(r+=`${i}: ${roe(e[i])}`);return r+\"}\"}function EU(e,t){return t.map(r=>roe(iF(e,r))).join(\"|\")+`|${e.pathsBasePath}`}function SU(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(v){return v?p(v.commandLine.options,!1):o}function l(v){return v?p(v.commandLine.options,!0):o}function d(v){e!==v&&(e?o=p(v,!0):r.set(v,o),e=v)}function p(v,E){let S=r.get(v);if(S)return S;let A=m(v);if(S=i.get(A),!S){if(e){let C=m(e);C===A?S=o:i.has(C)||i.set(C,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(v,S),S}function h(){let v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function m(v){let E=t.get(v);return E||t.set(v,E=EU(v,V6)),E}}function Z4e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(ks(d,e,t))}function o(d,p){(r||(r=new Map)).set(ks(d,e,t),p)}function s(){r=void 0}function l(){return r}}function F0e(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function e3e(e,t,r,i){let o=SU(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let v=ks(h,e,t);return F0e(o,m,v,()=>bI())}function p(h,m,v,E){var S,A;let C=ks(v,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(C))==null?void 0:A.get(h,m)}}function DN(e,t){return t===void 0?e:`${t}|${e}`}function bI(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=DN(o,s);return t.set(l,[o,s]),l}}function t3e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function n3e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function r3e(e,t,r,i,o){let s=SU(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(v){s.update(v)}function p(v,E,S,A){var C,R;return x.assert(!Ic(v)),(R=(C=s.getMapOfCacheRedirects(A))==null?void 0:C.get(DN(v,E)))==null?void 0:R.get(S)}function h(v,E,S){return x.assert(!Ic(v)),F0e(s,S,DN(v,E),m)}function m(){let v=new Map;return{get:E,set:S};function E(C){return v.get(ks(C,e,t))}function S(C,R){let L=ks(C,e,t);if(v.has(L))return;v.set(L,R);let G=i(R),U=G&&A(L,G),K=L;for(;K!==U;){let F=Ur(K);if(F===K||v.has(F))break;v.set(F,R),K=F}}function A(C,R){let L=ks(Ur(R),e,t),G=0,U=Math.min(C.length,L.length);for(;G<U&&C.charCodeAt(G)===L.charCodeAt(G);)G++;if(G===C.length&&(L.length===G||L[G]===Os))return C;let K=M_(C);if(G<K)return;let F=C.lastIndexOf(Os,G-1);if(F!==-1)return C.substr(0,Math.max(F,K))}}}function z0e(e,t,r,i,o,s){s??(s=new Map);let l=e3e(e,t,r,s),d=r3e(e,t,r,o,s);return i??(i=Z4e(e,t)),{...i,...l,...d,clear:p,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(v){l.update(v),d.update(v)}}function Qx(e,t,r,i,o){let s=z0e(e,t,r,i,t3e,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function Q6(e,t,r,i,o){return z0e(e,t,r,i,n3e,o)}function TU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Z6(e,t,r,i,o){return Zx(e,t,TU(r),i,o)}function B0e(e,t,r,i){let o=Ur(t);return r.getFromDirectoryCache(e,i,o,void 0)}function Zx(e,t,r,i,o,s,l){var d,p,h;let m=cg(r,i);s&&(r=s.commandLine.options),m&&(to(i,f.Resolving_module_0_from_1,e,t),s&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let v=Ur(t),E=o?.getFromDirectoryCache(e,l,v,s);if(E)m&&to(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,v);else{let S=r.moduleResolution;switch(S===void 0?(S=zd(r),m&&to(i,f.Module_resolution_kind_is_not_specified_using_0,O1[S])):m&&to(i,f.Explicitly_specified_module_resolution_kind_Colon_0,O1[S]),(d=Pd)==null||d.logStartResolveModule(e),S){case 3:E=s3e(e,t,r,i,o,s,l);break;case 99:E=l3e(e,t,r,i,o,s,l);break;case 2:E=aoe(e,t,r,i,o,s,l?hy(r,l):void 0);break;case 1:E=uoe(e,t,r,i,o,s);break;case 100:E=ooe(e,t,r,i,o,s,l?hy(r,l):void 0);break;default:return x.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=Pd)==null||p.logInfoEvent(`Module \"${e}\" resolved to \"${E.resolvedModule.resolvedFileName}\"`)),(h=Pd)==null||h.logStopResolveModule(E&&E.resolvedModule?\"\"+E.resolvedModule.resolvedFileName:\"null\"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(v,s).set(e,l,E),Ic(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(v,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?to(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,Qv(E.resolvedModule.packageId)):to(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):to(i,f.Module_name_0_was_not_resolved,e)),E}function G0e(e,t,r,i,o){let s=i3e(e,t,i,o);return s?s.value:Ic(t)?o3e(e,t,r,i,o):a3e(e,t,i,o)}function i3e(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!op(t)){i.traceEnabled&&(s&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),to(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=zW(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=fF(l)):void 0;return doe(e,t,p,l,h,r,!1,i)}}function o3e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&to(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=Yo(wr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=Yo(p);Zs(h,Os)||(h+=Os);let m=Ui(s,h)&&(d===void 0||d.length<h.length);o.traceEnabled&&to(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,m),m&&(d=h,l=p)}if(d){o.traceEnabled&&to(o.host,f.Longest_matching_prefix_for_0_is_1,s,d);let p=s.substr(d.length);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,d,s);let h=i(e,s,!gm(r,o.host),o);if(h)return h;o.traceEnabled&&to(o.host,f.Trying_other_entries_in_rootDirs);for(let m of o.compilerOptions.rootDirs){if(m===l)continue;let v=wr(Yo(m),p);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,m,v);let E=Ur(v),S=i(e,v,!gm(E,o.host),o);if(S)return S}o.traceEnabled&&to(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function a3e(e,t,r,i){let{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);let s=Yo(wr(o,t));return i.traceEnabled&&to(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!gm(Ur(s),i.host),i)}function ioe(e,t,r){let{resolvedModule:i,failedLookupLocations:o}=c3e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(\", \")}`);return i.resolvedFileName}function s3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function l3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function V0e(e,t,r,i,o,s,l,d,p){let h=Ur(r),m=d===99?32:0,v=i.noDtsResolution?3:7;return Mb(i)&&(v|=8),ek(e|m,t,h,i,o,s,v,!1,l,p)}function c3e(e,t,r){return ek(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function ooe(e,t,r,i,o,s,l){let d=Ur(t),p=r.noDtsResolution?3:7;return Mb(r)&&(p|=8),ek(toe(r),e,d,r,i,o,p,!1,s,l)}function aoe(e,t,r,i,o,s,l,d){let p;return d?p=8:r.noDtsResolution?(p=3,Mb(r)&&(p|=8)):p=Mb(r)?15:7,ek(l?30:0,e,Ur(t),r,i,o,p,!!d,s,l)}function soe(e,t,r){return ek(30,e,Ur(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function ek(e,t,r,i,o,s,l,d,p,h){var m,v,E,S,A;let C=cg(i,o),R=[],L=[],G=zd(i);h??(h=hy(i,G===100||G===2?void 0:e&32?99:1));let U=[],K={compilerOptions:i,host:o,traceEnabled:C,failedLookupLocations:R,affectingLocations:L,packageJsonInfoCache:s,features:e,conditions:h??je,requestContainingDirectory:r,reportDiagnostic:$=>void U.push($),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};C&&HA(G)&&to(o,f.Resolving_in_0_mode_with_conditions_1,e&32?\"ESM\":\"CJS\",K.conditions.map($=>`'${$}'`).join(\", \"));let F;if(G===2){let $=l&5,de=l&-6;F=$&&W($,K)||de&&W(de,K)||void 0}else F=W(l,K);let oe;if(K.resolvedPackageDirectory&&!d&&!Ic(t)){let $=F?.value&&l&5&&!K0e(5,F.value.resolved.extension);if((m=F?.value)!=null&&m.isExternalLibraryImport&&$&&e&8&&h?.includes(\"import\")){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let de={...K,features:K.features&-9,reportDiagnostic:Ca},fe=W(l&5,de);(v=fe?.value)!=null&&v.isExternalLibraryImport&&(oe=fe.value.resolved.path)}else if((!F?.value||$)&&G===2){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let de={...K.compilerOptions,moduleResolution:100},fe={...K,compilerOptions:de,features:30,conditions:hy(de),reportDiagnostic:Ca},q=W(l&5,fe);(E=q?.value)!=null&&E.isExternalLibraryImport&&(oe=q.value.resolved.path)}}return L0e(t,(S=F?.value)==null?void 0:S.resolved,(A=F?.value)==null?void 0:A.isExternalLibraryImport,R,L,U,K,s,oe);function W($,de){let q=G0e($,t,r,(H,ee,le,Ee)=>AU(H,ee,le,Ee,!0),de);if(q)return Rp({resolved:q,isExternalLibraryImport:Gb(q.path)});if(Ic(t)){let{path:H,parts:ee}=j0e(r,t),le=AU($,H,!1,de,!0);return le&&Rp({resolved:le,isExternalLibraryImport:To(ee,\"node_modules\")})}else{let H;if(e&2&&Ui(t,\"#\")&&(H=m3e($,t,r,de,s,p)),!H&&e&4&&(H=f3e($,t,r,de,s,p)),!H){if(t.includes(\":\")){C&&to(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,K6($));return}C&&to(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,K6($)),H=$0e($,t,r,de,s,p)}return $&4&&(H??(H=rSe(t,de))),H&&{value:H.value&&{resolved:H.value,isExternalLibraryImport:!0}}}}}function j0e(e,t){let r=wr(e,t),i=mc(r),o=Ns(i);return{path:o===\".\"||o===\"..\"?_c(Yo(r)):Yo(r),parts:i}}function d3e(e,t,r){if(!t.realpath)return e;let i=Yo(t.realpath(e));return r&&to(t,f.Resolving_real_path_for_0_result_1,e,i),i}function AU(e,t,r,i,o){if(i.traceEnabled&&to(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,K6(e)),!Jg(t)){if(!r){let l=Ur(t);gm(l,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=eR(e,t,r,i);if(s){let l=o?tk(s.path):void 0,d=l?m0(l,!1,i):void 0;return yI(d,s)}}if(r||gm(t,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return coe(e,t,r,i,o)}function Gb(e){return e.includes(q_)}function tk(e,t){let r=Yo(e),i=r.lastIndexOf(q_);if(i===-1)return;let o=i+q_.length,s=U0e(r,o,t);return r.charCodeAt(o)===64&&(s=U0e(r,s,t)),r.slice(0,s)}function U0e(e,t,r){let i=e.indexOf(Os,t+1);return i===-1?r?e.length:t:i}function loe(e,t,r,i){return vU(eR(e,t,r,i))}function eR(e,t,r,i){let o=H0e(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=q0e(t,e,\"\",r,i);if(s)return s}}function H0e(e,t,r,i){if(!Ll(t).includes(\".\"))return;let s=Yd(t);s===t&&(s=t.substring(0,t.lastIndexOf(\".\")));let l=t.substring(s.length);return i.traceEnabled&&to(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),q0e(s,e,l,r,i)}function IU(e,t,r,i){return e&1&&$l(t,l2)||e&4&&$l(t,s2)?xU(t,r,i)!==void 0?{path:t,ext:JW(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&el(t,\".json\")?xU(t,r,i)!==void 0?{path:t,ext:\".json\",resolvedUsingTsExtension:void 0}:void 0:H0e(e,t,r,i)}function q0e(e,t,r,i,o){if(!i){let l=Ur(e);l&&(i=!gm(l,o.host))}switch(r){case\".mjs\":case\".mts\":case\".d.mts\":return t&1&&s(\".mts\",r===\".mts\"||r===\".d.mts\")||t&4&&s(\".d.mts\",r===\".mts\"||r===\".d.mts\")||t&2&&s(\".mjs\")||void 0;case\".cjs\":case\".cts\":case\".d.cts\":return t&1&&s(\".cts\",r===\".cts\"||r===\".d.cts\")||t&4&&s(\".d.cts\",r===\".cts\"||r===\".d.cts\")||t&2&&s(\".cjs\")||void 0;case\".json\":return t&4&&s(\".d.json.ts\")||t&8&&s(\".json\")||void 0;case\".tsx\":case\".jsx\":return t&1&&(s(\".tsx\",r===\".tsx\")||s(\".ts\",r===\".tsx\"))||t&4&&s(\".d.ts\",r===\".tsx\")||t&2&&(s(\".jsx\")||s(\".js\"))||void 0;case\".ts\":case\".d.ts\":case\".js\":case\"\":return t&1&&(s(\".ts\",r===\".ts\"||r===\".d.ts\")||s(\".tsx\",r===\".ts\"||r===\".d.ts\"))||t&4&&s(\".d.ts\",r===\".ts\"||r===\".d.ts\")||t&2&&(s(\".js\")||s(\".jsx\"))||o.isConfigLookup&&s(\".json\")||void 0;default:return t&4&&!Yc(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=xU(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function xU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return J0e(e,t,r);let o=og(e)??\"\",s=o?QL(e,o):e;return an(r.compilerOptions.moduleSuffixes,l=>J0e(s+l+o,t,r))}function J0e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&to(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&to(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function coe(e,t,r,i,o=!0){let s=o?m0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&e4(s,i);return yI(s,DU(e,t,r,i,l,d))}function RU(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=toe(t),p=nk(i?.getPackageJsonInfoCache(),r,t);p.conditions=hy(t),p.requestContainingDirectory=e.packageDirectory;let h=DU(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,e4(e,p));if(s=pn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=NE([hy(t,99),hy(t,1)],mm);for(let v of m){let E={...p,failedLookupLocations:[],conditions:v,host:r},S=u3e(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=Kh(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function u3e(e,t,r,i){let o;if(oo(t))for(let l of t)s(l);else if(typeof t==\"object\"&&t!==null&&t4(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l==\"string\"&&Ui(l,\"./\"))if(l.includes(\"*\")&&r.host.readDirectory){if(l.indexOf(\"*\")!==l.lastIndexOf(\"*\"))return!1;r.host.readDirectory(e.packageDirectory,H4e(i),void 0,[pee(KA(l,\"**/*\"),\".*\")]).forEach(h=>{o=Kh(o,{path:h,ext:w1(h),resolvedUsingTsExtension:void 0})})}else{let h=mc(l).slice(2);if(h.includes(\"..\")||h.includes(\".\")||h.includes(\"node_modules\"))return!1;let m=wr(e.packageDirectory,l),v=Qi(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=IU(i,v,!1,r);if(E)return o=Kh(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l==\"object\"&&l!==null)return an(fh(l),h=>{if(h===\"default\"||To(r.conditions,h)||ok(r.conditions,h))return s(l[h]),!0})}}function nk(e,t,r){return{host:t,compilerOptions:r,traceEnabled:cg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:je,requestContainingDirectory:void 0,reportDiagnostic:Ca,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function rk(e,t){let r=mc(e);for(r.pop();r.length>0;){let i=m0(Vv(r),!1,t);if(i)return i;r.pop()}}function e4(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y4e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,v=wr(e,\"package.json\");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(E!==void 0){if($6(E))return m&&to(h,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&to(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}let S=gm(e,h);if(S&&h.fileExists(v)){let A=kC(v,h);m&&to(h,f.Found_package_json_at_0,v);let C={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,C),(d=r.affectingLocations)==null||d.push(v),C}else S&&m&&to(h,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(v)}function DU(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=J4e(o,t,i):l=e&4&&q4e(o,t,i)||e&7&&K4e(o,t,i)||void 0);let d=(E,S,A,C)=>{let R=IU(E,S,A,C);if(R)return vU(R);let L=E===4?5:E,G=C.features,U=C.candidateIsFromPackageJsonField;C.candidateIsFromPackageJsonField=!0,o?.type!==\"module\"&&(C.features&=-33);let K=AU(L,S,A,C,!1);return C.features=G,C.candidateIsFromPackageJsonField=U,K},p=l?!gm(Ur(l),i.host):void 0,h=r||!gm(t,i.host),m=wr(t,i.isConfigLookup?\"tsconfig\":\"index\");if(s&&(!l||Bf(t,l))){let E=Gf(t,l||m,!1);i.traceEnabled&&to(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,bp,E);let S=doe(e,E,t,s.paths,void 0,d,p||h,i);if(S)return M0e(S.value)}let v=l&&M0e(d(e,l,p,i));if(v)return v;if(!(i.features&32))return eR(e,m,h,i)}function K0e(e,t){return e&2&&(t===\".js\"||t===\".jsx\"||t===\".mjs\"||t===\".cjs\")||e&1&&(t===\".ts\"||t===\".tsx\"||t===\".mts\"||t===\".cts\")||e&4&&(t===\".d.ts\"||t===\".d.mts\"||t===\".d.cts\")||e&8&&t===\".json\"||!1}function ik(e){let t=e.indexOf(Os);return e[0]===\"@\"&&(t=e.indexOf(Os,t+1)),t===-1?{packageName:e,rest:\"\"}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function t4(e){return ji(fh(e),t=>Ui(t,\".\"))}function p3e(e){return!ct(fh(e),t=>Ui(t,\".\"))}function f3e(e,t,r,i,o,s){var l,d;let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!=\"string\")return;let m=mc(t),v=mc(h.contents.packageJsonContent.name);if(!ji(v,(R,L)=>m[L]===R))return;let E=m.slice(v.length),S=yn(E)?`.${Os}${E.join(Os)}`:\".\";if(sy(i.compilerOptions)&&!Gb(r))return CU(h,e,S,i,o,s);let A=e&5,C=e&-6;return CU(h,A,S,i,o,s)||CU(h,C,S,i,o,s)}function CU(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r===\".\"){let l;if(typeof e.contents.packageJsonContent.exports==\"string\"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports==\"object\"&&p3e(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:rs(e.contents.packageJsonContent.exports,\".\")&&(l=e.contents.packageJsonContent.exports[\".\"]),l)return Y0e(t,i,o,s,r,e,!1)(l,\"\",!1,\".\")}else if(t4(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!=\"object\")return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0);let l=X0e(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0)}}function m3e(e,t,r,i,o,s){var l,d;if(t===\"#\"||Ui(t,\"#/\"))return i.traceEnabled&&to(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),Rp(void 0);let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h)return i.traceEnabled&&to(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),Rp(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&to(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),Rp(void 0);let m=X0e(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&to(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),Rp(void 0))}function NU(e,t){let r=e.indexOf(\"*\"),i=t.indexOf(\"*\"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function X0e(e,t,r,i,o,s,l,d){let p=Y0e(e,t,r,i,o,l,d);if(!Zs(o,Os)&&!o.includes(\"*\")&&rs(s,o)){let v=s[o];return p(v,\"\",!1,o)}let h=uS(Cr(fh(s),v=>v.includes(\"*\")||Zs(v,\"/\")),NU);for(let v of h)if(t.features&16&&m(v,o)){let E=s[v],S=v.indexOf(\"*\"),A=o.substring(v.substring(0,S).length,o.length-(v.length-1-S));return p(E,A,!0,v)}else if(Zs(v,\"*\")&&Ui(o,v.substring(0,v.length-1))){let E=s[v],S=o.substring(v.length-1);return p(E,S,!0,v)}else if(Ui(o,v)){let E=s[v],S=o.substring(v.length);return p(E,S,!1,v)}function m(v,E){if(Zs(v,\"*\"))return!1;let S=v.indexOf(\"*\");return S===-1?!1:Ui(E,v.substring(0,S))&&Zs(E,v.substring(S+1))}}function Y0e(e,t,r,i,o,s,l){return d;function d(p,h,m,v){if(typeof p==\"string\"){if(!m&&h.length>0&&!Zs(p,\"/\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);if(!Ui(p,\"./\")){if(l&&!Ui(p,\"../\")&&!Ui(p,\"/\")&&!Ou(p)){let F=m?p.replace(/\\*/g,h):p+h;gy(t,f.Using_0_subpath_1_with_target_2,\"imports\",v,F),gy(t,f.Resolving_module_0_from_1,F,s.packageDirectory+\"/\");let oe=ek(t.features,F,s.packageDirectory+\"/\",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return Rp(oe.resolvedModule?{path:oe.resolvedModule.resolvedFileName,extension:oe.resolvedModule.extension,packageId:oe.resolvedModule.packageId,originalPath:oe.resolvedModule.originalPath,resolvedUsingTsExtension:oe.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0)}let R=(op(p)?mc(p).slice(1):mc(p)).slice(1);if(R.includes(\"..\")||R.includes(\".\")||R.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);let L=wr(s.packageDirectory,p),G=mc(h);if(G.includes(\"..\")||G.includes(\".\")||G.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);t.traceEnabled&&to(t.host,f.Using_0_subpath_1_with_target_2,l?\"imports\":\"exports\",v,m?p.replace(/\\*/g,h):p+h);let U=E(m?L.replace(/\\*/g,h):L+h),K=A(U,h,wr(s.packageDirectory,\"package.json\"),l);return K||Rp(yI(s,IU(e,U,!1,t)))}else if(typeof p==\"object\"&&p!==null)if(Array.isArray(p)){if(!yn(p))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);for(let C of p){let R=d(C,h,m,v);if(R)return R}}else{gy(t,f.Entering_conditional_exports);for(let C of fh(p))if(C===\"default\"||t.conditions.includes(C)||ok(t.conditions,C)){gy(t,f.Matched_0_condition_1,l?\"imports\":\"exports\",C);let R=p[C],L=d(R,h,m,v);if(L)return gy(t,f.Resolved_under_condition_0,C),gy(t,f.Exiting_conditional_exports),L;gy(t,f.Failed_to_resolve_under_condition_0,C)}else gy(t,f.Saw_non_matching_condition_0,C);gy(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&to(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),Rp(void 0);return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);function E(C){var R,L;return C===void 0?C:Qi(C,(L=(R=t.host).getCurrentDirectory)==null?void 0:L.call(R))}function S(C,R){return _c(wr(C,R))}function A(C,R,L,G){var U,K,F,oe;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!C.includes(\"/node_modules/\")&&(!t.compilerOptions.configFile||Bf(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!PU(t)))){let $=ev({useCaseSensitiveFileNames:()=>PU(t)}),de=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let fe=E(VN(t.compilerOptions,()=>[],((K=(U=t.host).getCurrentDirectory)==null?void 0:K.call(U))||\"\",$));de.push(fe)}else if(t.requestContainingDirectory){let fe=E(wr(t.requestContainingDirectory,\"index.ts\")),q=E(VN(t.compilerOptions,()=>[fe,E(L)],((oe=(F=t.host).getCurrentDirectory)==null?void 0:oe.call(F))||\"\",$));de.push(q);let H=_c(q);for(;H&&H.length>1;){let ee=mc(H);ee.pop();let le=Vv(ee);de.unshift(le),H=_c(le)}}de.length>1&&t.reportDiagnostic(bl(G?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,R===\"\"?\".\":R,L));for(let fe of de){let q=W(fe);for(let H of q)if(Bf(H,C,!PU(t))){let ee=C.slice(H.length+1),le=wr(fe,ee),Ee=[\".mjs\",\".cjs\",\".js\",\".json\",\".d.mts\",\".d.cts\",\".d.ts\"];for(let ce of Ee)if(el(le,ce)){let Z=une(le);for(let pe of Z){if(!K0e(e,pe))continue;let Ae=xM(le,pe,ce,!PU(t));if(t.host.fileExists(Ae))return Rp(yI(s,IU(e,Ae,!1,t)))}}}}}return;function W($){var de,fe;let q=t.compilerOptions.configFile?((fe=(de=t.host).getCurrentDirectory)==null?void 0:fe.call(de))||\"\":$,H=[];return t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.outDir))),H}}}}function ok(e,t){if(!e.includes(\"types\")||!Ui(t,\"types@\"))return!1;let r=hM.tryParse(t.substring(6));return r?r.test(bp):!1}function $0e(e,t,r,i,o,s){return Q0e(e,t,r,i,!1,o,s)}function _3e(e,t,r){return Q0e(4,e,t,r,!0,void 0,void 0)}function Q0e(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){gy(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,K6(p));let v=m(p);if(v)return v}if(h&&!o)return gy(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,K6(h)),m(h);function m(v){return Vf(ad(r),E=>{if(Ll(E)!==\"node_modules\"){let S=nSe(s,t,d,E,l,i);return S||Rp(Z0e(v,t,E,i,o,s,l))}})}}function Z0e(e,t,r,i,o,s,l){let d=wr(r,\"node_modules\"),p=gm(d,i.host);if(!p&&i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=eSe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=wr(d,\"@types\"),m=p;return p&&!gm(h,i.host)&&(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),eSe(4,tSe(t,i),h,m,i,s,l)}}function eSe(e,t,r,i,o,s,l){var d,p;let h=Yo(wr(r,t)),{packageName:m,rest:v}=ik(t),E=wr(r,m),S,A=m0(h,!i,o);if(v!==\"\"&&A&&(!(o.features&8)||!rs(((d=S=m0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??je,\"exports\"))){let L=eR(e,h,!i,o);if(L)return vU(L);let G=DU(e,h,!i,o,A.contents.packageJsonContent,e4(A,o));return yI(A,G)}let C=(L,G,U,K)=>{let F=(v||!(K.features&32))&&eR(L,G,U,K)||DU(L,G,U,K,A&&A.contents.packageJsonContent,A&&e4(A,K));return!F&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&K.features&32&&(F=eR(L,wr(G,\"index.js\"),U,K)),yI(A,F)};if(v!==\"\"&&(A=S??m0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=CU(A,e,wr(\".\",v),o,s,l))==null?void 0:p.value;let R=v!==\"\"&&A?e4(A,o):void 0;if(R){o.traceEnabled&&to(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,R.version,bp,v);let L=i&&gm(E,o.host),G=doe(e,v,E,R.paths,void 0,C,!L,o);if(G)return G.value}return C(e,h,!i,o)}function doe(e,t,r,i,o,s,l,d){o||(o=fF(i));let p=CV(o,t);if(p){let h=fo(p)?void 0:qZ(p,t),m=fo(p)?p:HZ(p);return d.traceEnabled&&to(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:an(i[m],E=>{let S=h?KA(E,h):E,A=Yo(wr(r,S));d.traceEnabled&&to(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let C=og(E);if(C!==void 0){let R=xU(A,l,d);if(R!==void 0)return vU({path:R,ext:C,resolvedUsingTsExtension:void 0})}return s(e,A,l||!gm(Ur(A),d.host),d)})}}}function tSe(e,t){let r=tR(e);return t.traceEnabled&&r!==e&&to(t.host,f.Scoped_package_detected_looking_in_0,r),r}function n4(e){return`@types/${tR(e)}`}function tR(e){if(Ui(e,\"@\")){let t=e.replace(Os,LU);if(t!==e)return t.slice(1)}return e}function CN(e){let t=jD(e,\"@types/\");return t!==e?ak(t):e}function ak(e){return e.includes(LU)?\"@\"+e.replace(LU,Os):e}function nSe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&to(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function uoe(e,t,r,i,o,s){let l=cg(r,i),d=[],p=[],h=Ur(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return L0e(e,E&&E.value,E?.value&&Gb(E.value.path),d,p,m,v,o);function S(A){let C=G0e(A,e,h,loe,v);if(C)return{value:C};if(Ic(e)){let R=Yo(wr(h,e));return Rp(loe(A,R,!1,v))}else{let R=Vf(h,L=>{let G=nSe(o,e,void 0,L,s,v);if(G)return G;let U=Yo(wr(L,e));return Rp(loe(A,U,!1,v))});if(R)return R;if(A&5){let L=_3e(e,h,v);return A&4&&(L??(L=rSe(e,v))),L}}}}function rSe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=W0e(r,e,t),o=gm(r,t.host);!o&&t.traceEnabled&&to(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=eR(4,i,!o,t);if(s){let d=tk(s.path),p=d?m0(d,!1,t):void 0;return Rp(yI(p,s))}let l=coe(4,i,!o,t);if(l)return Rp(l)}}function nR(e,t){return!!e.allowImportingTsExtensions||t&&Yc(t)}function poe(e,t,r,i,o,s){let l=cg(r,i);l&&to(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=Z0e(4,e,o,m,!1,void 0,void 0);return k0e(v,!0,d,p,h,m.resultFromCache,void 0)}function Rp(e){return e!==void 0?{value:e}:void 0}function gy(e,t,...r){e.traceEnabled&&to(e.host,t,...r)}function PU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames==\"boolean\"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var foe,iSe,MU,q_,LU,h3e=pt({\"src/compiler/moduleNameResolver.ts\"(){\"use strict\";wo(),iSe=wr(\"node_modules\",\"@types\"),MU=(e=>(e[e.None=0]=\"None\",e[e.Imports=2]=\"Imports\",e[e.SelfName=4]=\"SelfName\",e[e.Exports=8]=\"Exports\",e[e.ExportsPatternTrailers=16]=\"ExportsPatternTrailers\",e[e.AllFeatures=30]=\"AllFeatures\",e[e.Node16Default=30]=\"Node16Default\",e[e.NodeNextDefault=30]=\"NodeNextDefault\",e[e.BundlerDefault=30]=\"BundlerDefault\",e[e.EsmMode=32]=\"EsmMode\",e))(MU||{}),q_=\"/node_modules/\",LU=\"__\"}});function dg(e,t){return e.body&&!e.body.parent&&(Aa(e.body,e),oy(e.body,!1)),e.body?moe(e.body,t):1}function moe(e,t=new Map){let r=Fa(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=g3e(e,t);return t.set(r,i),i}function g3e(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(BE(e))return 2;break;case 272:case 271:if(!Wr(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=v3e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ao(e,o=>{let s=moe(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:x.assertNever(s)}}),i}case 267:return dg(e,t);case 80:if(e.flags&4096)return 0}return 1}function v3e(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Do(i)||n_(i)||Li(i)){let o=i.statements,s;for(let l of o)if(zM(l,r)){l.parent||(Aa(l,i),oy(l,!1));let d=moe(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function EI(e){return x.attachFlowNodeDebugInfo(e),e}function _oe(e,t){var r,i;Ls(\"beforeBind\"),(r=Pd)==null||r.logStartBindFile(\"\"+e.fileName),aSe(e,t),(i=Pd)==null||i.logStopBindFile(),Ls(\"afterBind\"),Sp(\"Bind\",\"beforeBind\",\"afterBind\")}function y3e(){var e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K,F,oe=!1,W=0,$,de,fe={flags:1},q={flags:1},H=V();return le;function ee(k,ge,...Xe){return vf(Nn(k)||e,k,ge,...Xe)}function le(k,ge){var Xe,Mt;e=k,t=ge,r=Wa(t),F=Ee(e,ge),de=new Set,W=0,$=wc.getSymbolConstructor(),x.attachFlowNodeDebugInfo(fe),x.attachFlowNodeDebugInfo(q),e.locals||((Xe=qn)==null||Xe.push(qn.Phase.Bind,\"bindSourceFile\",{path:e.path},!0),xe(e),(Mt=qn)==null||Mt.pop(),e.symbolCount=W,e.classifiableNames=de,Fc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,v=void 0,E=void 0,S=void 0,A=void 0,C=void 0,R=void 0,G=void 0,U=!1,oe=!1,K=0}function Ee(k,ge){return Fd(ge,\"alwaysStrict\")&&!k.isDeclarationFile?!0:!!k.externalModuleIndicator}function ce(k,ge){return W++,new $(k,ge)}function Z(k,ge,Xe){k.flags|=Xe,ge.symbol=k,k.declarations=Kh(k.declarations,ge),Xe&1955&&!k.exports&&(k.exports=Vo()),Xe&6240&&!k.members&&(k.members=Vo()),k.constEnumOnlyModule&&k.flags&304&&(k.constEnumOnlyModule=!1),Xe&111551&&IL(k,ge)}function pe(k){if(k.kind===277)return k.isExportEquals?\"export=\":\"default\";let ge=mo(k);if(ge){if(sd(k)){let Xe=Ef(ge);return Jm(k)?\"__global\":`\"${Xe}\"`}if(ge.kind===167){let Xe=ge.expression;if(Ap(Xe))return Hs(Xe.text);if(LW(Xe))return qo(Xe.operator)+Xe.operand.text;x.fail(\"Only computed properties with literal names have declaration names\")}if(Ci(ge)){let Xe=Oc(k);if(!Xe)return;let Mt=Xe.symbol;return wL(Mt,ge.escapedText)}return Em(ge)?JA(ge):Xm(ge)?AC(ge):void 0}switch(k.kind){case 176:return\"__constructor\";case 184:case 179:case 330:return\"__call\";case 185:case 180:return\"__new\";case 181:return\"__index\";case 278:return\"__export\";case 312:return\"export=\";case 226:if(hl(k)===2)return\"export=\";x.fail(\"Unknown binary declaration kind\");break;case 324:return dx(k)?\"__new\":\"__call\";case 169:return x.assert(k.parent.kind===324,\"Impossible parameter parent kind\",()=>`parent is: ${x.formatSyntaxKind(k.parent.kind)}, expected JSDocFunctionType`),\"arg\"+k.parent.parameters.indexOf(k)}}function Ae(k){return Ld(k)?is(k.name):Ii(x.checkDefined(pe(k)))}function Oe(k,ge,Xe,Mt,Vn,jr,Or){x.assert(Or||!ty(Xe));let zi=Wr(Xe,2048)||Ed(Xe)&&Xe.name.escapedText===\"default\",_a=Or?\"__computed\":zi&&ge?\"default\":pe(Xe),ha;if(_a===void 0)ha=ce(0,\"__missing\");else if(ha=k.get(_a),Mt&2885600&&de.add(_a),!ha)k.set(_a,ha=ce(0,_a)),jr&&(ha.isReplaceableByMethod=!0);else{if(jr&&!ha.isReplaceableByMethod)return ha;if(ha.flags&Vn){if(ha.isReplaceableByMethod)k.set(_a,ha=ce(0,_a));else if(!(Mt&3&&ha.flags&67108864)){Ld(Xe)&&Aa(Xe.name,Xe);let pl=ha.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Gc=!0;(ha.flags&384||Mt&384)&&(pl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Gc=!1);let nc=!1;yn(ha.declarations)&&(zi||ha.declarations&&ha.declarations.length&&Xe.kind===277&&!Xe.isExportEquals)&&(pl=f.A_module_cannot_have_multiple_default_exports,Gc=!1,nc=!0);let Xu=[];Xf(Xe)&&_l(Xe.type)&&Wr(Xe,32)&&ha.flags&2887656&&Xu.push(ee(Xe,f.Did_you_mean_0,`export type { ${Ii(Xe.name.escapedText)} }`));let _u=mo(Xe)||Xe;an(ha.declarations,(ja,em)=>{let tm=mo(ja)||ja,Ri=Gc?ee(tm,pl,Ae(ja)):ee(tm,pl);e.bindDiagnostics.push(nc?fa(Ri,ee(_u,em===0?f.Another_export_default_is_here:f.and_here)):Ri),nc&&Xu.push(ee(tm,f.The_first_export_default_is_here))});let Ay=Gc?ee(_u,pl,Ae(Xe)):ee(_u,pl);e.bindDiagnostics.push(fa(Ay,...Xu)),ha=ce(0,_a)}}}return Z(ha,Xe,Mt),ha.parent?x.assert(ha.parent===ge,\"Existing symbol parent should match new one\"):ha.parent=ge,ha}function _e(k,ge,Xe){let Mt=!!(gb(k)&32)||be(k);if(ge&2097152)return k.kind===281||k.kind===271&&Mt?Oe(o.symbol.exports,o.symbol,k,ge,Xe):(x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe));if(bf(k)&&x.assert(Jn(k)),!sd(k)&&(Mt||o.flags&128)){if(!L_(o)||!o.locals||Wr(k,2048)&&!pe(k))return Oe(o.symbol.exports,o.symbol,k,ge,Xe);let Vn=ge&111551?1048576:0,jr=Oe(o.locals,void 0,k,Vn,Xe);return jr.exportSymbol=Oe(o.symbol.exports,o.symbol,k,ge,Xe),k.localSymbol=jr,jr}else return x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}function be(k){if(k.parent&&Il(k)&&(k=k.parent),!bf(k))return!1;if(!C2(k)&&k.fullName)return!0;let ge=mo(k);return ge?!!(UL(ge.parent)&&Nl(ge.parent)||bd(ge.parent)&&gb(ge.parent)&32):!1}function Te(k,ge){let Xe=o,Mt=s,Vn=l;if(ge&1?(k.kind!==219&&(s=o),o=l=k,ge&32&&(o.locals=Vo(),jn(o))):ge&2&&(l=k,ge&32&&(l.locals=void 0)),ge&4){let jr=m,Or=v,zi=E,_a=S,ha=R,pl=G,Gc=U,nc=ge&16&&!Wr(k,1024)&&!k.asteriskToken&&!!RS(k)||k.kind===175;nc||(m=EI({flags:2}),ge&144&&(m.node=k)),S=nc||k.kind===176||Jn(k)&&(k.kind===262||k.kind===218)?gn():void 0,R=void 0,v=void 0,E=void 0,G=void 0,U=!1,Le(k),k.flags&=-5633,!(m.flags&1)&&ge&8&&gf(k.body)&&(k.flags|=512,U&&(k.flags|=1024),k.endFlowNode=m),k.kind===312&&(k.flags|=K,k.endFlowNode=m),S&&(Wt(S,m),m=Gn(S),(k.kind===176||k.kind===175||Jn(k)&&(k.kind===262||k.kind===218))&&(k.returnFlowNode=m)),nc||(m=jr),v=Or,E=zi,S=_a,R=ha,G=pl,U=Gc}else ge&64?(h=!1,Le(k),x.assertNotNode(k,Me),k.flags=h?k.flags|256:k.flags&-257):Le(k);o=Xe,s=Mt,l=Vn}function De(k){ft(k,ge=>ge.kind===262?xe(ge):void 0),ft(k,ge=>ge.kind!==262?xe(ge):void 0)}function ft(k,ge=xe){k!==void 0&&an(k,ge)}function he(k){Ao(k,xe,ft)}function Le(k){let ge=oe;if(oe=!1,Nt(k)){he(k),dt(k),oe=ge;return}switch(k.kind>=243&&k.kind<=259&&!t.allowUnreachableCode&&(k.flowNode=m),k.kind){case 247:ki(k);break;case 246:so(k);break;case 248:Jo(k);break;case 249:case 250:Ea(k);break;case 245:ln(k);break;case 253:case 257:Tn(k);break;case 252:case 251:tt(k);break;case 258:yt(k);break;case 255:re(k);break;case 269:Ce(k);break;case 296:et(k);break;case 244:z(k);break;case 256:_t(k);break;case 224:on(k);break;case 225:Qt(k);break;case 226:if(nv(k)){oe=ge,Zt(k);return}H(k);break;case 220:Re(k);break;case 227:St(k);break;case 260:te(k);break;case 211:case 212:ti(k);break;case 213:di(k);break;case 235:Cn(k);break;case 353:case 345:case 347:Ie(k);break;case 312:{De(k.statements),xe(k.endOfFileToken);break}case 241:case 268:De(k.statements);break;case 208:j(k);break;case 169:se(k);break;case 210:case 209:case 303:case 230:oe=ge;default:he(k);break}dt(k),oe=ge}function Ke(k){switch(k.kind){case 80:case 81:case 110:case 211:case 212:return st(k);case 213:return Ge(k);case 217:if(Ux(k))return!1;case 235:return Ke(k.expression);case 226:return Vt(k);case 224:return k.operator===54&&Ke(k.operand);case 221:return Ke(k.expression)}return!1}function Dt(k){return MC(k)||(Er(k)||dI(k)||uu(k))&&Dt(k.expression)||Zn(k)&&k.operatorToken.kind===28&&Dt(k.right)||Rs(k)&&(Ap(k.argumentExpression)||gl(k.argumentExpression))&&Dt(k.expression)||lc(k)&&Dt(k.left)}function st(k){return Dt(k)||yd(k)&&st(k.expression)}function Ge(k){if(k.arguments){for(let ge of k.arguments)if(st(ge))return!0}return!!(k.expression.kind===211&&st(k.expression.expression))}function ot(k,ge){return Wx(k)&&jt(k.expression)&&Ga(ge)}function Vt(k){switch(k.operatorToken.kind){case 64:case 76:case 77:case 78:return st(k.left);case 35:case 36:case 37:case 38:return jt(k.left)||jt(k.right)||ot(k.right,k.left)||ot(k.left,k.right)||sC(k.right)&&Ke(k.left)||sC(k.left)&&Ke(k.right);case 104:return jt(k.left);case 103:return Ke(k.right);case 28:return Ke(k.right)}return!1}function jt(k){switch(k.kind){case 217:return jt(k.expression);case 226:switch(k.operatorToken.kind){case 64:return jt(k.left);case 28:return jt(k.right)}}return st(k)}function gn(){return EI({flags:4,antecedents:void 0})}function On(){return EI({flags:8,antecedents:void 0})}function en(k,ge,Xe){return EI({flags:1024,target:k,antecedents:ge,antecedent:Xe})}function zt(k){k.flags|=k.flags&2048?4096:2048}function Wt(k,ge){!(ge.flags&1)&&!To(k.antecedents,ge)&&((k.antecedents||(k.antecedents=[])).push(ge),zt(ge))}function ei(k,ge,Xe){return ge.flags&1?ge:Xe?(Xe.kind===112&&k&64||Xe.kind===97&&k&32)&&!F8(Xe)&&!jG(Xe.parent)?fe:Ke(Xe)?(zt(ge),EI({flags:k,antecedent:ge,node:Xe})):ge:k&32?ge:fe}function Ki(k,ge,Xe,Mt){return zt(k),EI({flags:128,antecedent:k,switchStatement:ge,clauseStart:Xe,clauseEnd:Mt})}function gi(k,ge,Xe){zt(ge);let Mt=EI({flags:k,antecedent:ge,node:Xe});return R&&Wt(R,Mt),Mt}function io(k,ge){return zt(k),EI({flags:512,antecedent:k,node:ge})}function Gn(k){let ge=k.antecedents;return ge?ge.length===1?ge[0]:k:fe}function Nr(k){let ge=k.parent;switch(ge.kind){case 245:case 247:case 246:return ge.expression===k;case 248:case 227:return ge.condition===k}return!1}function cr(k){for(;;)if(k.kind===217)k=k.expression;else if(k.kind===224&&k.operator===54)k=k.operand;else return jL(k)}function Jt(k){return cV(Ka(k))}function Ue(k){for(;uu(k.parent)||fy(k.parent)&&k.parent.operator===54;)k=k.parent;return!Nr(k)&&!cr(k.parent)&&!(yd(k.parent)&&k.parent.expression===k)}function Rt(k,ge,Xe,Mt){let Vn=A,jr=C;A=Xe,C=Mt,k(ge),A=Vn,C=jr}function mn(k,ge,Xe){Rt(xe,k,ge,Xe),(!k||!Jt(k)&&!cr(k)&&!(yd(k)&&nC(k)))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function qr(k,ge,Xe){let Mt=v,Vn=E;v=ge,E=Xe,xe(k),v=Mt,E=Vn}function ni(k,ge){let Xe=G;for(;Xe&&k.parent.kind===256;)Xe.continueTarget=ge,Xe=Xe.next,k=k.parent;return ge}function ki(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();Wt(ge,m),m=ge,mn(k.expression,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),Wt(ge,m),m=Gn(Mt)}function so(k){let ge=On(),Xe=ni(k,gn()),Mt=gn();Wt(ge,m),m=ge,qr(k.statement,Mt,Xe),Wt(Xe,m),m=Gn(Xe),mn(k.expression,ge,Mt),m=Gn(Mt)}function Jo(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();xe(k.initializer),Wt(ge,m),m=ge,mn(k.condition,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),xe(k.incrementor),Wt(ge,m),m=Gn(Mt)}function Ea(k){let ge=ni(k,On()),Xe=gn();xe(k.expression),Wt(ge,m),m=ge,k.kind===250&&xe(k.awaitModifier),Wt(Xe,m),xe(k.initializer),k.initializer.kind!==261&&it(k.initializer),qr(k.statement,Xe,ge),Wt(ge,m),m=Gn(Xe)}function ln(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.expression,ge,Xe),m=Gn(ge),xe(k.thenStatement),Wt(Mt,m),m=Gn(Xe),xe(k.elseStatement),Wt(Mt,m),m=Gn(Mt)}function Tn(k){xe(k.expression),k.kind===253&&(U=!0,S&&Wt(S,m)),m=fe}function ke(k){for(let ge=G;ge;ge=ge.next)if(ge.name===k)return ge}function nt(k,ge,Xe){let Mt=k.kind===252?ge:Xe;Mt&&(Wt(Mt,m),m=fe)}function tt(k){if(xe(k.label),k.label){let ge=ke(k.label.escapedText);ge&&(ge.referenced=!0,nt(k,ge.breakTarget,ge.continueTarget))}else nt(k,v,E)}function yt(k){let ge=S,Xe=R,Mt=gn(),Vn=gn(),jr=gn();if(k.finallyBlock&&(S=Vn),Wt(jr,m),R=jr,xe(k.tryBlock),Wt(Mt,m),k.catchClause&&(m=Gn(jr),jr=gn(),Wt(jr,m),R=jr,xe(k.catchClause),Wt(Mt,m)),S=ge,R=Xe,k.finallyBlock){let Or=gn();Or.antecedents=ro(ro(Mt.antecedents,jr.antecedents),Vn.antecedents),m=Or,xe(k.finallyBlock),m.flags&1?m=fe:(S&&Vn.antecedents&&Wt(S,en(Or,Vn.antecedents,m)),R&&jr.antecedents&&Wt(R,en(Or,jr.antecedents,m)),m=Mt.antecedents?en(Or,Mt.antecedents,m):fe)}else m=Gn(Mt)}function re(k){let ge=gn();xe(k.expression);let Xe=v,Mt=L;v=ge,L=m,xe(k.caseBlock),Wt(ge,m);let Vn=an(k.caseBlock.clauses,jr=>jr.kind===297);k.possiblyExhaustive=!Vn&&!ge.antecedents,Vn||Wt(ge,Ki(L,k,0,0)),v=Xe,L=Mt,m=Gn(ge)}function Ce(k){let ge=k.clauses,Xe=k.parent.expression.kind===112||Ke(k.parent.expression),Mt=fe;for(let Vn=0;Vn<ge.length;Vn++){let jr=Vn;for(;!ge[Vn].statements.length&&Vn+1<ge.length;)Mt===fe&&(m=L),xe(ge[Vn]),Vn++;let Or=gn();Wt(Or,Xe?Ki(L,k.parent,jr,Vn+1):L),Wt(Or,Mt),m=Gn(Or);let zi=ge[Vn];xe(zi),Mt=m,!(m.flags&1)&&Vn!==ge.length-1&&t.noFallthroughCasesInSwitch&&(zi.fallthroughFlowNode=m)}}function et(k){let ge=m;m=L,xe(k.expression),m=ge,ft(k.statements)}function z(k){xe(k.expression),Je(k.expression)}function Je(k){if(k.kind===213){let ge=k;ge.expression.kind!==108&&MC(ge.expression)&&(m=io(m,ge))}}function _t(k){let ge=gn();G={next:G,name:k.label.escapedText,breakTarget:ge,continueTarget:void 0,referenced:!1},xe(k.label),xe(k.statement),!G.referenced&&!t.allowUnusedLabels&&tc(Kne(t),k.label,f.Unused_label),G=G.next,Wt(ge,m),m=Gn(ge)}function ze(k){k.kind===226&&k.operatorToken.kind===64?it(k.left):it(k)}function it(k){if(Dt(k))m=gi(16,m,k);else if(k.kind===209)for(let ge of k.elements)ge.kind===230?it(ge.expression):ze(ge);else if(k.kind===210)for(let ge of k.properties)ge.kind===303?ze(ge.initializer):ge.kind===304?it(ge.name):ge.kind===305&&it(ge.expression)}function Ct(k,ge,Xe){let Mt=gn();k.operatorToken.kind===56||k.operatorToken.kind===77?mn(k.left,Mt,Xe):mn(k.left,ge,Mt),m=Gn(Mt),xe(k.operatorToken),PC(k.operatorToken.kind)?(Rt(xe,k.right,ge,Xe),it(k.left),Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k))):mn(k.right,ge,Xe)}function on(k){if(k.operator===54){let ge=A;A=C,C=ge,he(k),C=A,A=ge}else he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Qt(k){he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Zt(k){oe?(oe=!1,xe(k.operatorToken),xe(k.right),oe=!0,xe(k.left)):(oe=!0,xe(k.left),oe=!1,xe(k.operatorToken),xe(k.right)),it(k.left)}function V(){return M6(k,ge,Xe,Mt,Vn,void 0);function k(Or,zi){if(zi){zi.stackIndex++,Aa(Or,i);let ha=F;tr(Or);let pl=i;i=Or,zi.skip=!1,zi.inStrictModeStack[zi.stackIndex]=ha,zi.parentStack[zi.stackIndex]=pl}else zi={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let _a=Or.operatorToken.kind;if(VL(_a)||PC(_a)){if(Ue(Or)){let ha=gn();Ct(Or,ha,ha),m=Gn(ha)}else Ct(Or,A,C);zi.skip=!0}return zi}function ge(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Xe(Or,zi,_a){zi.skip||xe(Or)}function Mt(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Vn(Or,zi){if(!zi.skip){let pl=Or.operatorToken.kind;if(tv(pl)&&!Sh(Or)&&(it(Or.left),pl===64&&Or.left.kind===212)){let Gc=Or.left;jt(Gc.expression)&&(m=gi(256,m,Or))}}let _a=zi.inStrictModeStack[zi.stackIndex],ha=zi.parentStack[zi.stackIndex];_a!==void 0&&(F=_a),ha!==void 0&&(i=ha),zi.skip=!1,zi.stackIndex--}function jr(Or){if(Or&&Zn(Or)&&!nv(Or))return Or;xe(Or)}}function Re(k){he(k),k.expression.kind===211&&it(k.expression)}function St(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.condition,ge,Xe),m=Gn(ge),xe(k.questionToken),xe(k.whenTrue),Wt(Mt,m),m=Gn(Xe),xe(k.colonToken),xe(k.whenFalse),Wt(Mt,m),m=Gn(Mt)}function M(k){let ge=vc(k)?void 0:k.name;if(ko(ge))for(let Xe of ge.elements)M(Xe);else m=gi(16,m,k)}function te(k){he(k),(k.initializer||H1(k.parent.parent))&&M(k)}function j(k){xe(k.dotDotDotToken),xe(k.propertyName),Pe(k.initializer),xe(k.name)}function se(k){ft(k.modifiers),xe(k.dotDotDotToken),xe(k.questionToken),xe(k.type),Pe(k.initializer),xe(k.name)}function Pe(k){if(!k)return;let ge=m;if(xe(k),ge===fe||ge===m)return;let Xe=gn();Wt(Xe,ge),Wt(Xe,m),m=Gn(Xe)}function Ie(k){xe(k.tagName),k.kind!==347&&k.fullName&&(Aa(k.fullName,k),oy(k.fullName,!1)),typeof k.comment!=\"string\"&&ft(k.comment)}function gt(k){he(k);let ge=xb(k);ge&&ge.kind!==174&&Z(ge.symbol,ge,32)}function bt(k,ge,Xe){Rt(xe,k,ge,Xe),(!yd(k)||nC(k))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function Ot(k){switch(k.kind){case 211:xe(k.questionDotToken),xe(k.name);break;case 212:xe(k.questionDotToken),xe(k.argumentExpression);break;case 213:xe(k.questionDotToken),ft(k.typeArguments),ft(k.arguments);break}}function dn(k,ge,Xe){let Mt=tC(k)?gn():void 0;bt(k.expression,Mt||ge,Xe),Mt&&(m=Gn(Mt)),Rt(Ot,k,ge,Xe),nC(k)&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function An(k){if(Ue(k)){let ge=gn();dn(k,ge,ge),m=Gn(ge)}else dn(k,A,C)}function Cn(k){yd(k)?An(k):he(k)}function ti(k){yd(k)?An(k):he(k)}function di(k){if(yd(k))An(k);else{let ge=Ka(k.expression);ge.kind===218||ge.kind===219?(ft(k.typeArguments),ft(k.arguments),xe(k.expression)):(he(k),k.expression.kind===108&&(m=io(m,k)))}if(k.expression.kind===211){let ge=k.expression;Me(ge.name)&&jt(ge.expression)&&K9(ge.name)&&(m=gi(256,m,k))}}function jn(k){d&&(d.nextContainer=k),d=k}function Ar(k,ge,Xe){switch(o.kind){case 267:return _e(k,ge,Xe);case 312:return _i(k,ge,Xe);case 231:case 263:return Zi(k,ge,Xe);case 266:return Oe(o.symbol.exports,o.symbol,k,ge,Xe);case 187:case 329:case 210:case 264:case 292:return Oe(o.symbol.members,o.symbol,k,ge,Xe);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}}function Zi(k,ge,Xe){return zo(k)?Oe(o.symbol.exports,o.symbol,k,ge,Xe):Oe(o.symbol.members,o.symbol,k,ge,Xe)}function _i(k,ge,Xe){return wl(e)?_e(k,ge,Xe):Oe(e.locals,void 0,k,ge,Xe)}function ui(k){let ge=Li(k)?k:Vr(k.body,n_);return!!ge&&ge.statements.some(Xe=>xl(Xe)||dl(Xe))}function Mr(k){k.flags&33554432&&!ui(k)?k.flags|=128:k.flags&=-129}function lo(k){if(Mr(k),sd(k))if(Wr(k,32)&&ls(k,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),_9(k))_n(k);else{let ge;if(k.name.kind===11){let{text:Mt}=k.name;ge=xx(Mt),ge===void 0&&ls(k.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Mt)}let Xe=Ar(k,512,110735);e.patternAmbientModules=pn(e.patternAmbientModules,ge&&!fo(ge)?{pattern:ge,symbol:Xe}:void 0)}else{let ge=_n(k);if(ge!==0){let{symbol:Xe}=k;Xe.constEnumOnlyModule=!(Xe.flags&304)&&ge===2&&Xe.constEnumOnlyModule!==!1}}}function _n(k){let ge=dg(k),Xe=ge!==0;return Ar(k,Xe?512:1024,Xe?110735:0),ge}function ms(k){let ge=ce(131072,pe(k));Z(ge,k,131072);let Xe=ce(2048,\"__type\");Z(Xe,k,2048),Xe.members=Vo(),Xe.members.set(ge.escapedName,ge)}function Dl(k){return vs(k,4096,\"__object\")}function _o(k){return vs(k,4096,\"__jsxAttributes\")}function Va(k,ge,Xe){return Ar(k,ge,Xe)}function vs(k,ge,Xe){let Mt=ce(ge,Xe);return ge&106508&&(Mt.parent=o.symbol),Z(Mt,k,ge),Mt}function Js(k,ge,Xe){switch(l.kind){case 267:_e(k,ge,Xe);break;case 312:if(sp(o)){_e(k,ge,Xe);break}default:x.assertNode(l,L_),l.locals||(l.locals=Vo(),jn(l)),Oe(l.locals,void 0,k,ge,Xe)}}function Fc(){if(!p)return;let k=o,ge=d,Xe=l,Mt=i,Vn=m;for(let jr of p){let Or=jr.parent.parent;o=S9(Or)||e,l=w_(Or)||e,m=EI({flags:2}),i=jr,xe(jr.typeExpression);let zi=mo(jr);if((C2(jr)||!jr.fullName)&&zi&&UL(zi.parent)){let _a=Nl(zi.parent);if(_a){Ks(e.symbol,zi.parent,_a,!!Rn(zi,pl=>Er(pl)&&pl.name.escapedText===\"prototype\"),!1);let ha=o;switch(TL(zi.parent)){case 1:case 2:sp(e)?o=e:o=void 0;break;case 4:o=zi.parent.expression;break;case 3:o=zi.parent.expression.name;break;case 5:o=_0(e,zi.parent.expression)?e:Er(zi.parent.expression)?zi.parent.expression.name:zi.parent.expression;break;case 0:return x.fail(\"Shouldn't have detected typedef or enum on non-assignment declaration\")}o&&_e(jr,524288,788968),o=ha}}else C2(jr)||!jr.fullName||jr.fullName.kind===80?(i=jr.parent,Js(jr,524288,788968)):xe(jr.fullName)}o=k,d=ge,l=Xe,i=Mt,m=Vn}function $i(k){if(!e.parseDiagnostics.length&&!(k.flags&33554432)&&!(k.flags&16777216)&&!rne(k)){let ge=vb(k);if(ge===void 0)return;F&&ge>=119&&ge<=127?e.bindDiagnostics.push(ee(k,Uo(k),is(k))):ge===135?wl(e)&&hW(k)?e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,is(k))):k.flags&65536&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k))):ge===127&&k.flags&16384&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k)))}}function Uo(k){return Oc(k)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function zc(k){k.escapedText===\"#constructor\"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ee(k,f.constructor_is_a_reserved_word,is(k))))}function ts(k){F&&Tu(k.left)&&tv(k.operatorToken.kind)&&Wl(k,k.left)}function ua(k){F&&k.variableDeclaration&&Wl(k,k.variableDeclaration.name)}function Us(k){if(F&&k.expression.kind===80){let ge=IS(e,k.expression);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function tf(k){return Me(k)&&(k.escapedText===\"eval\"||k.escapedText===\"arguments\")}function Wl(k,ge){if(ge&&ge.kind===80){let Xe=ge;if(tf(Xe)){let Mt=IS(e,ge);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,il(k),ar(Xe)))}}}function il(k){return Oc(k)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function zs(k){F&&Wl(k,k.name)}function ho(k){return Oc(k)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ut(k){if(r<2&&l.kind!==312&&l.kind!==267&&!U1(l)){let ge=IS(e,k);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,ho(k)))}}function ys(k){F&&Wl(k,k.operand)}function Pc(k){F&&(k.operator===46||k.operator===47)&&Wl(k,k.operand)}function Bc(k){F&&ls(k,f.with_statements_are_not_allowed_in_strict_mode)}function Ju(k){F&&Wa(t)>=2&&(ate(k.statement)||cl(k.statement))&&ls(k.label,f.A_label_is_not_allowed_here)}function ls(k,ge,...Xe){let Mt=W_(e,k.pos);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,ge,...Xe))}function tc(k,ge,Xe){ae(k,ge,ge,Xe)}function ae(k,ge,Xe,Mt){X(k,{pos:Tb(ge,e),end:Xe.end},Mt)}function X(k,ge,Xe){let Mt=Rc(e,ge.pos,ge.end-ge.pos,Xe);k?e.bindDiagnostics.push(Mt):e.bindSuggestionDiagnostics=pn(e.bindSuggestionDiagnostics,{...Mt,category:2})}function xe(k){if(!k)return;Aa(k,i),qn&&(k.tracingPath=e.path);let ge=F;if(tr(k),k.kind>165){let Xe=i;i=k;let Mt=kU(k);Mt===0?Le(k):Te(k,Mt),i=Xe}else{let Xe=i;k.kind===1&&(i=k),dt(k),i=Xe}F=ge}function dt(k){if(ap(k))if(Jn(k))for(let ge of k.jsDoc)xe(ge);else for(let ge of k.jsDoc)Aa(ge,k),oy(ge,!1)}function $t(k){if(!F)for(let ge of k){if(!Hf(ge))return;if(sr(ge)){F=!0;return}}}function sr(k){let ge=FE(e,k.expression);return ge==='\"use strict\"'||ge===\"'use strict'\"}function tr(k){switch(k.kind){case 80:if(k.flags&4096){let Or=k.parent;for(;Or&&!bf(Or);)Or=Or.parent;Js(Or,524288,788968);break}case 110:return m&&(lt(k)||i.kind===304)&&(k.flowNode=m),$i(k);case 166:m&&EW(k)&&(k.flowNode=m);break;case 236:case 108:k.flowNode=m;break;case 81:return zc(k);case 211:case 212:let ge=k;m&&Dt(ge)&&(ge.flowNode=m),Yte(ge)&&Ln(ge),Jn(ge)&&e.commonJsModuleIndicator&&Eh(ge)&&!r4(l,\"module\")&&Oe(e.locals,void 0,ge.expression,134217729,111550);break;case 226:switch(hl(k)){case 1:Du(k);break;case 2:pc(k);break;case 3:Oo(k.left,k);break;case 6:eo(k);break;case 4:Vd(k);break;case 5:let Or=k.left.expression;if(Jn(k)&&Me(Or)){let zi=r4(l,Or.escapedText);if(gW(zi?.valueDeclaration)){Vd(k);break}}Kl(k);break;case 0:break;default:x.fail(\"Unknown binary expression special property assignment kind\")}return ts(k);case 299:return ua(k);case 220:return Us(k);case 225:return ys(k);case 224:return Pc(k);case 254:return Bc(k);case 256:return Ju(k);case 197:h=!0;return;case 182:break;case 168:return Ye(k);case 169:return mg(k);case 260:return fd(k);case 208:return k.flowNode=m,fd(k);case 172:case 171:return Ir(k);case 303:case 304:return mu(k,4,0);case 306:return mu(k,8,900095);case 179:case 180:case 181:return Ar(k,131072,0);case 174:case 173:return mu(k,8192|(k.questionToken?16777216:0),qf(k)?0:103359);case 262:return Ku(k);case 176:return Ar(k,16384,0);case 177:return mu(k,32768,46015);case 178:return mu(k,65536,78783);case 184:case 324:case 330:case 185:return ms(k);case 187:case 329:case 200:return pi(k);case 339:return gt(k);case 210:return Dl(k);case 218:case 219:return Lh(k);case 213:switch(hl(k)){case 7:return Cl(k);case 8:return Ec(k);case 9:return Po(k);case 0:break;default:return x.fail(\"Unknown call expression assignment declaration kind\")}Jn(k)&&u_(k);break;case 231:case 263:return F=!0,X_(k);case 264:return Js(k,64,788872);case 265:return Js(k,524288,788968);case 266:return fg(k);case 267:return lo(k);case 292:return _o(k);case 291:return Va(k,4,0);case 271:case 274:case 276:case 281:return Ar(k,2097152,2097152);case 270:return bc(k);case 273:return Jl(k);case 278:return bs(k);case 277:return Qs(k);case 312:return $t(k.statements),hr();case 241:if(!U1(k.parent))return;case 268:return $t(k.statements);case 348:if(k.parent.kind===330)return mg(k);if(k.parent.kind!==329)break;case 355:let Vn=k,jr=Vn.isBracketed||Vn.typeExpression&&Vn.typeExpression.type.kind===323?16777220:4;return Ar(Vn,jr,0);case 353:case 345:case 347:return(p||(p=[])).push(k);case 346:return xe(k.typeExpression)}}function Ir(k){let ge=su(k),Xe=ge?98304:4,Mt=ge?13247:0;return mu(k,Xe|(k.questionToken?16777216:0),Mt)}function pi(k){return vs(k,2048,\"__type\")}function hr(){if(Mr(e),wl(e))No();else if(yf(e)){No();let k=e.symbol;Oe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=k}}function No(){vs(e,512,`\"${Yd(e.fileName)}\"`)}function Qs(k){if(!o.symbol||!o.symbol.exports)vs(k,111551,pe(k));else{let ge=px(k)?2097152:4,Xe=Oe(o.symbol.exports,o.symbol,k,ge,-1);k.isExportEquals&&IL(Xe,k)}}function bc(k){ct(k.modifiers)&&e.bindDiagnostics.push(ee(k,f.Modifiers_cannot_appear_here));let ge=Li(k.parent)?wl(k.parent)?k.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;ge?e.bindDiagnostics.push(ee(k,ge)):(e.symbol.globalExports=e.symbol.globalExports||Vo(),Oe(e.symbol.globalExports,e.symbol,k,2097152,2097152))}function bs(k){!o.symbol||!o.symbol.exports?vs(k,8388608,pe(k)):k.exportClause?j_(k.exportClause)&&(Aa(k.exportClause,k),Oe(o.symbol.exports,o.symbol,k.exportClause,2097152,2097152)):Oe(o.symbol.exports,o.symbol,k,8388608,0)}function Jl(k){k.name&&Ar(k,2097152,2097152)}function Za(k){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=k,e.externalModuleIndicator||No()),!0)}function Ec(k){if(!Za(k))return;let ge=nf(k.arguments[0],void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));ge&&Oe(ge.exports,ge,k,1048580,0)}function Du(k){if(!Za(k))return;let ge=nf(k.left.expression,void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));if(ge){let Mt=kL(k.right)&&(DS(k.left.expression)||Eh(k.left.expression))?2097152:1048580;Aa(k.left,k),Oe(ge.exports,ge,k.left,Mt,0)}}function pc(k){if(!Za(k))return;let ge=bL(k.right);if(fV(ge)||o===e&&_0(e,ge))return;if(ma(ge)&&ji(ge.properties,xu)){an(ge.properties,Nf);return}let Xe=px(k)?2097152:1049092,Mt=Oe(e.symbol.exports,e.symbol,k,Xe|67108864,0);IL(Mt,k)}function Nf(k){Oe(e.symbol.exports,e.symbol,k,69206016,0)}function Vd(k){if(x.assert(Jn(k)),Zn(k)&&Er(k.left)&&Ci(k.left.name)||Er(k)&&Ci(k.name))return;let Xe=lu(k,!1,!1);switch(Xe.kind){case 262:case 218:let Mt=Xe.symbol;if(Zn(Xe.parent)&&Xe.parent.operatorToken.kind===64){let Or=Xe.parent.left;UE(Or)&&ry(Or.expression)&&(Mt=tu(Or.expression.expression,s))}Mt&&Mt.valueDeclaration&&(Mt.members=Mt.members||Vo(),ty(k)?Se(k,Mt,Mt.members):Oe(Mt.members,Mt,k,67108868,0),Z(Mt,Mt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Vn=Xe.parent,jr=zo(Xe)?Vn.symbol.exports:Vn.symbol.members;ty(k)?Se(k,Vn.symbol,jr):Oe(jr,Vn.symbol,k,67108868,0,!0);break;case 312:if(ty(k))break;Xe.commonJsModuleIndicator?Oe(Xe.symbol.exports,Xe.symbol,k,1048580,0):Ar(k,1,111550);break;case 267:break;default:x.failBadSyntaxKind(Xe)}}function Se(k,ge,Xe){Oe(Xe,ge,k,4,0,!0,!0),At(k,ge)}function At(k,ge){ge&&(ge.assignmentDeclarationMembers||(ge.assignmentDeclarationMembers=new Map)).set(Fa(k),k)}function Ln(k){k.expression.kind===110?Vd(k):UE(k)&&k.parent.parent.kind===312&&(ry(k.expression)?Oo(k,k.parent):Bs(k))}function eo(k){Aa(k.left,k),Aa(k.right,k),Sc(k.left.expression,k.left,!1,!0)}function Po(k){let ge=tu(k.arguments[0].expression);ge&&ge.valueDeclaration&&Z(ge,ge.valueDeclaration,32),vl(k,ge,!0)}function Oo(k,ge){let Xe=k.expression,Mt=Xe.expression;Aa(Mt,Xe),Aa(Xe,k),Aa(k,ge),Sc(Mt,k,!0,!0)}function Cl(k){let ge=tu(k.arguments[0]),Xe=k.parent.parent.kind===312;ge=Ks(ge,k.arguments[0],Xe,!1,!1),vl(k,ge,!1)}function Kl(k){var ge;let Xe=tu(k.left.expression,l)||tu(k.left.expression,o);if(!Jn(k)&&!$te(Xe))return;let Mt=Tx(k.left);if(!(Me(Mt)&&((ge=r4(o,Mt.escapedText))==null?void 0:ge.flags)&2097152))if(Aa(k.left,k),Aa(k.right,k),Me(k.left.expression)&&o===e&&_0(e,k.left.expression))Du(k);else if(ty(k)){vs(k,67108868,\"__computed\");let Vn=Ks(Xe,k.left.expression,Nl(k.left),!1,!1);At(k,Vn)}else Bs(Fo(k.left,NS))}function Bs(k){x.assert(!Me(k)),Aa(k.expression,k),Sc(k.expression,k,!1,!1)}function Ks(k,ge,Xe,Mt,Vn){return k?.flags&2097152||(Xe&&!Mt&&(k=nf(ge,k,(zi,_a,ha)=>{if(_a)return Z(_a,zi,67110400),_a;{let pl=ha?ha.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Vo());return Oe(pl,ha,zi,67110400,110735)}})),Vn&&k&&k.valueDeclaration&&Z(k,k.valueDeclaration,32)),k}function vl(k,ge,Xe){if(!ge||!kp(ge))return;let Mt=Xe?ge.members||(ge.members=Vo()):ge.exports||(ge.exports=Vo()),Vn=0,jr=0;hs(LA(k))?(Vn=8192,jr=103359):Bo(k)&&CS(k)&&(ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"set\"})&&(Vn|=65540,jr|=78783),ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"get\"})&&(Vn|=32772,jr|=46015)),Vn===0&&(Vn=4,jr=0),Oe(Mt,ge,k,Vn|67108864,jr&-67108865)}function Nl(k){return Zn(k.parent)?fu(k.parent).parent.kind===312:k.parent.parent.kind===312}function Sc(k,ge,Xe,Mt){let Vn=tu(k,l)||tu(k,o),jr=Nl(ge);Vn=Ks(Vn,ge.expression,jr,Xe,Mt),vl(ge,Vn,Xe)}function kp(k){if(k.flags&1072)return!0;let ge=k.valueDeclaration;if(ge&&Bo(ge))return!!LA(ge);let Xe=ge?yi(ge)?ge.initializer:Zn(ge)?ge.right:Er(ge)&&Zn(ge.parent)?ge.parent.right:void 0:void 0;if(Xe=Xe&&bL(Xe),Xe){let Mt=ry(yi(ge)?ge.name:Zn(ge)?ge.left:ge);return!!Ib(Zn(Xe)&&(Xe.operatorToken.kind===57||Xe.operatorToken.kind===61)?Xe.right:Xe,Mt)}return!1}function fu(k){for(;Zn(k.parent);)k=k.parent;return k.parent}function tu(k,ge=o){if(Me(k))return r4(ge,k.escapedText);{let Xe=tu(k.expression);return Xe&&Xe.exports&&Xe.exports.get(tg(k))}}function nf(k,ge,Xe){if(_0(e,k))return e.symbol;if(Me(k))return Xe(k,tu(k),ge);{let Mt=nf(k.expression,ge,Xe),Vn=SL(k);return Ci(Vn)&&x.fail(\"unexpected PrivateIdentifier\"),Xe(Vn,Mt&&Mt.exports&&Mt.exports.get(tg(k)),Mt)}}function u_(k){!e.commonJsModuleIndicator&&Xd(k,!1)&&Za(k)}function X_(k){if(k.kind===263)Js(k,32,899503);else{let Vn=k.name?k.name.escapedText:\"__class\";vs(k,32,Vn),k.name&&de.add(k.name.escapedText)}let{symbol:ge}=k,Xe=ce(4194308,\"prototype\"),Mt=ge.exports.get(Xe.escapedName);Mt&&(k.name&&Aa(k.name,k),e.bindDiagnostics.push(ee(Mt.declarations[0],f.Duplicate_identifier_0,$s(Xe)))),ge.exports.set(Xe.escapedName,Xe),Xe.parent=ge}function fg(k){return BE(k)?Js(k,128,899967):Js(k,256,899327)}function fd(k){if(F&&Wl(k,k.name),!ko(k.name)){let ge=k.kind===260?k:k.parent.parent;Jn(k)&&jE(ge)&&!yb(k)&&!(gb(k)&32)?Ar(k,2097152,2097152):p9(k)?Js(k,2,111551):JE(k)?Ar(k,1,111551):Ar(k,1,111550)}}function mg(k){if(!(k.kind===348&&o.kind!==330)&&(F&&!(k.flags&33554432)&&Wl(k,k.name),ko(k.name)?vs(k,1,\"__\"+k.parent.parameters.indexOf(k)):Ar(k,1,111551),wu(k,k.parent))){let ge=k.parent.parent;Oe(ge.symbol.members,ge.symbol,k,4|(k.questionToken?16777216:0),0)}}function Ku(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),zs(k),F?(Ut(k),Js(k,16,110991)):Ar(k,16,110991)}function Lh(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&(k.flowNode=m),zs(k);let ge=k.name?k.name.escapedText:\"__function\";return vs(k,16,ge)}function mu(k,ge,Xe){return!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&pW(k)&&(k.flowNode=m),ty(k)?vs(k,ge,\"__computed\"):Ar(k,ge,Xe)}function Y(k){let ge=Rn(k,Xe=>Xe.parent&&lI(Xe.parent)&&Xe.parent.extendsType===Xe);return ge&&ge.parent}function Ye(k){if(Df(k.parent)){let ge=NW(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):Ar(k,262144,526824)}else if(k.parent.kind===195){let ge=Y(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):vs(k,262144,pe(k))}else Ar(k,262144,526824)}function xt(k){let ge=dg(k);return ge===1||ge===2&&n0(t)}function Nt(k){if(!(m.flags&1))return!1;if(m===fe&&(QM(k)&&k.kind!==242||k.kind===263||k.kind===267&&xt(k))&&(m=q,!t.allowUnreachableCode)){let Xe=Jne(t)&&!(k.flags&33554432)&&(!cl(k)||!!(Xg(k.declarationList)&7)||k.declarationList.declarations.some(Mt=>!!Mt.initializer));b3e(k,(Mt,Vn)=>ae(Xe,Mt,Vn,f.Unreachable_code_detected))}return!0}}function b3e(e,t){if(Di(e)&&oSe(e)&&Do(e.parent)){let{statements:r}=e.parent,i=NV(r,e);Z5(i,oSe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function oSe(e){return!Ql(e)&&!E3e(e)&&!kb(e)&&!(cl(e)&&!(Xg(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function E3e(e){switch(e.kind){case 264:case 265:return!0;case 267:return dg(e)!==1;case 266:return Wr(e,4096);default:return!1}}function _0(e,t){let r=0,i=mM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),DS(t)||Eh(t))return!0;if(Me(t)){let o=r4(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),lc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function kU(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(pW(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Lo(e.parent)||nl(e.parent)?0:34}return 0}function r4(e,t){var r,i,o,s;let l=(i=(r=Vr(e,L_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(qm(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var OU,wU,aSe,S3e=pt({\"src/compiler/binder.ts\"(){\"use strict\";wo(),mS(),OU=(e=>(e[e.NonInstantiated=0]=\"NonInstantiated\",e[e.Instantiated=1]=\"Instantiated\",e[e.ConstEnumOnly=2]=\"ConstEnumOnly\",e))(OU||{}),wU=(e=>(e[e.None=0]=\"None\",e[e.IsContainer=1]=\"IsContainer\",e[e.IsBlockScopedContainer=2]=\"IsBlockScopedContainer\",e[e.IsControlFlowContainer=4]=\"IsControlFlowContainer\",e[e.IsFunctionLike=8]=\"IsFunctionLike\",e[e.IsFunctionExpression=16]=\"IsFunctionExpression\",e[e.HasLocals=32]=\"HasLocals\",e[e.IsInterface=64]=\"IsInterface\",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]=\"IsObjectLiteralOrClassExpressionMethodOrAccessor\",e))(wU||{}),aSe=y3e()}});function hoe(e,t,r,i,o,s,l,d,p,h){return m;function m(v=()=>!0){let E=[],S=[];return{walkType:de=>{try{return A(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}},walkSymbol:de=>{try{return $(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}}};function A(de){if(!(!de||E[de.id]||(E[de.id]=de,$(de.symbol)))){if(de.flags&524288){let q=de,H=q.objectFlags;H&4&&C(de),H&32&&K(de),H&3&&oe(de),H&24&&W(q)}de.flags&262144&&R(de),de.flags&3145728&&L(de),de.flags&4194304&&G(de),de.flags&8388608&&U(de)}}function C(de){A(de.target),an(h(de),A)}function R(de){A(d(de))}function L(de){an(de.types,A)}function G(de){A(de.type)}function U(de){A(de.objectType),A(de.indexType),A(de.constraint)}function K(de){A(de.typeParameter),A(de.constraintType),A(de.templateType),A(de.modifiersType)}function F(de){let fe=t(de);fe&&A(fe.type),an(de.typeParameters,A);for(let q of de.parameters)$(q);A(e(de)),A(r(de))}function oe(de){W(de),an(de.typeParameters,A),an(i(de),A),A(de.thisType)}function W(de){let fe=o(de);for(let q of fe.indexInfos)A(q.keyType),A(q.type);for(let q of fe.callSignatures)F(q);for(let q of fe.constructSignatures)F(q);for(let q of fe.properties)$(q)}function $(de){if(!de)return!1;let fe=na(de);if(S[fe])return!1;if(S[fe]=de,!v(de))return!0;let q=s(de);return A(q),de.exports&&de.exports.forEach($),an(de.declarations,H=>{if(H.type&&H.type.kind===186){let ee=H.type,le=l(p(ee.exprName));$(le)}}),!1}}}var T3e=pt({\"src/compiler/symbolWalker.ts\"(){\"use strict\";wo()}});function sk({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Ic(o)?0:1:e===\"relative\"?0:e===\"non-relative\"?1:e===\"project-relative\"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return nR(r,i.fileName)?[3,2]:[2];if(zd(r)===1)return p===2?[2,1]:[1,2];let h=nR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:x.assertNever(p)}}};function l(d){if(o!==void 0){if(QE(o))return 2;if(Zs(o,\"/index\"))return 1}return nre(t,d??i.impliedNodeFormat,r,i)}}function A3e(e,t,r,i,o,s,l={}){let d=sSe(e,t,r,i,o,sk({},e,t,s),{},l);if(d!==s)return d}function i4(e,t,r,i,o,s={}){return sSe(e,t,r,i,o,sk({},e,t),{},s)}function I3e(e,t,r,i,o,s={}){let l=WU(t.fileName,i),d=mSe(l,r,i,o,s);return ml(d,p=>voe(p,l,t,i,e,o,!0,s.overrideImportMode))}function sSe(e,t,r,i,o,s,l,d={}){let p=WU(r,o),h=mSe(p,i,o,l,d);return ml(h,m=>voe(m,p,t,o,e,l,void 0,d.overrideImportMode))||uSe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function x3e(e,t,r,i,o={}){return lSe(e,t,r,i,o)[0]}function lSe(e,t,r,i,o={}){var s;let l=eW(e);if(!l)return je;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function cSe(e,t,r,i,o,s,l={}){return dSe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function dSe(e,t,r,i,o,s,l={},d){let p=!1,h=C3e(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,v,E,S]=lSe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!v)return{moduleSpecifiers:je,computedWithoutCache:p};p=!0,E||(E=_Se(WU(i.fileName,o),v.originalFileName,o));let A=R3e(E,r,i,o,s,l,d);return S?.set(i.path,v.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function R3e(e,t,r,i,o,s={},l){let d=WU(r.fileName,i),p=sk(o,t,r),h=an(e,C=>an(i.getFileIncludeReasons().get(ks(C.path,i.getCurrentDirectory(),d.getCanonicalFileName)),R=>{if(R.kind!==3||R.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Dae(r,R.index,t))return;let L=Ak(r,R.index).text;return p.relativePreference!==1||!op(L)?L:void 0}));if(h)return[h];let m=ct(e,C=>C.isInNodeModules),v,E,S,A;for(let C of e){let R=C.isInNodeModules?voe(C,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(v=pn(v,R),R&&C.isRedirect)return v;if(!R){let L=uSe(C.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,C.isRedirect);if(!L)continue;C.isRedirect?S=pn(S,L):RG(L)?Gb(L)?A=pn(A,L):E=pn(E,L):(l||!m||C.isInNodeModules)&&(A=pn(A,L))}}return E?.length?E:S?.length?S:v?.length?v:x.checkDefined(A)}function WU(e,t){e=Qi(e,t.getCurrentDirectory());let r=od(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Ur(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function uSe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:v,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),C=m&&M3e(m,e,v,S,A,r)||lk(ME(Gf(v,e,S)),A,r);if(!p&&!h&&!DF(r)||l===0)return d?void 0:C;let R=Qi(zW(r,i)||p,i.getCurrentDirectory()),L=ySe(e,R,S);if(!L)return d?void 0:C;let G=d?void 0:P3e(e,v,r,i,o),U=d||G===void 0?h&&hSe(L,h,A,i,r):void 0;if(d)return U;let K=G??(U===void 0&&p!==void 0?lk(L,A,r):U);if(!K)return C;if(l===1&&!op(K))return K;if(l===3&&!op(K)){let F=r.configFilePath?ks(Ur(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),oe=ks(e,F,S),W=Ui(E,F),$=Ui(oe,F);if(W&&!$||!W&&$)return K;let de=goe(i,Ur(oe)),fe=goe(i,v),q=!yx(i);return D3e(de,fe,q)?C:K}return bSe(K)||o4(C)<o4(K)?C:K}function D3e(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Xh(e,t,r)===0}function o4(e){let t=0;for(let r=Ui(e,\"./\")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function pSe(e,t){return zv(t.isRedirect,e.isRedirect)||$L(e.path,t.path)}function goe(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Vf(t,r=>e.fileExists(wr(r,\"package.json\"))?r:void 0)}function fSe(e,t,r,i,o){var s;let l=ev(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=ks(t,d,l),m=r.redirectTargetsMap.get(h)||je,E=[...p?[p]:je,t,...m].map(L=>Qi(L,d)),S=!ji(E,KC);if(!i){let L=an(E,G=>!(S&&KC(G))&&o(G,p===G));if(L)return L}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),C=Qi(t,d);return A&&Vf(Ur(C),L=>{let G=A.get(_c(ks(L,d,l)));if(G)return CG(e,L,l)?!1:an(E,U=>{if(!CG(U,L,l))return;let K=Gf(L,U,l);for(let F of G){let oe=jv(F,K),W=o(oe,U===p);if(S=!0,W)return W}})})||(i?an(E,L=>S&&KC(L)?void 0:o(L,L===p)):void 0)}function mSe(e,t,r,i,o={}){var s;let l=ks(e.importingSourceFileName,r.getCurrentDirectory(),ev(r)),d=ks(t,r.getCurrentDirectory(),ev(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=_Se(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function _Se(e,t,r){let i=new Map,o=!1;fSe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=Gb(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=_c(l),p;i.forEach(({path:m,isRedirect:v,isInNodeModules:E},S)=>{Ui(m,d)&&((p||(p=[])).push({path:S,isRedirect:v,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(pSe),s.push(...p));let h=Ur(l);if(h===l)break;l=h}if(i.size){let l=bo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(pSe),s.push(...l)}return s}function C3e(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>m9(l)&&(!zE(l)||!Ic(Ef(l.name))));if(i)return i.name.text;let s=Fi(e.declarations,l=>{var d,p,h,m;if(!Il(l))return;let v=C(l);if(!((d=v?.parent)!=null&&d.parent&&n_(v.parent)&&sd(v.parent.parent)&&Li(v.parent.parent.parent)))return;let E=(m=(h=(p=v.parent.parent.symbol.exports)==null?void 0:p.get(\"export=\"))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return v.parent.parent;function C(R){for(;R.flags&8;)R=R.parent;return R}})[0];if(s)return s.name.text}function hSe(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=Yo(d),h=p.indexOf(\"*\"),m=r.map(v=>({ending:v,value:lk(e,[v],o)}));if(og(p)&&m.push({ending:void 0,value:e}),h!==-1){let v=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=v.length+E.length&&Ui(A,v)&&Zs(A,E)&&s({ending:S,value:A})){let C=A.substring(v.length,A.length-E.length);if(!op(C))return KA(l,C)}}else if(ct(m,v=>v.ending!==0&&p===v.value)||ct(m,v=>v.ending===0&&p===v.value&&s(v)))return l}function s({ending:l,value:d}){return l!==0||d===lk(e,[l],o,i)}}function a4(e,t,r,i,o,s,l,d,p){if(typeof s==\"string\"){let h=!yx(t),m=()=>t.getCommonSourceDirectory(),v=p&&fH(r,e,h,m),E=p&&pH(r,e,h,m),S=Qi(wr(i,s),void 0),A=qA(r)?Yd(r)+boe(r,e):void 0;switch(d){case 0:if(A&&Xh(A,S,h)===0||Xh(r,S,h)===0||v&&Xh(v,S,h)===0||E&&Xh(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&Bf(S,A,h)){let G=Gf(S,A,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(Bf(S,r,h)){let G=Gf(S,r,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(v&&Bf(S,v,h)){let G=Gf(S,v,!1);return{moduleFileToTry:wr(o,G)}}if(E&&Bf(S,E,h)){let G=Gf(S,E,!1);return{moduleFileToTry:wr(o,G)}}break;case 2:let C=S.indexOf(\"*\"),R=S.slice(0,C),L=S.slice(C+1);if(A&&Ui(A,R,h)&&Zs(A,L,h)){let G=A.slice(R.length,A.length-L.length);return{moduleFileToTry:KA(o,G)}}if(Ui(r,R,h)&&Zs(r,L,h)){let G=r.slice(R.length,r.length-L.length);return{moduleFileToTry:KA(o,G)}}if(v&&Ui(v,R,h)&&Zs(v,L,h)){let G=v.slice(R.length,v.length-L.length);return{moduleFileToTry:KA(o,G)}}if(E&&Ui(E,R,h)&&Zs(E,L,h)){let G=E.slice(R.length,E.length-L.length);return{moduleFileToTry:KA(o,G)}}break}}else{if(Array.isArray(s))return an(s,h=>a4(e,t,r,i,o,h,l,d,p));if(typeof s==\"object\"&&s!==null){for(let h of fh(s))if(h===\"default\"||l.indexOf(h)>=0||ok(l,h)){let m=s[h],v=a4(e,t,r,i,o,m,l,d,p);if(v)return v}}}}function N3e(e,t,r,i,o,s,l){return typeof s==\"object\"&&s!==null&&!Array.isArray(s)&&t4(s)?an(fh(s),d=>{let p=Qi(wr(o,d),void 0),h=Zs(d,\"/\")?1:d.includes(\"*\")?2:0;return a4(e,t,r,i,p,s[d],l,h,!1)}):a4(e,t,r,i,o,s,l,0,!1)}function P3e(e,t,r,i,o){var s,l,d;if(!i.readFile||!DF(r))return;let p=goe(i,t);if(!p)return;let h=wr(p,\"package.json\"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(noe(m)||!i.fileExists(h))return;let v=m?.contents.packageJsonContent||KW(i.readFile(h)),E=v?.imports;if(!E)return;let S=hy(r,o);return(d=an(fh(E),A=>{if(!Ui(A,\"#\")||A===\"#\"||Ui(A,\"#/\"))return;let C=Zs(A,\"/\")?1:A.includes(\"*\")?2:0;return a4(r,i,e,p,A,E[A],S,C,!0)}))==null?void 0:d.moduleFileToTry}function M3e(e,t,r,i,o,s){let l=gSe(t,e,i);if(l===void 0)return;let d=gSe(r,e,i),p=ta(d,m=>nn(l,v=>ME(Gf(m,v,i)))),h=cB(p,$L);if(h)return lk(h,o,s)}function voe({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=yF(e);if(!m)return;let E=sk(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let K=m.packageRootIndex,F;for(;;){let{moduleFileToTry:oe,packageRootPath:W,blockedByExports:$,verbatimFromExports:de}=U(K);if(zd(l)!==1){if($)return;if(de)return oe}if(W){S=W,A=!0;break}if(F||(F=oe),K=e.indexOf(Os,K+1),K===-1){S=lk(F,E,l,s);break}}}if(t&&!A)return;let C=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),R=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(Ui(i,R)||C&&Ui(r(C),R)))return;let L=S.substring(m.topLevelPackageNameIndex+1),G=CN(L);return zd(l)===1&&G===L?void 0:G;function U(K){var F,oe;let W=e.substring(0,K),$=wr(W,\"package.json\"),de=e,fe=!1,q=(oe=(F=s.getPackageJsonInfoCache)==null?void 0:F.call(s))==null?void 0:oe.getPackageJsonInfo($);if($6(q)||q===void 0&&s.fileExists($)){let H=q?.contents.packageJsonContent||KW(s.readFile($)),ee=h||o.impliedNodeFormat;if(RF(l)){let ce=W.substring(m.topLevelPackageNameIndex+1),Z=CN(ce),pe=hy(l,ee),Ae=H?.exports?N3e(l,s,e,W,Z,H.exports,pe):void 0;if(Ae)return{...Ae,verbatimFromExports:!0};if(H?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let le=H?.typesVersions?X6(H.typesVersions):void 0;if(le){let ce=e.slice(W.length+1),Z=hSe(ce,le.paths,E,s,l);Z===void 0?fe=!0:de=wr(W,Z)}let Ee=H?.typings||H?.types||H?.main||\"index.js\";if(fo(Ee)&&!(fe&&CV(fF(le.paths),Ee))){let ce=ks(Ee,W,r),Z=r(de);if(Yd(ce)===Yd(Z))return{packageRootPath:W,moduleFileToTry:de};if(H?.type!==\"module\"&&!$l(Z,c2)&&Ui(Z,ce)&&Ur(Z)===fb(ce)&&Yd(Ll(Z))===\"index\")return{packageRootPath:W,moduleFileToTry:de}}}else{let H=r(de.substring(m.packageRootIndex+1));if(H===\"index.d.ts\"||H===\"index.js\"||H===\"index.ts\"||H===\"index.tsx\")return{moduleFileToTry:de,packageRootPath:W}}return{moduleFileToTry:de}}}function L3e(e,t){if(!e.fileExists)return;let r=Ff(GC({allowJs:!0},[{extension:\"node\",isMixedContent:!1},{extension:\"json\",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function gSe(e,t,r){return Fi(t,i=>{let o=ySe(e,i,r);return o!==void 0&&bSe(o)?void 0:o})}function lk(e,t,r,i){if($l(e,[\".json\",\".mjs\",\".cjs\"]))return e;let o=Yd(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if($l(e,[\".mts\",\".cts\"])&&l!==-1&&l<s)return e;if($l(e,[\".d.mts\",\".mts\",\".d.cts\",\".cts\"]))return o+yoe(e,r);if(!$l(e,[\".d.ts\"])&&$l(e,[\".ts\"])&&e.includes(\".d.\"))return vSe(e);switch(t[0]){case 0:let d=C1(o,\"/index\");return i&&d!==o&&L3e(i,d)?o:d;case 1:return o;case 2:return o+yoe(e,r);case 3:if(Yc(e)){let p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+yoe(e,r)}return e;default:return x.assertNever(t[0])}}function vSe(e){let t=Ll(e);if(!Zs(e,\".ts\")||!t.includes(\".d.\")||$l(t,[\".d.ts\"]))return;let r=QL(e,\".ts\"),i=r.substring(r.lastIndexOf(\".\"));return r.substring(0,r.indexOf(\".d.\"))+i}function yoe(e,t){return boe(e,t)??x.fail(`Extension ${jC(e)} is unsupported:: FileName:: ${e}`)}function boe(e,t){let r=og(e);switch(r){case\".ts\":case\".d.ts\":return\".js\";case\".tsx\":return t.jsx===1?\".jsx\":\".js\";case\".js\":case\".jsx\":case\".json\":return r;case\".d.mts\":case\".mts\":case\".mjs\":return\".mjs\";case\".d.cts\":case\".cts\":case\".cjs\":return\".cjs\";default:return}}function ySe(e,t,r){let i=AA(t,e,t,r,!1);return Ou(i)?void 0:i}function bSe(e){return Ui(e,\"..\")}var Eoe,Soe=pt({\"src/compiler/moduleSpecifiers.ts\"(){\"use strict\";wo(),Eoe=(e=>(e[e.Relative=0]=\"Relative\",e[e.NonRelative=1]=\"NonRelative\",e[e.Shortest=2]=\"Shortest\",e[e.ExternalNonRelative=3]=\"ExternalNonRelative\",e))(Eoe||{})}}),h0={};la(h0,{RelativePreference:()=>Eoe,countPathComponents:()=>o4,forEachFileNameOfModule:()=>fSe,getModuleSpecifier:()=>i4,getModuleSpecifierPreferences:()=>sk,getModuleSpecifiers:()=>cSe,getModuleSpecifiersWithCacheInfo:()=>dSe,getNodeModulesPackageName:()=>I3e,tryGetJSExtensionForFile:()=>boe,tryGetModuleSpecifiersFromCache:()=>x3e,tryGetRealFileNameForNonJsDeclarationFileName:()=>vSe,updateModuleSpecifier:()=>A3e});var Toe=pt({\"src/compiler/_namespaces/ts.moduleSpecifiers.ts\"(){\"use strict\";Soe()}});function k3e(){this.flags=0}function Fa(e){return e.id||(e.id=xoe,xoe++),e.id}function na(e){return e.id||(e.id=Ioe,Ioe++),e.id}function FU(e,t){let r=dg(e);return r===1||t&&r===2}function Aoe(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=wc.getSymbolConstructor(),p=wc.getTypeConstructor(),h=wc.getSignatureConstructor(),m=0,v=0,E=0,S=0,A=0,C=0,R,L,G=!1,U=Vo(),K=[1],F=e.getCompilerOptions(),oe=Wa(F),W=ld(F),$=!!F.experimentalDecorators,de=nN(F),fe=Xne(F),q=zS(F),H=Fd(F,\"strictNullChecks\"),ee=Fd(F,\"strictFunctionTypes\"),le=Fd(F,\"strictBindCallApply\"),Ee=Fd(F,\"strictPropertyInitialization\"),ce=Fd(F,\"noImplicitAny\"),Z=Fd(F,\"noImplicitThis\"),pe=Fd(F,\"useUnknownInCatchVariables\"),Ae=!!F.keyofStringsOnly,Oe=Ae?1:0,_e=F.suppressExcessPropertyErrors?0:8192,be=F.exactOptionalPropertyTypes,Te=plt(),De=Hut(),ft=h_(),he=Vo(),Le=Ra(4,\"undefined\");Le.declarations=[];var Ke=Ra(1536,\"globalThis\",8);Ke.exports=he,Ke.declarations=[],he.set(Ke.escapedName,Ke);var Dt=Ra(4,\"arguments\"),st=Ra(4,\"require\"),Ge=F.verbatimModuleSyntax?\"verbatimModuleSyntax\":\"isolatedModules\",ot=!F.verbatimModuleSyntax||!!F.importsNotUsedAsValues,Vt,jt,gn=0,On,en=0;let zt={getNodeCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,v),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:hu.size,identity:Cu.size,subtype:Y_.size,strictSubtype:rf.size}),isUndefinedSymbol:n=>n===Le,isArgumentsSymbol:n=>n===Dt,isUnknownSymbol:n=>n===tt,getMergedSymbol:Oa,getDiagnostics:V8e,getGlobalDiagnostics:sut,getRecursionIdentity:dQ,getUnmatchedProperties:ehe,getTypeOfSymbolAtLocation:(n,a)=>{let c=uo(a);return c?eot(n,c):it},getTypeOfSymbol:Yn,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=uo(n,ao);return c===void 0?x.fail(\"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.\"):(x.assert(wu(c,c.parent)),TP(c,Hs(a)))},getDeclaredTypeOfSymbol:Cs,getPropertiesOfType:Xa,getPropertyOfType:(n,a)=>Qo(n,Hs(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=uo(c);if(!u)return;let _=Hs(a),g=GQ(_,u);return g?zhe(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Fe(n,Hs(a)),getIndexInfoOfType:(n,a)=>Uh(n,a===0?Ie:gt),getIndexInfosOfType:Ud,getIndexInfosOfIndexSymbol:Kme,getSignaturesOfType:Co,getIndexTypeOfType:(n,a)=>yE(n,a===0?Ie:gt),getIndexType:n=>y_(n),getBaseTypes:ep,getBaseTypeOfLiteralType:wg,getWidenedType:gp,getTypeFromTypeNode:n=>{let a=uo(n,xi);return a?si(a):it},getParameterType:zm,getParameterIdentifierInfoAtPosition:Nst,getPromisedTypeOfPromise:kw,getAwaitedType:n=>pA(n),getReturnTypeOfSignature:Ha,isNullableType:h5,getNullableType:e5,getNonNullableType:Wg,getNonOptionalType:mQ,getTypeArguments:Ts,typeToTypeNode:ft.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ft.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ft.signatureToSignatureDeclaration,symbolToEntityName:ft.symbolToEntityName,symbolToExpression:ft.symbolToExpression,symbolToNode:ft.symbolToNode,symbolToTypeParameterDeclarations:ft.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ft.symbolToParameterDeclaration,typeParameterToDeclaration:ft.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=uo(n);return c?lut(c,a):[]},getSymbolAtLocation:n=>{let a=uo(n);return a?um(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=uo(n);return a?hut(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=uo(n);return a?gut(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=uo(n,Ed);return a?vut(a):void 0},getExportSymbolOfSymbol(n){return Oa(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=uo(n);return a?S1(a):it},getTypeOfAssignmentPattern:n=>{let a=uo(n,lC);return a&&gZ(a)||it},getPropertySymbolOfDestructuringAssignment:n=>{let a=uo(n,Me);return a?yut(a):void 0},signatureToString:(n,a,c,u)=>th(n,uo(a),c,u),typeToString:(n,a,c)=>Pn(n,uo(a),c),symbolToString:(n,a,c,u)=>ai(n,uo(a),c,u),typePredicateToString:(n,a,c)=>nh(n,uo(a),c),writeSignature:(n,a,c,u,_)=>th(n,uo(a),c,u,_),writeType:(n,a,c,u)=>Pn(n,uo(a),c,u),writeSymbol:(n,a,c,u,_)=>ai(n,uo(a),c,u,_),writeTypePredicate:(n,a,c,u)=>nh(n,uo(a),c,u),getAugmentedPropertiesOfType:Bge,getRootSymbols:Y8e,getSymbolOfExpando:YQ,getContextualType:(n,a)=>{let c=uo(n,lt);if(c)return a&4?Ki(c,()=>bu(c,a)):bu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=uo(n,Zh);return a?Ihe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=uo(n,WE);return c&&Ahe(c,a)},getContextualTypeForJsxAttribute:n=>{let a=uo(n,H8);return a&&dOe(a,void 0)},isContextSensitive:uf,getTypeOfPropertyOfContextualType:DE,getFullyQualifiedName:mp,getResolvedSignature:(n,a,c)=>gi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Wt,getResolvedSignatureForSignatureHelp:(n,a,c)=>ei(n,()=>gi(n,a,c,16)),getExpandedParameters:uLe,hasEffectiveRestParameter:dh,containsArgumentsReference:Hme,getConstantValue:n=>{let a=uo(n,tWe);return a?Gge(a):void 0},isValidPropertyAccess:(n,a)=>{let c=uo(n,$ee);return!!c&&zat(c,Hs(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=uo(n,Er);return!!u&&BOe(u,a,c)},getSignatureFromDeclaration:n=>{let a=uo(n,Lo);return a?kf(a):void 0},isImplementationOfOverload:n=>{let a=uo(n,Lo);return a?Z8e(a):void 0},getImmediateAliasedSymbol:Nhe,getAliasedSymbol:fc,getEmitResolver:Ev,getExportsOfModule:wT,getExportsAndPropertiesOfModule:eD,forEachExportAndPropertyOfModule:tD,getSymbolWalker:hoe(Stt,df,Ha,ep,Om,Yn,cm,iu,dp,Ts),getAmbientModules:kpt,getJsxIntrinsicTagNamesAt:vat,isOptionalParameter:n=>{let a=uo(n,ao);return a?ow(a):!1},tryGetMemberInModuleExports:(n,a)=>WT(Hs(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>nD(Hs(n),a),tryFindAmbientModule:n=>w$(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>w$(n,!1),getApparentType:ou,getUnionType:Br,isTypeAssignableTo:ea,createAnonymousType:cs,createSignature:jh,createSymbol:Ra,createIndexInfo:sh,getAnyType:()=>z,getStringType:()=>Ie,getStringLiteralType:yu,getNumberType:()=>gt,getNumberLiteralType:Wm,getBigIntType:()=>bt,createPromiseType:R5,createArrayType:_d,getElementTypeOfArrayType:Z7,getBooleanType:()=>ti,getFalseType:n=>n?Ot:dn,getTrueType:n=>n?An:Cn,getVoidType:()=>jn,getUndefinedType:()=>Re,getNullType:()=>se,getESSymbolType:()=>di,getNeverType:()=>Ar,getOptionalType:()=>j,getPromiseType:()=>W7(!1),getPromiseLikeType:()=>QLe(!1),getAsyncIterableType:()=>{let n=q$(!1);if(n!==ho)return n},isSymbolAccessible:vi,isArrayType:ff,isTupleType:ga,isArrayLikeType:Lv,isEmptyAnonymousObjectType:ch,isTypeInvalidDueToUnionDiscriminant:rtt,getExactOptionalProperties:Nrt,getAllPossiblePropertiesOfTypes:itt,getSuggestedSymbolForNonexistentProperty:Vhe,getSuggestionForNonexistentProperty:jhe,getSuggestedSymbolForNonexistentJSXAttribute:FOe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Uhe(n,Hs(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Oat(n,Hs(a),c),getSuggestedSymbolForNonexistentModule:jQ,getSuggestionForNonexistentExport:wat,getSuggestedSymbolForNonexistentClassMember:WOe,getBaseConstraintOfType:md,getDefaultFromTypeParameter:n=>n&&n.flags&262144?KT(n):void 0,resolveName(n,a,c,u){return Xs(a,Hs(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Ii(tE(n)),getJsxFragmentFactory:n=>{let a=jge(n);return a&&Ii(dp(a).escapedText)},getAccessibleSymbolChain:Wy,getTypePredicateOfSignature:df,resolveExternalModuleName:n=>{let a=uo(n,lt);return a&&jd(a,a,!0)},resolveExternalModuleSymbol:$u,tryGetThisTypeAt:(n,a,c)=>{let u=uo(n);return u&&bhe(u,a,c)},getTypeArgumentConstraint:n=>{let a=uo(n,xi);return a&&Ult(a)},getSuggestionDiagnostics:(n,a)=>{let c=uo(n,Li)||x.fail(\"Could not determine parsed source file.\");if(UC(c,F,e))return je;let u;try{return i=a,Fge(c),x.assert(!!(Fr(c).flags&1)),u=Pr(u,yT.getDiagnostics(c.fileName)),i8e(G8e(c),(_,g,T)=>{!X1(_)&&!B8e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||je}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(zt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:gr,isDeclarationVisible:Pm,isPropertyAccessible:qhe,getTypeOnlyAliasDeclaration:of,getMemberOverrideModifierStatus:Sdt,isTypeParameterPossiblyReferenced:U7,typeHasCallOrConstructSignatures:vZ};function Wt(n,a){let c=new Set,u=[];Ki(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,ei(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);return bo(c)}function ei(n,a){if(n=Rn(n,ZG),n){let c=[],u=[];for(;n;){let g=Fr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,e0(n)){let T=Pi(dr(n)),N=T.type;u.push([T,N]),T.type=void 0}n=Rn(n.parent,ZG)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function Ki(n,a){let c=Rn(n,WE);if(c){let _=n;do Fr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}G=!0;let u=ei(n,a);if(G=!1,c){let _=n;do Fr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function gi(n,a,c,u){let _=uo(n,WE);Vt=c;let g=_?xD(_,a,u):void 0;return Vt=void 0,g}var io=new Map,Gn=new Map,Nr=new Map,cr=new Map,Jt=new Map,Ue=new Map,Rt=new Map,mn=new Map,qr=new Map,ni=new Map,ki=new Map,so=new Map,Jo=new Map,Ea=new Map,ln=new Map,Tn=[],ke=new Map,nt=new Set,tt=Ra(4,\"unknown\"),yt=Ra(0,\"__resolving__\"),re=new Map,Ce=new Map,et=new Set,z=Fl(1,\"any\"),Je=Fl(1,\"any\",262144,\"auto\"),_t=Fl(1,\"any\",void 0,\"wildcard\"),ze=Fl(1,\"any\",void 0,\"blocked string\"),it=Fl(1,\"error\"),Ct=Fl(1,\"unresolved\"),on=Fl(1,\"any\",65536,\"non-inferrable\"),Qt=Fl(1,\"intrinsic\"),Zt=Fl(2,\"unknown\"),V=Fl(2,\"unknown\",void 0,\"non-null\"),Re=Fl(32768,\"undefined\"),St=H?Re:Fl(32768,\"undefined\",65536,\"widening\"),M=Fl(32768,\"undefined\",void 0,\"missing\"),te=be?M:Re,j=Fl(32768,\"undefined\",void 0,\"optional\"),se=Fl(65536,\"null\"),Pe=H?se:Fl(65536,\"null\",65536,\"widening\"),Ie=Fl(4,\"string\"),gt=Fl(8,\"number\"),bt=Fl(64,\"bigint\"),Ot=Fl(512,\"false\",void 0,\"fresh\"),dn=Fl(512,\"false\"),An=Fl(512,\"true\",void 0,\"fresh\"),Cn=Fl(512,\"true\");An.regularType=Cn,An.freshType=An,Cn.regularType=Cn,Cn.freshType=An,Ot.regularType=dn,Ot.freshType=Ot,dn.regularType=dn,dn.freshType=Ot;var ti=Br([dn,Cn]),di=Fl(4096,\"symbol\"),jn=Fl(16384,\"void\"),Ar=Fl(131072,\"never\"),Zi=Fl(131072,\"never\",262144,\"silent\"),_i=Fl(131072,\"never\",void 0,\"implicit\"),ui=Fl(131072,\"never\",void 0,\"unreachable\"),Mr=Fl(67108864,\"object\"),lo=Br([Ie,gt]),_n=Br([Ie,gt,di]),ms=Ae?Ie:_n,Dl=Br([gt,bt]),_o=Br([Ie,gt,ti,bt,se,Re]),Va=YT([\"\",\"\"],[gt]),vs=j7(n=>n.flags&262144?rrt(n):n,()=>\"(restrictive mapper)\"),Js=j7(n=>n.flags&262144?_t:n,()=>\"(permissive mapper)\"),Fc=Fl(131072,\"never\",void 0,\"unique literal\"),$i=j7(n=>n.flags&262144?Fc:n,()=>\"(unique literal mapper)\"),Uo,zc=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!0),n),()=>\"(unmeasurable reporter)\"),ts=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!1),n),()=>\"(unreliable reporter)\"),ua=cs(void 0,U,je,je,je),Us=cs(void 0,U,je,je,je);Us.objectFlags|=2048;var tf=Ra(2048,\"__type\");tf.members=Vo();var Wl=cs(tf,U,je,je,je),il=cs(void 0,U,je,je,je),zs=H?Br([Re,se,il]):Zt,ho=cs(void 0,U,je,je,je);ho.instantiations=new Map;var Ut=cs(void 0,U,je,je,je);Ut.objectFlags|=262144;var ys=cs(void 0,U,je,je,je),Pc=cs(void 0,U,je,je,je),Bc=cs(void 0,U,je,je,je),Ju=Bp(),ls=Bp();ls.constraint=Ju;var tc=Bp(),ae=Bp(),X=Bp();X.constraint=ae;var xe=O7(1,\"<<unresolved>>\",0,z),dt=jh(void 0,void 0,void 0,je,z,void 0,0,0),$t=jh(void 0,void 0,void 0,je,it,void 0,0,0),sr=jh(void 0,void 0,void 0,je,z,void 0,0,0),tr=jh(void 0,void 0,void 0,je,Zi,void 0,0,0),Ir=sh(gt,Ie,!0),pi=new Map,hr={get yieldType(){return x.fail(\"Not supported\")},get returnType(){return x.fail(\"Not supported\")},get nextType(){return x.fail(\"Not supported\")}},No=wv(z,z,z),Qs=wv(z,z,Zt),bc=wv(Ar,z,Re),bs={iterableCacheKey:\"iterationTypesOfAsyncIterable\",iteratorCacheKey:\"iterationTypesOfAsyncIterator\",iteratorSymbolName:\"asyncIterator\",getGlobalIteratorType:Wtt,getGlobalIterableType:q$,getGlobalIterableIteratorType:Ftt,getGlobalGeneratorType:ztt,resolveIterationType:(n,a)=>pA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Jl={iterableCacheKey:\"iterationTypesOfIterable\",iteratorCacheKey:\"iterationTypesOfIterator\",iteratorSymbolName:\"iterator\",getGlobalIteratorType:Btt,getGlobalIterableType:a_e,getGlobalIterableIteratorType:Gtt,getGlobalGeneratorType:Vtt,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Za,Ec=new Map,Du=[],pc,Nf,Vd,Se,At,Ln,eo,Po,Oo,Cl,Kl,Bs,Ks,vl,Nl,Sc,kp,fu,tu,nf,u_,X_,fg,fd,mg,Ku,Lh,mu,Y,Ye,xt,Nt,k,ge,Xe,Mt,Vn,jr,Or,zi,_a,ha,pl,Gc,nc,Xu,_u,Ay,ja,em,tm,Ri,_g,yv,nm,D0,C0,Op=new Map,p_=0,wp=0,hg=0,Ne=!1,Ve=0,Tt,Pt,rn,wn=[],tn=[],Wn=[],Qr=0,Kn=[],Gr=[],Qn=0,Mo=yu(\"\"),xa=Wm(0),xd=$$({negative:!1,base10Value:\"0\"}),Vc=[],gg=[],$b=[],UI=0,Qb=!1,GR=0,VR=10,jR=[],gT=[],N0=[],HI=[],UR=[],qI=[],JI=[],KI=[],XI=[],vT=[],YI=[],P0=[],M0=[],Iy=[],xy=[],kh=[],Zb=[],La=hx(),yT=hx(),HR=eh(),eE,vg,Y_=new Map,rf=new Map,hu=new Map,Yu=new Map,Cu=new Map,bv=new Map,bT=Vo();bT.set(Le.escapedName,Le);var qR=[[\".mts\",\".mjs\"],[\".ts\",\".js\"],[\".cts\",\".cjs\"],[\".mjs\",\".mjs\"],[\".js\",\".js\"],[\".cjs\",\".cjs\"],[\".tsx\",F.jsx===1?\".jsx\":\".js\"],[\".jsx\",\".jsx\"],[\".json\",\".json\"]];return qut(),zt;function $I(n){return n?ln.get(n):void 0}function Ry(n,a){return n&&ln.set(n,a),a}function tE(n){if(n){let a=Nn(n);if(a)if(fI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get(\"jsxfrag\");if(c){let _=oo(c)?c[0]:c;if(a.localJsxFragmentFactory=gI(_.arguments.factory,oe),He(a.localJsxFragmentFactory,Xl,Su),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=dp(a.localJsxFragmentFactory).escapedText}let u=jge(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=dp(u).escapedText}else{let c=QI(a);if(c)return a.localJsxNamespace=c}}return eE||(eE=\"React\",F.jsxFactory?(vg=gI(F.jsxFactory,oe),He(vg,Xl),vg&&(eE=dp(vg).escapedText)):F.reactNamespace&&(eE=Hs(F.reactNamespace))),vg||(vg=P.createQualifiedName(P.createIdentifier(Ii(eE)),\"createElement\")),eE}function QI(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get(\"jsx\");if(a){let c=oo(a)?a[0]:a;if(n.localJsxFactory=gI(c.arguments.factory,oe),He(n.localJsxFactory,Xl,Su),n.localJsxFactory)return n.localJsxNamespace=dp(n.localJsxFactory).escapedText}}function Xl(n){return F_(n,-1,-1),un(n,Xl,void 0)}function Ev(n,a){return V8e(n,a),De}function ZI(n,a,...c){let u=n?vr(n,a,...c):bl(a,...c),_=La.lookup(u);return _||(La.add(u),u)}function xm(n,a,c,...u){let _=we(a,c,...u);return _.skippedOn=n,_}function ET(n,a,...c){return n?vr(n,a,...c):bl(a,...c)}function we(n,a,...c){let u=ET(n,a,...c);return La.add(u),u}function Rm(n,a){n?La.add(a):yT.add({...a,category:2})}function jc(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Nn(a);Rm(n,\"message\"in c?Rc(_,0,0,c,...u):T9(_,c));return}Rm(n,\"message\"in c?vr(a,c,...u):eg(Nn(a),a,c))}function nE(n,a,c,...u){let _=we(n,c,...u);if(a){let g=vr(n,f.Did_you_forget_to_use_await);fa(_,g)}return _}function e1(n,a){let c=Array.isArray(n)?an(n,zG):zG(n);return c&&fa(a,vr(c,f.The_declaration_was_marked_as_deprecated_here)),yT.add(a),a}function Dy(n){let a=nu(n);return a&&yn(n.declarations)>1?a.flags&64?ct(n.declarations,Sv):ji(n.declarations,Sv):!!n.valueDeclaration&&Sv(n.valueDeclaration)||yn(n.declarations)&&ji(n.declarations,Sv)}function Sv(n){return!!(lS(n)&536870912)}function Tv(n,a,c){let u=vr(n,f._0_is_deprecated,c);return e1(a,u)}function SP(n,a,c,u){let _=c?vr(n,f.The_signature_0_of_1_is_deprecated,u,c):vr(n,f._0_is_deprecated,u);return e1(a,_)}function Ra(n,a,c){v++;let u=new d(n|33554432,a);return u.links=new Coe,u.links.checkFlags=c||0,u}function Dm(n,a){let c=Ra(1,n);return c.links.type=a,c}function ST(n,a){let c=Ra(4,n);return c.links.type=a,c}function TT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function rE(n,a){a.mergeId||(a.mergeId=Roe,Roe++),jR[a.mergeId]=n}function AT(n){let a=Ra(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),rE(a,n),a}function Pf(n,a,c=!1){if(!(n.flags&TT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=yl(n);if(_===tt)return a;n=AT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&IL(n,a.valueDeclaration),Pr(n.declarations,a.declarations),a.members&&(n.members||(n.members=Vo()),Cm(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=Vo()),Cm(n.exports,a.exports,c)),c||rE(n,a)}else if(n.flags&1024)n!==Ke&&we(a.declarations&&mo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ai(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,N=a.declarations&&Nn(a.declarations[0]),O=n.declarations&&Nn(n.declarations[0]),B=nL(N,F.checkJs),Q=nL(O,F.checkJs),me=ai(a);if(N&&O&&Za&&!_&&N!==O){let ue=Xh(N.path,O.path)===-1?N:O,We=ue===N?O:N,at=FD(Za,`${ue.path}|${We.path}`,()=>({firstFile:ue,secondFile:We,conflictingSymbols:new Map})),ht=FD(at.conflictingSymbols,me,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));B||u(ht.firstFileLocations,a),Q||u(ht.secondFileLocations,n)}else B||Mf(a,T,me,n),Q||Mf(n,T,me,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)jp(_,T)}}function Mf(n,a,c,u){an(n.declarations,_=>{yg(_,a,c,u.declarations)})}function yg(n,a,c,u){let _=(Ib(n,!1)?L9(n):mo(n))||n,g=ZI(_,a,c);for(let T of u||je){let N=(Ib(T,!1)?L9(T):mo(T))||T;if(N===_)continue;g.relatedInformation=g.relatedInformation||[];let O=vr(N,f._0_was_also_declared_here,c),B=vr(N,f.and_here);yn(g.relatedInformation)>=5||ct(g.relatedInformation,Q=>zC(Q,B)===0||zC(Q,O)===0)||fa(g,yn(g.relatedInformation)?B:O)}}function t1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=Vo();return Cm(c,n),Cm(c,a),c}function Cm(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?Pf(g,u,c):Oa(u))})}function JR(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){x.assert(_.symbol.declarations.length>1);return}if(Jm(_))Cm(he,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=Tg(n,n,g,!0);if(!T)return;if(T=$u(T),T.flags&1920)if(ct(Nf,N=>T===N.symbol)){let N=Pf(_.symbol,T,!0);Vd||(Vd=new Map),Vd.set(n.text,N)}else{if((c=T.exports)!=null&&c.get(\"__export\")&&((u=_.symbol.exports)!=null&&u.size)){let N=Dme(T,\"resolvedExports\");for(let[O,B]of bo(_.symbol.exports.entries()))N.has(O)&&!T.exports.has(O)&&Pf(N.get(O),B)}Pf(T,_.symbol)}else we(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function L0(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?an(T.declarations,u(Ii(g),c)):n.set(g,_)});function u(_,g){return T=>La.add(vr(T,g,_))}}function Pi(n){if(n.flags&33554432)return n.links;let a=na(n);return gT[a]??(gT[a]=new Coe)}function Fr(n){let a=Fa(n);return N0[a]||(N0[a]=new k3e)}function $_(n){return n.kind===312&&!sp(n)}function gu(n,a,c){if(c){let u=Oa(n.get(a));if(u&&(x.assert((tl(u)&1)===0,\"Should never get an instantiated symbol here.\"),u.flags&c||u.flags&2097152&&Qc(u)&c))return u}}function TP(n,a){let c=n.parent,u=n.parent.parent,_=gu(c.locals,a,111551),g=gu(Ky(u.symbol),a,111551);return _&&g?[_,g]:x.fail(\"There should exist two symbols, one as property declaration and one as parameter declaration\")}function bg(n,a){let c=Nn(n),u=Nn(a),_=w_(n);if(c!==u){if(W&&(c.externalModuleIndicator||u.externalModuleIndicator)||!ss(F)||OS(a)||n.flags&33554432||T(a,n))return!0;let O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(u)}if(a.flags&16777216||OS(a)||she(a))return!0;if(n.pos<=a.pos&&!(xo(n)&&fL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let O=Db(a,208);return O?Rn(O,Na)!==Rn(n,Na)||n.pos<O.pos:bg(Db(n,260),a)}else{if(n.kind===260)return!g(n,a);if(Kr(n))return!Rn(a,O=>Pa(O)&&O.parent.parent===n);if(xo(n))return!N(n,a,!1);if(wu(n,n.parent))return!(fe&&Oc(n)===Oc(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return fe&&Oc(n)&&(xo(n)||wu(n,n.parent))?!N(n,a,!0):!0;return!1;function g(O,B){switch(O.parent.parent.kind){case 243:case 248:case 250:if(O0(B,O,_))return!0;break}let Q=O.parent.parent;return H1(Q)&&O0(B,Q.expression,_)}function T(O,B){return!!Rn(O,Q=>{if(Q===_)return\"quit\";if(Lo(Q))return!0;if(nl(Q))return B.pos<O.pos;let me=Vr(Q.parent,xo);if(me&&me.initializer===Q){if(zo(Q.parent)){if(B.kind===174)return!0;if(xo(B)&&Oc(O)===Oc(B)){let We=B.name;if(Me(We)||Ci(We)){let at=Yn(dr(B)),ht=Cr(B.parent.members,nl);if(Ddt(We,at,ht,B.parent.pos,Q.pos))return!0}}}else if(!(B.kind===172&&!zo(B))||Oc(O)!==Oc(B))return!0}return!1})}function N(O,B,Q){return B.end>O.end?!1:Rn(B,ue=>{if(ue===O)return\"quit\";switch(ue.kind){case 219:return!0;case 172:return Q&&(xo(O)&&ue.parent===O.parent||wu(O,O.parent)&&ue.parent===O.parent.parent)?\"quit\":!0;case 241:switch(ue.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function AP(n,a,c){let u=Wa(F),_=a;if(ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let N=Fr(_);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=an(_.parameters,g)||!1),!N.declarationRequiresScopeChange}return!1;function g(N){return T(N.name)||!!N.initializer&&T(N.initializer)}function T(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(N.name);case 172:return jl(N)?!fe:T(N.name);default:return jG(N)||yd(N)?u<7:Na(N)&&N.dotDotDotToken&&Rf(N.parent)?u<4:xi(N)?!1:Ao(N,T)||!1}}}function Cy(n){return ES(n)&&Qh(n.type)||gN(n)&&Qh(n.typeExpression)}function Xs(n,a,c,u,_,g,T=!1,N=!0){return pp(n,a,c,u,_,g,T,N,gu)}function pp(n,a,c,u,_,g,T,N,O){var B,Q,me;let ue=n,We,at,ht,qt,Xt,Hn=!1,En=n,Kt,In=!1;e:for(;n;){if(a===\"const\"&&Cy(n))return;if($M(n)&&at&&n.name===at&&(at=n,n=n.parent),L_(n)&&n.locals&&!$_(n)&&(We=O(n.locals,a,c))){let zn=!0;if(Lo(n)&&at&&at!==n.body?(c&We.flags&788968&&at.kind!==327&&(zn=We.flags&262144?at===n.type||at.kind===169||at.kind===348||at.kind===349||at.kind===168:!1),c&We.flags&3&&(AP(We,n,at)?zn=!1:We.flags&1&&(zn=at.kind===169||at===n.type&&!!Rn(We.valueDeclaration,ao)))):n.kind===194&&(zn=at===n.trueType),zn)break e;We=void 0}switch(Hn=Hn||Lf(n,at),n.kind){case 312:if(!sp(n))break;In=!0;case 267:let zn=((B=dr(n))==null?void 0:B.exports)||U;if(n.kind===312||Il(n)&&n.flags&33554432&&!Jm(n)){if(We=zn.get(\"default\")){let co=Ex(We);if(co&&We.flags&c&&co.escapedName===a)break e;We=void 0}let Bn=zn.get(a);if(Bn&&Bn.flags===2097152&&(Vs(Bn,281)||Vs(Bn,280)))break}if(a!==\"default\"&&(We=O(zn,a,c&2623475)))if(Li(n)&&n.commonJsModuleIndicator&&!((Q=We.declarations)!=null&&Q.some(bf)))We=void 0;else break e;break;case 266:if(We=O(((me=dr(n))==null?void 0:me.exports)||U,a,c&8)){u&&xf(F)&&!(n.flags&33554432)&&Nn(n)!==Nn(We.valueDeclaration)&&we(En,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ii(a),Ge,`${Ii(Fp(n).escapedName)}.${Ii(a)}`);break e}break;case 172:if(!zo(n)){let Bn=Ag(n.parent);Bn&&Bn.locals&&O(Bn.locals,a,c&111551)&&(x.assertNode(n,xo),qt=n)}break;case 263:case 231:case 264:if(We=O(dr(n).members||U,a,c&788968)){if(!Eg(We,n)){We=void 0;break}if(at&&zo(at)){u&&we(En,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Dc(n)&&c&32){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 233:if(at===n.expression&&n.parent.token===96){let Bn=n.parent.parent;if(Kr(Bn)&&(We=O(dr(Bn).members,a,c&788968))){u&&we(En,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Kt=n.parent.parent,(Kr(Kt)||Kt.kind===264)&&(We=O(dr(Kt).members,a,c&788968))){u&&we(En,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Wa(F)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a===\"arguments\"){We=Dt;break e}break;case 218:if(c&3&&a===\"arguments\"){We=Dt;break e}if(c&16){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(xc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let Mn=ux(n);Mn&&(n=Mn.parent);break;case 169:at&&(at===n.initializer||at===n.name&&ko(at))&&(Xt||(Xt=n));break;case 208:at&&(at===n.initializer||at===n.name&&ko(at))&&JE(n)&&!Xt&&(Xt=n);break;case 195:if(c&262144){let Bn=n.typeParameter.name;if(Bn&&a===Bn.escapedText){We=n.typeParameter.symbol;break e}}break;case 281:at&&at===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Ny(n)&&(ht=n),at=n,n=Df(n)?NW(n)||n.parent:(Tm(n)||T6(n))&&xb(n)||n.parent}if(g&&We&&(!ht||We!==ht.symbol)&&(We.isReferenced|=c),!We){if(at&&(x.assertNode(at,Li),at.commonJsModuleIndicator&&a===\"exports\"&&c&at.symbol.flags))return at.symbol;T||(We=O(he,a,c))}if(!We&&ue&&Jn(ue)&&ue.parent&&Xd(ue.parent,!1))return st;function Sn(){return qt&&!fe?(we(En,En&&qt.type&&wM(qt.type,En.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,is(qt.name),rm(_)),!0):!1}if(We){if(u&&Sn())return}else{u&&r(()=>{if(!En||En.parent.kind!==331&&!k0(En,a,_)&&!Sn()&&!IT(En)&&!n1(En,a,c)&&!Av(En,a)&&!xT(En,a,c)&&!KR(En,a,c)&&!Wh(En,a,c)){let zn,Mn;if(_&&(Mn=Lat(_),Mn&&we(En,u,rm(_),Mn)),!Mn&&N&&GR<VR&&(zn=Uhe(ue,a,c),zn?.valueDeclaration&&sd(zn.valueDeclaration)&&Jm(zn.valueDeclaration)&&(zn=void 0),zn)){let co=ai(zn),no=Ghe(ue,zn,!1),Eo=c===1920||_&&typeof _!=\"string\"&&xs(_)?f.Cannot_find_namespace_0_Did_you_mean_1:no?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,Yi=ET(En,Eo,rm(_),co);Rm(!no,Yi),zn.valueDeclaration&&fa(Yi,vr(zn.valueDeclaration,f._0_is_declared_here,co))}!zn&&!Mn&&_&&we(En,u,rm(_)),GR++}});return}return u&&r(()=>{var zn;if(En&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Mn=zp(We);(Mn.flags&2||Mn.flags&32||Mn.flags&384)&&Ds(Mn,En)}if(We&&In&&(c&111551)===111551&&!(ue.flags&16777216)){let Mn=Oa(We);yn(Mn.declarations)&&ji(Mn.declarations,Bn=>D2(Bn)||Li(Bn)&&!!Bn.symbol.globalExports)&&jc(!F.allowUmdGlobalAccess,En,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ii(a))}if(We&&Xt&&!Hn&&(c&111551)===111551){let Mn=Oa(L$(We)),Bn=Ym(Xt);Mn===dr(Xt)?we(En,f.Parameter_0_cannot_reference_itself,is(Xt.name)):Mn.valueDeclaration&&Mn.valueDeclaration.pos>Xt.pos&&Bn.parent.locals&&O(Bn.parent.locals,Mn.escapedName,c)===Mn&&we(En,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,is(Xt.name),is(En))}if(We&&En&&c&111551&&We.flags&2097152&&!(We.flags&111551)&&!Pb(En)){let Mn=of(We,111551);if(Mn){let Bn=Mn.kind===281||Mn.kind===278||Mn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,co=Ii(a);Oh(we(En,Bn,co),Mn,co)}}if(F.isolatedModules&&We&&In&&(c&111551)===111551){let Bn=O(he,a,c)===We&&Li(at)&&at.locals&&O(at.locals,a,-111552);if(Bn){let co=(zn=Bn.declarations)==null?void 0:zn.find(no=>no.kind===276||no.kind===273||no.kind===274||no.kind===271);co&&!UM(co)&&we(co,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ii(a))}}}),We}function Oh(n,a,c){return a?fa(n,vr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function Lf(n,a){return n.kind!==219&&n.kind!==218?oI(n)||(hs(n)||n.kind===172&&!zo(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Wr(n,1024)?!0:!RS(n)}function Ny(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function rm(n){return fo(n)?Ii(n):is(n)}function Eg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(Df(c.parent)?PS(c.parent):c.parent)===a)return!(Df(c.parent)&&Dr(c.parent.parent.tags,bf))}return!1}function k0(n,a,c){if(!Me(n)||n.escapedText!==a||j8e(n)||OS(n))return!1;let u=lu(n,!1,!1),_=u;for(;_;){if(Kr(_.parent)){let g=dr(_.parent);if(!g)break;let T=Yn(g);if(Qo(T,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,rm(c),ai(g)),!0;if(_===u&&!zo(_)){let N=Cs(g).thisType;if(Qo(N,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,rm(c)),!0}}_=_.parent}return!1}function IT(n){let a=wh(n);return a&&Es(a,64,!0)?(we(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Vl(a)),!0):!1}function wh(n){switch(n.kind){case 80:case 211:return n.parent?wh(n.parent):void 0;case 233:if(gl(n.expression))return n.expression;default:return}}function n1(n,a,c){let u=1920|(Jn(n)?111551:0);if(c===u){let _=yl(Xs(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if($d(g)){x.assert(g.left===n,\"Should only be resolving left side of qualified name as a namespace\");let T=g.right.escapedText;if(Qo(Cs(_),T))return we(g,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ii(a),Ii(T)),!0}return we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ii(a)),!0}}return!1}function Wh(n,a,c){if(c&788584){let u=yl(Xs(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return we(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ii(a)),!0}return!1}function f_(n){return n===\"any\"||n===\"string\"||n===\"number\"||n===\"boolean\"||n===\"never\"||n===\"unknown\"}function Av(n,a){return f_(a)&&n.parent.kind===281?(we(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function KR(n,a,c){if(c&111551){if(f_(a)){let g=n.parent.parent;if(g&&g.parent&&xp(g)){let T=g.token,N=g.parent.kind;N===264&&T===96?we(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ii(a)):N===263&&T===96?we(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ii(a)):N===263&&T===119&&we(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ii(a))}else we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ii(a));return!0}let u=yl(Xs(n,a,788544,void 0,void 0,!1)),_=u&&Qc(u);if(u&&_!==void 0&&!(_&111551)){let g=Ii(a);return YR(a)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):XR(n,u)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g===\"K\"?\"P\":\"K\"):we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function XR(n,a){let c=Rn(n.parent,u=>Pa(u)||Gu(u)?!1:ju(u)||\"quit\");if(c&&c.members.length===1){let u=Cs(a);return!!(u.flags&1048576)&&N5(u,384,!0)}return!1}function YR(n){switch(n){case\"Promise\":case\"Symbol\":case\"Map\":case\"WeakMap\":case\"Set\":case\"WeakSet\":return!0}return!1}function xT(n,a,c){if(c&111127){if(yl(Xs(n,a,1024,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_value,Ii(a)),!0}else if(c&788544&&yl(Xs(n,a,1536,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_type,Ii(a)),!0;return!1}function Ds(n,a){var c;if(x.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>p9(_)||Kr(_)||_.kind===266);if(u===void 0)return x.fail(\"checkResolvedBlockScopedVariable could not find block-scoped declaration\");if(!(u.flags&33554432)&&!bg(u,a)){let _,g=is(mo(u));n.flags&2?_=we(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=we(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=we(a,f.Enum_0_used_before_its_declaration,g):(x.assert(!!(n.flags&128)),xf(F)&&(_=we(a,f.Enum_0_used_before_its_declaration,g))),_&&fa(_,vr(u,f._0_is_declared_here,g))}}function O0(n,a,c){return!!a&&!!Rn(n,u=>u===a||(u===c||Lo(u)&&(!RS(u)||gc(u)&3)?\"quit\":!1))}function RT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function im(n){return n.declarations&&hA(n.declarations,Py)}function Py(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&px(n)||Zn(n)&&hl(n)===2&&px(n)||us(n)&&Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&$R(n.parent.right)||n.kind===304||n.kind===303&&$R(n.initializer)||n.kind===260&&jE(n)||n.kind===208&&jE(n.parent.parent)}function $R(n){return kL(n)||ps(n)&&T_(n)}function DT(n,a){let c=Ly(n);if(c){let _=Tx(c.expression).arguments[0];return Me(c.name)?yl(Qo(PLe(_),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===283){let _=jd(n,N9(n)||gC(n)),g=$u(_);return Nu(n,_,g,!1),g}let u=i1(n.moduleReference,a);return IP(n,u),u}function IP(n,a){if(Nu(n,void 0,a,!1)&&!n.isTypeOnly){let c=of(dr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?\"*\":Ii(c.name.escapedText);fa(we(n.moduleReference,_),vr(c,g,T))}}function nr(n,a,c,u){let _=n.exports.get(\"export=\"),g=_?Qo(Yn(_),a,!0):n.exports.get(a),T=yl(g,u);return Nu(c,g,T,!1),T}function Mc(n){return dl(n)&&!n.isExportEquals||Wr(n,2048)||Ed(n)||j_(n)}function Oi(n){return Ga(n)?e.getModeForUsageLocation(Nn(n),n):void 0}function Wp(n,a){return n===99&&a===1}function Iv(n){return Oi(n)===99&&Zs(n.text,\".json\")}function m_(n,a,c,u){let _=n&&Oi(u);if(n&&_!==void 0&&100<=W&&W<=199){let g=Wp(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=nr(a,\"default\",void 0,!0);return!(g&&ct(g.declarations,Mc)||nr(a,Hs(\"__esModule\"),void 0,c))}return wd(n)?typeof n.externalModuleIndicator!=\"object\"&&!nr(a,Hs(\"__esModule\"),void 0,c):xv(a)}function Xn(n,a){let c=jd(n,n.parent.moduleSpecifier);if(c)return CT(c,n,a)}function CT(n,a,c){var u;let _;pC(n)?_=n:_=nr(n,\"default\",a,c);let g=(u=n.declarations)==null?void 0:u.find(Li),T=iE(a);if(!T)return _;let N=Iv(T),O=m_(g,n,c,T);if(!_&&!O&&!N)if(xv(n)&&!q){let B=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\",me=n.exports.get(\"export=\").valueDeclaration,ue=we(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,ai(n),B);me&&fa(ue,vr(me,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,B))}else V_(a)?Tc(n,a):NT(n,n,a,RA(a)&&a.propertyName||a.name);else if(O||N){let B=$u(n,c)||yl(n,c);return Nu(a,n,B,!1),B}return Nu(a,_,void 0,!1),_}function iE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return U_(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return x.assertNever(n)}}function Tc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))we(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ai(n),ai(a.symbol));else{let g=we(a.name,f.Module_0_has_no_default_export,ai(n)),T=(u=n.exports)==null?void 0:u.get(\"__export\");if(T){let N=(_=T.declarations)==null?void 0:_.find(O=>{var B,Q;return!!(xl(O)&&O.moduleSpecifier&&((Q=(B=jd(O,O.moduleSpecifier))==null?void 0:B.exports)!=null&&Q.has(\"default\")))});N&&fa(g,vr(N,f.export_Asterisk_does_not_re_export_a_default))}}}function Q_(n,a){let c=n.parent.parent.moduleSpecifier,u=jd(n,c),_=Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function om(n,a){let c=n.parent.moduleSpecifier,u=c&&jd(n,c),_=c&&Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function w0(n,a){if(n===tt&&a===tt)return tt;if(n.flags&790504)return n;let c=Ra(n.flags|a.flags,n.escapedName);return x.assert(n.declarations||a.declarations),c.declarations=NE(ro(n.declarations,a.declarations),Hg),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function W0(n,a,c,u){var _;if(n.flags&1536){let g=Qu(n).get(a.escapedText),T=yl(g,u),N=(_=Pi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return Nu(c,g,T,!1,N,a.escapedText),T}}function My(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return yl(Qo(si(c),a))}}function Sg(n,a,c=!1){var u;let _=N9(n)||n.moduleSpecifier,g=jd(n,_),T=!Er(a)&&a.propertyName||a.name;if(!Me(T))return;let N=T.escapedText===\"default\"&&q,O=Pu(g,_,!1,N);if(O&&T.escapedText){if(pC(g))return g;let B;g&&g.exports&&g.exports.get(\"export=\")?B=Qo(Yn(O),T.escapedText,!0):B=My(O,T.escapedText),B=yl(B,c);let Q=W0(O,T,a,c);if(Q===void 0&&T.escapedText===\"default\"){let ue=(u=g.declarations)==null?void 0:u.find(Li);(Iv(_)||m_(ue,g,c,_))&&(Q=$u(g,c)||yl(g,c))}let me=Q&&B&&Q!==B?w0(B,Q):Q||B;return me||NT(g,O,n,T),me}}function NT(n,a,c,u){var _;let g=mp(n,c),T=is(u),N=jQ(u,a);if(N!==void 0){let O=ai(N),B=we(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,O);N.valueDeclaration&&fa(B,vr(N.valueDeclaration,f._0_is_declared_here,O))}else(_=n.exports)!=null&&_.has(\"default\")?we(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):am(c,u,T,n,g)}function am(n,a,c,u,_){var g,T;let N=(T=(g=Vr(u.valueDeclaration,L_))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),O=u.exports;if(N){let B=O?.get(\"export=\");if(B)Nm(B,N)?oE(n,a,c,_):we(a,f.Module_0_has_no_exported_member_1,_,c);else{let Q=O?Dr(Ume(O),ue=>!!Nm(ue,N)):void 0,me=Q?we(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,ai(Q)):we(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);N.declarations&&fa(me,...nn(N.declarations,(ue,We)=>vr(ue,We===0?f._0_is_declared_here:f.and_here,c)))}}else we(a,f.Module_0_has_no_exported_member_1,_,c)}function oE(n,a,c,u){if(W>=5){let _=z_(F)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else if(Jn(n)){let _=z_(F)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else{let _=z_(F)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c,c,u)}}function Fh(n,a){if(Iu(n)&&ar(n.propertyName||n.name)===\"default\"){let T=iE(n),N=T&&jd(n,T);if(N)return CT(N,n,a)}let c=Na(n)?Ym(n):n.parent.parent.parent,u=Ly(c),_=Sg(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Me(g)?yl(Qo(Yn(_),g.escapedText),a):(Nu(n,void 0,_,!1),_)}function Ly(n){if(yi(n)&&n.initializer&&Er(n.initializer))return n.initializer}function r1(n,a){if(qm(n.parent)){let c=$u(n.parent.symbol,a);return Nu(n,void 0,c,!1),c}}function aE(n,a,c){if(ar(n.propertyName||n.name)===\"default\"){let _=iE(n),g=_&&jd(n,_);if(g)return CT(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?Sg(n.parent.parent,n,c):Es(n.propertyName||n.name,a,!1,c);return Nu(n,void 0,u,!1),u}function QR(n,a){let c=dl(n)?n.expression:n.right,u=F0(c,a);return Nu(n,void 0,u,!1),u}function F0(n,a){if(Dc(n))return Ml(n).symbol;if(!Su(n)&&!gl(n))return;let c=Es(n,901119,!0,a);return c||(Ml(n),Fr(n).resolvedSymbol)}function PT(n,a){if(Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return F0(n.parent.right,a)}function fp(n,a=!1){switch(n.kind){case 271:case 260:return DT(n,a);case 273:return Xn(n,a);case 274:return Q_(n,a);case 280:return om(n,a);case 276:case 208:return Fh(n,a);case 281:return aE(n,901119,a);case 277:case 226:return QR(n,a);case 270:return r1(n,a);case 304:return Es(n.name,901119,!0,a);case 303:return F0(n.initializer,a);case 212:case 211:return PT(n,a);default:return x.fail()}}function MT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function yl(n,a){return!a&&MT(n)?fc(n):n}function fc(n){x.assert((n.flags&2097152)!==0,\"Should only get Alias here.\");let a=Pi(n);if(a.aliasTarget)a.aliasTarget===yt&&(a.aliasTarget=tt);else{a.aliasTarget=yt;let c=im(n);if(!c)return x.fail();let u=fp(c);a.aliasTarget===yt?a.aliasTarget=u||tt:we(c,f.Circular_definition_of_import_alias_0,ai(n))}return a.aliasTarget}function LT(n){if(Pi(n).aliasTarget!==yt)return fc(n)}function Qc(n,a,c){let u=a&&of(n),_=u&&xl(u),g=u&&(_?jd(u.moduleSpecifier,u.moduleSpecifier,!0):fc(u.symbol)),T=_&&g?Z_(g):void 0,N=c?0:n.flags,O;for(;n.flags&2097152;){let B=zp(fc(n));if(!_&&B===g||T?.get(B.escapedName)===B)break;if(B===tt)return-1;if(B===n||O?.has(B))break;B.flags&2097152&&(O?O.add(B):O=new Set([n,B])),N|=B.flags,n=B}return N}function Nu(n,a,c,u,_,g){if(!n||Er(n))return!1;let T=dr(n);if(Sb(n)){let O=Pi(T);return O.typeOnlyDeclaration=n,!0}if(_){let O=Pi(T);return O.typeOnlyDeclaration=_,T.escapedName!==g&&(O.typeOnlyExportStarName=g),!0}let N=Pi(T);return sE(N,a,u)||sE(N,c,u)}function sE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get(\"export=\"))??a,g=_.declarations&&Dr(_.declarations,Sb);n.typeOnlyDeclaration=g??Pi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function of(n,a){if(!(n.flags&2097152))return;let c=Pi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?yl(Z_(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):fc(c.typeOnlyDeclaration.symbol);return Qc(u)&a?c.typeOnlyDeclaration:void 0}}function ky(n){if(!ot)return;let a=dr(n),c=fc(a);c&&(c===tt||Qc(a,!0)&111551&&!Bw(c))&&Oy(a)}function Oy(n){x.assert(ot);let a=Pi(n);if(!a.referenced){a.referenced=!0;let c=im(n);if(!c)return x.fail();ox(c)&&Qc(yl(n))&111551&&Ml(c.moduleReference)}}function Lc(n){let a=Pi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function i1(n,a){return n.kind===80&&LC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Es(n,1920,!1,a):(x.assert(n.parent.kind===271),Es(n,901119,!1,a))}function mp(n,a){return n.parent?mp(n.parent,a)+\".\"+ai(n):ai(n,a,void 0,36)}function kT(n){for(;$d(n.parent);)n=n.parent;return n}function OT(n){let a=dp(n),c=Xs(a,a.escapedText,111551,void 0,a,!0);if(c){for(;$d(a.parent);){let u=Yn(c);if(c=Qo(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Es(n,a,c,u,_){if(_l(n))return;let g=1920|(Jn(n)?a&111551:0),T;if(n.kind===80){let N=a===g||xs(n)?f.Cannot_find_namespace_0:Ake(dp(n)),O=Jn(n)&&!xs(n)?ZR(n,a):void 0;if(T=Oa(Xs(_||n,n.escapedText,a,c||O?void 0:N,n,!0,!1)),!T)return Oa(O)}else if(n.kind===166||n.kind===211){let N=n.kind===166?n.left:n.expression,O=n.kind===166?n.right:n.name,B=Es(N,g,c,!1,_);if(!B||_l(O))return;if(B===tt)return B;if(B.valueDeclaration&&Jn(B.valueDeclaration)&&zd(F)!==100&&yi(B.valueDeclaration)&&B.valueDeclaration.initializer&&lwe(B.valueDeclaration.initializer)){let Q=B.valueDeclaration.initializer.arguments[0],me=jd(Q,Q);if(me){let ue=$u(me);ue&&(B=ue)}}if(T=Oa(gu(Qu(B),O.escapedText,a)),!T&&B.flags&2097152&&(T=Oa(gu(Qu(fc(B)),O.escapedText,a))),!T){if(!c){let Q=mp(B),me=is(O),ue=jQ(O,B);if(ue){we(O,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,me,ai(ue));return}let We=$d(n)&&kT(n);if(Se&&a&788968&&We&&!Wx(We.parent)&&OT(We)){we(We,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Wu(We));return}if(a&1920&&$d(n.parent)){let ht=Oa(gu(Qu(B),O.escapedText,788968));if(ht){we(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ai(ht),Ii(n.parent.right.escapedText));return}}we(O,f.Namespace_0_has_no_exported_member_1,Q,me)}return}}else x.assertNever(n,\"Unknown entity name kind.\");return x.assert((tl(T)&1)===0,\"Should never get an instantiated symbol here.\"),!xs(n)&&Su(n)&&(T.flags&2097152||n.parent.kind===277)&&Nu(V9(n),T,void 0,!0),T.flags&a||u?T:fc(T)}function ZR(n,a){if(U$(n.parent)){let c=lE(n.parent);if(c)return Xs(c,n.escapedText,a,void 0,n,!0)}}function lE(n){if(Rn(n,_=>q1(_)||_.flags&16777216?bf(_):\"quit\"))return;let c=PS(n);if(c&&Cc(c)&&AL(c.expression)){let _=dr(c.expression.left);if(_)return z0(_)}if(c&&ps(c)&&AL(c.parent)&&Cc(c.parent.parent)){let _=dr(c.parent.left);if(_)return z0(_)}if(c&&(qf(c)||Hl(c))&&Zn(c.parent.parent)&&hl(c.parent.parent)===6){let _=dr(c.parent.parent.left);if(_)return z0(_)}let u=Rb(n);if(u&&Lo(u)){let _=dr(u);return _&&_.valueDeclaration}}function z0(n){let a=n.parent.valueDeclaration;return a?(vC(a)?LA(a):SS(a)?yL(a):void 0)||a:void 0}function xP(n){let a=n.valueDeclaration;if(!a||!Jn(a)||n.flags&524288||Ib(a,!1))return;let c=yi(a)?yL(a):LA(a);if(c){let u=Fp(c);if(u)return Zhe(u,n)}}function jd(n,a,c){let _=zd(F)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return Tg(n,a,c?void 0:_)}function Tg(n,a,c,u=!1){return Ga(a)?__(n,a.text,c,a,u):void 0}function __(n,a,c,u,_=!1){var g,T,N,O,B,Q,me,ue,We,at,ht;if(Ui(a,\"@types/\")){let Bn=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,co=jD(a,\"@types/\");we(u,Bn,co,a)}let qt=w$(a,!0);if(qt)return qt;let Xt=Nn(n),Hn=Ga(n)?n:((g=Il(n)?n:n.parent&&Il(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=ey(n)?n:void 0)==null?void 0:T.argument.literal)||(yi(n)&&n.initializer&&Xd(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((N=Rn(n,lp))==null?void 0:N.arguments[0])||((O=Rn(n,cc))==null?void 0:O.moduleSpecifier)||((B=Rn(n,Ab))==null?void 0:B.moduleReference.expression)||((Q=Rn(n,xl))==null?void 0:Q.moduleSpecifier),En=Hn&&Ga(Hn)?e.getModeForUsageLocation(Xt,Hn):Xt.impliedNodeFormat,Kt=zd(F),In=(me=e.getResolvedModule(Xt,a,En))==null?void 0:me.resolvedModule,Sn=In&&FH(F,In,Xt),zn=In&&(!Sn||Sn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(In.resolvedFileName);if(zn){if(Sn&&we(u,Sn,a,In.resolvedFileName),In.resolvedUsingTsExtension&&Yc(a)){let Bn=((ue=Rn(n,cc))==null?void 0:ue.importClause)||Rn(n,hm(Nc,xl));(Bn&&!Bn.isTypeOnly||Rn(n,lp))&&we(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Mn(x.checkDefined(JW(a))))}else if(In.resolvedUsingTsExtension&&!nR(F,Xt.fileName)){let Bn=((We=Rn(n,cc))==null?void 0:We.importClause)||Rn(n,hm(Nc,xl));if(!(Bn?.isTypeOnly||Rn(n,Dh))){let co=x.checkDefined(JW(a));we(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,co)}}if(zn.symbol){if(In.isExternalLibraryImport&&!VC(In.extension)&&o1(!1,u,Xt,En,In,a),Kt===3||Kt===99){let Bn=Xt.impliedNodeFormat===1&&!Rn(n,lp)||!!Rn(n,Nc),co=Rn(n,no=>Dh(no)||xl(no)||cc(no));if(Bn&&zn.impliedNodeFormat===99&&!hre(co))if(Rn(n,Nc))we(u,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let no,Eo=og(Xt.fileName);if(Eo===\".ts\"||Eo===\".js\"||Eo===\".tsx\"||Eo===\".jsx\"){let Yi=Xt.packageJsonScope,ic=Eo===\".ts\"?\".mts\":Eo===\".js\"?\".mjs\":void 0;Yi&&!Yi.contents.packageJsonContent.type?ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,ic,wr(Yi.packageDirectory,\"package.json\")):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,wr(Yi.packageDirectory,\"package.json\")):ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,ic):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}La.add(eg(Nn(u),u,So(no,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return Oa(zn.symbol)}c&&we(u,f.File_0_is_not_a_module,zn.fileName);return}if(Nf){let Bn=pB(Nf,co=>co.pattern,a);if(Bn){let co=Vd&&Vd.get(a);return Oa(co||Bn.symbol)}}if(In&&!VC(In.extension)&&Sn===void 0||Sn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let Bn=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;we(u,Bn,a,In.resolvedFileName)}else o1(ce&&!!c,u,Xt,En,In,a);return}if(c){if(In){let Bn=e.getProjectReferenceRedirect(In.resolvedFileName);if(Bn){we(u,f.Output_file_0_has_not_been_built_from_source_file_1,Bn,In.resolvedFileName);return}}if(Sn)we(u,Sn,a,In.resolvedFileName);else{let Bn=op(a)&&!TA(a),co=Kt===3||Kt===99;if(!Mb(F)&&el(a,\".json\")&&Kt!==1&&rF(F))we(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(En===99&&co&&Bn){let no=Qi(a,Ur(Xt.path)),Eo=(at=qR.find(([Yi,ic])=>e.fileExists(no+Yi)))==null?void 0:at[1];Eo?we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Eo):we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((ht=e.getResolvedModule(Xt,a,En))!=null&&ht.alternateResult){let no=Q8(Xt,e,a,En,a);jc(!0,u,So(no,c,a))}else we(u,c,a)}}return;function Mn(Bn){let co=QL(a,Bn);if(nF(W)||En===99){let no=Yc(a)&&nR(F);return co+(Bn===\".mts\"||Bn===\".d.mts\"?no?\".mts\":\".mjs\":Bn===\".cts\"||Bn===\".d.mts\"?no?\".cts\":\".cjs\":no?\".ts\":\".js\")}return co}}function o1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let N;!Ic(T)&&_&&(N=Q8(c,e,T,u,_.name)),jc(n,a,So(N,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function $u(n,a){if(n?.exports){let c=yl(n.exports.get(\"export=\"),a),u=a1(Oa(c),Oa(n));return Oa(u)||n}}function a1(n,a){if(!n||n===tt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=Pi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:AT(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=Vo()),a.exports.forEach((_,g)=>{g!==\"export=\"&&u.exports.set(g,u.exports.has(g)?Pf(u.exports.get(g),_):_)}),u===n&&(Pi(u).resolvedExports=void 0,Pi(u).resolvedMembers=void 0),Pi(u).cjsExportMerged=u,c.cjsExportMerged=u}function Pu(n,a,c,u){var _;let g=$u(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!Vs(g,312)){let N=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\";return we(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),g}let T=a.parent;if(cc(T)&&cx(T)||lp(T)){let N=lp(T)?T.arguments[0]:T.moduleSpecifier,O=Yn(g),B=awe(O,g,n,N);if(B)return s1(g,B,T);let Q=(_=n?.declarations)==null?void 0:_.find(Li),me=Q&&Wp(Oi(N),Q.impliedNodeFormat);if(z_(F)||me){let ue=k7(O,0);if((!ue||!ue.length)&&(ue=k7(O,1)),ue&&ue.length||Qo(O,\"default\",!0)||me){let We=O.flags&3670016?swe(O,g,n,N):ege(g,g.parent);return s1(g,We,T)}}}}return g}function s1(n,a,c){let u=Ra(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=Om(a);return u.links.type=cs(u,_.members,je,je,_.indexInfos),u}function xv(n){return n.exports.get(\"export=\")!==void 0}function wT(n){return Ume(Z_(n))}function eD(n){let a=wT(n),c=$u(n);if(c!==n){let u=Yn(c);wy(u)&&Pr(a,Xa(u))}return a}function tD(n,a){Z_(n).forEach((_,g)=>{V0(g)||a(_,g)});let u=$u(n);if(u!==n){let _=Yn(u);wy(_)&&ntt(_,(g,T)=>{a(g,T)})}}function WT(n,a){let c=Z_(a);if(c)return c.get(n)}function nD(n,a){let c=WT(n,a);if(c)return c;let u=$u(a);if(u===a)return;let _=Yn(u);return wy(_)?Qo(_,n):void 0}function wy(n){return!(n.flags&402784252||br(n)&1||ff(n)||ga(n))}function Qu(n){return n.flags&6256?Dme(n,\"resolvedExports\"):n.flags&1536?Z_(n):n.exports||U}function Z_(n){let a=Pi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=FT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function rD(n,a,c,u){a&&a.forEach((_,g)=>{if(g===\"default\")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:Vl(u.moduleSpecifier)});else if(c&&u&&T&&yl(T)!==yl(_)){let N=c.get(g);N.exportsWithDuplicate?N.exportsWithDuplicate.push(u):N.exportsWithDuplicate=[u]}})}function FT(n){let a=[],c,u=new Set;n=$u(n);let _=g(n)||U;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,N,O){if(!O&&T?.exports&&T.exports.forEach((me,ue)=>u.add(ue)),!(T&&T.exports&&jp(a,T)))return;let B=new Map(T.exports),Q=T.exports.get(\"__export\");if(Q){let me=Vo(),ue=new Map;if(Q.declarations)for(let We of Q.declarations){let at=jd(We,We.moduleSpecifier),ht=g(at,We,O||We.isTypeOnly);rD(me,ht,ue,We)}ue.forEach(({exportsWithDuplicate:We},at)=>{if(!(at===\"export=\"||!(We&&We.length)||B.has(at)))for(let ht of We)La.add(vr(ht,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ue.get(at).specifierText,Ii(at)))}),rD(B,me)}return N?.isTypeOnly&&(c??(c=new Map),B.forEach((me,ue)=>c.set(ue,N))),B}}function Oa(n){let a;return n&&n.mergeId&&(a=jR[n.mergeId])?a:n}function dr(n){return Oa(n.symbol&&L$(n.symbol))}function Fp(n){return qm(n)?dr(n):void 0}function nu(n){return Oa(n.parent&&L$(n.parent))}function B0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&Fp(n.valueDeclaration.parent)||n}function iD(n,a){let c=Nn(a),u=Fa(c),_=Pi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let N of c.imports){if(xs(N))continue;let O=jd(a,N,!0);!O||!zh(O,n)||(g=pn(g,O))}if(yn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let N of T){if(!wl(N))continue;let O=dr(N);zh(O,n)&&(g=pn(g,O))}return _.extendedContainers=g||je}function cE(n,a,c){let u=nu(n);if(u&&!(n.flags&262144))return O(u);let _=Fi(n.declarations,Q=>{if(!sd(Q)&&Q.parent){if(Rd(Q.parent))return dr(Q.parent);if(n_(Q.parent)&&Q.parent.parent&&$u(dr(Q.parent.parent))===n)return dr(Q.parent.parent)}if(Dc(Q)&&Zn(Q.parent)&&Q.parent.operatorToken.kind===64&&us(Q.parent.left)&&gl(Q.parent.left.expression))return Eh(Q.parent.left)||DS(Q.parent.left.expression)?dr(Nn(Q)):(Ml(Q.parent.left.expression),Fr(Q.parent.left.expression).resolvedSymbol)});if(!yn(_))return;let g=Fi(_,Q=>zh(Q,n)?Q:void 0),T=[],N=[];for(let Q of g){let[me,...ue]=O(Q);T=pn(T,me),N=Pr(N,ue)}return ro(T,N);function O(Q){let me=Fi(Q.declarations,B),ue=a&&iD(n,a),We=G0(Q,c);if(a&&Q.flags&Ig(c)&&Wy(Q,a,1920,!1))return pn(ro(ro([Q],me),ue),We);let at=!(Q.flags&Ig(c))&&Q.flags&788968&&Cs(Q).flags&524288&&c===111551?U0(a,qt=>hc(qt,Xt=>{if(Xt.flags&Ig(c)&&Yn(Xt)===Cs(Q))return Xt})):void 0,ht=at?[at,...me,Q]:[...me,Q];return ht=pn(ht,We),ht=Pr(ht,ue),ht}function B(Q){return u&&zT(Q,u)}}function G0(n,a){let c=!!yn(n.declarations)&&Ta(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(ma(c)&&c===c.parent.initializer||ju(c)&&c===c.parent.type))return dr(c.parent)}function zT(n,a){let c=wi(n),u=c&&c.exports&&c.exports.get(\"export=\");return u&&Nm(u,a)?c:void 0}function zh(n,a){if(n===nu(a))return a;let c=n.exports&&n.exports.get(\"export=\");if(c&&Nm(c,a))return n;let u=Qu(n),_=u.get(a.escapedName);return _&&Nm(_,a)?_:hc(u,g=>{if(Nm(g,a))return g})}function Nm(n,a){if(Oa(yl(Oa(n)))===Oa(yl(Oa(a))))return n}function zp(n){return Oa(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function sm(n,a){return!!(n.flags&111551||n.flags&2097152&&Qc(n,!a)&111551)}function Ag(n){let a=n.members;for(let c of a)if(c.kind===176&&gf(c.body))return c}function Bh(n){var a;let c=new p(zt,n);return m++,c.id=m,(a=qn)==null||a.recordType(c),c}function Gh(n,a){let c=Bh(n);return c.symbol=a,c}function l1(n){return new p(zt,n)}function Fl(n,a,c=0,u){oD(a,u);let _=Bh(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function oD(n,a){let c=`${n},${a??\"\"}`;et.has(c)&&x.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:\"\"}; you may need to pass a name to createIntrinsicType.`),et.add(c)}function af(n,a){let c=Gh(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function eh(){return Br(bo(GU.keys(),yu))}function Bp(n){return Gh(262144,n)}function V0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function dE(n){let a;return n.forEach((c,u)=>{c1(c,u)&&(a||(a=[])).push(c)}),a||je}function c1(n,a){return!V0(a)&&sm(n)}function BT(n){let a=dE(n),c=z$(n);return c?ro(a,[c]):a}function Gp(n,a,c,u,_){let g=n;return g.members=a,g.properties=je,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==U&&(g.properties=dE(a)),g}function cs(n,a,c,u,_){return Gp(af(16,n),a,c,u,_)}function j0(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Cr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=cs(n.symbol,n.members,n.callSignatures,ct(a)?a:je,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function U0(n,a){let c;for(let u=n;u;u=u.parent){if(L_(u)&&u.locals&&!$_(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!sp(u))break;case 267:let _=dr(u);if(c=a(_?.exports||U,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((dr(u).members||U).forEach((T,N)=>{T.flags&788968&&(g||(g=Vo())).set(N,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(he,void 0,!0)}function Ig(n){return n===111551?111551:1920}function Wy(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=Pi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),N=U0(a,(Xt,Hn,En,Kt)=>Kt),O=`${u?0:1}|${N&&Fa(N)}|${c}`;if(T.has(O))return T.get(O);let B=na(n),Q=_.get(B);Q||_.set(B,Q=[]);let me=U0(a,ue);return T.set(O,me),me;function ue(Xt,Hn,En){if(!jp(Q,Xt))return;let Kt=ht(Xt,Hn,En);return Q.pop(),Kt}function We(Xt,Hn){return!uE(Xt,a,Hn)||!!Wy(Xt.parent,a,Ig(Hn),u,_)}function at(Xt,Hn,En){return(n===(Hn||Xt)||Oa(n)===Oa(Hn||Xt))&&!ct(Xt.declarations,Rd)&&(En||We(Oa(Xt),c))}function ht(Xt,Hn,En){return at(Xt.get(n.escapedName),void 0,Hn)?[n]:hc(Xt,In=>{if(In.flags&2097152&&In.escapedName!==\"export=\"&&In.escapedName!==\"default\"&&!(QW(In)&&a&&wl(Nn(a)))&&(!u||ct(In.declarations,Ab))&&(!En||!ct(In.declarations,Jte))&&(Hn||!Vs(In,281))){let Sn=fc(In),zn=qt(In,Sn,Hn);if(zn)return zn}if(In.escapedName===n.escapedName&&In.exportSymbol&&at(Oa(In.exportSymbol),void 0,Hn))return[n]})||(Xt===he?qt(Ke,Ke,Hn):void 0)}function qt(Xt,Hn,En){if(at(Xt,Hn,En))return[Xt];let Kt=Qu(Hn),In=Kt&&ue(Kt,!0);if(In&&We(Xt,Ig(c)))return[Xt].concat(In)}}function uE(n,a,c){let u=!1;return U0(a,_=>{let g=Oa(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!Vs(g,281);return g=T?fc(g):g,(T?Qc(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ne(n,a){return ri(n,a,788968,!1,!0).accessibility===0}function rt(n,a){return ri(n,a,111551,!1,!0).accessibility===0}function Ht(n,a,c){return ri(n,a,c,!1,!1).accessibility===0}function yr(n,a,c,u,_,g){if(!yn(n))return;let T,N=!1;for(let O of n){let B=Wy(O,a,u,!1);if(B){T=O;let ue=ru(B[0],_);if(ue)return ue}if(g&&ct(O.declarations,Rd)){if(_){N=!0;continue}return{accessibility:0}}let Q=cE(O,a,u),me=yr(Q,a,c,c===O?Ig(u):u,_,g);if(me)return me}if(N)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ai(c,a,u),errorModuleName:T!==c?ai(T,a,1920):void 0}}function vi(n,a,c,u){return ri(n,a,c,u,!0)}function ri(n,a,c,u,_){if(n&&a){let g=yr([n],a,n,c,u,_);if(g)return g;let T=an(n.declarations,wi);if(T){let N=wi(a);if(T!==N)return{accessibility:2,errorSymbolName:ai(n,a,c),errorModuleName:ai(T),errorNode:Jn(a)?a:void 0}}return{accessibility:1,errorSymbolName:ai(n,a,c)}}return{accessibility:0}}function wi(n){let a=Rn(n,$o);return a&&dr(a)}function $o(n){return sd(n)||n.kind===312&&sp(n)}function Rd(n){return iW(n)||n.kind===312&&sp(n)}function ru(n,a){let c;if(!ji(Cr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,N;if(!Pm(g)){let O=RT(g);if(O&&!Wr(O,32)&&Pm(O.parent))return _(g,O);if(yi(g)&&cl(g.parent.parent)&&!Wr(g.parent.parent,32)&&Pm(g.parent.parent.parent))return _(g,g.parent.parent);if(oW(g)&&!Wr(g,32)&&Pm(g.parent))return _(g,g);if(Na(g)){if(n.flags&2097152&&Jn(g)&&((T=g.parent)!=null&&T.parent)&&yi(g.parent.parent)&&((N=g.parent.parent.parent)!=null&&N.parent)&&cl(g.parent.parent.parent.parent)&&!Wr(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&Pm(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let B=Rn(g,cl);return Wr(B,32)?!0:Pm(B.parent)?_(g,B):!1}}return!1}return!0}function _(g,T){return a&&(Fr(g).isVisible=!0,c=Kh(c,T)),!0}}function sf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!yh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Fy(n,a){let c=sf(n),u=dp(n),_=Xs(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&YE(u)&&vi(dr(lu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&ru(_,!0)||{accessibility:1,errorSymbolName:Vl(u),errorNode:u}}function ai(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?ft.symbolToNode:ft.symbolToEntityName;return _?N(_).getText():dC(N);function N(O){let B=T(n,c,a,g),Q=a?.kind===312?hH():y0(),me=a&&Nn(a);return Q.writeNode(4,B,me,O),O}}function th(n,a,c=0,u,_){return _?g(_).getText():dC(g);function g(T){let N;c&262144?N=u===1?185:184:N=u===1?180:179;let O=ft.signatureToSignatureDeclaration(n,N,a,GT(c)|70221824|512),B=hk(),Q=a&&Nn(a);return B.writeNode(4,O,Q,nV(T)),T}}function Pn(n,a,c=1064960,u=GL(\"\")){let _=F.noErrorTruncation||c&1,g=ft.typeToTypeNode(n,a,GT(c)|70221824|(_?1:0));if(g===void 0)return x.fail(\"should always get typenode\");let T=n!==Ct?y0():_H(),N=a&&Nn(a);T.writeNode(4,g,N,u);let O=u.getText(),B=_?AF*2:i2*2;return B&&O&&O.length>=B?O.substr(0,B-3)+\"...\":O}function d1(n,a){let c=By(n.symbol)?Pn(n,n.symbol.valueDeclaration):Pn(n),u=By(a.symbol)?Pn(a,a.symbol.valueDeclaration):Pn(a);return c===u&&(c=zy(n),u=zy(a)),[c,u]}function zy(n){return Pn(n,void 0,64)}function By(n){return n&&!!n.valueDeclaration&&lt(n.valueDeclaration)&&!uf(n.valueDeclaration)}function GT(n=0){return n&848330095}function H0(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===cf(n.symbol)||!!(n.flags&524288)&&!!(br(n)&16777216))}function h_(){return{typeToTypeNode:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>u(Qe,Xr)),indexInfoToIndexSignatureDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>Q(Qe,Xr,void 0)),signatureToSignatureDeclaration:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>me(Qe,ve,li)),symbolToEntityName:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>Yi(Qe,li,ve,!1)),symbolToExpression:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>ic(Qe,li,ve)),symbolToTypeParameterDeclarations:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>In(Qe,Xr)),symbolToParameterDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>qt(Qe,Xr)),typeParameterToDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>at(Qe,Xr)),symbolTableToDeclarationStatements:(Qe,ve,vn,_r,Xr)=>a(ve,vn,_r,li=>Ys(Qe,li,Xr)),symbolToNode:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>n(Qe,li,ve))};function n(Qe,ve,vn){if(ve.flags&1073741824){if(Qe.valueDeclaration){let Xr=mo(Qe.valueDeclaration);if(Xr&&Pa(Xr))return Xr}let _r=Pi(Qe).nameType;if(_r&&_r.flags&9216)return ve.enclosingDeclaration=_r.symbol.valueDeclaration,P.createComputedPropertyName(ic(_r.symbol,ve,vn))}return ic(Qe,ve,vn)}function a(Qe,ve,vn,_r){x.assert(Qe===void 0||(Qe.flags&16)===0);let Xr=vn?.trackSymbol?vn.moduleResolverHost:ve&134217728?w3e(e):void 0,li={enclosingDeclaration:Qe,flags:ve||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};li.tracker=new VU(li,vn,Xr);let ci=_r(li);return li.truncating&&li.flags&1&&li.tracker.reportTruncationError(),li.encounteredError?void 0:ci}function c(Qe){return Qe.truncating?Qe.truncating:Qe.truncating=Qe.approximateLength>(Qe.flags&1?AF:i2)}function u(Qe,ve){let vn=ve.flags,_r=_(Qe,ve);return ve.flags=vn,_r}function _(Qe,ve){var vn,_r;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xr=ve.flags&8388608;if(ve.flags&=-8388609,!Qe){if(!(ve.flags&262144)){ve.encounteredError=!0;return}return ve.approximateLength+=3,P.createKeywordTypeNode(133)}if(ve.flags&536870912||(Qe=wm(Qe)),Qe.flags&1)return Qe.aliasSymbol?P.createTypeReferenceNode(Bn(Qe.aliasSymbol),O(Qe.aliasTypeArguments,ve)):Qe===Ct?iN(P.createKeywordTypeNode(133),3,\"unresolved\"):(ve.approximateLength+=3,P.createKeywordTypeNode(Qe===Qt?141:133));if(Qe.flags&2)return P.createKeywordTypeNode(159);if(Qe.flags&4)return ve.approximateLength+=6,P.createKeywordTypeNode(154);if(Qe.flags&8)return ve.approximateLength+=6,P.createKeywordTypeNode(150);if(Qe.flags&64)return ve.approximateLength+=6,P.createKeywordTypeNode(163);if(Qe.flags&16&&!Qe.aliasSymbol)return ve.approximateLength+=7,P.createKeywordTypeNode(136);if(Qe.flags&1056){if(Qe.symbol.flags&8){let fn=nu(Qe.symbol),zr=co(fn,ve,788968);if(Cs(fn)===Qe)return zr;let Ai=$s(Qe.symbol);return Tp(Ai,0)?ii(zr,P.createTypeReferenceNode(Ai,void 0)):Dh(zr)?(zr.isTypeOf=!0,P.createIndexedAccessTypeNode(zr,P.createLiteralTypeNode(P.createStringLiteral(Ai)))):Yp(zr)?P.createIndexedAccessTypeNode(P.createTypeQueryNode(zr.typeName),P.createLiteralTypeNode(P.createStringLiteral(Ai))):x.fail(\"Unhandled type node kind returned from `symbolToTypeNode`.\")}return co(Qe.symbol,ve,788968)}if(Qe.flags&128)return ve.approximateLength+=Qe.value.length+2,P.createLiteralTypeNode($n(P.createStringLiteral(Qe.value,!!(ve.flags&268435456)),16777216));if(Qe.flags&256){let fn=Qe.value;return ve.approximateLength+=(\"\"+fn).length,P.createLiteralTypeNode(fn<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-fn)):P.createNumericLiteral(fn))}if(Qe.flags&2048)return ve.approximateLength+=ZE(Qe.value).length+1,P.createLiteralTypeNode(P.createBigIntLiteral(Qe.value));if(Qe.flags&512)return ve.approximateLength+=Qe.intrinsicName.length,P.createLiteralTypeNode(Qe.intrinsicName===\"true\"?P.createTrue():P.createFalse());if(Qe.flags&8192){if(!(ve.flags&1048576)){if(rt(Qe.symbol,ve.enclosingDeclaration))return ve.approximateLength+=6,co(Qe.symbol,ve,111551);ve.tracker.reportInaccessibleUniqueSymbolError&&ve.tracker.reportInaccessibleUniqueSymbolError()}return ve.approximateLength+=13,P.createTypeOperatorNode(158,P.createKeywordTypeNode(155))}if(Qe.flags&16384)return ve.approximateLength+=4,P.createKeywordTypeNode(116);if(Qe.flags&32768)return ve.approximateLength+=9,P.createKeywordTypeNode(157);if(Qe.flags&65536)return ve.approximateLength+=4,P.createLiteralTypeNode(P.createNull());if(Qe.flags&131072)return ve.approximateLength+=5,P.createKeywordTypeNode(146);if(Qe.flags&4096)return ve.approximateLength+=6,P.createKeywordTypeNode(155);if(Qe.flags&67108864)return ve.approximateLength+=6,P.createKeywordTypeNode(151);if(YC(Qe))return ve.flags&4194304&&(!ve.encounteredError&&!(ve.flags&32768)&&(ve.encounteredError=!0),(_r=(vn=ve.tracker).reportInaccessibleThisError)==null||_r.call(vn)),ve.approximateLength+=4,P.createThisTypeNode();if(!Xr&&Qe.aliasSymbol&&(ve.flags&16384||ne(Qe.aliasSymbol,ve.enclosingDeclaration))){let fn=O(Qe.aliasTypeArguments,ve);return V0(Qe.aliasSymbol.escapedName)&&!(Qe.aliasSymbol.flags&32)?P.createTypeReferenceNode(P.createIdentifier(\"\"),fn):yn(fn)===1&&Qe.aliasSymbol===Po.symbol?P.createArrayTypeNode(fn[0]):co(Qe.aliasSymbol,ve,788968,fn)}let li=br(Qe);if(li&4)return x.assert(!!(Qe.flags&524288)),Qe.node?Ft(Qe,xn):xn(Qe);if(Qe.flags&262144||li&3){if(Qe.flags&262144&&To(ve.inferTypeParameters,Qe)){ve.approximateLength+=$s(Qe.symbol).length+6;let zr,Ai=iu(Qe);if(Ai){let Ji=OLe(Qe,!0);Ji&&kg(Ai,Ji)||(ve.approximateLength+=9,zr=Ai&&u(Ai,ve))}return P.createInferTypeNode(We(Qe,ve,zr))}if(ve.flags&4&&Qe.flags&262144){let zr=Eo(Qe,ve);return ve.approximateLength+=ar(zr).length,P.createTypeReferenceNode(P.createIdentifier(ar(zr)),void 0)}if(Qe.symbol)return co(Qe.symbol,ve,788968);let fn=(Qe===ae||Qe===X)&&L&&L.symbol?(Qe===X?\"sub-\":\"super-\")+$s(L.symbol):\"?\";return P.createTypeReferenceNode(P.createIdentifier(fn),void 0)}if(Qe.flags&1048576&&Qe.origin&&(Qe=Qe.origin),Qe.flags&3145728){let fn=Qe.flags&1048576?aD(Qe.types):Qe.types;if(yn(fn)===1)return u(fn[0],ve);let zr=O(fn,ve,!0);if(zr&&zr.length>0)return Qe.flags&1048576?P.createUnionTypeNode(zr):P.createIntersectionTypeNode(zr);!ve.encounteredError&&!(ve.flags&262144)&&(ve.encounteredError=!0);return}if(li&48)return x.assert(!!(Qe.flags&524288)),Gt(Qe);if(Qe.flags&4194304){let fn=Qe.type;ve.approximateLength+=6;let zr=u(fn,ve);return P.createTypeOperatorNode(143,zr)}if(Qe.flags&134217728){let fn=Qe.texts,zr=Qe.types,Ai=P.createTemplateHead(fn[0]),Ji=P.createNodeArray(nn(zr,(Ho,Yl)=>P.createTemplateLiteralTypeSpan(u(Ho,ve),(Yl<zr.length-1?P.createTemplateMiddle:P.createTemplateTail)(fn[Yl+1]))));return ve.approximateLength+=2,P.createTemplateLiteralType(Ai,Ji)}if(Qe.flags&268435456){let fn=u(Qe.type,ve);return co(Qe.symbol,ve,788968,[fn])}if(Qe.flags&8388608){let fn=u(Qe.objectType,ve),zr=u(Qe.indexType,ve);return ve.approximateLength+=2,P.createIndexedAccessTypeNode(fn,zr)}if(Qe.flags&16777216)return Ft(Qe,fn=>ci(fn));if(Qe.flags&33554432){let fn=u(Qe.baseType,ve),zr=wP(Qe)&&r_e(\"NoInfer\",!1);return zr?co(zr,ve,788968,[fn]):fn}return x.fail(\"Should be unreachable.\");function ci(fn){let zr=u(fn.checkType,ve);if(ve.approximateLength+=15,ve.flags&4&&fn.root.isDistributive&&!(fn.checkType.flags&262144)){let al=Bp(Ra(262144,\"T\")),Ba=Eo(al,ve),oc=P.createTypeReferenceNode(Ba);ve.approximateLength+=37;let As=eA(fn.root.checkType,al,fn.mapper),Gm=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let qe=u(Gi(fn.root.extendsType,As),ve);ve.inferTypeParameters=Gm;let ut=xr(Gi(si(fn.root.node.trueType),As)),Bt=xr(Gi(si(fn.root.node.falseType),As));return P.createConditionalTypeNode(zr,P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(oc.typeName))),P.createConditionalTypeNode(P.createTypeReferenceNode(P.cloneNode(Ba)),u(fn.checkType,ve),P.createConditionalTypeNode(oc,qe,ut,Bt),P.createKeywordTypeNode(146)),P.createKeywordTypeNode(146))}let Ai=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let Ji=u(fn.extendsType,ve);ve.inferTypeParameters=Ai;let Ho=xr(EE(fn)),Yl=xr(SE(fn));return P.createConditionalTypeNode(zr,Ji,Ho,Yl)}function xr(fn){var zr,Ai,Ji;return fn.flags&1048576?(zr=ve.visitedTypes)!=null&&zr.has(Hd(fn))?(ve.flags&131072||(ve.encounteredError=!0,(Ji=(Ai=ve.tracker)==null?void 0:Ai.reportCyclicStructureError)==null||Ji.call(Ai)),g(ve)):Ft(fn,Ho=>u(Ho,ve)):u(fn,ve)}function ur(fn){return!!fw(fn)}function $e(fn){return!!fn.target&&ur(fn.target)&&!ur(fn)}function It(fn){var zr;x.assert(!!(fn.flags&524288));let Ai=fn.declaration.readonlyToken?P.createToken(fn.declaration.readonlyToken.kind):void 0,Ji=fn.declaration.questionToken?P.createToken(fn.declaration.questionToken.kind):void 0,Ho,Yl,al=!fD(fn)&&!(HT(fn).flags&2)&&ve.flags&4&&!(Vp(fn).flags&262144&&((zr=iu(Vp(fn)))==null?void 0:zr.flags)&4194304);if(fD(fn)){if($e(fn)&&ve.flags&4){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt)}Ho=P.createTypeOperatorNode(143,Yl||u(HT(fn),ve))}else if(al){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt),Ho=Yl}else Ho=u(Vp(fn),ve);let Ba=We(km(fn),ve,Ho),oc=fn.declaration.nameType?u(Dv(fn),ve):void 0,As=u(ob(Ng(fn),!!(oh(fn)&4)),ve),Gm=P.createMappedTypeNode(Ai,Ba,oc,Ji,As,void 0);ve.approximateLength+=10;let qe=$n(Gm,1);if($e(fn)&&ve.flags&4){let ut=Gi(iu(si(fn.declaration.typeParameter.constraint.type))||Zt,fn.mapper);return P.createConditionalTypeNode(u(HT(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),ut.flags&2?void 0:u(ut,ve))),qe,P.createKeywordTypeNode(146))}else if(al)return P.createConditionalTypeNode(u(Vp(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),P.createTypeOperatorNode(143,u(HT(fn),ve)))),qe,P.createKeywordTypeNode(146));return qe}function Gt(fn){var zr,Ai;let Ji=fn.id,Ho=fn.symbol;if(Ho){if(!!(br(fn)&8388608)){let As=fn.node;if(oI(As)&&si(As)===fn){let Gm=fl(ve,As);if(Gm)return Gm}return(zr=ve.visitedTypes)!=null&&zr.has(Ji)?g(ve):Ft(fn,Yt)}let Ba=H0(fn)?788968:111551;if(T_(Ho.valueDeclaration))return co(Ho,ve,Ba);if(Ho.flags&32&&!D$(Ho)&&!(Ho.valueDeclaration&&Kr(Ho.valueDeclaration)&&ve.flags&2048&&(!Zl(Ho.valueDeclaration)||vi(Ho,ve.enclosingDeclaration,Ba,!1).accessibility!==0))||Ho.flags&896||Yl())return co(Ho,ve,Ba);if((Ai=ve.visitedTypes)!=null&&Ai.has(Ji)){let oc=S7(fn);return oc?co(oc,ve,788968):g(ve)}else return Ft(fn,Yt)}else return Yt(fn);function Yl(){var al;let Ba=!!(Ho.flags&8192)&&ct(Ho.declarations,As=>zo(As)),oc=!!(Ho.flags&16)&&(Ho.parent||an(Ho.declarations,As=>As.parent.kind===312||As.parent.kind===268));if(Ba||oc)return(!!(ve.flags&4096)||((al=ve.visitedTypes)==null?void 0:al.has(Ji)))&&(!(ve.flags&8)||rt(Ho,ve.enclosingDeclaration))}}function Ft(fn,zr){var Ai,Ji,Ho;let Yl=fn.id,al=br(fn)&16&&fn.symbol&&fn.symbol.flags&32,Ba=br(fn)&4&&fn.node?\"N\"+Fa(fn.node):fn.flags&16777216?\"N\"+Fa(fn.root.node):fn.symbol?(al?\"+\":\"\")+na(fn.symbol):void 0;ve.visitedTypes||(ve.visitedTypes=new Set),Ba&&!ve.symbolDepth&&(ve.symbolDepth=new Map);let oc=ve.enclosingDeclaration&&Fr(ve.enclosingDeclaration),As=`${Hd(fn)}|${ve.flags}`;oc&&(oc.serializedTypes||(oc.serializedTypes=new Map));let Gm=(Ai=oc?.serializedTypes)==null?void 0:Ai.get(As);if(Gm)return(Ji=Gm.trackedSymbols)==null||Ji.forEach(([Rr,Si,yo])=>ve.tracker.trackSymbol(Rr,Si,yo)),Gm.truncating&&(ve.truncating=!0),ve.approximateLength+=Gm.addedLength,cn(Gm.node);let qe;if(Ba){if(qe=ve.symbolDepth.get(Ba)||0,qe>10)return g(ve);ve.symbolDepth.set(Ba,qe+1)}ve.visitedTypes.add(Yl);let ut=ve.trackedSymbols;ve.trackedSymbols=void 0;let Bt=ve.approximateLength,kn=zr(fn),pr=ve.approximateLength-Bt;return!ve.reportedDiagnostic&&!ve.encounteredError&&((Ho=oc?.serializedTypes)==null||Ho.set(As,{node:kn,truncating:ve.truncating,addedLength:pr,trackedSymbols:ve.trackedSymbols})),ve.visitedTypes.delete(Yl),Ba&&ve.symbolDepth.set(Ba,qe),ve.trackedSymbols=ut,kn;function cn(Rr){return!xs(Rr)&&uo(Rr)===Rr?Rr:Ze(P.cloneNode(un(Rr,cn,void 0,rr)),Rr)}function rr(Rr,Si,yo,Ko,Xo){return Rr&&Rr.length===0?Ze(P.createNodeArray(void 0,Rr.hasTrailingComma),Rr):Dn(Rr,Si,yo,Ko,Xo)}}function Yt(fn){if(vu(fn)||fn.containsError)return It(fn);let zr=Om(fn);if(!zr.properties.length&&!zr.indexInfos.length){if(!zr.callSignatures.length&&!zr.constructSignatures.length)return ve.approximateLength+=2,$n(P.createTypeLiteralNode(void 0),1);if(zr.callSignatures.length===1&&!zr.constructSignatures.length){let al=zr.callSignatures[0];return me(al,184,ve)}if(zr.constructSignatures.length===1&&!zr.callSignatures.length){let al=zr.constructSignatures[0];return me(al,185,ve)}}let Ai=Cr(zr.constructSignatures,al=>!!(al.flags&4));if(ct(Ai)){let al=nn(Ai,XT);return zr.callSignatures.length+(zr.constructSignatures.length-Ai.length)+zr.indexInfos.length+(ve.flags&2048?Wv(zr.properties,oc=>!(oc.flags&4194304)):yn(zr.properties))&&al.push(j0(zr)),u(Zo(al),ve)}let Ji=ve.flags;ve.flags|=4194304;let Ho=qi(zr);ve.flags=Ji;let Yl=P.createTypeLiteralNode(Ho);return ve.approximateLength+=2,$n(Yl,ve.flags&1024?0:1),Yl}function xn(fn){let zr=Ts(fn);if(fn.target===Po||fn.target===Oo){if(ve.flags&2){let Ho=u(zr[0],ve);return P.createTypeReferenceNode(fn.target===Po?\"Array\":\"ReadonlyArray\",[Ho])}let Ai=u(zr[0],ve),Ji=P.createArrayTypeNode(Ai);return fn.target===Po?Ji:P.createTypeOperatorNode(148,Ji)}else if(fn.target.objectFlags&8){if(zr=sc(zr,(Ai,Ji)=>ob(Ai,!!(fn.target.elementFlags[Ji]&2))),zr.length>0){let Ai=Nv(fn),Ji=O(zr.slice(0,Ai),ve);if(Ji){let{labeledElementDeclarations:Ho}=fn.target;for(let al=0;al<Ji.length;al++){let Ba=fn.target.elementFlags[al],oc=Ho?.[al];oc?Ji[al]=P.createNamedTupleMember(Ba&12?P.createToken(26):void 0,P.createIdentifier(Ii(ige(oc))),Ba&2?P.createToken(58):void 0,Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ji[al]=Ba&12?P.createRestTypeNode(Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ba&2?P.createOptionalTypeNode(Ji[al]):Ji[al]}let Yl=$n(P.createTupleTypeNode(Ji),1);return fn.target.readonly?P.createTypeOperatorNode(148,Yl):Yl}}if(ve.encounteredError||ve.flags&524288){let Ai=$n(P.createTupleTypeNode([]),1);return fn.target.readonly?P.createTypeOperatorNode(148,Ai):Ai}ve.encounteredError=!0;return}else{if(ve.flags&2048&&fn.symbol.valueDeclaration&&Kr(fn.symbol.valueDeclaration)&&!rt(fn.symbol,ve.enclosingDeclaration))return Gt(fn);{let Ai=fn.target.outerTypeParameters,Ji=0,Ho;if(Ai){let oc=Ai.length;for(;Ji<oc;){let As=Ji,Gm=wLe(Ai[Ji]);do Ji++;while(Ji<oc&&wLe(Ai[Ji])===Gm);if(!nB(Ai,zr,As,Ji)){let qe=O(zr.slice(As,Ji),ve),ut=ve.flags;ve.flags|=16;let Bt=co(Gm,ve,788968,qe);ve.flags=ut,Ho=Ho?ii(Ho,Bt):Bt}}}let Yl;if(zr.length>0){let oc=(fn.target.typeParameters||je).length;Yl=O(zr.slice(Ji,oc),ve)}let al=ve.flags;ve.flags|=16;let Ba=co(fn.symbol,ve,788968,Yl);return ve.flags=al,Ho?ii(Ho,Ba):Ba}}}function ii(fn,zr){if(Dh(fn)){let Ai=fn.typeArguments,Ji=fn.qualifier;Ji&&(Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai)))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=Ji?P.createQualifiedName(Ji,Yl):Yl;return P.updateImportTypeNode(fn,fn.argument,fn.attributes,Ji,Ai,fn.isTypeOf)}else{let Ai=fn.typeArguments,Ji=fn.typeName;Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=P.createQualifiedName(Ji,Yl);return P.updateTypeReferenceNode(fn,Ji,Ai)}}function Yr(fn){let zr=fn.typeName,Ai=[];for(;!Me(zr);)Ai.unshift(zr.right),zr=zr.left;return Ai.unshift(zr),Ai}function qi(fn){if(c(ve))return[P.createPropertySignature(void 0,\"...\",void 0,void 0)];let zr=[];for(let Ho of fn.callSignatures)zr.push(me(Ho,179,ve));for(let Ho of fn.constructSignatures)Ho.flags&4||zr.push(me(Ho,180,ve));for(let Ho of fn.indexInfos)zr.push(Q(Ho,ve,fn.objectFlags&1024?g(ve):void 0));let Ai=fn.properties;if(!Ai)return zr;let Ji=0;for(let Ho of Ai){if(Ji++,ve.flags&2048){if(Ho.flags&4194304)continue;Kp(Ho)&6&&ve.tracker.reportPrivateInBaseOfClassExpression&&ve.tracker.reportPrivateInBaseOfClassExpression(Ii(Ho.escapedName))}if(c(ve)&&Ji+2<Ai.length-1){zr.push(P.createPropertySignature(void 0,`... ${Ai.length-Ji} more ...`,void 0,void 0)),N(Ai[Ai.length-1],ve,zr);break}N(Ho,ve,zr)}return zr.length?zr:void 0}}function g(Qe){return Qe.approximateLength+=3,Qe.flags&1?P.createKeywordTypeNode(133):P.createTypeReferenceNode(P.createIdentifier(\"...\"),void 0)}function T(Qe,ve){var vn;return!!(tl(Qe)&8192)&&(To(ve.reverseMappedStack,Qe)||((vn=ve.reverseMappedStack)==null?void 0:vn[0])&&!(br(Da(ve.reverseMappedStack).links.propertyType)&16))}function N(Qe,ve,vn){var _r;let Xr=!!(tl(Qe)&8192),li=T(Qe,ve)?z:qy(Qe),ci=ve.enclosingDeclaration;if(ve.enclosingDeclaration=void 0,ve.tracker.canTrackSymbol&&nw(Qe.escapedName))if(Qe.declarations){let Yt=Ta(Qe.declarations);if(D7(Yt))if(Zn(Yt)){let xn=mo(Yt);xn&&Rs(xn)&&UL(xn.argumentExpression)&&Hn(xn.argumentExpression,ci,ve)}else Hn(Yt.name.expression,ci,ve)}else ve.tracker.reportNonSerializableProperty(ai(Qe));ve.enclosingDeclaration=Qe.valueDeclaration||((_r=Qe.declarations)==null?void 0:_r[0])||ci;let xr=bn(Qe,ve);if(ve.enclosingDeclaration=ci,ve.approximateLength+=$s(Qe).length+1,Qe.flags&98304){let Yt=q0(Qe);if(li!==Yt&&!Lt(li)&&!Lt(Yt)){let xn=Vs(Qe,177),ii=kf(xn);vn.push(Ol(me(ii,177,ve,{name:xr}),xn));let Yr=Vs(Qe,178),qi=kf(Yr);vn.push(Ol(me(qi,178,ve,{name:xr}),Yr));return}}let ur=Qe.flags&16777216?P.createToken(58):void 0;if(Qe.flags&8208&&!Xy(li).length&&!Bm(Qe)){let Yt=Co(Bl(li,xn=>!(xn.flags&32768)),0);for(let xn of Yt){let ii=me(xn,173,ve,{name:xr,questionToken:ur});vn.push(Ft(ii))}if(Yt.length||!ur)return}let $e;T(Qe,ve)?$e=g(ve):(Xr&&(ve.reverseMappedStack||(ve.reverseMappedStack=[]),ve.reverseMappedStack.push(Qe)),$e=li?es(ve,li,Qe,ci):P.createKeywordTypeNode(133),Xr&&ve.reverseMappedStack.pop());let It=Bm(Qe)?[P.createToken(148)]:void 0;It&&(ve.approximateLength+=9);let Gt=P.createPropertySignature(It,xr,ur,$e);vn.push(Ft(Gt));function Ft(Yt){var xn;let ii=(xn=Qe.declarations)==null?void 0:xn.find(Yr=>Yr.kind===355);if(ii){let Yr=VM(ii.comment);Yr&&Lb(Yt,[{kind:3,text:`*","vulnerability":{}},{"path":"dify-agent-runtime/internal/server/config.go","start_line":31,"end_line":31,"snippet":"\tDefaultAuthTokenEnv                  = \"SHELLCTL_AUTH_TOKEN\"","vulnerability":{"severity":"HIGH"}},{"path":"api/clients/agent_backend/factory.py","start_line":44,"end_line":51,"snippet":"    return DifyAgentBackendRunClient(\n        create_agent_backend_client(\n            base_url=base_url,\n            api_token=api_token,\n            stream_timeout=stream_read_timeout_seconds,\n        ),\n        stream_max_reconnects=stream_max_reconnects,\n    )","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":32,"end_line":32,"snippet":"        valid_password(new_password)","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":37,"end_line":37,"snippet":"    application_services().accounts.lifecycle.reset_password(account.id, new_password, email=normalized_email)","vulnerability":{"severity":"WARNING"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0003","rule_version":"1.3.0","rule_name":"Runtime Command Injection via Process Execution","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"medium","rationale":"The dify-agent / dify-agent-runtime component's declared purpose is to run arbitrary user-submitted shell scripts/commands as a sandboxed agent tool (shellctl), so argv-based exec is within its declared contract rather than an injection bug. Tracing the sinks: (1) dify-agent-runtime/cmd/runner/main.go uses exec.Command(self, childArgs...) / syscall.Exec(binary, argv, ...) with a fixed, hardcoded self-reexec argv (binary + '--exec' + script_path + cwd) -- the actual user-supplied SCRIPT CONTENT is never concatenated into a shell string for this sink; it is written as file content at scriptPath and only the fixed path string is passed as an argv element, with shebang/`sh <path>` dispatch (buildExecArgv) -- the semgrep LOW-confidence 'non-static command' flags are the exec of the controller's OWN re-exec'd binary, not attacker-constructed shell text. (2) dify-agent-runtime/internal/server/tmux.go wraps user script execution via tmux using shellJoin/shellQuote helpers that quote each argument before composing the wrapper script, and the user's script itself runs inside a Landlock-restricted (default SHELLCTL_ENABLE_PATH_ISOLATION=true, envvar.go:34-40) sandboxed process tree that confines filesystem access -- i.e. arbitrary command execution is the TOOL'S DECLARED JOB, with sandboxing as the mitigating control, not a hidden injection flaw. api/libs/helper.py:127-128 run(script) (subprocess.getstatusoutput('source /root/.bashrc && '+script), a real shell-injection-shaped sink) has NO callers anywhere in the api/ runtime tree (grep confirms only this definition, zero call sites) -- dead code, not reachable from any HTTP/tool-call path, so it does not establish execution_reachability for a VULNERABLE verdict.","vulnerability_details":null,"fix_guidance":"Remove the unreferenced api/libs/helper.py:run() dead code to eliminate future-reachability risk; keep SHELLCTL_ENABLE_PATH_ISOLATION defaulted to true and do not allow it to be disabled in multi-tenant deployments.","why_this_matters":"Unsanitized command construction in shipped runtime code can give a remote attacker arbitrary code execution with the application's privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":108,"end_line":117,"snippet":"\tself, _ := os.Executable()\n\tchildArgs := []string{\"--exec\", scriptPath, cwd}\n\tif enableIsolation {\n\t\tchildArgs = append([]string{\"--exec\", \"--landlock\"}, childArgs[1:]...)\n\t}\n\n\tcmd := exec.Command(self, childArgs...)\n\tcmd.Env = env\n\tcmd.Dir = cwd"},{"path":"dify-agent-runtime/internal/envvar/envvar.go","start_line":33,"end_line":40,"snippet":"// PathIsolationEnabled returns whether Landlock filesystem isolation is active.\nfunc PathIsolationEnabled() bool {\n\tv, ok := os.LookupEnv(EnvEnablePathIsolation)\n\tif !ok {\n\t\treturn true\n\t}\n\treturn v == \"true\"\n}"},{"path":"api/libs/helper.py","start_line":127,"end_line":128,"snippet":"def run(script):\n    return subprocess.getstatusoutput(\"source /root/.bashrc && \" + script)"},{"path":"dify-agent-runtime/internal/server/tmux.go","start_line":246,"end_line":246,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":320,"end_line":320,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":115,"end_line":115,"snippet":null,"vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0004","rule_version":"1.2.0","rule_name":"DoS Protections: Timeouts, Concurrency, Streaming Limits","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The codebase implements layered DoS protections: (1) a generic rate-limit decorator/library (api/libs/rate_limit.py) with per-IP/session/account/email/token sliding-window limits applied to auth-sensitive endpoints (device code, SSO initiate, bearer token validation, etc.); (2) the outbound SSRF-protected HTTP client enforces connect/read/write/total timeouts by default (SSRF_DEFAULT_TIME_OUT family) and a bounded buffer_response() that raises ResponseTooLargeError once decoded bytes exceed a configured cap, preventing unbounded streaming responses from exhausting memory; (3) upload size limits are enforced per content type (UPLOAD_FILE_SIZE_LIMIT, UPLOAD_IMAGE_FILE_SIZE_LIMIT, UPLOAD_VIDEO_FILE_SIZE_LIMIT, UPLOAD_AUDIO_FILE_SIZE_LIMIT, UPLOAD_SKILL_FILE_SIZE_LIMIT) in api/configs/feature/__init__.py and enforced in FileService.is_file_size_within_limit before any save() call.","vulnerability_details":null,"fix_guidance":"Continue to audit newly added external-facing endpoints to ensure they are decorated with an appropriate RateLimit spec; consider a global default body-size limit at the WSGI/reverse-proxy layer as defense in depth.","why_this_matters":"Resource exhaustion can crash or stall MCP.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/helper/ssrf_proxy.py","start_line":287,"end_line":300,"snippet":"def buffer_response(response: httpx.Response, *, max_response_bytes: int) -> httpx.Response:\n    \"\"\"Consume one open identity response under a decoded byte limit and close its stream.\"\"\"\n    if max_response_bytes <= 0:\n        raise ValueError(\"max_response_bytes must be positive\")\n    try:\n        content_encoding = response.headers.get(\"content-encoding\", \"identity\").strip().lower()\n        if content_encoding not in {\"\", \"identity\"}:\n            raise UnsupportedResponseEncodingError(...)\n        content = bytearray()\n        for chunk in response.iter_bytes():\n            if len(content) + len(chunk) > max_response_bytes:\n                raise ResponseTooLargeError(f\"response exceeded {max_response_bytes} bytes\")\n            content.extend(chunk)"},{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_DEVICE_FLOW_APPROVE = RateLimit(...)\nLIMIT_LOOKUP_PUBLIC = RateLimit(60, timedelta(minutes=5), (RateLimitScope.IP,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/configs/feature/__init__.py","start_line":458,"end_line":488,"snippet":"    UPLOAD_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    KNOWLEDGE_UPLOAD_FILE_SIZE_LIMIT_FOR_PAID_PLAN: NonNegativeInt = Field(...)\n    UPLOAD_IMAGE_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_VIDEO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_AUDIO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_SKILL_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0005","rule_version":"1.2.0","rule_name":"Logging Hygiene (No Secrets/PII/Tokens) & Audit Trail","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"api/libs/helper.py's TokenManager.get_token_data() logs the FULL raw token value at WARNING level (enabled by default under LOG_LEVEL=INFO) whenever a lookup misses. TokenManager mints these tokens for password-reset and other auth flows, so a reset-password token lands in application logs verbatim, with no central redaction filter in place.","vulnerability_details":"api/libs/helper.py line 549: `logger.warning(\"%s token %s not found with key %s\", token_type, token, key)` logs the raw `token` argument (a UUID minted by TokenManager.generate_token for sensitive flows including password reset, api/services/account/login_adapters.py:328) at WARNING level, enabled under the default LOG_LEVEL=INFO. Anyone with read access to application logs (log-aggregation/SIEM access, a separate log-exposure bug, or an insider) can harvest live password-reset tokens straight from this log line and use them to take over the corresponding account before the token's TTL expires -- turning a routine 'token not found' debug log into an account-takeover credential leak.","fix_guidance":"Change helper.py:549 to log only a hash/prefix of the token (e.g. token[:8]+'...') or omit it entirely and log the Redis key alone; add a logging filter/formatter that redacts known credential-shaped fields project-wide as defense in depth.","why_this_matters":"Prevents sensitive data leakage; enables forensics.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0005 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"api/libs/helper.py","start_line":544,"end_line":551,"snippet":"    @classmethod\n    def get_token_data(cls, token: str, token_type: str) -> dict[str, Any] | None:\n        key = cls._get_token_key(token, token_type)\n        token_data_json = redis_client.get(key)\n        if token_data_json is None:\n            logger.warning(\"%s token %s not found with key %s\", token_type, token, key)\n            return None\n        return dict(_token_data_adapter.validate_json(token_data_json))"},{"path":"api/services/account/login_adapters.py","start_line":325,"end_line":330,"snippet":"            token = TokenManager.generate_token(\n                account_id=account_id,\n                email=email,"},{"path":"api/configs/feature/__init__.py","start_line":804,"end_line":807,"snippet":"    LOG_LEVEL: str = Field(\n        description=\"Logging level, default to INFO. Set to ERROR for production environments.\",\n        default=\"INFO\",\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0006","rule_version":"1.2.0","rule_name":"Container/Runtime Hardening","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"Trivy config scan identifies concrete hardening gaps: docker/couchbase-server/Dockerfile uses the floating ':latest' tag (DS-0001) and never sets a non-root USER (DS-0002, HIGH) -- confirmed by manual read, no USER directive exists so the container runs as root by inheritance from the base image. .devcontainer/Dockerfile also runs as root (DS-0002) and misses --no-install-recommends on apt-get install (DS-0029, HIGH). All Dockerfiles lack HEALTHCHECK (DS-0026, LOW). The two internet-facing production images (api/Dockerfile, web/Dockerfile) DO create and switch to a non-root 'dify' user, so the primary attack surface is hardened; the finding is scoped to the auxiliary Couchbase and dev-container images.","vulnerability_details":"docker/couchbase-server/Dockerfile runs its vector-DB backing service container as root (no USER directive) with an unpinned FROM couchbase/server:latest base. If an attacker achieves any code-execution foothold inside that container (e.g. via a future Couchbase CVE pulled in silently by the floating tag, or a vulnerability in init-cbserver.sh), running as root removes the standard UID-separation barrier, giving the attacker root-equivalent privileges inside the container and a larger blast radius for container-breakout primitives (e.g. abusing any mounted docker.sock, writable host paths, or kernel-level capabilities available to root but not to an unprivileged UID). The floating :latest tag means a rebuild can silently pull a newer and differently-vulnerable image without the change being reviewed.","fix_guidance":"Pin docker/couchbase-server/Dockerfile to a specific Couchbase version tag (not :latest) and add a non-root USER switch after setup; add USER directives to .devcontainer/Dockerfile and use --no-install-recommends there; add HEALTHCHECK instructions to all shipped Dockerfiles.","why_this_matters":"Reduces blast radius of exploits.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0006 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM couchbase/server:latest AS stage_base\n# FROM couchbase:latest AS stage_base\nCOPY init-cbserver.sh /opt/couchbase/init/\nRUN chmod +x /opt/couchbase/init/init-cbserver.sh"},{"path":".devcontainer/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM mcr.microsoft.com/devcontainers/python:3.13-bookworm\n\nRUN apt-get update && export DEBIAN_FRONTEND=noninteractive \\\n     && apt-get -y install libgmp-dev libmpfr-dev libmpc-dev"},{"path":"api/Dockerfile","start_line":125,"end_line":125,"snippet":"USER dify"},{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":1,"snippet":"FROM couchbase/server:latest AS stage_base"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0007","rule_version":"1.2.0","rule_name":"Dependency Risk & Supply Chain","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"Trivy's scan of the committed lockfiles (api/uv.lock, dify-agent/uv.lock, pnpm-lock.yaml, dify-agent-runtime/go.mod) found 23 known CVEs in pinned, locked dependency versions, including chromadb==0.5.20 (pinned in api/uv.lock as the Chroma vector-store provider's declared runtime dependency) mapped to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH), and CVE-2026-45831 (HIGH) with no fixed version yet published, alongside other HIGH/MEDIUM findings (e.g. pydantic-ai-slim, golang.org/x/mod, socket.io-parser) that do have published fixed versions the project has not yet adopted. The presence of these scanner-confirmed, unpatched CVEs in exact pinned dependency versions constitutes a supply-chain risk on its own; this finding does not assert a specific demonstrated remote-exploit path through the Chroma vector-store API, only that the vulnerable versions are locked and declared as runtime dependencies.","vulnerability_details":"api/uv.lock pins chromadb to exact version 0.5.20, which Trivy's vulnerability database maps to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH) and CVE-2026-45831 (HIGH) with no fixed version yet published. chromadb is Dify's vector-database client, used by the RAG/knowledge-base subsystem that ingests and queries attacker-influenceable document content; a deployment that enables the Chroma vector-store provider runs this vulnerable client code against untrusted document/query content, exposing whatever remote-code-execution/data-exposure primitive CVE-2026-45833 represents to any user who can trigger a knowledge-base query or ingest a document into a Chroma-backed dataset.","fix_guidance":"Upgrade or replace chromadb beyond 0.5.20 once a patched release addressing CVE-2026-45833/45830/45831 is available (or pin to a patched fork / disable the Chroma vector-store provider until then); separately upgrade pydantic-ai-slim to >=2.53.0, bump the vulnerable golang.org/x/mod dependency, and update socket.io-parser to a fixed release; add a scheduled dependency CVE scan to CI to catch newly disclosed CVEs in already-pinned packages.","why_this_matters":"Prevents typosquat and malicious update compromise.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0007 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The scan reported mitigation_present but the independent adjudication did not corroborate it; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/uv.lock","start_line":880,"end_line":883,"snippet":"name = \"chromadb\"\nversion = \"0.5.20\"\nsource = { registry = \"https://pypi.org/simple\" }\ndependencies = ["},{"path":"Makefile","start_line":170,"end_line":1,"snippet":"(go.mod pins golang.org/x/mod to a version affected by CVE-2026-56864 HIGH / CVE-2026-56865 HIGH, per trivy-fs.json Results[] for Target=='dify-agent-runtime/go.mod')"},{"path":"web/package.json","start_line":29,"end_line":29,"snippet":"\"preinstall\": \"npx only-allow pnpm\","},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45833","pkg_name":"chromadb","severity":"CRITICAL","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45830","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45831","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107286","pkg_name":"pydantic-ai-slim","severity":"HIGH","installed_version":"2.31.0","fixed_version":"2.53.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-69185","pkg_name":"socket.io-parser","severity":"HIGH","installed_version":"4.2.6","fixed_version":"4.2.7, 3.4.5, 3.3.6"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-102991","pkg_name":"mako","severity":"MEDIUM","installed_version":"1.3.12","fixed_version":"1.4.2"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-104874","pkg_name":"multidict","severity":"MEDIUM","installed_version":"6.7.0","fixed_version":"6.9.1"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49264","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49265","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107287","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.7, 2.52.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107289","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107290","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107291","pkg_name":"pydantic-ai-slim","severity":"LOW","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-103923","pkg_name":"katex","severity":"LOW","installed_version":"0.16.47","fixed_version":"0.18.2"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0008","rule_version":"1.2.0","rule_name":"Missing or Inadequate Input Validation","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Dify's console/service/web API controllers consistently validate request bodies against typed schemas before use: console endpoints use flask-restx `@console_ns.expect(...)` model bindings plus a `model_validate(SomeModel)` decorator pattern (e.g. api/controllers/console/auth/login.py `@console_ns.expect(console_ns.models[EmailPayload.__name__])` + `@model_validate(EmailPayload)`) backed by Pydantic models, and service-api / inner-api endpoints use Pydantic `TypeAdapter`/`BaseModel.model_validate_json` for structured payload validation (e.g. api/services/data_source/notion_oauth_gateway.py uses `_NOTION_SOURCE_INFO_ADAPTER`/`_NOTION_PAGE_SUMMARY_ADAPTER` TypeAdapters to validate even third-party OAuth provider responses before use). File-upload input is explicitly constrained (extension blacklist, size limits, filename character blacklist) in FileService before any filesystem write. This is the rule's documented negative-indicator pattern (strict schema validation; type/length checks) applied broadly across the controller surface.","vulnerability_details":null,"fix_guidance":"Keep enforcing Pydantic/TypeAdapter schema validation for all new endpoints and third-party response parsing; add `.strict()`/reject-unknown-fields where the framework supports it.","why_this_matters":"Frontline control to prevent multiple classes of vulns.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/services/file_service.py","start_line":100,"end_line":113,"snippet":"        extension = os.path.splitext(filename)[1].lstrip(\".\").lower()\n        if any(c in filename for c in [\"/\", \"\\\\\"]):\n            raise ValueError(\"Filename contains invalid characters\")\n        if len(filename) > 200:\n            filename = filename.split(\".\")[0][:200] + \".\" + extension\n        if extension and extension in dify_config.UPLOAD_FILE_EXTENSION_BLACKLIST:\n            raise BlockedFileExtensionError(f\"File extension '.{extension}' is not allowed for security reasons\")\n        if source == \"datasets\" and extension not in DOCUMENT_EXTENSIONS:\n            raise UnsupportedFileTypeError()"},{"path":"api/services/data_source/notion_oauth_gateway.py","start_line":25,"end_line":34,"snippet":"class _NotionSourceInfo(TypedDict):\n    workspace_name: str | None\n    workspace_icon: str | None\n    workspace_id: str | None\n    pages: list[_NotionPageSummary]\n    total: int\n\n_NOTION_SOURCE_INFO_ADAPTER = TypeAdapter(_NotionSourceInfo)\n_NOTION_PAGE_SUMMARY_ADAPTER = TypeAdapter(_NotionPageSummary)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0009","rule_version":"1.2.0","rule_name":"Insecure Deserialization","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"pickle is used to serialize/deserialize RAG embedding vectors (api/models/dataset.py:744-747, api/core/rag/embedding/cached_embedding.py:115,198), but tracing the write path shows embedding bytes are produced exclusively by CacheEmbedding, which pickles the FLOAT LIST returned directly from the configured embedding model's own invoke_text_embedding()/invoke_multimodal_embedding() output -- there is no code path where externally-supplied bytes (an uploaded file, an HTTP body, a tool argument) are passed to pickle.loads. Reaching the sink with attacker-chosen bytes would require an independent primitive (e.g. direct DB write access or a different injection bug) that is not present in this codebase, so the required attacker_controlled_source and continuous source_to_sink_flow this rule demands cannot be established from the cited code; the evaluation_rubric's 'Deserialization of constants only' false_positive_guard class applies by analogy (model-generated, not request-controlled). Separately, api/services/agent/roster_package_reader.py:352-379 deserializes untrusted Roster Agent package YAML using a hardened yaml.SafeLoader subclass (_PackageYamlLoader) that explicitly rejects YAML aliases and non-string mapping keys -- the one YAML-deserialization sink that DOES take externally-supplied (uploaded package) content uses the safe loader, which is the rule's documented negative indicator.","vulnerability_details":null,"fix_guidance":"Defense-in-depth: replace pickle with numpy .tobytes()/np.frombuffer (fixed dtype) or a JSON float array for the Embedding.embedding column so this stored blob can never become a code-execution primitive even if a future bug (SQLi, bulk-import, compromised worker) lets an attacker write to that column directly.","why_this_matters":"Can lead to arbitrary code execution.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/rag/embedding/cached_embedding.py","start_line":107,"end_line":119,"snippet":"                cache_embeddings = []\n                try:\n                    for i, n_embedding in zip(embedding_queue_indices, embedding_queue_embeddings):\n                        text_embeddings[i] = n_embedding\n                        hash = helper.generate_text_hash(texts[i])\n                        if hash not in cache_embeddings:\n                            embedding_cache = Embedding(\n                                model_name=self._model_instance.model_name,\n                                hash=hash,\n                                provider_name=self._model_instance.provider,\n                                embedding=pickle.dumps(n_embedding, protocol=pickle.HIGHEST_PROTOCOL),\n                            )"},{"path":"api/models/dataset.py","start_line":743,"end_line":747,"snippet":"    def set_embedding(self, embedding_data: list[float]):\n        self.embedding = pickle.dumps(embedding_data, protocol=pickle.HIGHEST_PROTOCOL)\n\n    def get_embedding(self) -> list[float]:\n        return cast(list[float], pickle.loads(self.embedding))  # noqa: S301"},{"path":"api/services/agent/roster_package_reader.py","start_line":352,"end_line":379,"snippet":"            return yaml.load(payload, Loader=_PackageYamlLoader), size  # noqa: S506\n        except (UnicodeDecodeError, yaml.YAMLError, ValueError, RecursionError) as exc:\n            raise InvalidRosterAgentPackageError(...)\n                f\"Roster Agent package {path.removesuffix('.yaml')} is invalid\"\n            ) from exc\n\n\nclass _PackageYamlLoader(yaml.SafeLoader):\n    \"\"\"Reject ambiguous mappings and aliases in untrusted package documents.\"\"\"\n\n    @override"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0010","rule_version":"1.2.0","rule_name":"Lack of Output Encoding/Sanitization","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The semgrep XSS-shaped hits (python.flask.security.audit.xss.make-response-with-unknown-content, 8 occurrences across login.py, agent_config_inspector.py, recommended_app.py, tool_providers.py, trigger_providers.py) all resolve on inspection to `make_response(dump_response(SomeTypedModel, {...}))` calls -- i.e. a structured, schema-typed JSON-shaped payload serialized through a typed response-dump helper, not raw/unescaped user input written into an HTML content-type response. The project's web frontend (React/Next.js in web/) uses JSX's default auto-escaping for rendered text and the two `render-template-string` hits (api/libs/email_template_renderer.py, api/tasks/mail_inner_task.py) go through a Jinja2 `ImmutableSandboxedEnvironment` in SANDBOX mode by default (MAIL_TEMPLATING_MODE default = SANDBOX), which blocks template-level code/attribute-traversal exploitation even if the template string itself were attacker-influenced.","vulnerability_details":null,"fix_guidance":"Keep MAIL_TEMPLATING_MODE defaulted to SANDBOX (never UNSAFE) in production configuration guidance; continue returning typed/serialized model objects from make_response rather than raw string concatenation.","why_this_matters":"Prevents UI-level injection and operator compromise.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/controllers/console/auth/login.py","start_line":173,"end_line":177,"snippet":"        response = make_response(dump_response(SimpleResultResponse, {\"result\": \"success\"}))\n        clear_access_token_from_cookie(response)\n        clear_refresh_token_from_cookie(response)\n        clear_csrf_token_from_cookie(response)\n        return response"},{"path":"api/libs/email_template_renderer.py","start_line":17,"end_line":28,"snippet":"class SandboxedEnvironment(ImmutableSandboxedEnvironment):\n    \"\"\"Sandboxed environment with execution timeout.\"\"\"\n    def __init__(self, timeout: int, *args: Any, **kwargs: Any):\n        self._deadline = time.time() + timeout if timeout else None\n        super().__init__(*args, **kwargs)\n    @override\n    def call(self, context: Context, obj: Any, *args: Any, **kwargs: Any) -> Any:\n        if self._deadline is not None and time.time() > self._deadline:\n            raise TimeoutError(\"Template rendering timeout\")\n        return super().call(context, obj, *args, **kwargs)"},{"path":"api/configs/feature/__init__.py","start_line":1155,"end_line":1158,"snippet":"    MAIL_TEMPLATING_MODE: TemplateMode = Field(\n        description=\"Template mode for email services\",\n        default=TemplateMode.SANDBOX,\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0011","rule_version":"1.4.0","rule_name":"Path Traversal & Symlink Bypass (Filesystem Tools)","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The agent CLI's skill-pull flow (dify-agent-runtime/internal/agentcli/config.go) builds the download archive path and extraction directory directly from a skill name supplied via CLI argument or a downloaded manifest, using filepath.Join(targetDir, name+\".zip\") and a matching skillDir, without checking for path separators, absolute paths, or containment within targetDir. filepath.Join normalizes '../' segments, so a name such as '../../outside' causes the resulting path to escape targetDir, and the subsequent MkdirAll/os.WriteFile calls can then create or overwrite files outside the intended skills directory. The earlier SECURE verdict considered only the UUID-keyed API upload path (which is safely indirected) and did not examine this separate CLI/manifest-driven skill-pull flow, which has no equivalent indirection or validation before the filesystem sink.","vulnerability_details":null,"fix_guidance":"Validate the skill name before it is used to build any filesystem path in config.go's skill-pull flow: reject names containing path separators or '..' segments, or that resolve (after filepath.Clean/filepath.Abs) outside targetDir, before calling filepath.Join/MkdirAll/os.WriteFile.","why_this_matters":"Traversal exposes arbitrary host files; can lead to code execution.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":56,"end_line":63,"snippet":"// RunConfigSkillsPull executes the `config skills pull` command.\nfunc RunConfigSkillsPull(env *Environment, names []string, localDir string, jsonOutput bool) error {\n\tclient, err := NewStubClient(env)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer func() { _ = client.Close() }()\n"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":76,"end_line":83,"snippet":"\t\t\t\t} `json:\"items\"`\n\t\t\t} `json:\"skills\"`\n\t\t}\n\t\tif err := json.Unmarshal(body, &manifest); err != nil {\n\t\t\treturn fmt.Errorf(\"parse manifest: %w\", err)\n\t\t}\n\t\tfor _, item := range manifest.Skills.Items {\n\t\t\tnames = append(names, item.Name)"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":104,"end_line":123,"snippet":"\t}\n\n\terr = runConfigPulls(len(names), func(index int) error {\n\t\tname := names[index]\n\t\tdownload, err := client.CreateConfigDownloadURL(ctx, \"skill\", name)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"request config skill %q download URL: %w\", name, err)\n\t\t}\n\t\tarchiveBytes, err := client.DownloadFromURL(download.DownloadURL)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"download config skill %q: %w\", name, err)\n\t\t}\n\n\t\tarchivePath := filepath.Join(targetDir, name+\".zip\")\n\t\tskillDir := filepath.Join(targetDir, name)\n\t\tif err := os.MkdirAll(skillDir, 0o755); err != nil {\n\t\t\treturn fmt.Errorf(\"create skill directory: %w\", err)\n\t\t}\n\t\tif err := os.WriteFile(archivePath, archiveBytes, 0o644); err != nil {\n\t\t\treturn fmt.Errorf(\"write archive: %w\", err)"},{"path":"dify-agent-runtime/internal/snapshot/save.go","start_line":83,"end_line":83,"snippet":"\t\t\tf, err := os.Open(p)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":763,"end_line":763,"snippet":"\tendedAtRaw, err := os.ReadFile(endedAtPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":759,"end_line":759,"snippet":"\texitCodeRaw, err := os.ReadFile(exitCodePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":106,"end_line":106,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":38,"end_line":38,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/sanitize/sanitize.go","start_line":155,"end_line":155,"snippet":"\t\tf, err := os.Create(readyFile)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/httpclient.go","start_line":72,"end_line":72,"snippet":"\treturn os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":548,"end_line":548,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":471,"end_line":471,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":133,"end_line":133,"snippet":"\t\tif data, err := os.ReadFile(skillMDPath); err == nil {","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":120,"end_line":120,"snippet":"\t\toutFile, err := os.Create(destPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":71,"end_line":71,"snippet":"\t\tfile, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":15,"end_line":15,"snippet":"\toutFile, err := os.Create(archivePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":343,"end_line":343,"snippet":"\tdata, err := os.ReadFile(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":325,"end_line":325,"snippet":"\tf, err := os.Open(scriptPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":254,"end_line":254,"snippet":"\tfile, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0600)","vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0012","rule_version":"1.2.0","rule_name":"Denial of Wallet / Cost Controls","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"Model/tool invocation paths are protected by multiple quota/budget layers: api/libs/rate_limit.py provides per-IP/account/session/email/token sliding-window rate limits applied to auth and API-bearer-token validation; FeatureService (api/services/feature_service.py referenced throughout controllers, e.g. human_input_delivery_test_service.py's `features.human_input_email_delivery_enabled` gate) enforces plan-based feature/quota gating before billable operations execute; and dataset/knowledge upload size limits (UPLOAD_FILE_SIZE_LIMIT family) bound the cost of ingestion-triggered embedding calls. The SSRF-protected HTTP client additionally bounds retries (SSRF_DEFAULT_MAX_RETRIES) and response size (buffer_response max_response_bytes), preventing unbounded retry storms or oversized-response costs on outbound calls to paid third-party APIs/model providers.","vulnerability_details":null,"fix_guidance":"Continue enforcing plan-based quotas (FeatureService) on any newly added billable/model-invocation endpoint; ensure per-tenant model-call quotas are consistently checked before each LLM/tool invocation.","why_this_matters":"Prevents cost-based disruption.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/core/helper/ssrf_proxy.py","start_line":226,"end_line":284,"snippet":"    retries = 0\n    while retries <= max_retries:\n        ...\n        retries += 1\n        if retries <= max_retries:\n            time.sleep(BACKOFF_FACTOR * (2 ** (retries - 1)))\n    raise MaxRetriesExceededError(f\"Reached maximum retries ({max_retries}) for URL {url}\")"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0013","rule_version":"1.1.0","rule_name":"Tool Output Sanitization & Injection Containment","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"low","rationale":"Dify's CoT agent runner assigns tool invocation results verbatim to scratchpad.observation and then interpolates that value verbatim into the 'Observation:' section of model-visible assistant history (api/core/agent/cot_agent_runner.py), with no sanitization, escaping, role-marker stripping, or untrusted-return annotation applied anywhere between the tool-output assignment and the point it re-enters the model's context. This allows tool-sourced content (e.g. a malicious web page or API response surfaced through a fetch/scrape-style tool) to inject text that the model treats as part of its own reasoning history, with no host-enforced trust boundary on that path.","vulnerability_details":null,"fix_guidance":"Add a sanitization/escaping layer for tool outputs before they are concatenated into the agent scratchpad: strip or neutralize control characters and fake role/system markers, and wrap tool output in an explicit untrusted-content envelope before it is interpolated into the Observation: section in cot_agent_runner.py and fc_agent_runner.py.","why_this_matters":"Tool outputs are a primary prompt-injection vector. Third-party content (web pages, files, API responses) may contain text crafted to override instructions or impersonate system/tool messages. Without a host-enforced envelope, sanitization, and an explicit untrusted-return signal, the model can be coerced into executing attacker-controlled directives, leaking secrets, or chaining further tool calls on behalf of the adversary.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0013 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/agent/cot_agent_runner.py","start_line":244,"end_line":252,"snippet":"                    tool_invoke_response, tool_invoke_meta = self._handle_invoke_action(\n                        session=session,\n                        action=scratchpad.action,\n                        tool_instances=tool_instances,\n                        message_file_ids=message_file_ids,\n                        trace_manager=trace_manager,\n                    )\n                    scratchpad.observation = tool_invoke_response\n                    scratchpad.agent_response = tool_invoke_response"},{"path":"api/core/agent/cot_agent_runner.py","start_line":400,"end_line":413,"snippet":"    def _format_assistant_message(self, agent_scratchpad: list[AgentScratchpadUnit]) -> str:\n        \"\"\"\n        format assistant message\n        \"\"\"\n        message = \"\"\n        for scratchpad in agent_scratchpad:\n            if scratchpad.is_final():\n                message += f\"Final Answer: {scratchpad.agent_response}\"\n            else:\n                message += f\"Thought: {scratchpad.thought}\\n\\n\"\n                if scratchpad.action_str:\n                    message += f\"Action: {scratchpad.action_str}\\n\\n\"\n                if scratchpad.observation:\n                    message += f\"Observation: {scratchpad.observation}\\n\\n\""}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0014","rule_version":"1.2.0","rule_name":"CI/CD Workflow Script Injection","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Reviewed all workflows using dangerous triggers (workflow_run, repository_dispatch, workflow_dispatch) for attacker-controlled interpolation into shell run blocks. The i18n translation pipeline (trigger-i18n-sync.yml -> translate-i18n-claude.yml) passes attacker-influenceable data (PR/commit content) only through typed client_payload fields consumed as quoted shell variables (BASE_SHA=\"...\"), and the PR-coverage-comment workflows (pyrefly-diff-comment.yml, pyrefly-type-coverage-comment.yml) using workflow_run only check out the DEFAULT branch (trusted code) and fetch data via the GitHub API/artifacts rather than interpolating untrusted strings directly into a run: block. The 12 semgrep yaml.github-actions.security.run-shell-injection hits (accessibility-e2e.yml, cli-e2e.yml, pyrefly-diff.yml, pyrefly-type-coverage.yml, style.yml, translate-i18n-claude.yml) all resolve to either workflow_dispatch 'choice' inputs enforced by a fixed options list, maintainer-only manual dispatch, values interpolated only within an already-double-quoted shell string consumed as data (not re-parsed/eval'd), or SHA values resolved via git/GitHub Actions context rather than free-form attacker text. No case shows a continuous source-to-sink path from an untrusted field to an unguarded shell execution with secrets/write-token exposure.","vulnerability_details":null,"fix_guidance":"Continue pinning actions by SHA (already done); keep workflow_dispatch choice-type inputs server-enforced; avoid ever switching the i18n pipeline to pull_request_target without validating client_payload fields against a strict allowlist/regex before use.","why_this_matters":"CI/CD script injection can execute attacker-controlled commands with workflow tokens, repository secrets, trusted-runner access, artifact or cache authority, and release or deployment privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":".github/workflows/translate-i18n-claude.yml","start_line":75,"end_line":95,"snippet":"if [ \"${{ github.event_name }}\" = \"repository_dispatch\" ]; then\n  BASE_SHA=\"${{ github.event.client_payload.base_sha }}\"\n  HEAD_SHA=\"${{ github.event.client_payload.head_sha }}\"\n  CHANGED_FILES=\"${{ github.event.client_payload.changed_files }}\"\n  ...\n  if [ -n \"${{ github.event.client_payload.changes_base64 }}\" ]; then\n    printf '%s' '${{ github.event.client_payload.changes_base64 }}' | base64 -d > /tmp/i18n-changes.json"},{"path":".github/workflows/pyrefly-type-coverage-comment.yml","start_line":20,"end_line":29,"snippet":"if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.pull_requests[0].head.repo.full_name != github.repository }}\nsteps:\n  - name: Checkout default branch (trusted code)\n    uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-R0001","rule_version":"1.3.0","rule_name":"Weaponization: Malicious-Purpose Artifact (Offensive Capability by Design)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Investigated all 3 YARA matches flagged repo-wide. (1) api/configs/remote_settings_sources/apollo/utils.py:46-47 'Zeus_Malware_Reverse_Shell' -- this is a UDP connect()-to-8.8.8.8 trick used purely to discover the machine's outbound-facing local IP address for Apollo remote-config client registration; there is no socket-to-shell wiring, no subprocess/exec, no network listener -- a benign, extremely common Python idiom misidentified by the socket+connect co-occurrence heuristic. (2) dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py:57-61 -- a pytest fixture that spawns a throwaway, loopback-bound (127.0.0.1) redis-server subprocess for an integration test and tears it down in a finally block; it is test infrastructure, not an operational reverse shell (no socket piped to a shell, no attacker-facing listener). (3) e2e/AGENTS.md:26-56 'tool_poisoning secondary-objective wide-span' match itself carries confidence 25 and is explicitly annotated by the scanner as 'likely ordinary prose, not a poisoned tool description' -- reading the cited span confirms it is contributor-facing documentation about E2E test runner architecture (tags, seeds, cleanup) with zero instructions directing model/agent behavior, no injected directives, and no secondary objective. Dify's overall product is a LLM app-development/agent-orchestration platform (not an offensive-security tool), and none of its shipped code, skills, or agent instructions direct generation of malware/exploits/credential theft or mass-abuse tooling.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact whose purpose is to weaponize the agent -- to produce malware, steal credentials, evade defenses, or run attacks at scale -- is dangerous regardless of how securely it is built; posture controls (auth, input validation, least privilege) cannot make a weapon safe, which is why a confirmed weaponization finding caps the trust verdict to `blocked` rather than being averaged against a good posture score. Catching malicious PURPOSE is a distinct safety control, and it must be conservative because offensive capability is dual-use: legitimate pentest, CTF, defensive, and research work must abstain (UNKNOWN), never block -- unless the artifact itself hides from the people who install, run or audit it.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"api/configs/remote_settings_sources/apollo/utils.py","start_line":42,"end_line":52,"snippet":"def init_ip() -> str:\n    ip = \"\"\n    s = None\n    try:\n        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n        s.connect((\"8.8.8.8\", 53))\n        ip = s.getsockname()[0]\n    finally:\n        if s:\n            s.close()\n    return ip","vulnerability":{}},{"path":"dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py","start_line":50,"end_line":76,"snippet":"@pytest.fixture\ndef redis_url() -> Iterator[str]:\n    \"\"\"Start an isolated Redis when the binary is available locally.\"\"\"\n    redis_server = shutil.which(\"redis-server\")\n    if redis_server is None:\n        pytest.skip(\"redis-server is required for run terminal integration tests\")\n    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as probe:\n        probe.bind((\"127.0.0.1\", 0))\n        port = probe.getsockname()[1]\n    process = subprocess.Popen(  # noqa: S603\n        [redis_server, \"--bind\", \"127.0.0.1\", \"--port\", str(port), \"--save\", \"\", \"--appendonly\", \"no\"],\n        stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT,\n    )","vulnerability":{}},{"path":"e2e/AGENTS.md","start_line":26,"end_line":56,"snippet":"- Generate disposable resource names through `support/naming.ts` with an `E2E` prefix.\n- Keep deterministic upload material in `fixtures/test-materials/`...\n- Seed scripts own shared long-lived fixtures; scenarios own disposable resources...\n- Use typed `DifyWorld` cleanup fields... Registered callbacks run LIFO after typed cleanup queues.\n- Remove child and referencing resources before owners. Attach cleanup failures to the report instead of swallowing them.\n(contributor-facing E2E test architecture doc; no agent-directed secondary objective)","vulnerability":{}}],"affected_tools":null,"component_name":null}],"component_tools":[{"tool_name":"app_invocation_tool","tool_description":"Dynamically-named MCP tool (named after the published Dify app) that invokes the underlying Dify app (chat/completion/workflow/agent) with caller-supplied query/inputs via AppGenerateService.generate and returns the generated answer/structured content. Registered per-app via ListToolsRequest/CallToolRequest handlers in core/mcp/server/streamable_http.py.","types":["write","exec-capable","untrusted-output"],"status":"IMPLEMENTED","component_name":"mcp-server/api"},{"tool_name":"delete","tool_description":null,"types":["unknown"],"status":"IMPLEMENTED","component_name":"mcp-server/api"},{"tool_name":"get","tool_description":null,"types":["unknown"],"status":"IMPLEMENTED","component_name":"mcp-server/api"},{"tool_name":"head","tool_description":null,"types":["unknown"],"status":"IMPLEMENTED","component_name":"mcp-server/api"},{"tool_name":"patch","tool_description":null,"types":["unknown"],"status":"IMPLEMENTED","component_name":"mcp-server/api"},{"tool_name":"post","tool_description":null,"types":["unknown"],"status":"IMPLEMENTED","component_name":"mcp-server/api"},{"tool_name":"put","tool_description":null,"types":["unknown"],"status":"IMPLEMENTED","component_name":"mcp-server/api"}],"summary":{"high_level_risks":["Known CVEs in pinned dependency versions, notably chromadb==0.5.20 (CVE-2026-45833 CRITICAL, plus two HIGH CVEs) with no fix currently available, and additional HIGH CVEs in pydantic-ai-slim, golang.org/x/mod, and socket.io-parser (ATR-C0007, HIGH).","Hardcoded default secrets shipped in docker-compose.yaml/docker-compose-template.yaml (PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY, DIFY_AGENT_SERVER_SECRET_KEY, MINIO_SECRET_KEY) take effect on any deployment that does not override them, giving a publicly-known static credential for internal plugin-daemon/inner-API/object-storage channels (ATR-C0002, HIGH).","Dify's app-as-MCP-server feature (api/controllers/mcp/mcp.py, api/core/mcp/server/streamable_http.py) exposes a remote streamable-HTTP MCP endpoint gated solely by a 16-char CSPRNG 'server_code' embedded in the URL path -- there is no standard Authorization/Bearer check, no OAuth 2.1/PKCE flow, and no rate limiting on the server_code lookup, making it a bearer-URL style credential with brute-force risk and typical URL-secret leakage via proxy/access logs and Referer headers.","The `mcp` Flask blueprint is the only blueprint registered in extensions/ext_blueprints.py with NO CORS/Origin policy applied, leaving no Origin/Host validation in front of a host-side-effectful endpoint that invokes full Dify app generation.","A password-reset / sensitive auth token is logged in full at WARNING level in api/libs/helper.py TokenManager.get_token_data, exposing a usable account-takeover credential to anyone with log access (ATR-C0005, MEDIUM).","The reference deployment ships insecure-by-default transport settings: the API container's gunicorn process binds 0.0.0.0 with no TLS, and NGINX_HTTPS_ENABLED defaults to false in docker/docker-compose.yaml / docker/.env.example, making TLS opt-in rather than mandatory.","Insecure deserialization (pickle) used for the RAG embedding cache column; the stored BLOB has no integrity binding, so any future write primitive against that column becomes an RCE vector (ATR-C0009).","Auxiliary/dev container images (docker/couchbase-server/Dockerfile, .devcontainer/Dockerfile) run as root and/or use a floating ':latest' base tag, unlike the hardened production api/Dockerfile and web/Dockerfile (ATR-C0006, MEDIUM).","Tool-output-to-LLM-context sanitization (ATR-C0013) could not be fully verified across the plugin-daemon boundary; the agent scratchpad/Observation concatenation path and plugin-daemon tool-result boundary lack confirmed control-character/injection-marker stripping.","skills/difyctl destructive operations (remove/revoke) have no enforced confirmation prompt, relying on the model volunteering confirmation rather than enforcing it in the agent harness."],"top_remediations":["Upgrade or disable the chromadb vector-store provider pending a fix for CVE-2026-45833/45830/45831; upgrade pydantic-ai-slim, golang.org/x/mod, and socket.io-parser to patched versions.","Remove hardcoded fallback secret values from docker-compose*.yaml; fail-fast or auto-generate random secrets on first run instead.","Add OAuth 2.1 (with PKCE) as the primary authorization mechanism for the inbound MCP server endpoint, or at minimum require a standard Authorization header bearer token in addition to server_code, plus rate limiting/lockout on failed server_code lookups.","Apply an explicit CORS/Origin allowlist (or host-based validation) to the `mcp` Flask blueprint consistent with the other blueprints in extensions/ext_blueprints.py.","Stop logging raw token values in api/libs/helper.py TokenManager.get_token_data; log only a hash/prefix or the Redis key.","Make TLS mandatory (NGINX_HTTPS_ENABLED default true) for any deployment exposing MCP/API endpoints beyond localhost, and default DIFY_BIND_ADDRESS to loopback for standalone (non-compose) runs.","Replace pickle-based embedding serialization with a safe format (numpy tobytes/JSON) as defense-in-depth against any future write-path compromise.","Add non-root USER directives and pin a specific (non-'latest') base image tag for docker/couchbase-server/Dockerfile and .devcontainer/Dockerfile; add HEALTHCHECK to all shipped Dockerfiles.","Conduct a focused audit of the tool-output-to-context concatenation path (agent scratchpad Observation field) and the plugin-daemon boundary for control-character/prompt-injection-marker sanitization.","Harden skills/difyctl's destructive-operation guidance into an enforced confirmation gate in the surrounding agent harness."]},"rollup":{"component_findings_count":{"vulnerable":3,"secure":7,"not_applicable":1},"repo_findings_inherited_count":{"vulnerable":7,"secure":8,"not_applicable":0},"component_tools_count":{"write":1,"exec_capable":1,"untrusted_output":1,"unknown":6},"worst_case_severity":"CRITICAL"},"trust_scores":{"repo_level":{"score":25,"tier":"critical","capability_band":"extreme","score_confidence":"low","score_interval":{"low":8,"high":42},"factors":["ATR-M0003 HIGH","ATR-M0009 HIGH","ATR-C0001 HIGH","ATR-C0002 HIGH","ATR-C0005 MEDIUM","ATR-C0006 MEDIUM","ATR-C0007 HIGH","ATR-C0011 HIGH","ATR-C0013 HIGH"]},"component_level":{"score":34,"tier":"critical","capability_band":"extreme","score_confidence":"low","score_interval":{"low":17,"high":51},"factors":["ATR-M0003 HIGH","ATR-M0009 HIGH"]}}},{"artifact_version":"2.0","component":{"component_type":"skill","component_name":"skills-plugins/e2e/fixtures/test-materials/e2e-summary-skill","component_path":"e2e/fixtures/test-materials/e2e-summary-skill","metadata":{"manifest":"SKILL.md"}},"scan_provenance":{"scanned_at":"2026-10-14T23:52:06.135Z","resolved_ref":"f77facfe6520ed379d723288aed0b4806ad76143","resolved_ver":null},"repo_context":{"repo_url":"https://github.com/langgenius/dify","languages":["Python","TypeScript","JavaScript","Go","Dockerfile"],"transports_detected":["stdio","sse","streamable_http"],"deployment_artifacts":["docker/docker-compose.yaml","docker/Dockerfile","api/Dockerfile","web/Dockerfile","docker/docker-compose.middleware.yaml"],"provenance":{"publisher":"langgenius","publisher_verified":true,"signed_build":false,"dependency_cve_count":34,"maintenance_active":true,"declared_policy":false}},"component_findings":[{"rule_id":"ATR-P0001","rule_version":"1.0.0","rule_name":"Capability Transparency: Declared Purpose vs. Actual Behavior (Shadow Features)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Trivial fixture skill used by Agent Builder E2E tests; it declares and performs exactly one action (summarize input, include a fixed marker string) with no hidden behavior. This is test fixture content (under e2e/fixtures/test-materials/), not a shipped product skill.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Install-time trust is granted from the artifact's self-description, so any bundled capability the description does not disclose -- network egress, credential reads, or subprocess execution -- runs as an unconsented backdoor with the host agent's full privileges.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"e2e/fixtures/test-materials/e2e-summary-skill/SKILL.md","start_line":1,"end_line":10,"snippet":"---\nname: e2e-summary-skill\ndescription: Summarize user input for Agent Builder E2E coverage.\n---\n\n# e2e-summary-skill\n\nSummarize the user input in one concise paragraph.\n\nThe summary must include E2E_SUMMARY_SKILL_PASS."}],"affected_tools":null,"component_name":"skills-plugins/e2e/fixtures/test-materials/e2e-summary-skill"},{"rule_id":"ATR-P0002","rule_version":"1.0.0","rule_name":"Consent Suppression and Guardrail / Human-in-the-Loop Subversion via Trusted Instructions","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Trivial test-fixture skill with a single summarization instruction; no consent/guardrail-related directive present.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Because a skill/plugin instruction body is ingested as trusted first-party context, consent- or oversight-suppressing prose inherits the host's full authority and turns a passive package into a self-authorizing backdoor that strips the human-in-the-loop control from every action it can reach.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"e2e/fixtures/test-materials/e2e-summary-skill/SKILL.md","start_line":6,"end_line":10,"snippet":"# e2e-summary-skill\n\nSummarize the user input in one concise paragraph.\n\nThe summary must include E2E_SUMMARY_SKILL_PASS."}],"affected_tools":null,"component_name":"skills-plugins/e2e/fixtures/test-materials/e2e-summary-skill"},{"rule_id":"ATR-P0003","rule_version":"1.2.0","rule_name":"Host-Credential and Conversation-Context Harvesting and Exfiltration","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"The skill reads only the current user input for summarization; it does not read host credentials, prior conversation history, or memory, and defines no outbound channel. The subject matter this rule targets -- a host-credential or conversation-context harvest coupled with an exfiltration path -- is absent from this artifact.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin that couples a host-credential or live-conversation read with an outbound channel turns an ostensibly benign helper into an autonomous exfiltration agent, leaking long-lived secrets, session tokens, and confidential prompt context to an attacker on every invocation across every tool the artifact serves.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"e2e/fixtures/test-materials/e2e-summary-skill/SKILL.md","start_line":6,"end_line":10,"snippet":"# e2e-summary-skill\n\nSummarize the user input in one concise paragraph.\n\nThe summary must include E2E_SUMMARY_SKILL_PASS."}],"affected_tools":null,"component_name":"skills-plugins/e2e/fixtures/test-materials/e2e-summary-skill"},{"rule_id":"ATR-P0004","rule_version":"1.1.0","rule_name":"Format-Native Out-of-Band Execution and Host Control-Plane Persistence","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"The component consists solely of a prose-only SKILL.md with no bundled script, hook, entry point, host configuration, persistence write, or execution-enabling environment assignment. The execution- and persistence-related subject matter this rule targets is absent from this artifact.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Format-native execution and control-plane writes bypass the model's reasoning loop, converting a single install approval into durable, self-reinjecting code execution that can MITM the host agent's own model endpoint and silently subvert every subsequent tool call.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"e2e/fixtures/test-materials/e2e-summary-skill/SKILL.md","start_line":6,"end_line":10,"snippet":"# e2e-summary-skill\n\nSummarize the user input in one concise paragraph.\n\nThe summary must include E2E_SUMMARY_SKILL_PASS."}],"affected_tools":null,"component_name":"skills-plugins/e2e/fixtures/test-materials/e2e-summary-skill"},{"rule_id":"ATR-P0005","rule_version":"1.0.0","rule_name":"Over-Declared / Over-Privileged Artifact Manifest Scope","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"Declared scope (summarize input for E2E coverage) matches the trivial single-purpose behavior; no over-privilege.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact that self-declares host privilege far beyond its stated function -- or hides executable reach inside a passive-looking package -- gives a single install a blast radius the operator never scoped, so any later mistake, compromise, or misconfiguration detonates across resources the artifact never needed.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"e2e/fixtures/test-materials/e2e-summary-skill/SKILL.md","start_line":3,"end_line":3,"snippet":"description: Summarize user input for Agent Builder E2E coverage."}],"affected_tools":null,"component_name":"skills-plugins/e2e/fixtures/test-materials/e2e-summary-skill"},{"rule_id":"ATR-P0006","rule_version":"1.1.0","rule_name":"Injection and Concealed Directives in Skill/Plugin Manifest and Instruction Text","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"The instruction to embed a fixed marker string ('E2E_SUMMARY_SKILL_PASS') is visible plain text, clearly declared as the purpose of this E2E test-fixture skill (verifying that the Agent Builder actually invoked this skill), not a concealed or malicious directive.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin's always-loaded manifest and instruction carriers (frontmatter/body, `description_for_model`, Gemini `FunctionDeclaration.description` / Vertex AI extension `manifest` / ADK agent `instruction`, tool docstrings, JSON-Schema descriptions) are concatenated into the host agent prompt at operator privilege, so a directive that is hidden with non-printing codepoints, disguised with a homoglyph, forged with role-control tokens, or masked from the rendered view silently commandeers model behavior toward attacker-chosen actions across every tool the artifact serves -- with no code execution required and nothing visible to a reviewer reading the rendered text.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"e2e/fixtures/test-materials/e2e-summary-skill/SKILL.md","start_line":6,"end_line":10,"snippet":"# e2e-summary-skill\n\nSummarize the user input in one concise paragraph.\n\nThe summary must include E2E_SUMMARY_SKILL_PASS."}],"affected_tools":null,"component_name":"skills-plugins/e2e/fixtures/test-materials/e2e-summary-skill"},{"rule_id":"ATR-P0007","rule_version":"1.0.0","rule_name":"Skill/Plugin Package Provenance, Integrity, and Post-Approval Mutation (Rug-Pull)","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"In-tree test-fixture skill versioned with the repo; no separate distribution/update channel.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill/plugin reviewed once and then trusted indefinitely becomes a rug-pull vector when its OWN model-facing instruction body, declared scope, or manifest can be live-swapped or silently mutated after approval -- without an approval-time digest that is re-compared on load and re-consent on any change, a publisher (or an attacker who compromises the distribution channel) can rewrite the artifact's trusted instructions or widen its tool scope under authority the host already granted, turning an approved package into an exfiltration or unauthorized-action backdoor.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"e2e/fixtures/test-materials/e2e-summary-skill/SKILL.md","start_line":1,"end_line":4,"snippet":"---\nname: e2e-summary-skill\ndescription: Summarize user input for Agent Builder E2E coverage.\n---"}],"affected_tools":null,"component_name":"skills-plugins/e2e/fixtures/test-materials/e2e-summary-skill"},{"rule_id":"ATR-P0008","rule_version":"1.0.0","rule_name":"Skill/Plugin Impersonation, Typosquatting & Publisher Spoofing","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"First-party test fixture with a plain descriptive name; no impersonation of any external brand.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Impersonation is the entry point of the agentic supply chain (OWASP LLM ASI04 / MITRE ATT&CK T1195): a skill or plugin installed on the strength of a familiar name inherits the host agent's execution context before any payload runs. The deception front-runs trust, so catching the identity lie breaks the chain at the cheapest point -- and it is independent of whether the current code is benign, because the same trusted-looking name can ship a payload in the next version.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"e2e/fixtures/test-materials/e2e-summary-skill/SKILL.md","start_line":2,"end_line":2,"snippet":"name: e2e-summary-skill"}],"affected_tools":null,"component_name":"skills-plugins/e2e/fixtures/test-materials/e2e-summary-skill"}],"repo_findings_inherited":[{"rule_id":"ATR-C0001","rule_version":"1.2.0","rule_name":"Unrestricted Network Fetch / SSRF","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The outbound HTTP client used for custom tool invocations and HTTP Request nodes falls back to a direct httpx client whenever SSRF_PROXY_HTTP_URL/SSRF_PROXY_HTTPS_URL are unset (they default to None in api/core/helper/ssrf_proxy.py), meaning the SSRF-blocking Squid proxy is an opt-in deployment choice rather than a code-enforced control. The custom-tool invocation path (api/core/tools/custom_tool/tool.py) dispatches the tool's configured server URL through this client with no in-code destination gate (no check against private/loopback/link-local ranges) before the request is sent. A deployment that does not explicitly configure the SSRF proxy environment variables -- which is possible under the project's supported configuration surface, not just the shipped Compose example -- allows a custom tool's configured URL to reach internal or private network destinations unguarded.","vulnerability_details":null,"fix_guidance":"Enforce SSRF protection in code rather than relying solely on an external proxy default: add a destination-validation check (reject private/loopback/link-local IP ranges) directly in the HTTP client construction path in api/core/helper/ssrf_proxy.py so protection applies even when SSRF_PROXY_HTTP_URL/HTTPS_URL are unset, and add an explicit gate in the custom-tool dispatch path in api/core/tools/custom_tool/tool.py before the configured server URL is fetched.","why_this_matters":"Enables internal pivoting and data exfiltration.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/tools/custom_tool/tool.py","start_line":65,"end_line":76,"snippet":"        self, credentials: dict[str, Any], parameters: dict[str, Any], format_only: bool = False\n    ) -> str:\n        \"\"\"\n        validate the credentials for Api tool\n        \"\"\"\n        # assemble validate request and request parameters\n        headers = self.assembling_request(parameters)\n\n        if format_only:\n            return \"\"\n\n        response = self.do_http_request(self.api_bundle.server_url, self.api_bundle.method, headers, parameters)"},{"path":"api/configs/feature/__init__.py","start_line":725,"end_line":738,"snippet":"    SSRF_PROXY_ALL_URL: str | None = Field(\n        description=\"Proxy URL for HTTP or HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTP_URL: str | None = Field(\n        description=\"Proxy URL for HTTP requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTPS_URL: str | None = Field(\n        description=\"Proxy URL for HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )"},{"path":"api/core/helper/ssrf_proxy.py","start_line":86,"end_line":101,"snippet":"def _build_ssrf_client(verify: bool) -> httpx.Client:\n    if dify_config.SSRF_PROXY_ALL_URL:\n        return httpx.Client(\n            proxy=dify_config.SSRF_PROXY_ALL_URL,\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    if dify_config.SSRF_PROXY_HTTP_URL and dify_config.SSRF_PROXY_HTTPS_URL:\n        return httpx.Client(\n            mounts=_create_proxy_mounts(verify=verify),\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    return httpx.Client(verify=verify, limits=_SSRF_CLIENT_LIMITS)"},{"path":"api/core/tools/custom_tool/tool.py","start_line":292,"end_line":306,"snippet":"            raise ValueError(f\"Invalid http method {method}\")\n        response: httpx.Response = _METHOD_MAP[\n            method_lc\n        ](  # https://discuss.python.org/t/type-inference-for-function-return-types/42926\n            url,\n            max_retries=0,\n            params=params,\n            headers=headers,\n            cookies=cookies,\n            data=body,\n            files=files,\n            timeout=API_TOOL_DEFAULT_TIMEOUT,\n            follow_redirects=True,\n        )\n        return response"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0002","rule_version":"1.3.2","rule_name":"Static Secrets","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"docker-compose.yaml and docker-compose-template.yaml ship REAL-LOOKING hardcoded default secret VALUES for inter-service authentication that take effect the moment an operator runs `docker compose up` without overriding the env vars: PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY default to the fixed base64-looking string 'lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi' / 'QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1' (identical across every public clone of the repo), DIFY_AGENT_SERVER_SECRET_KEY defaults to the fixed hex string '0123456789abcdef0123456789abcdef', and MINIO_SECRET_KEY defaults to 'minioadmin'. These are not placeholder/empty values in a .env.example (which would be the negative case) -- they are live fallback defaults baked directly into the shipped docker-compose YAML that is the project's documented one-command quick-start path, so any internet-reachable deployment that forgets to override them authenticates its internal plugin-daemon/inner-API channel and MinIO object storage with a publicly known static secret. This matches the rule's positive_indicator 'default changeme-style value' and its CWE-798/312 class directly.","vulnerability_details":"docker/docker-compose.yaml uses shell-style `${VAR:-default}` substitution where `default` is a concrete, realistic-looking secret baked into the committed YAML (not a placeholder like 'changeme' or empty string), for PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY/INNER_API_KEY_FOR_PLUGIN, DIFY_AGENT_SERVER_SECRET_KEY, and MINIO_SECRET_KEY. Any deployment that does not explicitly set these environment variables before `docker compose up` will run with these known-to-the-public credentials protecting the plugin-daemon <-> API inner channel and the MinIO backing store, letting anyone with network access to those internal ports (e.g. via SSRF, container escape, or a misconfigured network) authenticate as a trusted internal service.","fix_guidance":"Remove hardcoded fallback values from docker-compose for PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY/DIFY_AGENT_SERVER_SECRET_KEY/MINIO_SECRET_KEY; instead fail fast (or auto-generate a random secret at first-run via an init script) when the operator has not supplied a value, so no installation ever runs with a secret value that is identical and publicly known across every Dify deployment.","why_this_matters":"Plaintext secrets are easily exfiltrated.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0002 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/docker-compose.yaml","start_line":600,"end_line":604,"snippet":"      SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}\n      ...\n      DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":688,"end_line":688,"snippet":"      DIFY_AGENT_SERVER_SECRET_KEY: ${DIFY_AGENT_SERVER_SECRET_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":1104,"end_line":1104,"snippet":"      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}"},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":16,"end_line":17,"snippet":"PLUGIN_DAEMON_KEY=[REDACTED]\nPLUGIN_DIFY_INNER_API_KEY=[REDACTED]"},{"path":"api/Dockerfile","start_line":57,"end_line":57,"snippet":"ARG NODESOURCE_KEY_FPR=6F71F525282841EEDAF851B42F59B5F99B1BE0B4","vulnerability":{}},{"path":"api/.env.example","start_line":239,"end_line":239,"snippet":"# Prefix used to create collection name in vector database","vulnerability":{}},{"path":"api/.env.example","start_line":701,"end_line":701,"snippet":"POSITION_TOOL_EXCLUDES=","vulnerability":{}},{"path":"api/.env.example","start_line":715,"end_line":715,"snippet":"PLUGIN_MODEL_PROVIDERS_CACHE_TTL=86400","vulnerability":{}},{"path":"api/knowledge-fs-contract.lock.json","start_line":3,"end_line":3,"snippet":"  \"openapiSha256\": \"f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb\",","vulnerability":{}},{"path":"api/providers/vdb/vdb-alibabacloud-mysql/pyproject.toml","start_line":10,"end_line":10,"snippet":"alibabacloud_mysql = \"dify_vdb_alibabacloud_mysql.alibabacloud_mysql_vector:AlibabaCloudMySQLVectorFactory\"","vulnerability":{}},{"path":"api/services/agent/package_resource_exporter.py","start_line":257,"end_line":257,"snippet":"                    try:","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":30,"end_line":30,"snippet":"DIFY_AGENT_PLUGIN_DAEMON_API_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":36,"end_line":36,"snippet":"DIFY_AGENT_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":91,"end_line":91,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"dify-agent/docs/dify-agent/guide/index.md","start_line":151,"end_line":151,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/worker.env.example","start_line":10,"end_line":10,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/api.env.example","start_line":13,"end_line":13,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":165,"end_line":165,"snippet":"WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":174,"end_line":174,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":224,"end_line":224,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/.env.example","start_line":234,"end_line":234,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":280,"end_line":280,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":17,"end_line":17,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/dify-agent.env.example","start_line":118,"end_line":118,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/security.env.example","start_line":28,"end_line":29,"snippet":"OTLP_API_KEY=\nBAIDU_VECTOR_DB_API_KEY=dify","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":133,"end_line":133,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":166,"end_line":166,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":179,"end_line":179,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/vectorstores/weaviate.env.example","start_line":11,"end_line":11,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":204,"end_line":205,"snippet":"SENDGRID_API_KEY=\nINVITE_EXPIRY_HOURS=72","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":495,"end_line":495,"snippet":"VECTOR_STORE=weaviate","vulnerability":{}},{"path":"docker/docker-compose.yaml","start_line":1273,"end_line":1273,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"docker/docker-compose-template.yaml","start_line":1267,"end_line":1267,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"packages/contracts/generated/knowledge-fs/metadata.gen.ts","start_line":4,"end_line":5,"snippet":"export const knowledgeFsSourceOpenapiSha256 =\n  'f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb'","vulnerability":{}},{"path":"web/public/vs/editor/editor.main.js","start_line":631,"end_line":631,"snippet":"`))}}e.Trace=t}),define(ne[689],se([1,0,8,247,140]),function(oe,e,d,k,I){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.BaseResolvedKeybinding=void 0;class E extends I.ResolvedKeybinding{constructor(m,_){if(super(),_.length===0)throw(0,d.illegalArgument)(\"chords\");this._os=m,this._chords=_}getLabel(){return k.UILabelProvider.toLabel(this._os,this._chords,m=>this._getLabel(m))}getAriaLabel(){return k.AriaLabelProvider.toLabel(this._os,this._chords,m=>this._getAriaLabel(m))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:k.ElectronAcceleratorLabelProvider.toLabel(this._os,this._chords,m=>this._getElectronAccelerator(m))}getUserSettingsLabel(){return k.UserSettingsLabelProvider.toLabel(this._os,this._chords,m=>this._getUserSettingsLabel(m))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(m=>this._getChord(m))}_getChord(m){return new I.ResolvedChord(m.ctrlKey,m.shiftKey,m.altKey,m.metaKey,this._getLabel(m),this._getAriaLabel(m))}getDispatchChords(){return this._chords.map(m=>this._getChordDispatch(m))}getSingleModifierDispatchChords(){return this._chords.map(m=>this._getSingleModifierChordDispatch(m))}}e.BaseResolvedKeybinding=E}),define(ne[31],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,d.createDecorator)(\"keybindingService\")}),define(ne[391],se([1,0,5,174,2,31]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorHoverStatusBar=void 0;const y=d.$;let m=class extends I.Disposable{get hasContent(){return this._hasContent}constructor(b){super(),this._keybindingService=b,this.actions=[],this._hasContent=!1,this.hoverElement=y(\"div.hover-row.status-bar\"),this.hoverElement.tabIndex=0,this.actionsElement=d.append(this.hoverElement,y(\"div.actions\"))}addAction(b){const p=this._keybindingService.lookupKeybinding(b.commandId),n=p?p.getLabel():null;this._hasContent=!0;const o=this._register(k.HoverAction.render(this.actionsElement,b,n));return this.actions.push(o),o}append(b){const p=d.append(this.actionsElement,b);return this._hasContent=!0,p}};e.EditorHoverStatusBar=m,e.EditorHoverStatusBar=m=ke([ce(0,E.IKeybindingService)],m)}),define(ne[690],se([1,0,5,31,670,12,28,61,20,174,6]),function(oe,e,d,k,I,E,y,m,_,b,p){\"use strict\";var n;Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContentHoverWidget=void 0;const o=30,t=6;let i=class extends I.ResizableContentWidget{static{n=this}static{this.ID=\"editor.contrib.resizableContentHoverWidget\"}static{this._lastDimensions=new d.Dimension(0,0)}get isVisibleFromKeyboard(){return this._renderedHover?.source===1}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(c,l,a,r,u){const C=c.getOption(67)+8,f=150,h=new d.Dimension(f,C);super(c,h),this._configurationService=a,this._accessibilityService=r,this._keybindingService=u,this._hover=this._register(new b.HoverWidget),this._onDidResize=this._register(new p.Emitter),this.onDidResize=this._onDidResize.event,this._minimumSize=h,this._hoverVisibleKey=_.EditorContextKeys.hoverVisible.bindTo(l),this._hoverFocusedKey=_.EditorContextKeys.hoverFocused.bindTo(l),d.append(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex=\"50\",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(w=>{w.hasChanged(50)&&this._updateFont()}));const v=this._register(d.trackFocus(this._resizableNode.domNode));this._register(v.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(v.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return n.ID}static _applyDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.width=r,c.style.height=u}_setContentsDomNodeDimensions(c,l){const a=this._hover.contentsDomNode;return n._applyDimensions(a,c,l)}_setContainerDomNodeDimensions(c,l){const a=this._hover.containerDomNode;return n._applyDimensions(a,c,l)}_setHoverWidgetDimensions(c,l){this._setContentsDomNodeDimensions(c,l),this._setContainerDomNodeDimensions(c,l),this._layoutContentWidget()}static _applyMaxDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.maxWidth=r,c.style.maxHeight=u}_setHoverWidgetMaxDimensions(c,l){n._applyMaxDimensions(this._hover.contentsDomNode,c,l),n._applyMaxDimensions(this._hover.containerDomNode,c,l),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-maxWidth\",typeof c==\"number\"?`${c}px`:c),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(c){this._setHoverWidgetMaxDimensions(\"none\",\"none\");const l=c.width,a=c.height;this._setHoverWidgetDimensions(l,a)}_updateResizableNodeMaxDimensions(){const c=this._findMaximumRenderingWidth()??1/0,l=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new d.Dimension(c,l),this._setHoverWidgetMaxDimensions(c,l)}_resize(c){n._lastDimensions=new d.Dimension(c.width,c.height),this._setAdjustedHoverWidgetDimensions(c),this._resizableNode.layout(c.height,c.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const c=this._renderedHover?.showAtPosition;if(c)return this._positionPreference===1?this._availableVerticalSpaceAbove(c):this._availableVerticalSpaceBelow(c)}_findMaximumRenderingHeight(){const c=this._findAvailableSpaceVertically();if(!c)return;let l=t;return Array.from(this._hover.contentsDomNode.children).forEach(a=>{l+=a.clientHeight}),Math.min(c,l)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty(\"--vscode-hover-whiteSpace\",\"nowrap\"),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-sourceWhiteSpace\",\"nowrap\");const c=Array.from(this._hover.contentsDomNode.children).some(l=>l.scrollWidth>l.clientWidth);return this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-whiteSpace\"),this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-sourceWhiteSpace\"),c}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const c=this._isHoverTextOverflowing(),l=typeof this._contentWidth>\"u\"?0:this._contentWidth-2;return c||this._hover.containerDomNode.clientWidth<l?d.getClientArea(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(c,l){if(!this._renderedHover)return!1;if(this._renderedHover.initialMousePosX===void 0||this._renderedHover.initialMousePosY===void 0)return this._renderedHover.initialMousePosX=c,this._renderedHover.initialMousePosY=l,!1;const a=d.getDomNodePagePosition(this.getDomNode());this._renderedHover.closestMouseDistance===void 0&&(this._renderedHover.closestMouseDistance=s(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,a.left,a.top,a.width,a.height));const r=s(c,l,a.left,a.top,a.width,a.height);return r>this._renderedHover.closestMouseDistance+4?!1:(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,r),!0)}_setRenderedHover(c){this._renderedHover?.dispose(),this._renderedHover=c,this._hoverVisibleKey.set(!!c),this._hover.containerDomNode.classList.toggle(\"hidden\",!c)}_updateFont(){const{fontSize:c,lineHeight:l}=this._editor.getOption(50),a=this._hover.contentsDomNode;a.style.fontSize=`${c}px`,a.style.lineHeight=`${l/c}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName(\"code\")).forEach(u=>this._editor.applyFontInfo(u))}_updateContent(c){const l=this._hover.contentsDomNode;l.style.paddingBottom=\"\",l.textContent=\"\",l.appendChild(c)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const c=Math.max(this._editor.getLayoutInfo().height/4,250,n._lastDimensions.height),l=Math.max(this._editor.getLayoutInfo().width*.66,500,n._lastDimensions.width);this._setHoverWidgetMaxDimensions(l,c)}_render(c){this._setRenderedHover(c),this._updateFont(),this._updateContent(c.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(c){if(!this._editor||!this._editor.hasModel())return;this._render(c);const l=d.getTotalHeight(this._hover.containerDomNode),a=c.showAtPosition;this._positionPreference=this._findPositionPreference(l,a)??1,this.onContentsChanged(),c.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const u=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,b.getHoverAccessibleViewHint)(this._configurationService.getValue(\"accessibility.verbosity.hover\")===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding(\"editor.action.accessibleView\")?.getAriaLabel()??\"\");u&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+\", \"+u)}hide(){if(!this._renderedHover)return;const c=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new d.Dimension(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),c&&this._editor.focus()}_removeConstraintsRenderNormally(){const c=this._editor.getLayoutInfo();this._resizableNode.layout(c.height,c.width),this._setHoverWidgetDimensions(\"auto\",\"auto\")}setMinimumDimensions(c){this._minimumSize=new d.Dimension(Math.max(this._minimumSize.width,c.width),Math.max(this._minimumSize.height,c.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const c=typeof this._contentWidth>\"u\"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new d.Dimension(c,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const c=this._hover.containerDomNode;let l=d.getTotalHeight(c),a=d.getTotalWidth(c);if(this._resizableNode.layout(l,a),this._setHoverWidgetDimensions(a,l),l=d.getTotalHeight(c),a=d.getTotalWidth(c),this._contentWidth=a,this._updateMinimumWidth(),this._resizableNode.layout(l,a),this._renderedHover?.showAtPosition){const r=d.getTotalHeight(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(r,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c-l.lineHeight})}scrollDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c+l.lineHeight})}scrollLeft(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c-o})}scrollRight(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c+o})}pageUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c-l})}pageDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c+l})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};e.ContentHoverWidget=i,e.ContentHoverWidget=i=n=ke([ce(1,E.IContextKeyService),ce(2,y.IConfigurationService),ce(3,m.IAccessibilityService),ce(4,k.IKeybindingService)],i);function s(g,c,l,a,r,u){const C=l+r/2,f=a+u/2,h=Math.max(Math.abs(g-C)-r/2,0),v=Math.max(Math.abs(c-f)-u/2,0);return Math.sqrt(h*h+v*v)}}),define(ne[392],se([1,0,12]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.KeybindingResolver=e.NoMatchingKb=void 0,e.NoMatchingKb={kind:0};const k={kind:1};function I(_,b,p){return{kind:2,commandId:_,commandArgs:b,isBubble:p}}class E{constructor(b,p,n){this._log=n,this._defaultKeybindings=b,this._defaultBoundCommands=new Map;for(const o of b){const t=o.command;t&&t.charAt(0)!==\"-\"&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=E.handleRemovals([].concat(b).concat(p));for(let o=0,t=this._keybindings.length;o<t;o++){const i=this._keybindings[o];if(i.chords.length===0)continue;const s=i.when?.substituteConstants();s&&s.type===0||this._addKeyPress(i.chords[0],i)}}static _isTargetedForRemoval(b,p,n){if(p){for(let o=0;o<p.length;o++)if(p[o]!==b.chords[o])return!1}return!(n&&n.type!==1&&(!b.when||!(0,d.expressionsAreEqualWithConstantSubstitution)(n,b.when)))}static handleRemovals(b){const p=new Map;for(let o=0,t=b.length;o<t;o++){const i=b[o];if(i.command&&i.command.charAt(0)===\"-\"){const s=i.command.substring(1);p.has(s)?p.get(s).push(i):p.set(s,[i])}}if(p.size===0)return b;const n=[];for(let o=0,t=b.length;o<t;o++){const i=b[o];if(!i.command||i.command.length===0){n.push(i);continue}if(i.command.charAt(0)===\"-\")continue;const s=p.get(i.command);if(!s||!i.isDefault){n.push(i);continue}let g=!1;for(const c of s){const l=c.when;if(this._isTargetedForRemoval(i,c.chords,l)){g=!0;break}}if(!g){n.push(i);continue}}return n}_addKeyPress(b,p){const n=this._map.get(b);if(typeof n>\"u\"){this._map.set(b,[p]),this._addToLookupMap(p);return}for(let o=n.length-1;o>=0;o--){const t=n[o];if(t.command===p.command)continue;let i=!0;for(let s=1;s<t.chords.length&&s<p.chords.length;s++)if(t.chords[s]!==p.chords[s]){i=!1;break}i&&E.whenIsEntirelyIncluded(t.when,p.when)&&this._removeFromLookupMap(t)}n.push(p),this._addToLookupMap(p)}_addToLookupMap(b){if(!b.command)return;let p=this._lookupMap.get(b.command);typeof p>\"u\"?(p=[b],this._lookupMap.set(b.command,p)):p.push(b)}_removeFromLookupMap(b){if(!b.command)return;const p=this._lookupMap.get(b.command);if(!(typeof p>\"u\")){for(let n=0,o=p.length;n<o;n++)if(p[n]===b){p.splice(n,1);return}}}static whenIsEntirelyIncluded(b,p){return!p||p.type===1?!0:!b||b.type===1?!1:(0,d.implies)(b,p)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(b,p){const n=this._lookupMap.get(b);if(typeof n>\"u\"||n.length===0)return null;if(n.length===1)return n[0];for(let o=n.length-1;o>=0;o--){const t=n[o];if(p.contextMatchesRules(t.when))return t}return n[n.length-1]}resolve(b,p,n){const o=[...p,n];this._log(`| Resolving ${o}`);const t=this._map.get(o[0]);if(t===void 0)return this._log(\"\\\\ No keybinding entries.\"),e.NoMatchingKb;let i=null;if(o.length<2)i=t;else{i=[];for(let g=0,c=t.length;g<c;g++){const l=t[g];if(o.length>l.chords.length)continue;let a=!0;for(let r=1;r<o.length;r++)if(l.chords[r]!==o[r]){a=!1;break}a&&i.push(l)}}const s=this._findCommand(b,i);return s?o.length<s.chords.length?(this._log(`\\\\ From ${i.length} keybinding entries, awaiting ${s.chords.length-o.length} more chord(s), when: ${y(s.when)}, source: ${m(s)}.`),k):(this._log(`\\\\ From ${i.length} keybinding entries, matched ${s.command}, when: ${y(s.when)}, source: ${m(s)}.`),I(s.command,s.commandArgs,s.bubble)):(this._log(`\\\\ From ${i.length} keybinding entries, no when clauses matched the context.`),e.NoMatchingKb)}_findCommand(b,p){for(let n=p.length-1;n>=0;n--){const o=p[n];if(E._contextMatchesRules(b,o.when))return o}return null}static _contextMatchesRules(b,p){return p?p.evaluate(b):!0}}e.KeybindingResolver=E;function y(_){return _?`${_.serialize()}`:\"no when condition\"}function m(_){return _.extensionId?_.isBuiltinExtension?`built-in extension ${_.extensionId}`:`user extension ${_.extensionId}`:_.isDefault?\"built-in\":\"user\"}}),define(ne[691],se([1,0,14,8,6,300,2,3,392]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractKeybindingService=void 0;const b=/^(cursor|delete|undo|redo|tab|editor\\.action\\.clipboard)/;class p extends y.Disposable{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:I.Event.None}get inChordMode(){return this._currentChords.length>0}constructor(t,i,s,g,c){super(),this._contextKeyService=t,this._commandService=i,this._telemetryService=s,this._notificationService=g,this._logService=c,this._onDidUpdateKeybindings=this._register(new I.Emitter),this._currentChords=[],this._currentChordChecker=new d.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new d.TimeoutTimer,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(t){this._logging&&this._logService.info(`[KeybindingService]: ${t}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(t,i){const s=this._getResolver().lookupPrimaryKeybinding(t,i||this._contextKeyService);if(s)return s.resolvedKeybinding}dispatchEvent(t,i){return this._dispatch(t,i)}softDispatch(t,i){this._log(\"/ Soft dispatching keyboard event\");const s=this.resolveKeyboardEvent(t);if(s.hasMultipleChords())return console.warn(\"keyboard event should not be mapped to multiple chords\"),_.NoMatchingKb;const[g]=s.getDispatchChords();if(g===null)return this._log(\"\\\\ Keyboard event cannot be dispatched\"),_.NoMatchingKb;const c=this._contextKeyService.getContext(i),l=this._currentChords.map(({keypress:a})=>a);return this._getResolver().resolve(c,l,g)}_scheduleLeaveChordMode(){const t=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-t>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(t,i){switch(this._currentChords.push({keypress:t,label:i}),this._currentChords.length){case 0:throw(0,k.illegalState)(\"impossible\");case 1:this._currentChordStatusMessage=this._notificationService.status(m.localize(1538,\"({0}) was pressed. Waiting for second key of chord...\",i));break;default:{const s=this._currentChords.map(({label:g})=>g).join(\", \");this._currentChordStatusMessage=this._notificationService.status(m.localize(1539,\"({0}) was pressed. Waiting for next key of chord...\",s))}}this._scheduleLeaveChordMode(),E.IME.enabled&&E.IME.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],E.IME.enable()}_dispatch(t,i){return this._doDispatch(this.resolveKeyboardEvent(t),i,!1)}_singleModifierDispatch(t,i){const s=this.resolveKeyboardEvent(t),[g]=s.getSingleModifierDispatchChords();if(g)return this._ignoreSingleModifiers.has(g)?(this._log(`+ Ignoring single modifier ${g} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${g}.`),this._currentSingleModifier=g,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log(\"+ Clearing single modifier due to 300ms elapsed.\"),this._currentSingleModifier=null},300),!1):g===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${g} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(s,i,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[c]=s.getChords();return this._ignoreSingleModifiers=new n(c),this._currentSingleModifier!==null&&this._log(\"+ Clearing single modifier due to other key up.\"),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(t,i,s=!1){let g=!1;if(t.hasMultipleChords())return console.warn(\"Unexpected keyboard event mapped to multiple chords\"),!1;let c=null,l=null;if(s){const[C]=t.getSingleModifierDispatchChords();c=C,l=C?[C]:[]}else[c]=t.getDispatchChords(),l=this._currentChords.map(({keypress:C})=>C);if(c===null)return this._log(\"\\\\ Keyboard event cannot be dispatched in keydown phase.\"),g;const a=this._contextKeyService.getContext(i),r=t.getLabel(),u=this._getResolver().resolve(a,l,c);switch(u.kind){case 0:{if(this._logService.trace(\"KeybindingService#dispatch\",r,\"[ No matching keybinding ]\"),this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving multi-chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1540,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}return g}case 1:return this._logService.trace(\"KeybindingService#dispatch\",r,\"[ Several keybindings match - more chords needed ]\"),g=!0,this._expectAnotherChord(c,r),this._log(this._currentChords.length===1?\"+ Entering multi-chord mode...\":\"+ Continuing multi-chord mode...\"),g;case 2:{if(this._logService.trace(\"KeybindingService#dispatch\",r,`[ Will dispatch command ${u.commandId} ]`),u.commandId===null||u.commandId===\"\"){if(this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1541,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}}else{this.inChordMode&&this._leaveChordMode(),u.isBubble||(g=!0),this._log(`+ Invoking command ${u.commandId}.`),this._currentlyDispatchingCommandId=u.commandId;try{typeof u.commandArgs>\"u\"?this._commandService.executeCommand(u.commandId).then(void 0,C=>this._notificationService.warn(C)):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,C=>this._notificationService.warn(C))}finally{this._currentlyDispatchingCommandId=null}b.test(u.commandId)||this._telemetryService.publicLog2(\"workbenchActionExecuted\",{id:u.commandId,from:\"keybinding\",detail:t.getUserSettingsLabel()??void 0})}return g}}}mightProducePrintableCharacter(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30}}e.AbstractKeybindingService=p;class n{static{this.EMPTY=new n(null)}constructor(t){this._ctrlKey=t?t.ctrlKey:!1,this._shiftKey=t?t.shiftKey:!1,this._altKey=t?t.altKey:!1,this._metaKey=t?t.metaKey:!1}has(t){switch(t){case\"ctrl\":return this._ctrlKey;case\"shift\":return this._shiftKey;case\"alt\":return this._altKey;case\"meta\":return this._metaKey}}}}),define(ne[393],se([1,0]),function(oe,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ResolvedKeybindingItem=void 0,e.toEmptyArrayIfContainsNull=k;class d{constructor(E,y,m,_,b,p,n){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=E,this.chords=E?k(E.getDispatchChords()):[],E&&this.chords.length===0&&(this.chords=k(E.getSingleModifierDispatchChords())),this.bubble=y?y.charCodeAt(0)===94:!1,this.command=this.bubble?y.substr(1):y,this.commandArgs=m,this.when=_,this.isDefault=b,this.extensionId=p,this.isBuiltinExtension=n}}e.ResolvedKeybindingItem=d;function k(I){const E=[];for(let y=0,m=I.length;y<m;y++){const _=I[y];if(!_)return[];E.push(_)}return E}}),define(ne[692],se([1,0,72,140,689,393]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.USLayoutResolvedKeybinding=void 0;class y extends I.BaseResolvedKeybinding{constructor(_,b){super(b,_)}_keyCodeToUILabel(_){if(this._os===2)switch(_){case 15:return\"\\u2190\";case 16:return\"\\u2191\";case 17:return\"\\u2192\";case 18:return\"\\u2193\"}return d.KeyCodeUtils.toString(_)}_getLabel(_){return _.isDuplicateModifierCase()?\"\":this._keyCodeToUILabel(_.keyCode)}_getAriaLabel(_){return _.isDuplicateModifierCase()?\"\":d.KeyCodeUtils.toString(_.keyCode)}_getElectronAccelerator(_){return d.KeyCodeUtils.toElectronAccelerator(_.keyCode)}_getUserSettingsLabel(_){if(_.isDuplicateModifierCase())return\"\";const b=d.KeyCodeUtils.toUserSettingsUS(_.keyCode);return b&&b.toLowerCase()}_getChordDispatch(_){return y.getDispatchStr(_)}static getDispatchStr(_){if(_.isModifierKey())return null;let b=\"\";return _.ctrlKey&&(b+=\"ctrl+\"),_.shiftKey&&(b+=\"shift+\"),_.altKey&&(b+=\"alt+\"),_.metaKey&&(b+=\"meta+\"),b+=d.KeyCodeUtils.toString(_.keyCode),b}_getSingleModifierChordDispatch(_){return _.keyCode===5&&!_.shiftKey&&!_.altKey&&!_.metaKey?\"ctrl\":_.keyCode===4&&!_.ctrlKey&&!_.altKey&&!_.metaKey?\"shift\":_.keyCode===6&&!_.ctrlKey&&!_.shiftKey&&!_.metaKey?\"alt\":_.keyCode===57&&!_.ctrlKey&&!_.shiftKey&&!_.altKey?\"meta\":null}static _scanCodeToKeyCode(_){const b=d.IMMUTABLE_CODE_TO_KEY_CODE[_];if(b!==-1)return b;switch(_){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(_){if(!_)return null;if(_ instanceof k.KeyCodeChord)return _;const b=this._scanCodeToKeyCode(_.scanCode);return b===0?null:new k.KeyCodeChord(_.ctrlKey,_.shiftKey,_.altKey,_.metaKey,b)}static resolveKeybinding(_,b){const p=(0,E.toEmptyArrayIfContainsNull)(_.chords.map(n=>this._toKeyCodeChord(n)));return p.length>0?[new y(p,b)]:[]}}e.USLayoutResolvedKeybinding=y}),define(ne[181],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,d.createDecorator)(\"labelService\")}),define(ne[119],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILayoutService=void 0,e.ILayoutService=(0,d.createDecorator)(\"layoutService\")}),define(ne[394],se([1,0,5,52,13,6,34,49,119]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorScopedLayoutService=void 0;let b=class{get mainContainer(){return(0,I.firstOrDefault)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??k.mainWindow.document.body}get activeContainer(){return(this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor())?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return d.getClientArea(this.mainContainer)}get activeContainerDimension(){return d.getClientArea(this.activeContainer)}get containers(){return(0,I.coalesce)(this._codeEditorService.listCodeEditors().map(o=>o.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(o){this._codeEditorService=o,this.onDidLayoutMainContainer=E.Event.None,this.onDidLayoutActiveContainer=E.Event.None,this.onDidLayoutContainer=E.Event.None,this.onDidChangeActiveContainer=E.Event.None,this.onDidAddContainer=E.Event.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};b=ke([ce(0,y.ICodeEditorService)],b);let p=class extends b{get mainContainer(){return this._container}constructor(o,t){super(t),this._container=o}};e.EditorScopedLayoutService=p,e.EditorScopedLayoutService=p=ke([ce(1,y.ICodeEditorService)],p),(0,m.registerSingleton)(_.ILayoutService,b,1)}),define(ne[693],se([1,0,5,52,6,2,61,28,12,119]),function(oe,e,d,k,I,E,y,m,_,b){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AccessibilityService=void 0;let p=class extends E.Disposable{constructor(o,t,i){super(),this._contextKeyService=o,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new I.Emitter,this._onDidChangeReducedMotion=new I.Emitter,this._onDidChangeLinkUnderline=new I.Emitter,this._accessibilityModeEnabledContext=y.CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration(\"editor.accessibilitySupport\")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),c.affectsConfiguration(\"workbench.reduceMotion\")&&(this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._onDidChangeReducedMotion.fire())})),s(),this._register(this.onDidChangeScreenReaderOptimized(()=>s()));const g=k.mainWindow.matchMedia(\"(prefers-reduced-motion: reduce)\");this._systemMotionReduced=g.matches,this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._linkUnderlinesEnabled=this._configurationService.getValue(\"accessibility.underlineLinks\"),this.initReducedMotionListeners(g),this.initLinkUnderlineListeners()}initReducedMotionListeners(o){this._register((0,d.addDisposableListener)(o,\"change\",()=>{this._systemMotionReduced=o.matches,this._configMotionReduced===\"auto\"&&this._onDidChangeReducedMotion.fire()}));const t=()=>{const i=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle(\"reduce-motion\",i),this._layoutService.mainContainer.classList.toggle(\"enable-motion\",!i)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration(t=>{if(t.affectsConfiguration(\"accessibility.underlineLinks\")){const i=this._configurationService.getValue(\"accessibility.underlineLinks\");this._linkUnderlinesEnabled=i,this._onDidChangeLinkUnderline.fire()}}));const o=()=>{const t=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle(\"underline-links\",t)};o(),this._register(this.onDidChangeLinkUnderlines(()=>o()))}onDidChangeLinkUnderlines(o){return this._onDidChangeLinkUnderline.event(o)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const o=this._configurationService.getValue(\"editor.accessibilitySupport\");return o===\"on\"||o===\"auto\"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const o=this._configMotionReduced;return o===\"on\"||o===\"auto\"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};e.AccessibilityService=p,e.AccessibilityService=p=ke([ce(0,_.IContextKeyService),ce(1,b.ILayoutService),ce(2,m.IConfigurationService)],p)}),define(ne[395],se([1,0,353,2,119,5]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContextViewService=e.ContextViewHandler=void 0;let y=class extends k.Disposable{constructor(b){super(),this.layoutService=b,this.contextView=this._register(new d.ContextView(this.layoutService.mainContainer,1)),this.layout(),this._register(b.onDidLayoutContainer(()=>this.layout()))}showContextView(b,p,n){let o;p?p===this.layoutService.getContainer((0,E.getWindow)(p))?o=1:n?o=3:o=2:o=1,this.contextView.setContainer(p??this.layoutService.activeContainer,o),this.contextView.show(b);const t={close:()=>{this.openContextView===t&&this.hideContextView()}};return this.openContextView=t,t}layout(){this.contextView.layout()}hideContextView(b){this.contextView.hide(b),this.openContextView=void 0}};e.ContextViewHandler=y,e.ContextViewHandler=y=ke([ce(0,I.ILayoutService)],y);class m extends y{getContextViewElement(){return this.contextView.getViewElement()}}e.ContextViewService=m}),define(ne[62],se([1,0,6,2,12,7]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.CONTEXT_LOG_LEVEL=e.MultiplexLogger=e.ConsoleLogger=e.AbstractLogger=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILogService=void 0,e.LogLevelToString=p,e.ILogService=(0,E.createDecorator)(\"logService\");var y;(function(n){n[n.Off=0]=\"Off\",n[n.Trace=1]=\"Trace\",n[n.Debug=2]=\"Debug\",n[n.Info=3]=\"Info\",n[n.Warning=4]=\"Warning\",n[n.Error=5]=\"Error\"})(y||(e.LogLevel=y={})),e.DEFAULT_LOG_LEVEL=y.Info;class m extends k.Disposable{constructor(){super(...arguments),this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new d.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(o){this.level!==o&&(this.level=o,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(o){return this.level!==y.Off&&this.level<=o}}e.AbstractLogger=m;class _ extends m{constructor(o=e.DEFAULT_LOG_LEVEL,t=!0){super(),this.useColors=t,this.setLevel(o)}trace(o,...t){this.checkLogLevel(y.Trace)&&(this.useColors?console.log(\"%cTRACE\",\"color: #888\",o,...t):console.log(o,...t))}debug(o,...t){this.checkLogLevel(y.Debug)&&(this.useColors?console.log(\"%cDEBUG\",\"background: #eee; color: #888\",o,...t):console.log(o,...t))}info(o,...t){this.checkLogLevel(y.Info)&&(this.useColors?console.log(\"%c INFO\",\"color: #33f\",o,...t):console.log(o,...t))}warn(o,...t){this.checkLogLevel(y.Warning)&&(this.useColors?console.log(\"%c WARN\",\"color: #993\",o,...t):console.log(o,...t))}error(o,...t){this.checkLogLevel(y.Error)&&(this.useColors?console.log(\"%c  ERR\",\"color: #f33\",o,...t):console.error(o,...t))}}e.ConsoleLogger=_;class b extends m{constructor(o){super(),this.loggers=o,o.length&&this.setLevel(o[0].getLevel())}setLevel(o){for(const t of this.loggers)t.setLevel(o);super.setLevel(o)}trace(o,...t){for(const i of this.loggers)i.trace(o,...t)}debug(o,...t){for(const i of this.loggers)i.debug(o,...t)}info(o,...t){for(const i of this.loggers)i.info(o,...t)}warn(o,...t){for(const i of this.loggers)i.warn(o,...t)}error(o,...t){for(const i of this.loggers)i.error(o,...t)}dispose(){for(const o of this.loggers)o.dispose();super.dispose()}}e.MultiplexLogger=b;function p(n){switch(n){case y.Trace:return\"trace\";case y.Debug:return\"debug\";case y.Info:return\"info\";case y.Warning:return\"warn\";case y.Error:return\"error\";case y.Off:return\"off\"}}e.CONTEXT_LOG_LEVEL=new I.RawContextKey(\"logLevel\",p(y.Info))}),define(ne[212],se([1,0,64,5,93,47,296,14,6,2,128,11,310,23,61,62]),function(oe,e,d,k,I,E,y,m,_,b,p,n,o,t,i,s){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.TextAreaWrapper=e.ClipboardEventUtils=e.TextAreaInput=e.InMemoryClipboardMetadataManager=e.CopyOptions=e.TextAreaSyntethicEvents=void 0;var g;(function(u){u.Tap=\"-monaco-textarea-synthetic-tap\"})(g||(e.TextAreaSyntethicEvents=g={})),e.CopyOptions={forceCopyWithSyntaxHighlighting:!1};class c{static{this.INSTANCE=new c}constructor(){this._lastState=null}set(C,f){this._lastState={lastCopiedValue:C,data:f}}get(C){return this._lastState&&this._lastState.lastCopiedValue===C?this._lastState.data:(this._lastState=null,null)}}e.InMemoryClipboardMetadataManager=c;class l{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(C){C=C||\"\";const f={text:C,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=C.length,f}}let a=class extends b.Disposable{get textAreaState(){return this._textAreaState}constructor(C,f,h,v,w,S){super(),this._host=C,this._textArea=f,this._OS=h,this._browser=v,this._accessibilityService=w,this._logService=S,this._onFocus=this._register(new _.Emitter),this.onFocus=this._onFocus.event,this._onBlur=this._register(new _.Emitter),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new _.Emitter),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new _.Emitter),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new _.Emitter),this.onCut=this._onCut.event,this._onPaste=this._register(new _.Emitter),this.onPaste=this._onPaste.event,this._onType=this._register(new _.Emitter),this.onType=this._onType.event,this._onCompositionStart=this._register(new _.Emitter),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new _.Emitter),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new _.Emitter),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new _.Emitter),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new b.MutableDisposable),this._asyncTriggerCut=this._register(new m.RunOnceScheduler(()=>this._onCut.fire(),0)),this._textAreaState=o.TextAreaState.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent(\"ctor\"),this._register(_.Event.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let L=null;this._register(this._textArea.onKeyDown(D=>{const T=new E.StandardKeyboardEvent(D);(T.keyCode===114||this._currentComposition&&T.keyCode===1)&&T.stopPropagation(),T.equals(9)&&T.preventDefault(),L=T,this._onKeyDown.fire(T)})),this._register(this._textArea.onKeyUp(D=>{const T=new E.StandardKeyboardEvent(D);this._onKeyUp.fire(T)})),this._register(this._textArea.onCompositionStart(D=>{o._debugComposition&&console.log(\"[compositionstart]\",D);const T=new l;if(this._currentComposition){this._currentComposition=T;return}if(this._currentComposition=T,this._OS===2&&L&&L.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===D.data&&(L.code===\"ArrowRight\"||L.code===\"ArrowLeft\")){o._debugComposition&&console.log(\"[compositionstart] Handling long press case on macOS + arrow key\",D),T.handleCompositionUpdate(\"x\"),this._onCompositionStart.fire({data:D.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:D.data});return}this._onCompositionStart.fire({data:D.data})})),this._register(this._textArea.onCompositionUpdate(D=>{o._debugComposition&&console.log(\"[compositionupdate]\",D);const T=this._currentComposition;if(!T)return;if(this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionUpdate.fire(D);return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionUpdate.fire(D)})),this._register(this._textArea.onCompositionEnd(D=>{o._debugComposition&&console.log(\"[compositionend]\",D);const T=this._currentComposition;if(!T)return;if(this._currentComposition=null,this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionEnd.fire();return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(D=>{if(o._debugComposition&&console.log(\"[input]\",D),this._textArea.setIgnoreSelectionChangeTime(\"received input event\"),this._currentComposition)return;const T=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),M=o.TextAreaState.deduceInput(this._textAreaState,T,this._OS===2);M.replacePrevCharCnt===0&&M.text.length===1&&(n.isHighSurrogate(M.text.charCodeAt(0))||M.text.charCodeAt(0)===127)||(this._textAreaState=T,(M.text!==\"\"||M.replacePrevCharCnt!==0||M.replaceNextCharCnt!==0||M.positionDelta!==0)&&this._onType.fire(M))})),this._register(this._textArea.onCut(D=>{this._textArea.setIgnoreSelectionChangeTime(\"received cut event\"),this._ensureClipboardGetsEditorSelection(D),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(D=>{this._ensureClipboardGetsEditorSelection(D)})),this._register(this._textArea.onPaste(D=>{if(this._textArea.setIgnoreSelectionChangeTime(\"received paste event\"),D.preventDefault(),!D.clipboardData)return;let[T,M]=e.ClipboardEventUtils.getTextData(D.clipboardData);T&&(M=M||c.INSTANCE.get(T),this._onPaste.fire({text:T,metadata:M}))})),this._register(this._textArea.onFocus(()=>{const D=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!D&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"blurWithoutCompositionEnd\"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"tapWithoutCompositionEnd\"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let C=0;return k.addDisposableListener(this._textArea.ownerDocument,\"selectionchange\",f=>{if(y.inputLatency.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const h=Date.now(),v=h-C;if(C=h,v<5)return;const w=h-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),w<100||!this._textAreaState.selection)return;const S=this._textArea.getValue();if(this._textAreaState.value!==S)return;const L=this._textArea.getSelectionStart(),D=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===L&&this._textAreaState.selectionEnd===D)return;const T=this._textAreaState.deduceEditorPosition(L),M=this._host.deduceModelPosition(T[0],T[1],T[2]),A=this._textAreaState.deduceEditorPosition(D),P=this._host.deduceModelPosition(A[0],A[1],A[2]),N=new t.Selection(M.lineNumber,M.column,P.lineNumber,P.column);this._onSelectionChangeRequest.fire(N)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(C){this._hasFocus!==C&&(this._hasFocus=C,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent(\"focusgain\"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(C,f){this._hasFocus||(f=f.collapseSelection()),f.writeToTextArea(C,this._textArea,this._hasFocus),this._textAreaState=f}writeNativeTextAreaContent(C){!this._accessibilityService.isScreenReaderOptimized()&&C===\"render\"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${C})`),this._setAndWriteTextAreaState(C,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(C){const f=this._host.getDataToCopy(),h={version:1,isFromEmptySelection:f.isFromEmptySelection,multicursorText:f.multicursorText,mode:f.mode};c.INSTANCE.set(this._browser.isFirefox?f.text.replace(/\\r\\n/g,`","vulnerability":{}},{"path":"web/public/vs/language/typescript/tsWorker.js","start_line":320,"end_line":320,"snippet":"`||hn[0]===\"\\r\");)hn.shift()}function CP(hn){for(;hn.length;){let Tr=hn[hn.length-1].trimEnd();if(Tr===\"\")hn.pop();else if(Tr.length<hn[hn.length-1].length){hn[hn.length-1]=Tr;break}else break}}function fE(){for(;;){if(gt(),j()===1)return!0;if(!(j()===5||j()===4))return!1}}function Dg(){if(!((j()===5||j()===4)&&_i(fE)))for(;j()===5||j()===4;)gt()}function jy(){if((j()===5||j()===4)&&_i(fE))return\"\";let hn=t.hasPrecedingLineBreak(),Tr=!1,gr=\"\";for(;hn&&j()===42||j()===5||j()===4;)gr+=t.getTokenText(),j()===4?(hn=!0,Tr=!0,gr=\"\"):j()===42&&(hn=!1),gt();return Tr?gr:\"\"}function lD(hn){x.assert(j()===60);let Tr=t.getTokenStart();gt();let gr=gE(void 0),Ei=jy(),hi;switch(gr.escapedText){case\"author\":hi=Ss(Tr,gr,hn,Ei);break;case\"implements\":hi=Hy(Tr,gr,hn,Ei);break;case\"augments\":case\"extends\":hi=lm(Tr,gr,hn,Ei);break;case\"class\":case\"constructor\":hi=hE(Tr,m.createJSDocClassTag,gr,hn,Ei);break;case\"public\":hi=hE(Tr,m.createJSDocPublicTag,gr,hn,Ei);break;case\"private\":hi=hE(Tr,m.createJSDocPrivateTag,gr,hn,Ei);break;case\"protected\":hi=hE(Tr,m.createJSDocProtectedTag,gr,hn,Ei);break;case\"readonly\":hi=hE(Tr,m.createJSDocReadonlyTag,gr,hn,Ei);break;case\"override\":hi=hE(Tr,m.createJSDocOverrideTag,gr,hn,Ei);break;case\"deprecated\":Nr=!0,hi=hE(Tr,m.createJSDocDeprecatedTag,gr,hn,Ei);break;case\"this\":hi=T7(Tr,gr,hn,Ei);break;case\"enum\":hi=D$(Tr,gr,hn,Ei);break;case\"arg\":case\"argument\":case\"param\":return w(Tr,gr,2,hn);case\"return\":case\"returns\":hi=Be(Tr,gr,hn,Ei);break;case\"template\":hi=Jy(Tr,gr,hn,Ei);break;case\"type\":hi=kt(Tr,gr,hn,Ei);break;case\"typedef\":hi=MP(Tr,gr,hn,Ei);break;case\"callback\":hi=Ame(Tr,gr,hn,Ei);break;case\"overload\":hi=Ime(Tr,gr,hn,Ei);break;case\"satisfies\":hi=_E(Tr,gr,hn,Ei);break;case\"see\":hi=ir(Tr,gr,hn,Ei);break;case\"exception\":case\"throws\":hi=Wi(Tr,gr,hn,Ei);break;default:hi=Uy(Tr,gr,hn,Ei);break}return hi}function _p(hn,Tr,gr,Ei){return Ei||(gr+=Tr-hn),Sa(gr,Ei.slice(gr))}function Sa(hn,Tr){let gr=M(),Ei=[],hi=[],wa,ns=0,Dd;function ih(Cg){Dd||(Dd=hn),Ei.push(Cg),hn+=Cg.length}Tr!==void 0&&(Tr!==\"\"&&ih(Tr),ns=1);let Zu=j();e:for(;;){switch(Zu){case 4:ns=0,Ei.push(t.getTokenText()),hn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:x.assert(ns!==2&&ns!==3,\"whitespace shouldn't come from the scanner while saving comment text\");let Cg=t.getTokenText();Dd!==void 0&&hn+Cg.length>Dd&&(Ei.push(Cg.slice(Dd-hn)),ns=2),hn+=Cg.length;break;case 19:ns=2;let ep=t.getTokenFullStart(),uD=t.getTokenEnd()-1,tw=zl(uD);tw?(hi.push(Ut(m.createJSDocText(Ei.join(\"\")),wa??gr,ep)),hi.push(tw),Ei=[],wa=t.getTokenEnd()):ih(t.getTokenText());break;case 62:ns===3?ns=2:ns=3,ih(t.getTokenText());break;case 82:ns!==3&&(ns=2),ih(t.getTokenValue());break;case 42:if(ns===0){ns=1,hn+=1;break}default:ns!==3&&(ns=2),ih(t.getTokenText());break}ns===2||ns===3?Zu=bt(ns===3):Zu=gt()}DP(Ei);let Lm=Ei.join(\"\").trimEnd();if(hi.length)return Lm.length&&hi.push(Ut(m.createJSDocText(Lm),wa??gr)),ho(hi,gr,t.getTokenEnd());if(Lm.length)return Lm}function zl(hn){let Tr=ui(p1);if(!Tr)return;gt(),Dg();let gr=mE(),Ei=[];for(;j()!==20&&j()!==4&&j()!==1;)Ei.push(t.getTokenText()),gt();let hi=Tr===\"link\"?m.createJSDocLink:Tr===\"linkcode\"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return Ut(hi(gr,Ei.join(\"\")),hn,t.getTokenEnd())}function mE(){if(Md(j())){let hn=M(),Tr=tc();for(;$i(25);)Tr=Ut(m.createQualifiedName(Tr,j()===81?ys(80,!1):ls()),hn);for(;j()===81;)ti(),gt(),Tr=Ut(m.createJSDocMemberName(Tr,ls()),hn);return Tr}}function p1(){if(jy(),j()===19&&gt()===60&&Md(gt())){let hn=t.getTokenValue();if(NP(hn))return hn}}function NP(hn){return hn===\"link\"||hn===\"linkcode\"||hn===\"linkplain\"}function Uy(hn,Tr,gr,Ei){return Ut(m.createJSDocUnknownTag(Tr,_p(hn,M(),gr,Ei)),hn)}function PP(hn){hn&&(Ma?Ma.push(hn):(Ma=[hn],lf=hn.pos),v_=hn.end)}function Un(){return jy(),j()===19?Fe():void 0}function y(){let hn=Rv(23);hn&&Dg();let Tr=Rv(62),gr=dD();return Tr&&ua(62),hn&&(Dg(),Uo(64)&&we(),_n(24)),{name:gr,isBracketed:hn}}function D(hn){switch(hn.kind){case 151:return!0;case 188:return D(hn.elementType);default:return Yp(hn)&&Me(hn.typeName)&&hn.typeName.escapedText===\"Object\"&&!hn.typeArguments}}function w(hn,Tr,gr,Ei){let hi=Un(),wa=!hi;jy();let{name:ns,isBracketed:Dd}=y(),ih=jy();wa&&!_i(p1)&&(hi=Un());let Zu=_p(hn,M(),Ei,ih),Lm=ie(hi,ns,gr,Ei);Lm&&(hi=Lm,wa=!0);let Cg=gr===1?m.createJSDocPropertyTag(Tr,ns,Dd,hi,wa,Zu):m.createJSDocParameterTag(Tr,ns,Dd,hi,wa,Zu);return Ut(Cg,hn)}function ie(hn,Tr,gr,Ei){if(hn&&D(hn.type)){let hi=M(),wa,ns;for(;wa=ui(()=>I7(gr,Ei,Tr));)wa.kind===348||wa.kind===355?ns=pn(ns,wa):wa.kind===352&&Re(wa.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ns){let Dd=Ut(m.createJSDocTypeLiteral(ns,hn.type.kind===188),hi);return Ut(m.createJSDocTypeExpression(Dd),hi)}}}function Be(hn,Tr,gr,Ei){ct(Ma,T6)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Un();return Ut(m.createJSDocReturnTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function kt(hn,Tr,gr,Ei){ct(Ma,gN)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Fe(!0),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocTypeTag(Tr,hi,wa),hn)}function ir(hn,Tr,gr,Ei){let wa=j()===23||_i(()=>gt()===60&&Md(gt())&&NP(t.getTokenValue()))?void 0:mt(),ns=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSeeTag(Tr,wa,ns),hn)}function Wi(hn,Tr,gr,Ei){let hi=Un(),wa=_p(hn,M(),gr,Ei);return Ut(m.createJSDocThrowsTag(Tr,hi,wa),hn)}function Ss(hn,Tr,gr,Ei){let hi=M(),wa=Mm(),ns=t.getTokenFullStart(),Dd=_p(hn,ns,gr,Ei);Dd||(ns=t.getTokenFullStart());let ih=typeof Dd!=\"string\"?ho(ro([Ut(wa,hi,ns)],Dd),hi):wa.text+Dd;return Ut(m.createJSDocAuthorTag(Tr,ih),hn)}function Mm(){let hn=[],Tr=!1,gr=t.getToken();for(;gr!==1&&gr!==4;){if(gr===30)Tr=!0;else{if(gr===60&&!Tr)break;if(gr===32&&Tr){hn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}hn.push(t.getTokenText()),gr=gt()}return m.createJSDocText(hn.join(\"\"))}function Hy(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocImplementsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function lm(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocAugmentsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function _E(hn,Tr,gr,Ei){let hi=Fe(!1),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSatisfiesTag(Tr,hi,wa),hn)}function R$(){let hn=$i(19),Tr=M(),gr=Tme();t.setInJSDocType(!0);let Ei=uE();t.setInJSDocType(!1);let hi=m.createExpressionWithTypeArguments(gr,Ei),wa=Ut(hi,Tr);return hn&&_n(20),wa}function Tme(){let hn=M(),Tr=gE();for(;$i(25);){let gr=gE();Tr=Ut(K(Tr,gr),hn)}return Tr}function hE(hn,Tr,gr,Ei,hi){return Ut(Tr(gr,_p(hn,M(),Ei,hi)),hn)}function T7(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocThisTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function D$(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocEnumTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function MP(hn,Tr,gr,Ei){let hi=Un();jy();let wa=A7();Dg();let ns=Sa(gr),Dd;if(!hi||D(hi.type)){let Zu,Lm,Cg,ep=!1;for(;(Zu=ui(()=>P$(gr)))&&Zu.kind!==352;)if(ep=!0,Zu.kind===351)if(Lm){let uD=Qt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);uD&&fa(uD,Ix(_e,Te,0,0,f.The_tag_was_first_specified_here));break}else Lm=Zu;else Cg=pn(Cg,Zu);if(ep){let uD=hi&&hi.type.kind===188,tw=m.createJSDocTypeLiteral(Cg,uD);hi=Lm&&Lm.typeExpression&&!D(Lm.typeExpression.type)?Lm.typeExpression:Ut(tw,hn),Dd=hi.end}}Dd=Dd||ns!==void 0?M():(wa??hi??Tr).end,ns||(ns=_p(hn,Dd,gr,Ei));let ih=m.createJSDocTypedefTag(Tr,hi,wa,ns);return Ut(ih,hn,Dd)}function A7(hn){let Tr=t.getTokenStart();if(!Md(j()))return;let gr=gE();if($i(25)){let Ei=A7(!0),hi=m.createModuleDeclaration(void 0,gr,Ei,hn?8:void 0);return Ut(hi,Tr)}return hn&&(gr.flags|=4096),gr}function C$(hn){let Tr=M(),gr,Ei;for(;gr=ui(()=>I7(4,hn));){if(gr.kind===352){Re(gr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ei=pn(Ei,gr)}return ho(Ei||[],Tr)}function N$(hn,Tr){let gr=C$(Tr),Ei=ui(()=>{if(Rv(60)){let hi=lD(Tr);if(hi&&hi.kind===349)return hi}});return Ut(m.createJSDocSignature(void 0,gr,Ei),hn)}function Ame(hn,Tr,gr,Ei){let hi=A7();Dg();let wa=Sa(gr),ns=N$(hn,gr);wa||(wa=_p(hn,M(),gr,Ei));let Dd=wa!==void 0?M():ns.end;return Ut(m.createJSDocCallbackTag(Tr,ns,hi,wa),hn,Dd)}function Ime(hn,Tr,gr,Ei){Dg();let hi=Sa(gr),wa=N$(hn,gr);hi||(hi=_p(hn,M(),gr,Ei));let ns=hi!==void 0?M():wa.end;return Ut(m.createJSDocOverloadTag(Tr,wa,hi),hn,ns)}function cD(hn,Tr){for(;!Me(hn)||!Me(Tr);)if(!Me(hn)&&!Me(Tr)&&hn.right.escapedText===Tr.right.escapedText)hn=hn.left,Tr=Tr.left;else return!1;return hn.escapedText===Tr.escapedText}function P$(hn){return I7(1,hn)}function I7(hn,Tr,gr){let Ei=!0,hi=!1;for(;;)switch(gt()){case 60:if(Ei){let wa=q0(hn,Tr);return wa&&(wa.kind===348||wa.kind===355)&&gr&&(Me(wa.name)||!cD(gr,wa.name.left))?!1:wa}hi=!1;break;case 4:Ei=!0,hi=!1;break;case 42:hi&&(Ei=!1),hi=!0;break;case 80:Ei=!1;break;case 1:return!1}}function q0(hn,Tr){x.assert(j()===60);let gr=t.getTokenFullStart();gt();let Ei=gE(),hi=jy(),wa;switch(Ei.escapedText){case\"type\":return hn===1&&kt(gr,Ei);case\"prop\":case\"property\":wa=1;break;case\"arg\":case\"argument\":case\"param\":wa=6;break;case\"template\":return Jy(gr,Ei,Tr,hi);case\"this\":return T7(gr,Ei,Tr,hi);default:return!1}return hn&wa?w(gr,Ei,hn,Tr):!1}function Yn(){let hn=M(),Tr=Rv(23);Tr&&Dg();let gr=eh(!1,!0),Ei=gE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),hi;if(Tr&&(Dg(),_n(64),hi=Ea(16777216,nm),_n(24)),!_l(Ei))return Ut(m.createTypeParameterDeclaration(gr,Ei,void 0,hi),hn)}function qy(){let hn=M(),Tr=[];do{Dg();let gr=Yn();gr!==void 0&&Tr.push(gr),jy()}while(Rv(28));return ho(Tr,hn)}function Jy(hn,Tr,gr,Ei){let hi=j()===19?Fe():void 0,wa=qy();return Ut(m.createJSDocTemplateTag(Tr,hi,wa,_p(hn,M(),gr,Ei)),hn)}function Rv(hn){return j()===hn?(gt(),!0):!1}function dD(){let hn=gE();for($i(23)&&_n(24);$i(25);){let Tr=gE();$i(23)&&_n(24),hn=Ye(hn,Tr)}return hn}function gE(hn){if(!Md(j()))return ys(80,!hn,hn||f.Identifier_expected);Vt++;let Tr=t.getTokenStart(),gr=t.getTokenEnd(),Ei=j(),hi=Pc(t.getTokenValue()),wa=Ut(C(hi,Ei),Tr,gr);return gt(),wa}}})(g_=e.JSDocParser||(e.JSDocParser={}))})(zb||(zb={})),(e=>{function t(S,A,C,R){if(R=R||x.shouldAssert(2),m(S,A,C,R),Iee(C))return S;if(S.statements.length===0)return zb.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let L=S;x.assert(!L.hasBeenIncrementallyParsed),L.hasBeenIncrementallyParsed=!0,zb.fixupParentReferences(L);let G=S.text,U=v(S),K=p(S,C);m(S,A,K,R),x.assert(K.span.start<=C.span.start),x.assert(Al(K.span)===Al(C.span)),x.assert(Al(ZD(K))===Al(ZD(C)));let F=ZD(K).length-K.span.length;d(L,K.span.start,Al(K.span),Al(ZD(K)),F,G,A,R);let oe=zb.parseSourceFile(S.fileName,A,S.languageVersion,U,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return oe.commentDirectives=r(S.commentDirectives,oe.commentDirectives,K.span.start,Al(K.span),F,G,A,R),oe.impliedNodeFormat=S.impliedNodeFormat,oe}e.updateSourceFile=t;function r(S,A,C,R,L,G,U,K){if(!S)return A;let F,oe=!1;for(let $ of S){let{range:de,type:fe}=$;if(de.end<C)F=pn(F,$);else if(de.pos>R){W();let q={range:{pos:de.pos+L,end:de.end+L},type:fe};F=pn(F,q),K&&x.assert(G.substring(de.pos,de.end)===U.substring(q.range.pos,q.range.end))}}return W(),F;function W(){oe||(oe=!0,F?A&&F.push(...A):F=A)}}function i(S,A,C,R,L,G){A?K(S):U(S);return;function U(F){let oe=\"\";if(G&&o(F)&&(oe=R.substring(F.pos,F.end)),F._children&&(F._children=void 0),F_(F,F.pos+C,F.end+C),G&&o(F)&&x.assert(oe===L.substring(F.pos,F.end)),Ao(F,U,K),ap(F))for(let W of F.jsDoc)U(W);l(F,G)}function K(F){F._children=void 0,F_(F,F.pos+C,F.end+C);for(let oe of F)U(oe)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,C,R,L){x.assert(S.end>=A,\"Adjusting an element that was entirely before the change range\"),x.assert(S.pos<=C,\"Adjusting an element that was entirely after the change range\"),x.assert(S.pos<=S.end);let G=Math.min(S.pos,R),U=S.end>=C?S.end+L:Math.min(S.end,R);x.assert(G<=U),S.parent&&(x.assertGreaterThanOrEqual(G,S.parent.pos),x.assertLessThanOrEqual(U,S.parent.end)),F_(S,G,U)}function l(S,A){if(A){let C=S.pos,R=L=>{x.assert(L.pos>=C),C=L.end};if(ap(S))for(let L of S.jsDoc)R(L);Ao(S,R),x.assert(C<=S.end)}}function d(S,A,C,R,L,G,U,K){F(S);return;function F(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!1,L,G,U,K);return}let $=W.end;if($>=A){if(W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L),Ao(W,F,oe),ap(W))for(let de of W.jsDoc)F(de);l(W,K);return}x.assert($<A)}function oe(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!0,L,G,U,K);return}let $=W.end;if($>=A){W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L);for(let de of W)F(de);return}x.assert($<A)}}function p(S,A){let R=A.span.start;for(let U=0;R>0&&U<=1;U++){let K=h(S,R);x.assert(K.pos<=R);let F=K.pos;R=Math.max(0,F-1)}let L=Gl(R,Al(A.span)),G=A.newLength+(A.span.start-R);return FM(L,G)}function h(S,A){let C=S,R;if(Ao(S,G),R){let U=L(R);U.pos>C.pos&&(C=U)}return C;function L(U){for(;;){let K=yV(U);if(K)U=K;else return U}}function G(U){if(!_l(U))if(U.pos<=A){if(U.pos>=C.pos&&(C=U),A<U.end)return Ao(U,G),!0;x.assert(U.end<=A),R=U}else return x.assert(U.pos>A),!0}}function m(S,A,C,R){let L=S.text;if(C&&(x.assert(L.length-C.span.length+C.newLength===A.length),R||x.shouldAssert(3))){let G=L.substr(0,C.span.start),U=A.substr(0,C.span.start);x.assert(G===U);let K=L.substring(Al(C.span),L.length),F=A.substring(Al(ZD(C)),A.length);x.assert(K===F)}}function v(S){let A=S.statements,C=0;x.assert(C<A.length);let R=A[C],L=-1;return{currentNode(U){return U!==L&&(R&&R.end===U&&C<A.length-1&&(C++,R=A[C]),(!R||R.pos!==U)&&G(U)),L=U,x.assert(!R||R.pos===U),R}};function G(U){A=void 0,C=-1,R=void 0,Ao(S,K,F);return;function K(oe){return U>=oe.pos&&U<oe.end?(Ao(oe,K,F),!0):!1}function F(oe){if(U>=oe.pos&&U<oe.end)for(let W=0;W<oe.length;W++){let $=oe[W];if($){if($.pos===U)return A=oe,C=W,R=$,!0;if($.pos<U&&U<$.end)return Ao($,K,F),!0}}return!1}}}e.createSyntaxCursor=v;let E;(S=>{S[S.Value=-1]=\"Value\"})(E||(E={}))})(Zj||(Zj={})),eU=new Map,wEe=/^\\/\\/\\/\\s*<(\\S+)\\s.*?\\/>/im,WEe=/^\\/\\/\\/?\\s*@([^\\s:]+)(.*)\\s*$/im}});function O6(e){let t=new Map,r=new Map;return an(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function Xx(){return E0e||(E0e=O6(Nh))}function Mie(e){return FEe(e,bl)}function FEe(e,t){let r=bo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(\", \");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function w6(e,t,r){return h0e(e,(t??\"\").trim(),r)}function Lie(e,t=\"\",r){if(t=t.trim(),Ui(t,\"-\"))return;if(e.type===\"listOrElement\"&&!t.includes(\",\"))return vI(e,t,r);if(t===\"\")return[];let i=t.split(\",\");switch(e.element.type){case\"number\":return Fi(i,o=>vI(e.element,parseInt(o),r));case\"string\":return Fi(i,o=>vI(e.element,o||\"\",r));case\"boolean\":case\"object\":return x.fail(`List of ${e.element.type} is not yet supported.`);default:return Fi(i,o=>w6(e.element,o,r))}}function zEe(e){return e.name}function kie(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return Bb(o,i,t.alternateMode.diagnostic,e);let l=VD(e,t.optionDeclarations,zEe);return l?Bb(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):Bb(o,i,t.unknownOptionDiagnostic,r||e)}function tU(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;m<h.length;){let v=h[m];if(m++,v.charCodeAt(0)===64)p(v.slice(1));else if(v.charCodeAt(0)===45){let E=v.slice(v.charCodeAt(1)===45?2:1),S=Oie(e.getOptionsNameMap,E,!0);if(S)m=BEe(h,m,e,S,i,l);else{let A=Oie(q6.getOptionsNameMap,E,!0);A?m=BEe(h,m,q6,A,o||(o={}),l):l.push(kie(E,e,v))}}else s.push(v)}}function p(h){let m=SN(h,r||(S=>Hc.readFile(S)));if(!fo(m)){l.push(m);return}let v=[],E=0;for(;;){for(;E<m.length&&m.charCodeAt(E)<=32;)E++;if(E>=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E<m.length&&m.charCodeAt(E)!==34;)E++;E<m.length?(v.push(m.substring(S+1,E)),E++):l.push(bl(f.Unterminated_quoted_string_in_response_file_0,h))}else{for(;m.charCodeAt(E)>32;)E++;v.push(m.substring(S,E))}}d(v)}}function BEe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l===\"null\"?(o[i.name]=void 0,t++):i.type===\"boolean\"?l===\"false\"?(o[i.name]=vI(i,!1,s),t++):(l===\"true\"&&t++,s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!Ui(l,\"-\")&&t++)}else if(!e[t]&&i.type!==\"boolean\"&&s.push(bl(r.optionTypeMismatchDiagnostic,i.name,oU(i))),e[t]!==\"null\")switch(i.type){case\"number\":o[i.name]=vI(i,parseInt(e[t]),s),t++;break;case\"boolean\":let l=e[t];o[i.name]=vI(i,l!==\"false\",s),(l===\"false\"||l===\"true\")&&t++;break;case\"string\":o[i.name]=vI(i,e[t]||\"\",s),t++;break;case\"list\":let d=Lie(i,e[t],s);o[i.name]=d||[],d&&t++;break;case\"listOrElement\":x.fail(\"listOrElement not supported here\");break;default:o[i.name]=w6(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function GEe(e,t){return tU(Q2,e,t)}function nU(e,t){return Oie(Xx,e,t)}function Oie(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function VEe(){return T0e||(T0e=O6(U6))}function jEe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=tU(I0e,e),s=t;return i.length===0&&i.push(\".\"),s.clean&&s.force&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"force\")),s.clean&&s.verbose&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"verbose\")),s.clean&&s.watch&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"watch\")),s.watch&&s.dry&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"watch\",\"dry\")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function UEe(e,...t){return Fo(bl(e,...t).messageText,fo)}function V2(e,t,r,i,o,s){let l=SN(e,h=>r.readFile(h));if(!fo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=G2(e,l),p=r.getCurrentDirectory();return d.path=ks(e,p,od(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,H2(d,r,Qi(Ur(e),p),t,Qi(e,p),void 0,s,i,o)}function j2(e,t){let r=SN(e,t);return fo(r)?rU(e,r):{config:{},error:r}}function rU(e,t){let r=G2(e,t);return{config:XEe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function wie(e,t){let r=SN(e,t);return fo(r)?G2(e,r):{fileName:e,parseDiagnostics:[r]}}function SN(e,t){let r;try{r=t(e)}catch(i){return bl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?bl(f.Cannot_read_file_0,e):r}function iU(e){return PE(e,zEe)}function HEe(){return x0e||(x0e=O6(Yx))}function qEe(){return R0e||(R0e=iU(Nh))}function JEe(){return D0e||(D0e=iU(Yx))}function KEe(){return C0e||(C0e=iU($2))}function R4e(){return $ie===void 0&&($ie={name:void 0,type:\"object\",elementOptions:iU([Kie,Xie,Yie,Z2,{name:\"references\",type:\"list\",element:{name:\"references\",type:\"object\"},category:f.Projects},{name:\"files\",type:\"list\",element:{name:\"files\",type:\"string\"},category:f.File_Management},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},J2])}),$ie}function XEe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(vf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,Ll(e.fileName)===\"jsconfig.json\"?\"jsconfig.json\":\"tsconfig.json\")),Bd(o)){let s=Dr(o.elements,ma);if(s)return U2(e,s,t,!0,r)}return{}}return U2(e,o,t,!0,r)}function Wie(e,t){var r;return U2(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function U2(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var v;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(vf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(vf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,\"?\")),p(S.name)||r.push(vf(e,S.name,f.String_literal_with_double_quotes_expected));let A=aL(S.name)?void 0:$1(S.name),C=A&&Ii(A),R=C?(v=m?.elementOptions)==null?void 0:v.get(C):void 0,L=d(S.initializer,R);typeof C<\"u\"&&(i&&(E[C]=L),o?.onPropertySet(C,L,S,m,R))}return E}function l(h,m){if(!i){h.forEach(v=>d(v,m));return}return Cr(h.map(v=>d(v,m)),v=>v!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(vf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(vf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,oU(m))):r.push(vf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return da(h)&&IW(h,e)}}function oU(e){return e.type===\"listOrElement\"?`${oU(e.element)} or Array`:e.type===\"list\"?\"Array\":fo(e.type)?e.type:\"string\"}function YEe(e,t){if(e){if(q2(t))return!e.disallowNullOrUndefined;if(e.type===\"list\")return oo(t);if(e.type===\"listOrElement\")return oo(t)||YEe(e.element,t);let r=fo(e.type)?e.type:\"string\";return typeof t===r}return!1}function $Ee(e,t,r){var i,o,s;let l=od(r.useCaseSensitiveFileNames),d=nn(Cr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?C4e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ug),A=>RM(Qi(t,r.getCurrentDirectory()),Qi(A,r.getCurrentDirectory()),l)),p={configFilePath:Qi(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=F6(e.options,p),m=e.watchOptions&&N4e(e.watchOptions),v={compilerOptions:{...W6(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&W6(m),references:nn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:\"\",originalPath:void 0})),files:yn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:D4e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in Ul)if(!E.has(A)&&ct(Ul[A].dependencies,C=>E.has(C))){let C=Ul[A].computeValue(e.options),R=Ul[A].computeValue({});C!==R&&(S[A]=Ul[A].computeValue(e.options))}return R1(v.compilerOptions,W6(F6(S,p))),v}function W6(e){return{...bo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function D4e(e){if(yn(e)){if(yn(e)!==1)return e;if(e[0]!==J6)return e}}function C4e(e,t,r,i){if(!t)return Ug;let o=dF(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&iy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&iy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ug}function QEe(e){switch(e.type){case\"string\":case\"number\":case\"boolean\":case\"object\":return;case\"list\":case\"listOrElement\":return QEe(e.element);default:return e.type}}function aU(e,t){return hc(t,(r,i)=>{if(r===e)return i})}function F6(e,t){return ZEe(e,Xx(),t)}function N4e(e){return ZEe(e,HEe())}function ZEe(e,{optionsNameMap:t},r){let i=new Map,o=r&&od(r.useCaseSensitiveFileNames);for(let s in e)if(rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){x.assert(d.type!==\"listOrElement\");let p=QEe(d);p?d.type===\"list\"?i.set(s,l.map(h=>aU(h,p))):i.set(s,aU(l,p)):r&&d.isFilePath?i.set(s,RM(r.configFilePath,Qi(l,Ur(r.configFilePath)),o)):i.set(s,l)}}return i}function e0e(e,t){let r=t0e(e);return o();function i(s){return Array(s+1).join(\" \")}function o(){let s=[],l=i(2);return uU.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=Uie(d);p!==h?s.push(`${l}${d.name}: ${p}`):rs(H6,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function t0e(e){let t=Xw(e,H6);return F6(t)}function n0e(e,t,r){let i=t0e(e);return l();function o(d){return Array(d+1).join(\" \")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of Nh)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:\"\"}),m.push({value:`/* ${vo(A)} */`});for(let C of S){let R;i.has(C.name)?R=`\"${C.name}\": ${JSON.stringify(i.get(C.name))}${(h+=1)===i.size?\"\":\",\"}`:R=`// \"${C.name}\": ${JSON.stringify(Uie(C))},`,m.push({value:R,description:`/* ${C.description&&vo(C.description)||C.name} */`}),p=Math.max(R.length,p)}});let v=o(2),E=[];E.push(\"{\"),E.push(`${v}\"compilerOptions\": {`),E.push(`${v}${v}/* ${vo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push(\"\");for(let S of m){let{value:A,description:C=\"\"}=S;E.push(A&&`${v}${v}${A}${C&&o(p-A.length+2)+C}`)}if(t.length){E.push(`${v}},`),E.push(`${v}\"files\": [`);for(let S=0;S<t.length;S++)E.push(`${v}${v}${JSON.stringify(t[S])}${S===t.length-1?\"\":\",\"}`);E.push(`${v}]`)}else E.push(`${v}}`);return E.push(\"}\"),E.join(r)+r}}function sU(e,t){let r={},i=Xx().optionsNameMap;for(let o in e)rs(e,o)&&(r[o]=P4e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function P4e(e,t,r){if(e&&!q2(t)){if(e.type===\"list\"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);x.assert(e.type!==\"listOrElement\")}return t}function r0e(e,t,r,i,o,s,l,d,p){return o0e(e,void 0,t,r,i,p,o,s,l,d)}function H2(e,t,r,i,o,s,l,d,p){var h,m;(h=qn)==null||h.push(qn.Phase.Parse,\"parseJsonSourceFileConfigFileContent\",{path:e.fileName});let v=o0e(void 0,e,t,r,i,p,o,s,l,d);return(m=qn)==null||m.pop(),v}function lU(e,t){t&&Object.defineProperty(e,\"configFile\",{enumerable:!1,writable:!1,value:t})}function q2(e){return e==null}function i0e(e,t){return Ur(Qi(e,t))}function o0e(e,t,r,i,o={},s,l,d=[],p=[],h){x.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let m=[],v=l0e(e,t,r,i,l,d,m,h),{raw:E}=v,S=Xw(o,v.options||{}),A=s&&v.watchOptions?Xw(s,v.watchOptions):v.watchOptions||s;S.configFilePath=l&&ad(l);let C=L();t&&(t.configFileSpecs=C),lU(S,t);let R=Yo(l?i0e(l,i):i);return{options:S,watchOptions:A,fileNames:G(R),projectReferences:U(R),typeAcquisition:v.typeAcquisition||cU(),raw:E,errors:m,wildcardDirectories:B4e(C,R,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function L(){let $=oe(\"references\",ce=>typeof ce==\"object\",\"object\"),de=K(F(\"files\"));if(de){let ce=$===\"no-prop\"||oo($)&&$.length===0,Z=rs(E,\"extends\");if(de.length===0&&ce&&!Z)if(t){let pe=l||\"tsconfig.json\",Ae=f.The_files_list_in_config_file_0_is_empty,Oe=uL(t,\"files\",be=>be.initializer),_e=Bb(t,Oe,Ae,pe);m.push(_e)}else W(f.The_files_list_in_config_file_0_is_empty,l||\"tsconfig.json\")}let fe=K(F(\"include\")),q=F(\"exclude\"),H=!1,ee=K(q);if(q===\"no-prop\"&&E.compilerOptions){let ce=E.compilerOptions.outDir,Z=E.compilerOptions.declarationDir;(ce||Z)&&(ee=[ce,Z].filter(pe=>!!pe))}de===void 0&&fe===void 0&&(fe=[J6],H=!0);let le,Ee;return fe&&(le=b0e(fe,m,!0,t,\"include\")),ee&&(Ee=b0e(ee,m,!1,t,\"exclude\")),{filesSpecs:de,includeSpecs:fe,excludeSpecs:ee,validatedFilesSpec:Cr(de,fo),validatedIncludeSpecs:le,validatedExcludeSpecs:Ee,pathPatterns:void 0,isDefaultIncludeSpec:H}}function G($){let de=AN(C,$,S,r,p);return s0e(de,TN(E),d)&&m.push(a0e(C,l)),de}function U($){let de,fe=oe(\"references\",q=>typeof q==\"object\",\"object\");if(oo(fe))for(let q of fe)typeof q.path!=\"string\"?W(f.Compiler_option_0_requires_a_value_of_type_1,\"reference.path\",\"string\"):(de||(de=[])).push({path:Qi(q.path,$),originalPath:q.path,prepend:q.prepend,circular:q.circular});return de}function K($){return oo($)?$:void 0}function F($){return oe($,fo,\"string\")}function oe($,de,fe){if(rs(E,$)&&!q2(E[$]))if(oo(E[$])){let q=E[$];return!t&&!ji(q,de)&&m.push(bl(f.Compiler_option_0_requires_a_value_of_type_1,$,fe)),q}else return W(f.Compiler_option_0_requires_a_value_of_type_1,$,\"Array\"),\"not-array\";return\"no-prop\"}function W($,...de){t||m.push(bl($,...de))}}function M4e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function a0e({includeSpecs:e,excludeSpecs:t},r){return bl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||\"tsconfig.json\",JSON.stringify(e||[]),JSON.stringify(t||[]))}function s0e(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function TN(e){return!rs(e,\"files\")&&!rs(e,\"references\")}function z6(e,t,r,i,o){let s=i.length;return s0e(e,o)?i.push(a0e(r,t)):X5(i,l=>!M4e(l)),s!==i.length}function L4e(e){return!!e.options}function l0e(e,t,r,i,o,s,l,d){var p;i=ad(i);let h=Qi(o||\"\",i);if(s.includes(h))return l.push(bl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(\" -> \"))),{raw:e||Wie(t,l)};let m=e?k4e(e,r,i,o,l):O4e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};fo(m.extendedConfigPath)?v(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>v(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=bo(E.extendedSourceFiles.keys())),m.options=R1(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?R1(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function v(E,S){let A=w4e(t,S,r,s,l,d,E);if(A&&L4e(A)){let C=A.raw,R,L=G=>{C[G]&&(E[G]=nn(C[G],U=>Ou(U)?U:wr(R||(R=KD(Ur(S),i,od(r.useCaseSensitiveFileNames))),U)))};L(\"include\"),L(\"exclude\"),L(\"files\"),C.compileOnSave!==void 0&&(E.compileOnSave=C.compileOnSave),R1(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?R1({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function k4e(e,t,r,i,o){rs(e,\"excludes\")&&o.push(bl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=m0e(e.compilerOptions,r,o,i),l=_0e(e.typeAcquisition,r,o,i),d=F4e(e.watchOptions,r,o);e.compileOnSave=W4e(e,r,o);let p=e.extends||e.extends===\"\"?c0e(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function c0e(e,t,r,i,o,s,l,d){let p,h=i?i0e(i,r):r;if(fo(e))p=d0e(e,t,h,o,l,d);else if(oo(e)){p=[];for(let m=0;m<e.length;m++){let v=e[m];fo(v)?p=pn(p,d0e(v,t,h,o,l?.elements[m],d)):eT(Z2.element,e,r,o,s,l?.elements[m],d)}}else eT(Z2,e,r,o,s,l,d);return p}function O4e(e,t,r,i,o){let s=f0e(i),l,d,p,h,m=R4e(),v=XEe(e,o,{rootOptions:m,onPropertySet:E});return l||(l=cU(i)),h&&v&&v.compilerOptions===void 0&&o.push(vf(e,h[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,$1(h[0]))),{raw:v,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p};function E(S,A,C,R,L){if(L&&L!==Z2&&(A=eT(L,A,r,o,C,C.initializer,e)),R?.name)if(L){let G;R===Kie?G=s:R===Xie?G=d??(d={}):R===Yie?G=l??(l=cU(i)):x.fail(\"Unknown option\"),G[L.name]=A}else S&&R?.extraKeyDiagnostics&&(R.elementOptions?o.push(kie(S,R.extraKeyDiagnostics,void 0,C.name,e)):o.push(vf(e,C.name,R.extraKeyDiagnostics.unknownOptionDiagnostic,S)));else R===m&&(L===Z2?p=c0e(A,t,r,i,o,C,C.initializer,e):L||(S===\"excludes\"&&o.push(vf(e,C.name,f.Unknown_option_excludes_Did_you_mean_exclude)),Dr(uU,G=>G.name===S)&&(h=pn(h,C.name))))}}function d0e(e,t,r,i,o,s){if(e=ad(e),Ou(e)||Ui(e,\"./\")||Ui(e,\"../\")){let d=Qi(e,r);if(!t.fileExists(d)&&!Zs(d,\".json\")&&(d=`${d}.json`,!t.fileExists(d))){i.push(Bb(s,o,f.File_0_not_found,e));return}return d}let l=soe(e,wr(r,\"tsconfig.json\"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===\"\"?i.push(Bb(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,\"extends\")):i.push(Bb(s,o,f.File_0_not_found,e))}function w4e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:C_(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=wie(t,v=>r.readFile(v)),h.parseDiagnostics.length||(m=l0e(void 0,h,r,Ur(t),Ll(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let v of h.extendedSourceFiles)l.extendedSourceFiles.add(v);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function W4e(e,t,r){if(!rs(e,J2.name))return!1;let i=eT(J2,e.compileOnSave,t,r);return typeof i==\"boolean\"&&i}function u0e(e,t,r){let i=[];return{options:m0e(e,t,i,r),errors:i}}function p0e(e,t,r){let i=[];return{options:_0e(e,t,i,r),errors:i}}function f0e(e){return e&&Ll(e)===\"jsconfig.json\"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function m0e(e,t,r,i){let o=f0e(i);return Fie(qEe(),e,t,o,Q2,r),i&&(o.configFilePath=ad(i)),o}function cU(e){return{enable:!!e&&Ll(e)===\"jsconfig.json\",include:[],exclude:[]}}function _0e(e,t,r,i){let o=cU(i);return Fie(KEe(),e,t,o,Jie,r),o}function F4e(e,t,r){return Fie(JEe(),e,t,void 0,q6,r)}function Fie(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=eT(d,t[l],r,s):s.push(kie(l,o))}return i}}function Bb(e,t,r,...i){return e&&t?vf(e,t,r,...i):bl(r,...i)}function eT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(Bb(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(YEe(e,t)){let d=e.type;if(d===\"list\"&&oo(t))return g0e(e,t,r,i,o,s,l);if(d===\"listOrElement\")return oo(t)?g0e(e,t,r,i,o,s,l):eT(e.element,t,r,i,o,s,l);if(!fo(e.type))return h0e(e,t,i,s,l);let p=vI(e,t,i,s,l);return q2(p)?p:z4e(e,r,p)}else i.push(Bb(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,oU(e)))}function z4e(e,t,r){return e.isFilePath&&(r=Qi(r,t),r===\"\"&&(r=\".\")),r}function vI(e,t,r,i,o){var s;if(q2(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(Bb(o,i,...l))}function h0e(e,t,r,i,o){if(q2(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return vI(e,l,r,i,o);r.push(FEe(e,(d,...p)=>Bb(o,i,d,...p)))}function g0e(e,t,r,i,o,s,l){return Cr(nn(t,(d,p)=>eT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function AN(e,t,r,i,o=je){t=Yo(t);let s=od(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,E=GC(r,o),S=YL(r,E);if(h)for(let L of h){let G=Qi(L,t);l.set(s(G),G)}let A;if(m&&m.length>0)for(let L of i.readDirectory(t,Ff(S),v,m,void 0)){if(el(L,\".json\")){if(!A){let K=m.filter(oe=>Zs(oe,\".json\")),F=nn(lF(K,t,\"files\"),oe=>`^${oe}$`);A=F?F.map(oe=>iy(oe,i.useCaseSensitiveFileNames)):je}if(Tl(A,K=>K.test(L))!==-1){let K=s(L);!l.has(K)&&!p.has(K)&&p.set(K,L)}continue}if(V4e(L,l,d,E,s))continue;j4e(L,d,E,s);let G=s(L);!l.has(G)&&!d.has(G)&&d.set(G,L)}let C=bo(l.values()),R=bo(d.values());return C.concat(R,bo(p.values()))}function zie(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!yn(l)||!yn(d))return!1;r=Yo(r);let p=od(i);if(s){for(let h of s)if(p(Qi(h,r))===e)return!1}return y0e(e,d,i,o,r)}function v0e(e){let t=Ui(e,\"**/\")?0:e.indexOf(\"/**/\");return t===-1?!1:(Zs(e,\"/..\")?e.length:e.lastIndexOf(\"/../\"))>t}function B6(e,t,r,i){return y0e(e,Cr(t,o=>!v0e(o)),r,i)}function y0e(e,t,r,i,o){let s=BC(t,wr(Yo(i),o),\"exclude\"),l=s&&iy(s,r);return l?l.test(e)?!0:!TA(e)&&l.test(_c(e)):!1}function b0e(e,t,r,i,o){return e.filter(l=>{if(!fo(l))return!1;let d=Bie(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=fW(i,o,d);return Bb(i,p,l,d)}}function Bie(e,t){if(x.assert(typeof e==\"string\"),t&&N0e.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(v0e(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B4e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=BC(t,r,\"exclude\"),s=o&&new RegExp(o,i?\"\":\"i\"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=Yo(wr(r,h));if(s&&s.test(m))continue;let v=G4e(m,i);if(v){let{key:E,path:S,flags:A}=v,C=d.get(E),R=C!==void 0?l[C]:void 0;(R===void 0||R<A)&&(l[C!==void 0?C:S]=A,C===void 0&&d.set(E,S),A===1&&p.push(E))}}for(let h in l)if(rs(l,h))for(let m of p){let v=Gie(h,i);v!==m&&Bf(m,v,r,!i)&&delete l[h]}}return l}function Gie(e,t){return t?e:C_(e)}function G4e(e,t){let r=P0e.exec(e);if(r){let i=e.indexOf(\"?\"),o=e.indexOf(\"*\"),s=e.lastIndexOf(Os);return{key:Gie(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(RV(e.substring(e.lastIndexOf(Os)+1))){let i=fb(e);return{key:Gie(i,t),path:i,flags:1}}}function V4e(e,t,r,i,o){let s=an(i,l=>$l(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(el(e,l)&&(l!==\".ts\"||!el(e,\".d.ts\")))return!1;let d=o(Nb(e,l));if(t.has(d)||r.has(d)){if(l===\".d.ts\"&&(el(e,\".js\")||el(e,\".jsx\")))continue;return!0}}return!1}function j4e(e,t,r,i){let o=an(r,s=>$l(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(el(e,l))return;let d=i(Nb(e,l));t.delete(d)}}function Vie(e){let t={};for(let r in e)if(rs(e,r)){let i=nU(r);i!==void 0&&(t[r]=jie(e[r],i))}return t}function jie(e,t){if(e===void 0)return e;switch(t.type){case\"object\":return\"\";case\"string\":return\"\";case\"number\":return typeof e==\"number\"?e:\"\";case\"boolean\":return typeof e==\"boolean\"?e:\"\";case\"listOrElement\":if(!oo(e))return jie(e,t.element);case\"list\":let r=t.element;return oo(e)?Fi(e,i=>jie(i,r)):\"\";default:return hc(t.type,(i,o)=>{if(i===e)return o})}}function Uie(e){switch(e.type){case\"number\":return 1;case\"boolean\":return!0;case\"string\":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t==\"string\"?t:\"\"}`:\"\";case\"list\":return[];case\"listOrElement\":return Uie(e.element);case\"object\":return{};default:let r=qw(e.type.keys());return r!==void 0?r:x.fail(\"Expected 'option.type' to have entries.\")}}var J2,Hie,IN,qie,K2,G6,Yx,X2,Y2,dU,uU,Nh,pU,fU,mU,V6,j6,_U,hU,gU,U6,$2,E0e,S0e,H6,Q2,T0e,A0e,I0e,Jie,x0e,q6,R0e,D0e,C0e,Z2,Kie,Xie,Yie,$ie,J6,N0e,P0e,U4e=pt({\"src/compiler/commandLineParser.ts\"(){\"use strict\";wo(),J2={name:\"compileOnSave\",type:\"boolean\",defaultValueDescription:!1},Hie=new Map(Object.entries({preserve:1,\"react-native\":3,react:2,\"react-jsx\":4,\"react-jsxdev\":5})),IN=new Map(OD(Hie.entries(),([e,t])=>[\"\"+t,e])),qie=[[\"es5\",\"lib.es5.d.ts\"],[\"es6\",\"lib.es2015.d.ts\"],[\"es2015\",\"lib.es2015.d.ts\"],[\"es7\",\"lib.es2016.d.ts\"],[\"es2016\",\"lib.es2016.d.ts\"],[\"es2017\",\"lib.es2017.d.ts\"],[\"es2018\",\"lib.es2018.d.ts\"],[\"es2019\",\"lib.es2019.d.ts\"],[\"es2020\",\"lib.es2020.d.ts\"],[\"es2021\",\"lib.es2021.d.ts\"],[\"es2022\",\"lib.es2022.d.ts\"],[\"es2023\",\"lib.es2023.d.ts\"],[\"esnext\",\"lib.esnext.d.ts\"],[\"dom\",\"lib.dom.d.ts\"],[\"dom.iterable\",\"lib.dom.iterable.d.ts\"],[\"dom.asynciterable\",\"lib.dom.asynciterable.d.ts\"],[\"webworker\",\"lib.webworker.d.ts\"],[\"webworker.importscripts\",\"lib.webworker.importscripts.d.ts\"],[\"webworker.iterable\",\"lib.webworker.iterable.d.ts\"],[\"webworker.asynciterable\",\"lib.webworker.asynciterable.d.ts\"],[\"scripthost\",\"lib.scripthost.d.ts\"],[\"es2015.core\",\"lib.es2015.core.d.ts\"],[\"es2015.collection\",\"lib.es2015.collection.d.ts\"],[\"es2015.generator\",\"lib.es2015.generator.d.ts\"],[\"es2015.iterable\",\"lib.es2015.iterable.d.ts\"],[\"es2015.promise\",\"lib.es2015.promise.d.ts\"],[\"es2015.proxy\",\"lib.es2015.proxy.d.ts\"],[\"es2015.reflect\",\"lib.es2015.reflect.d.ts\"],[\"es2015.symbol\",\"lib.es2015.symbol.d.ts\"],[\"es2015.symbol.wellknown\",\"lib.es2015.symbol.wellknown.d.ts\"],[\"es2016.array.include\",\"lib.es2016.array.include.d.ts\"],[\"es2016.intl\",\"lib.es2016.intl.d.ts\"],[\"es2017.date\",\"lib.es2017.date.d.ts\"],[\"es2017.object\",\"lib.es2017.object.d.ts\"],[\"es2017.sharedmemory\",\"lib.es2017.sharedmemory.d.ts\"],[\"es2017.string\",\"lib.es2017.string.d.ts\"],[\"es2017.intl\",\"lib.es2017.intl.d.ts\"],[\"es2017.typedarrays\",\"lib.es2017.typedarrays.d.ts\"],[\"es2018.asyncgenerator\",\"lib.es2018.asyncgenerator.d.ts\"],[\"es2018.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"es2018.intl\",\"lib.es2018.intl.d.ts\"],[\"es2018.promise\",\"lib.es2018.promise.d.ts\"],[\"es2018.regexp\",\"lib.es2018.regexp.d.ts\"],[\"es2019.array\",\"lib.es2019.array.d.ts\"],[\"es2019.object\",\"lib.es2019.object.d.ts\"],[\"es2019.string\",\"lib.es2019.string.d.ts\"],[\"es2019.symbol\",\"lib.es2019.symbol.d.ts\"],[\"es2019.intl\",\"lib.es2019.intl.d.ts\"],[\"es2020.bigint\",\"lib.es2020.bigint.d.ts\"],[\"es2020.date\",\"lib.es2020.date.d.ts\"],[\"es2020.promise\",\"lib.es2020.promise.d.ts\"],[\"es2020.sharedmemory\",\"lib.es2020.sharedmemory.d.ts\"],[\"es2020.string\",\"lib.es2020.string.d.ts\"],[\"es2020.symbol.wellknown\",\"lib.es2020.symbol.wellknown.d.ts\"],[\"es2020.intl\",\"lib.es2020.intl.d.ts\"],[\"es2020.number\",\"lib.es2020.number.d.ts\"],[\"es2021.promise\",\"lib.es2021.promise.d.ts\"],[\"es2021.string\",\"lib.es2021.string.d.ts\"],[\"es2021.weakref\",\"lib.es2021.weakref.d.ts\"],[\"es2021.intl\",\"lib.es2021.intl.d.ts\"],[\"es2022.array\",\"lib.es2022.array.d.ts\"],[\"es2022.error\",\"lib.es2022.error.d.ts\"],[\"es2022.intl\",\"lib.es2022.intl.d.ts\"],[\"es2022.object\",\"lib.es2022.object.d.ts\"],[\"es2022.sharedmemory\",\"lib.es2022.sharedmemory.d.ts\"],[\"es2022.string\",\"lib.es2022.string.d.ts\"],[\"es2022.regexp\",\"lib.es2022.regexp.d.ts\"],[\"es2023.array\",\"lib.es2023.array.d.ts\"],[\"es2023.collection\",\"lib.es2023.collection.d.ts\"],[\"esnext.array\",\"lib.es2023.array.d.ts\"],[\"esnext.collection\",\"lib.esnext.collection.d.ts\"],[\"esnext.symbol\",\"lib.es2019.symbol.d.ts\"],[\"esnext.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"esnext.intl\",\"lib.esnext.intl.d.ts\"],[\"esnext.disposable\",\"lib.esnext.disposable.d.ts\"],[\"esnext.bigint\",\"lib.es2020.bigint.d.ts\"],[\"esnext.string\",\"lib.es2022.string.d.ts\"],[\"esnext.promise\",\"lib.esnext.promise.d.ts\"],[\"esnext.weakref\",\"lib.es2021.weakref.d.ts\"],[\"esnext.decorators\",\"lib.esnext.decorators.d.ts\"],[\"esnext.object\",\"lib.esnext.object.d.ts\"],[\"decorators\",\"lib.decorators.d.ts\"],[\"decorators.legacy\",\"lib.decorators.legacy.d.ts\"]],K2=qie.map(e=>e[0]),G6=new Map(qie),Yx=[{name:\"watchFile\",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:\"watchDirectory\",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:\"fallbackPolling\",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:\"synchronousWatchDirectory\",type:\"boolean\",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:\"excludeDirectories\",type:\"list\",element:{name:\"excludeDirectory\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:\"excludeFiles\",type:\"list\",element:{name:\"excludeFile\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],X2=[{name:\"help\",shortName:\"h\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:\"help\",shortName:\"?\",type:\"boolean\",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:\"watch\",shortName:\"w\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:\"preserveWatchOutput\",type:\"boolean\",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:\"listFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:\"explainFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:\"listEmittedFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:\"pretty\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:\"traceResolution\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:\"diagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"extendedDiagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"generateCpuProfile\",type:\"string\",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:\"profile.cpuprofile\"},{name:\"generateTrace\",type:\"string\",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:\"incremental\",shortName:\"i\",type:\"boolean\",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declaration\",shortName:\"d\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declarationMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:\"emitDeclarationOnly\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"sourceMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:\"inlineSourceMap\",type:\"boolean\",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"assumeChangesOnlyAffectDirectDependencies\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:\"locale\",type:\"string\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],Y2={name:\"target\",shortName:\"t\",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set([\"es3\"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},dU={name:\"module\",shortName:\"m\",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},uU=[{name:\"all\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:\"version\",shortName:\"v\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:\"init\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:\"project\",shortName:\"p\",type:\"string\",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:\"build\",type:\"boolean\",shortName:\"b\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:\"showConfig\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:\"listFilesOnly\",type:\"boolean\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Y2,dU,{name:\"lib\",type:\"list\",element:{name:\"lib\",type:G6,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:\"allowJs\",type:\"boolean\",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:\"checkJs\",type:\"boolean\",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:\"jsx\",type:Hie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:\"outFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:\"outDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:\"rootDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"composite\",type:\"boolean\",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:\"tsBuildInfoFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:\".tsbuildinfo\",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:\"removeComments\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:\"noEmit\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"importHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:\"importsNotUsedAsValues\",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:\"downlevelIteration\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:\"isolatedModules\",type:\"boolean\",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"verbatimModuleSyntax\",type:\"boolean\",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:\"strict\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:\"noImplicitAny\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictNullChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictFunctionTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictBindCallApply\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictPropertyInitialization\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noImplicitThis\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"useUnknownInCatchVariables\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"alwaysStrict\",type:\"boolean\",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noUnusedLocals\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:\"noUnusedParameters\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:\"exactOptionalPropertyTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:\"noImplicitReturns\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:\"noFallthroughCasesInSwitch\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:\"noUncheckedIndexedAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:\"noImplicitOverride\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:\"noPropertyAccessFromIndexSignature\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:\"moduleResolution\",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set([\"node\"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:\"baseUrl\",type:\"string\",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:\"paths\",type:\"object\",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:\"rootDirs\",type:\"list\",isTSConfigOnly:!0,element:{name:\"rootDirs\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"typeRoots\",type:\"list\",element:{name:\"typeRoots\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:\"types\",type:\"list\",element:{name:\"types\",type:\"string\"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:\"allowSyntheticDefaultImports\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:\"esModuleInterop\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:\"preserveSymlinks\",type:\"boolean\",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:\"allowUmdGlobalAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:\"moduleSuffixes\",type:\"list\",element:{name:\"suffix\",type:\"string\"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:\"allowImportingTsExtensions\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:\"resolvePackageJsonExports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"resolvePackageJsonImports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"customConditions\",type:\"list\",element:{name:\"condition\",type:\"string\"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:\"sourceRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:\"mapRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:\"inlineSources\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"experimentalDecorators\",type:\"boolean\",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:\"emitDecoratorMetadata\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:\"jsxFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:\"`React.createElement`\"},{name:\"jsxFragmentFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:\"React.Fragment\"},{name:\"jsxImportSource\",type:\"string\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:\"react\"},{name:\"resolveJsonModule\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:\"allowArbitraryExtensions\",type:\"boolean\",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:\"out\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:\"reactNamespace\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:\"`React`\"},{name:\"skipDefaultLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:\"charset\",type:\"string\",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:\"utf8\"},{name:\"emitBOM\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:\"newLine\",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:\"lf\"},{name:\"noErrorTruncation\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:\"noLib\",type:\"boolean\",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"noResolve\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"stripInternal\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:\"disableSizeLimit\",type:\"boolean\",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:\"disableSourceOfProjectReferenceRedirect\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:\"disableSolutionSearching\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:\"disableReferencedProjectLoad\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:\"noImplicitUseStrict\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:\"noEmitHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:\"noEmitOnError\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:\"preserveConstEnums\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:\"declarationDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:\"skipLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:\"allowUnusedLabels\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:\"allowUnreachableCode\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:\"suppressExcessPropertyErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:\"suppressImplicitAnyIndexErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:\"forceConsistentCasingInFileNames\",type:\"boolean\",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:\"maxNodeModuleJsDepth\",type:\"number\",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:\"noStrictGenericChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:\"useDefineForClassFields\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:\"preserveValueImports\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:\"keyofStringsOnly\",type:\"boolean\",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:\"plugins\",type:\"list\",isTSConfigOnly:!0,element:{name:\"plugin\",type:\"object\"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:\"moduleDetection\",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:\"ignoreDeprecations\",type:\"string\",defaultValueDescription:void 0}],Nh=[...X2,...uU],pU=Nh.filter(e=>!!e.affectsSemanticDiagnostics),fU=Nh.filter(e=>!!e.affectsEmit),mU=Nh.filter(e=>!!e.affectsDeclarationPath),V6=Nh.filter(e=>!!e.affectsModuleResolution),j6=Nh.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),_U=Nh.filter(e=>!!e.affectsProgramStructure),hU=Nh.filter(e=>rs(e,\"transpileOptionValue\")),gU=[{name:\"verbose\",shortName:\"v\",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:\"boolean\",defaultValueDescription:!1},{name:\"dry\",shortName:\"d\",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:\"boolean\",defaultValueDescription:!1},{name:\"force\",shortName:\"f\",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:\"boolean\",defaultValueDescription:!1},{name:\"clean\",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:\"boolean\",defaultValueDescription:!1}],U6=[...X2,...gU],$2=[{name:\"enable\",type:\"boolean\",defaultValueDescription:!1},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"}},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"}},{name:\"disableFilenameBasedTypeAcquisition\",type:\"boolean\",defaultValueDescription:!1}],S0e={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:VEe},H6={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Q2={alternateMode:S0e,getOptionsNameMap:Xx,optionDeclarations:Nh,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},A0e={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Xx},I0e={alternateMode:A0e,getOptionsNameMap:VEe,optionDeclarations:U6,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Jie={optionDeclarations:$2,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},q6={getOptionsNameMap:HEe,optionDeclarations:Yx,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},Z2={name:\"extends\",type:\"listOrElement\",element:{name:\"extends\",type:\"string\"},category:f.File_Management,disallowNullOrUndefined:!0},Kie={name:\"compilerOptions\",type:\"object\",elementOptions:qEe(),extraKeyDiagnostics:Q2},Xie={name:\"watchOptions\",type:\"object\",elementOptions:JEe(),extraKeyDiagnostics:q6},Yie={name:\"typeAcquisition\",type:\"object\",elementOptions:KEe(),extraKeyDiagnostics:Jie},J6=\"**/*\",N0e=/(^|\\/)\\*\\*\\/?$/,P0e=/^[^*?]*(?=\\/[^/]*[*?])/}});function to(e,t,...r){e.trace(SV(t,...r))}function cg(e,t){return!!e.traceResolution&&t.trace!==void 0}function yI(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name==\"string\"&&typeof i.version==\"string\"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Os.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function vU(e){return yI(void 0,e)}function M0e(e){if(e)return x.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function K6(e){let t=[];return e&1&&t.push(\"TypeScript\"),e&2&&t.push(\"JavaScript\"),e&4&&t.push(\"Declaration\"),e&8&&t.push(\"JSON\"),t.join(\", \")}function H4e(e){let t=[];return e&1&&t.push(...l2),e&2&&t.push(...Px),e&4&&t.push(...s2),e&8&&t.push(\".json\"),t}function Qie(e){if(e)return x.assert(mF(e.extension)),{fileName:e.path,packageId:e.packageId}}function L0e(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Ic(e)){let{resolvedFileName:h,originalPath:m}=w0e(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return k0e(t,r,i,o,s,l.resultFromCache,d,p)}function k0e(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:Zie(s.failedLookupLocations,r),affectingLocations:Zie(s.affectingLocations,i),resolutionDiagnostics:Zie(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=$x(s.failedLookupLocations,r),s.affectingLocations=$x(s.affectingLocations,i),s.resolutionDiagnostics=$x(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:xN(r),affectingLocations:xN(i),resolutionDiagnostics:xN(o),alternateResult:d}}function xN(e){return e.length?e:void 0}function $x(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Zie(e,t){return e?.length?t.length?[...e,...t]:e.slice():xN(t)}function O0e(e,t,r,i){if(!rs(e,t)){i.traceEnabled&&to(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&to(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?\"null\":typeof o);return}return o}function yU(e,t,r,i){let o=O0e(e,t,\"string\",i);if(o===void 0)return;if(!o){i.traceEnabled&&to(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=Yo(wr(r,o));return i.traceEnabled&&to(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function q4e(e,t,r){return yU(e,\"typings\",t,r)||yU(e,\"types\",t,r)}function J4e(e,t,r){return yU(e,\"tsconfig\",t,r)}function K4e(e,t,r){return yU(e,\"main\",t,r)}function X4e(e,t){let r=O0e(e,\"typesVersions\",\"object\",t);if(r!==void 0)return t.traceEnabled&&to(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y4e(e,t){let r=X4e(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)rs(r,l)&&!hM.tryParse(l)&&to(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=X6(r);if(!i){t.traceEnabled&&to(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,jm);return}let{version:o,paths:s}=i;if(typeof s!=\"object\"){t.traceEnabled&&to(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,\"object\",typeof s);return}return i}function X6(e){foe||(foe=new zf(bp));for(let t in e){if(!rs(e,t))continue;let r=hM.tryParse(t);if(r!==void 0&&r.test(foe))return{version:t,paths:e[t]}}}function RN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=Ur(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $4e(r)}function $4e(e){let t;return Vf(Yo(e),r=>{let i=wr(r,iSe);(t??(t=[])).push(i)}),t}function Q4e(e,t,r){let i=typeof r.useCaseSensitiveFileNames==\"function\"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Xh(e,t,!i)===0}function w0e(e,t,r){let i=d3e(e,t,r),o=Q4e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function W0e(e,t,r){let i=Zs(e,\"/node_modules/@types\")||Zs(e,\"/node_modules/@types/\")?tSe(t,r):t;return wr(e,i)}function eoe(e,t,r,i,o,s,l){x.assert(typeof e==\"string\",\"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.\");let d=cg(r,i);o&&(r=o.commandLine.options);let p=t?Ur(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Ic(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(to(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),to(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),F(h)),h;let m=RN(r,i);d&&(t===void 0?m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let v=[],E=[],S=toe(r);l!==void 0&&(S|=30);let A=zd(r);l===99&&3<=A&&A<=99&&(S|=32);let C=S&8?hy(r,l):[],R=[],L={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:v,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:C,requestContainingDirectory:p,reportDiagnostic:$=>void R.push($),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},G=oe(),U=!0;G||(G=W(),U=!1);let K;if(G){let{fileName:$,packageId:de}=G,fe=$,q;r.preserveSymlinks||({resolvedFileName:fe,originalPath:q}=w0e($,i,d)),K={primary:U,resolvedFileName:fe,originalPath:q,packageId:de,isExternalLibraryImport:Gb($)}}return h={resolvedTypeReferenceDirective:K,failedLookupLocations:xN(v),affectingLocations:xN(E),resolutionDiagnostics:xN(R)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Ic(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&F(h),h;function F($){var de;(de=$.resolvedTypeReferenceDirective)!=null&&de.resolvedFileName?$.resolvedTypeReferenceDirective.packageId?to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,$.resolvedTypeReferenceDirective.resolvedFileName,Qv($.resolvedTypeReferenceDirective.packageId),$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,$.resolvedTypeReferenceDirective.resolvedFileName,$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_not_resolved,e)}function oe(){if(m&&m.length)return d&&to(i,f.Resolving_with_primary_search_path_0,m.join(\", \")),ml(m,$=>{let de=W0e($,e,L),fe=gm($,i);if(!fe&&d&&to(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,$),r.typeRoots){let q=eR(4,de,!fe,L);if(q){let H=tk(q.path),ee=H?m0(H,!1,L):void 0;return Qie(yI(ee,q))}}return Qie(coe(4,de,!fe,L))});d&&to(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function W(){let $=t&&Ur(t);if($!==void 0){let de;if(!r.typeRoots||!Zs(t,lR))if(d&&to(i,f.Looking_up_in_node_modules_folder_initial_location_0,$),Ic(e)){let{path:fe}=j0e($,e);de=AU(4,fe,!1,L,!0)}else{let fe=$0e(4,e,$,L,void 0,void 0);de=fe&&fe.value}else d&&to(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Qie(de)}else d&&to(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function toe(e){let t=0;switch(zd(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function hy(e,t){let r=zd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?[\"import\"]:[\"require\"];return e.noDtsResolution||i.push(\"types\"),r!==100&&i.push(\"node\"),ro(i,e.customConditions)}function bU(e,t,r,i,o){let s=nk(o?.getPackageJsonInfoCache(),i,r);return Vf(t,l=>{if(Ll(l)!==\"node_modules\"){let d=wr(l,\"node_modules\"),p=wr(d,e);return m0(p,!1,s)}})}function Y6(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=RN(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=Yo(s),d=wr(o,l,\"package.json\");if(!(t.fileExists(d)&&kC(d,t).typings===null)){let h=Ll(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function $6(e){return!!e?.contents}function noe(e){return!!e&&!e.contents}function roe(e){var t;if(e===null||typeof e!=\"object\")return\"\"+e;if(oo(e))return`[${(t=e.map(i=>roe(i)))==null?void 0:t.join(\",\")}]`;let r=\"{\";for(let i in e)rs(e,i)&&(r+=`${i}: ${roe(e[i])}`);return r+\"}\"}function EU(e,t){return t.map(r=>roe(iF(e,r))).join(\"|\")+`|${e.pathsBasePath}`}function SU(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(v){return v?p(v.commandLine.options,!1):o}function l(v){return v?p(v.commandLine.options,!0):o}function d(v){e!==v&&(e?o=p(v,!0):r.set(v,o),e=v)}function p(v,E){let S=r.get(v);if(S)return S;let A=m(v);if(S=i.get(A),!S){if(e){let C=m(e);C===A?S=o:i.has(C)||i.set(C,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(v,S),S}function h(){let v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function m(v){let E=t.get(v);return E||t.set(v,E=EU(v,V6)),E}}function Z4e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(ks(d,e,t))}function o(d,p){(r||(r=new Map)).set(ks(d,e,t),p)}function s(){r=void 0}function l(){return r}}function F0e(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function e3e(e,t,r,i){let o=SU(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let v=ks(h,e,t);return F0e(o,m,v,()=>bI())}function p(h,m,v,E){var S,A;let C=ks(v,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(C))==null?void 0:A.get(h,m)}}function DN(e,t){return t===void 0?e:`${t}|${e}`}function bI(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=DN(o,s);return t.set(l,[o,s]),l}}function t3e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function n3e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function r3e(e,t,r,i,o){let s=SU(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(v){s.update(v)}function p(v,E,S,A){var C,R;return x.assert(!Ic(v)),(R=(C=s.getMapOfCacheRedirects(A))==null?void 0:C.get(DN(v,E)))==null?void 0:R.get(S)}function h(v,E,S){return x.assert(!Ic(v)),F0e(s,S,DN(v,E),m)}function m(){let v=new Map;return{get:E,set:S};function E(C){return v.get(ks(C,e,t))}function S(C,R){let L=ks(C,e,t);if(v.has(L))return;v.set(L,R);let G=i(R),U=G&&A(L,G),K=L;for(;K!==U;){let F=Ur(K);if(F===K||v.has(F))break;v.set(F,R),K=F}}function A(C,R){let L=ks(Ur(R),e,t),G=0,U=Math.min(C.length,L.length);for(;G<U&&C.charCodeAt(G)===L.charCodeAt(G);)G++;if(G===C.length&&(L.length===G||L[G]===Os))return C;let K=M_(C);if(G<K)return;let F=C.lastIndexOf(Os,G-1);if(F!==-1)return C.substr(0,Math.max(F,K))}}}function z0e(e,t,r,i,o,s){s??(s=new Map);let l=e3e(e,t,r,s),d=r3e(e,t,r,o,s);return i??(i=Z4e(e,t)),{...i,...l,...d,clear:p,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(v){l.update(v),d.update(v)}}function Qx(e,t,r,i,o){let s=z0e(e,t,r,i,t3e,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function Q6(e,t,r,i,o){return z0e(e,t,r,i,n3e,o)}function TU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Z6(e,t,r,i,o){return Zx(e,t,TU(r),i,o)}function B0e(e,t,r,i){let o=Ur(t);return r.getFromDirectoryCache(e,i,o,void 0)}function Zx(e,t,r,i,o,s,l){var d,p,h;let m=cg(r,i);s&&(r=s.commandLine.options),m&&(to(i,f.Resolving_module_0_from_1,e,t),s&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let v=Ur(t),E=o?.getFromDirectoryCache(e,l,v,s);if(E)m&&to(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,v);else{let S=r.moduleResolution;switch(S===void 0?(S=zd(r),m&&to(i,f.Module_resolution_kind_is_not_specified_using_0,O1[S])):m&&to(i,f.Explicitly_specified_module_resolution_kind_Colon_0,O1[S]),(d=Pd)==null||d.logStartResolveModule(e),S){case 3:E=s3e(e,t,r,i,o,s,l);break;case 99:E=l3e(e,t,r,i,o,s,l);break;case 2:E=aoe(e,t,r,i,o,s,l?hy(r,l):void 0);break;case 1:E=uoe(e,t,r,i,o,s);break;case 100:E=ooe(e,t,r,i,o,s,l?hy(r,l):void 0);break;default:return x.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=Pd)==null||p.logInfoEvent(`Module \"${e}\" resolved to \"${E.resolvedModule.resolvedFileName}\"`)),(h=Pd)==null||h.logStopResolveModule(E&&E.resolvedModule?\"\"+E.resolvedModule.resolvedFileName:\"null\"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(v,s).set(e,l,E),Ic(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(v,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?to(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,Qv(E.resolvedModule.packageId)):to(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):to(i,f.Module_name_0_was_not_resolved,e)),E}function G0e(e,t,r,i,o){let s=i3e(e,t,i,o);return s?s.value:Ic(t)?o3e(e,t,r,i,o):a3e(e,t,i,o)}function i3e(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!op(t)){i.traceEnabled&&(s&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),to(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=zW(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=fF(l)):void 0;return doe(e,t,p,l,h,r,!1,i)}}function o3e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&to(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=Yo(wr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=Yo(p);Zs(h,Os)||(h+=Os);let m=Ui(s,h)&&(d===void 0||d.length<h.length);o.traceEnabled&&to(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,m),m&&(d=h,l=p)}if(d){o.traceEnabled&&to(o.host,f.Longest_matching_prefix_for_0_is_1,s,d);let p=s.substr(d.length);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,d,s);let h=i(e,s,!gm(r,o.host),o);if(h)return h;o.traceEnabled&&to(o.host,f.Trying_other_entries_in_rootDirs);for(let m of o.compilerOptions.rootDirs){if(m===l)continue;let v=wr(Yo(m),p);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,m,v);let E=Ur(v),S=i(e,v,!gm(E,o.host),o);if(S)return S}o.traceEnabled&&to(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function a3e(e,t,r,i){let{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);let s=Yo(wr(o,t));return i.traceEnabled&&to(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!gm(Ur(s),i.host),i)}function ioe(e,t,r){let{resolvedModule:i,failedLookupLocations:o}=c3e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(\", \")}`);return i.resolvedFileName}function s3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function l3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function V0e(e,t,r,i,o,s,l,d,p){let h=Ur(r),m=d===99?32:0,v=i.noDtsResolution?3:7;return Mb(i)&&(v|=8),ek(e|m,t,h,i,o,s,v,!1,l,p)}function c3e(e,t,r){return ek(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function ooe(e,t,r,i,o,s,l){let d=Ur(t),p=r.noDtsResolution?3:7;return Mb(r)&&(p|=8),ek(toe(r),e,d,r,i,o,p,!1,s,l)}function aoe(e,t,r,i,o,s,l,d){let p;return d?p=8:r.noDtsResolution?(p=3,Mb(r)&&(p|=8)):p=Mb(r)?15:7,ek(l?30:0,e,Ur(t),r,i,o,p,!!d,s,l)}function soe(e,t,r){return ek(30,e,Ur(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function ek(e,t,r,i,o,s,l,d,p,h){var m,v,E,S,A;let C=cg(i,o),R=[],L=[],G=zd(i);h??(h=hy(i,G===100||G===2?void 0:e&32?99:1));let U=[],K={compilerOptions:i,host:o,traceEnabled:C,failedLookupLocations:R,affectingLocations:L,packageJsonInfoCache:s,features:e,conditions:h??je,requestContainingDirectory:r,reportDiagnostic:$=>void U.push($),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};C&&HA(G)&&to(o,f.Resolving_in_0_mode_with_conditions_1,e&32?\"ESM\":\"CJS\",K.conditions.map($=>`'${$}'`).join(\", \"));let F;if(G===2){let $=l&5,de=l&-6;F=$&&W($,K)||de&&W(de,K)||void 0}else F=W(l,K);let oe;if(K.resolvedPackageDirectory&&!d&&!Ic(t)){let $=F?.value&&l&5&&!K0e(5,F.value.resolved.extension);if((m=F?.value)!=null&&m.isExternalLibraryImport&&$&&e&8&&h?.includes(\"import\")){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let de={...K,features:K.features&-9,reportDiagnostic:Ca},fe=W(l&5,de);(v=fe?.value)!=null&&v.isExternalLibraryImport&&(oe=fe.value.resolved.path)}else if((!F?.value||$)&&G===2){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let de={...K.compilerOptions,moduleResolution:100},fe={...K,compilerOptions:de,features:30,conditions:hy(de),reportDiagnostic:Ca},q=W(l&5,fe);(E=q?.value)!=null&&E.isExternalLibraryImport&&(oe=q.value.resolved.path)}}return L0e(t,(S=F?.value)==null?void 0:S.resolved,(A=F?.value)==null?void 0:A.isExternalLibraryImport,R,L,U,K,s,oe);function W($,de){let q=G0e($,t,r,(H,ee,le,Ee)=>AU(H,ee,le,Ee,!0),de);if(q)return Rp({resolved:q,isExternalLibraryImport:Gb(q.path)});if(Ic(t)){let{path:H,parts:ee}=j0e(r,t),le=AU($,H,!1,de,!0);return le&&Rp({resolved:le,isExternalLibraryImport:To(ee,\"node_modules\")})}else{let H;if(e&2&&Ui(t,\"#\")&&(H=m3e($,t,r,de,s,p)),!H&&e&4&&(H=f3e($,t,r,de,s,p)),!H){if(t.includes(\":\")){C&&to(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,K6($));return}C&&to(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,K6($)),H=$0e($,t,r,de,s,p)}return $&4&&(H??(H=rSe(t,de))),H&&{value:H.value&&{resolved:H.value,isExternalLibraryImport:!0}}}}}function j0e(e,t){let r=wr(e,t),i=mc(r),o=Ns(i);return{path:o===\".\"||o===\"..\"?_c(Yo(r)):Yo(r),parts:i}}function d3e(e,t,r){if(!t.realpath)return e;let i=Yo(t.realpath(e));return r&&to(t,f.Resolving_real_path_for_0_result_1,e,i),i}function AU(e,t,r,i,o){if(i.traceEnabled&&to(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,K6(e)),!Jg(t)){if(!r){let l=Ur(t);gm(l,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=eR(e,t,r,i);if(s){let l=o?tk(s.path):void 0,d=l?m0(l,!1,i):void 0;return yI(d,s)}}if(r||gm(t,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return coe(e,t,r,i,o)}function Gb(e){return e.includes(q_)}function tk(e,t){let r=Yo(e),i=r.lastIndexOf(q_);if(i===-1)return;let o=i+q_.length,s=U0e(r,o,t);return r.charCodeAt(o)===64&&(s=U0e(r,s,t)),r.slice(0,s)}function U0e(e,t,r){let i=e.indexOf(Os,t+1);return i===-1?r?e.length:t:i}function loe(e,t,r,i){return vU(eR(e,t,r,i))}function eR(e,t,r,i){let o=H0e(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=q0e(t,e,\"\",r,i);if(s)return s}}function H0e(e,t,r,i){if(!Ll(t).includes(\".\"))return;let s=Yd(t);s===t&&(s=t.substring(0,t.lastIndexOf(\".\")));let l=t.substring(s.length);return i.traceEnabled&&to(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),q0e(s,e,l,r,i)}function IU(e,t,r,i){return e&1&&$l(t,l2)||e&4&&$l(t,s2)?xU(t,r,i)!==void 0?{path:t,ext:JW(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&el(t,\".json\")?xU(t,r,i)!==void 0?{path:t,ext:\".json\",resolvedUsingTsExtension:void 0}:void 0:H0e(e,t,r,i)}function q0e(e,t,r,i,o){if(!i){let l=Ur(e);l&&(i=!gm(l,o.host))}switch(r){case\".mjs\":case\".mts\":case\".d.mts\":return t&1&&s(\".mts\",r===\".mts\"||r===\".d.mts\")||t&4&&s(\".d.mts\",r===\".mts\"||r===\".d.mts\")||t&2&&s(\".mjs\")||void 0;case\".cjs\":case\".cts\":case\".d.cts\":return t&1&&s(\".cts\",r===\".cts\"||r===\".d.cts\")||t&4&&s(\".d.cts\",r===\".cts\"||r===\".d.cts\")||t&2&&s(\".cjs\")||void 0;case\".json\":return t&4&&s(\".d.json.ts\")||t&8&&s(\".json\")||void 0;case\".tsx\":case\".jsx\":return t&1&&(s(\".tsx\",r===\".tsx\")||s(\".ts\",r===\".tsx\"))||t&4&&s(\".d.ts\",r===\".tsx\")||t&2&&(s(\".jsx\")||s(\".js\"))||void 0;case\".ts\":case\".d.ts\":case\".js\":case\"\":return t&1&&(s(\".ts\",r===\".ts\"||r===\".d.ts\")||s(\".tsx\",r===\".ts\"||r===\".d.ts\"))||t&4&&s(\".d.ts\",r===\".ts\"||r===\".d.ts\")||t&2&&(s(\".js\")||s(\".jsx\"))||o.isConfigLookup&&s(\".json\")||void 0;default:return t&4&&!Yc(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=xU(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function xU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return J0e(e,t,r);let o=og(e)??\"\",s=o?QL(e,o):e;return an(r.compilerOptions.moduleSuffixes,l=>J0e(s+l+o,t,r))}function J0e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&to(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&to(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function coe(e,t,r,i,o=!0){let s=o?m0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&e4(s,i);return yI(s,DU(e,t,r,i,l,d))}function RU(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=toe(t),p=nk(i?.getPackageJsonInfoCache(),r,t);p.conditions=hy(t),p.requestContainingDirectory=e.packageDirectory;let h=DU(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,e4(e,p));if(s=pn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=NE([hy(t,99),hy(t,1)],mm);for(let v of m){let E={...p,failedLookupLocations:[],conditions:v,host:r},S=u3e(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=Kh(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function u3e(e,t,r,i){let o;if(oo(t))for(let l of t)s(l);else if(typeof t==\"object\"&&t!==null&&t4(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l==\"string\"&&Ui(l,\"./\"))if(l.includes(\"*\")&&r.host.readDirectory){if(l.indexOf(\"*\")!==l.lastIndexOf(\"*\"))return!1;r.host.readDirectory(e.packageDirectory,H4e(i),void 0,[pee(KA(l,\"**/*\"),\".*\")]).forEach(h=>{o=Kh(o,{path:h,ext:w1(h),resolvedUsingTsExtension:void 0})})}else{let h=mc(l).slice(2);if(h.includes(\"..\")||h.includes(\".\")||h.includes(\"node_modules\"))return!1;let m=wr(e.packageDirectory,l),v=Qi(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=IU(i,v,!1,r);if(E)return o=Kh(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l==\"object\"&&l!==null)return an(fh(l),h=>{if(h===\"default\"||To(r.conditions,h)||ok(r.conditions,h))return s(l[h]),!0})}}function nk(e,t,r){return{host:t,compilerOptions:r,traceEnabled:cg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:je,requestContainingDirectory:void 0,reportDiagnostic:Ca,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function rk(e,t){let r=mc(e);for(r.pop();r.length>0;){let i=m0(Vv(r),!1,t);if(i)return i;r.pop()}}function e4(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y4e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,v=wr(e,\"package.json\");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(E!==void 0){if($6(E))return m&&to(h,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&to(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}let S=gm(e,h);if(S&&h.fileExists(v)){let A=kC(v,h);m&&to(h,f.Found_package_json_at_0,v);let C={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,C),(d=r.affectingLocations)==null||d.push(v),C}else S&&m&&to(h,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(v)}function DU(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=J4e(o,t,i):l=e&4&&q4e(o,t,i)||e&7&&K4e(o,t,i)||void 0);let d=(E,S,A,C)=>{let R=IU(E,S,A,C);if(R)return vU(R);let L=E===4?5:E,G=C.features,U=C.candidateIsFromPackageJsonField;C.candidateIsFromPackageJsonField=!0,o?.type!==\"module\"&&(C.features&=-33);let K=AU(L,S,A,C,!1);return C.features=G,C.candidateIsFromPackageJsonField=U,K},p=l?!gm(Ur(l),i.host):void 0,h=r||!gm(t,i.host),m=wr(t,i.isConfigLookup?\"tsconfig\":\"index\");if(s&&(!l||Bf(t,l))){let E=Gf(t,l||m,!1);i.traceEnabled&&to(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,bp,E);let S=doe(e,E,t,s.paths,void 0,d,p||h,i);if(S)return M0e(S.value)}let v=l&&M0e(d(e,l,p,i));if(v)return v;if(!(i.features&32))return eR(e,m,h,i)}function K0e(e,t){return e&2&&(t===\".js\"||t===\".jsx\"||t===\".mjs\"||t===\".cjs\")||e&1&&(t===\".ts\"||t===\".tsx\"||t===\".mts\"||t===\".cts\")||e&4&&(t===\".d.ts\"||t===\".d.mts\"||t===\".d.cts\")||e&8&&t===\".json\"||!1}function ik(e){let t=e.indexOf(Os);return e[0]===\"@\"&&(t=e.indexOf(Os,t+1)),t===-1?{packageName:e,rest:\"\"}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function t4(e){return ji(fh(e),t=>Ui(t,\".\"))}function p3e(e){return!ct(fh(e),t=>Ui(t,\".\"))}function f3e(e,t,r,i,o,s){var l,d;let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!=\"string\")return;let m=mc(t),v=mc(h.contents.packageJsonContent.name);if(!ji(v,(R,L)=>m[L]===R))return;let E=m.slice(v.length),S=yn(E)?`.${Os}${E.join(Os)}`:\".\";if(sy(i.compilerOptions)&&!Gb(r))return CU(h,e,S,i,o,s);let A=e&5,C=e&-6;return CU(h,A,S,i,o,s)||CU(h,C,S,i,o,s)}function CU(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r===\".\"){let l;if(typeof e.contents.packageJsonContent.exports==\"string\"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports==\"object\"&&p3e(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:rs(e.contents.packageJsonContent.exports,\".\")&&(l=e.contents.packageJsonContent.exports[\".\"]),l)return Y0e(t,i,o,s,r,e,!1)(l,\"\",!1,\".\")}else if(t4(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!=\"object\")return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0);let l=X0e(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0)}}function m3e(e,t,r,i,o,s){var l,d;if(t===\"#\"||Ui(t,\"#/\"))return i.traceEnabled&&to(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),Rp(void 0);let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h)return i.traceEnabled&&to(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),Rp(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&to(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),Rp(void 0);let m=X0e(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&to(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),Rp(void 0))}function NU(e,t){let r=e.indexOf(\"*\"),i=t.indexOf(\"*\"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function X0e(e,t,r,i,o,s,l,d){let p=Y0e(e,t,r,i,o,l,d);if(!Zs(o,Os)&&!o.includes(\"*\")&&rs(s,o)){let v=s[o];return p(v,\"\",!1,o)}let h=uS(Cr(fh(s),v=>v.includes(\"*\")||Zs(v,\"/\")),NU);for(let v of h)if(t.features&16&&m(v,o)){let E=s[v],S=v.indexOf(\"*\"),A=o.substring(v.substring(0,S).length,o.length-(v.length-1-S));return p(E,A,!0,v)}else if(Zs(v,\"*\")&&Ui(o,v.substring(0,v.length-1))){let E=s[v],S=o.substring(v.length-1);return p(E,S,!0,v)}else if(Ui(o,v)){let E=s[v],S=o.substring(v.length);return p(E,S,!1,v)}function m(v,E){if(Zs(v,\"*\"))return!1;let S=v.indexOf(\"*\");return S===-1?!1:Ui(E,v.substring(0,S))&&Zs(E,v.substring(S+1))}}function Y0e(e,t,r,i,o,s,l){return d;function d(p,h,m,v){if(typeof p==\"string\"){if(!m&&h.length>0&&!Zs(p,\"/\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);if(!Ui(p,\"./\")){if(l&&!Ui(p,\"../\")&&!Ui(p,\"/\")&&!Ou(p)){let F=m?p.replace(/\\*/g,h):p+h;gy(t,f.Using_0_subpath_1_with_target_2,\"imports\",v,F),gy(t,f.Resolving_module_0_from_1,F,s.packageDirectory+\"/\");let oe=ek(t.features,F,s.packageDirectory+\"/\",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return Rp(oe.resolvedModule?{path:oe.resolvedModule.resolvedFileName,extension:oe.resolvedModule.extension,packageId:oe.resolvedModule.packageId,originalPath:oe.resolvedModule.originalPath,resolvedUsingTsExtension:oe.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0)}let R=(op(p)?mc(p).slice(1):mc(p)).slice(1);if(R.includes(\"..\")||R.includes(\".\")||R.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);let L=wr(s.packageDirectory,p),G=mc(h);if(G.includes(\"..\")||G.includes(\".\")||G.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);t.traceEnabled&&to(t.host,f.Using_0_subpath_1_with_target_2,l?\"imports\":\"exports\",v,m?p.replace(/\\*/g,h):p+h);let U=E(m?L.replace(/\\*/g,h):L+h),K=A(U,h,wr(s.packageDirectory,\"package.json\"),l);return K||Rp(yI(s,IU(e,U,!1,t)))}else if(typeof p==\"object\"&&p!==null)if(Array.isArray(p)){if(!yn(p))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);for(let C of p){let R=d(C,h,m,v);if(R)return R}}else{gy(t,f.Entering_conditional_exports);for(let C of fh(p))if(C===\"default\"||t.conditions.includes(C)||ok(t.conditions,C)){gy(t,f.Matched_0_condition_1,l?\"imports\":\"exports\",C);let R=p[C],L=d(R,h,m,v);if(L)return gy(t,f.Resolved_under_condition_0,C),gy(t,f.Exiting_conditional_exports),L;gy(t,f.Failed_to_resolve_under_condition_0,C)}else gy(t,f.Saw_non_matching_condition_0,C);gy(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&to(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),Rp(void 0);return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);function E(C){var R,L;return C===void 0?C:Qi(C,(L=(R=t.host).getCurrentDirectory)==null?void 0:L.call(R))}function S(C,R){return _c(wr(C,R))}function A(C,R,L,G){var U,K,F,oe;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!C.includes(\"/node_modules/\")&&(!t.compilerOptions.configFile||Bf(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!PU(t)))){let $=ev({useCaseSensitiveFileNames:()=>PU(t)}),de=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let fe=E(VN(t.compilerOptions,()=>[],((K=(U=t.host).getCurrentDirectory)==null?void 0:K.call(U))||\"\",$));de.push(fe)}else if(t.requestContainingDirectory){let fe=E(wr(t.requestContainingDirectory,\"index.ts\")),q=E(VN(t.compilerOptions,()=>[fe,E(L)],((oe=(F=t.host).getCurrentDirectory)==null?void 0:oe.call(F))||\"\",$));de.push(q);let H=_c(q);for(;H&&H.length>1;){let ee=mc(H);ee.pop();let le=Vv(ee);de.unshift(le),H=_c(le)}}de.length>1&&t.reportDiagnostic(bl(G?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,R===\"\"?\".\":R,L));for(let fe of de){let q=W(fe);for(let H of q)if(Bf(H,C,!PU(t))){let ee=C.slice(H.length+1),le=wr(fe,ee),Ee=[\".mjs\",\".cjs\",\".js\",\".json\",\".d.mts\",\".d.cts\",\".d.ts\"];for(let ce of Ee)if(el(le,ce)){let Z=une(le);for(let pe of Z){if(!K0e(e,pe))continue;let Ae=xM(le,pe,ce,!PU(t));if(t.host.fileExists(Ae))return Rp(yI(s,IU(e,Ae,!1,t)))}}}}}return;function W($){var de,fe;let q=t.compilerOptions.configFile?((fe=(de=t.host).getCurrentDirectory)==null?void 0:fe.call(de))||\"\":$,H=[];return t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.outDir))),H}}}}function ok(e,t){if(!e.includes(\"types\")||!Ui(t,\"types@\"))return!1;let r=hM.tryParse(t.substring(6));return r?r.test(bp):!1}function $0e(e,t,r,i,o,s){return Q0e(e,t,r,i,!1,o,s)}function _3e(e,t,r){return Q0e(4,e,t,r,!0,void 0,void 0)}function Q0e(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){gy(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,K6(p));let v=m(p);if(v)return v}if(h&&!o)return gy(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,K6(h)),m(h);function m(v){return Vf(ad(r),E=>{if(Ll(E)!==\"node_modules\"){let S=nSe(s,t,d,E,l,i);return S||Rp(Z0e(v,t,E,i,o,s,l))}})}}function Z0e(e,t,r,i,o,s,l){let d=wr(r,\"node_modules\"),p=gm(d,i.host);if(!p&&i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=eSe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=wr(d,\"@types\"),m=p;return p&&!gm(h,i.host)&&(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),eSe(4,tSe(t,i),h,m,i,s,l)}}function eSe(e,t,r,i,o,s,l){var d,p;let h=Yo(wr(r,t)),{packageName:m,rest:v}=ik(t),E=wr(r,m),S,A=m0(h,!i,o);if(v!==\"\"&&A&&(!(o.features&8)||!rs(((d=S=m0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??je,\"exports\"))){let L=eR(e,h,!i,o);if(L)return vU(L);let G=DU(e,h,!i,o,A.contents.packageJsonContent,e4(A,o));return yI(A,G)}let C=(L,G,U,K)=>{let F=(v||!(K.features&32))&&eR(L,G,U,K)||DU(L,G,U,K,A&&A.contents.packageJsonContent,A&&e4(A,K));return!F&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&K.features&32&&(F=eR(L,wr(G,\"index.js\"),U,K)),yI(A,F)};if(v!==\"\"&&(A=S??m0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=CU(A,e,wr(\".\",v),o,s,l))==null?void 0:p.value;let R=v!==\"\"&&A?e4(A,o):void 0;if(R){o.traceEnabled&&to(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,R.version,bp,v);let L=i&&gm(E,o.host),G=doe(e,v,E,R.paths,void 0,C,!L,o);if(G)return G.value}return C(e,h,!i,o)}function doe(e,t,r,i,o,s,l,d){o||(o=fF(i));let p=CV(o,t);if(p){let h=fo(p)?void 0:qZ(p,t),m=fo(p)?p:HZ(p);return d.traceEnabled&&to(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:an(i[m],E=>{let S=h?KA(E,h):E,A=Yo(wr(r,S));d.traceEnabled&&to(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let C=og(E);if(C!==void 0){let R=xU(A,l,d);if(R!==void 0)return vU({path:R,ext:C,resolvedUsingTsExtension:void 0})}return s(e,A,l||!gm(Ur(A),d.host),d)})}}}function tSe(e,t){let r=tR(e);return t.traceEnabled&&r!==e&&to(t.host,f.Scoped_package_detected_looking_in_0,r),r}function n4(e){return`@types/${tR(e)}`}function tR(e){if(Ui(e,\"@\")){let t=e.replace(Os,LU);if(t!==e)return t.slice(1)}return e}function CN(e){let t=jD(e,\"@types/\");return t!==e?ak(t):e}function ak(e){return e.includes(LU)?\"@\"+e.replace(LU,Os):e}function nSe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&to(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function uoe(e,t,r,i,o,s){let l=cg(r,i),d=[],p=[],h=Ur(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return L0e(e,E&&E.value,E?.value&&Gb(E.value.path),d,p,m,v,o);function S(A){let C=G0e(A,e,h,loe,v);if(C)return{value:C};if(Ic(e)){let R=Yo(wr(h,e));return Rp(loe(A,R,!1,v))}else{let R=Vf(h,L=>{let G=nSe(o,e,void 0,L,s,v);if(G)return G;let U=Yo(wr(L,e));return Rp(loe(A,U,!1,v))});if(R)return R;if(A&5){let L=_3e(e,h,v);return A&4&&(L??(L=rSe(e,v))),L}}}}function rSe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=W0e(r,e,t),o=gm(r,t.host);!o&&t.traceEnabled&&to(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=eR(4,i,!o,t);if(s){let d=tk(s.path),p=d?m0(d,!1,t):void 0;return Rp(yI(p,s))}let l=coe(4,i,!o,t);if(l)return Rp(l)}}function nR(e,t){return!!e.allowImportingTsExtensions||t&&Yc(t)}function poe(e,t,r,i,o,s){let l=cg(r,i);l&&to(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=Z0e(4,e,o,m,!1,void 0,void 0);return k0e(v,!0,d,p,h,m.resultFromCache,void 0)}function Rp(e){return e!==void 0?{value:e}:void 0}function gy(e,t,...r){e.traceEnabled&&to(e.host,t,...r)}function PU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames==\"boolean\"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var foe,iSe,MU,q_,LU,h3e=pt({\"src/compiler/moduleNameResolver.ts\"(){\"use strict\";wo(),iSe=wr(\"node_modules\",\"@types\"),MU=(e=>(e[e.None=0]=\"None\",e[e.Imports=2]=\"Imports\",e[e.SelfName=4]=\"SelfName\",e[e.Exports=8]=\"Exports\",e[e.ExportsPatternTrailers=16]=\"ExportsPatternTrailers\",e[e.AllFeatures=30]=\"AllFeatures\",e[e.Node16Default=30]=\"Node16Default\",e[e.NodeNextDefault=30]=\"NodeNextDefault\",e[e.BundlerDefault=30]=\"BundlerDefault\",e[e.EsmMode=32]=\"EsmMode\",e))(MU||{}),q_=\"/node_modules/\",LU=\"__\"}});function dg(e,t){return e.body&&!e.body.parent&&(Aa(e.body,e),oy(e.body,!1)),e.body?moe(e.body,t):1}function moe(e,t=new Map){let r=Fa(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=g3e(e,t);return t.set(r,i),i}function g3e(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(BE(e))return 2;break;case 272:case 271:if(!Wr(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=v3e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ao(e,o=>{let s=moe(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:x.assertNever(s)}}),i}case 267:return dg(e,t);case 80:if(e.flags&4096)return 0}return 1}function v3e(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Do(i)||n_(i)||Li(i)){let o=i.statements,s;for(let l of o)if(zM(l,r)){l.parent||(Aa(l,i),oy(l,!1));let d=moe(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function EI(e){return x.attachFlowNodeDebugInfo(e),e}function _oe(e,t){var r,i;Ls(\"beforeBind\"),(r=Pd)==null||r.logStartBindFile(\"\"+e.fileName),aSe(e,t),(i=Pd)==null||i.logStopBindFile(),Ls(\"afterBind\"),Sp(\"Bind\",\"beforeBind\",\"afterBind\")}function y3e(){var e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K,F,oe=!1,W=0,$,de,fe={flags:1},q={flags:1},H=V();return le;function ee(k,ge,...Xe){return vf(Nn(k)||e,k,ge,...Xe)}function le(k,ge){var Xe,Mt;e=k,t=ge,r=Wa(t),F=Ee(e,ge),de=new Set,W=0,$=wc.getSymbolConstructor(),x.attachFlowNodeDebugInfo(fe),x.attachFlowNodeDebugInfo(q),e.locals||((Xe=qn)==null||Xe.push(qn.Phase.Bind,\"bindSourceFile\",{path:e.path},!0),xe(e),(Mt=qn)==null||Mt.pop(),e.symbolCount=W,e.classifiableNames=de,Fc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,v=void 0,E=void 0,S=void 0,A=void 0,C=void 0,R=void 0,G=void 0,U=!1,oe=!1,K=0}function Ee(k,ge){return Fd(ge,\"alwaysStrict\")&&!k.isDeclarationFile?!0:!!k.externalModuleIndicator}function ce(k,ge){return W++,new $(k,ge)}function Z(k,ge,Xe){k.flags|=Xe,ge.symbol=k,k.declarations=Kh(k.declarations,ge),Xe&1955&&!k.exports&&(k.exports=Vo()),Xe&6240&&!k.members&&(k.members=Vo()),k.constEnumOnlyModule&&k.flags&304&&(k.constEnumOnlyModule=!1),Xe&111551&&IL(k,ge)}function pe(k){if(k.kind===277)return k.isExportEquals?\"export=\":\"default\";let ge=mo(k);if(ge){if(sd(k)){let Xe=Ef(ge);return Jm(k)?\"__global\":`\"${Xe}\"`}if(ge.kind===167){let Xe=ge.expression;if(Ap(Xe))return Hs(Xe.text);if(LW(Xe))return qo(Xe.operator)+Xe.operand.text;x.fail(\"Only computed properties with literal names have declaration names\")}if(Ci(ge)){let Xe=Oc(k);if(!Xe)return;let Mt=Xe.symbol;return wL(Mt,ge.escapedText)}return Em(ge)?JA(ge):Xm(ge)?AC(ge):void 0}switch(k.kind){case 176:return\"__constructor\";case 184:case 179:case 330:return\"__call\";case 185:case 180:return\"__new\";case 181:return\"__index\";case 278:return\"__export\";case 312:return\"export=\";case 226:if(hl(k)===2)return\"export=\";x.fail(\"Unknown binary declaration kind\");break;case 324:return dx(k)?\"__new\":\"__call\";case 169:return x.assert(k.parent.kind===324,\"Impossible parameter parent kind\",()=>`parent is: ${x.formatSyntaxKind(k.parent.kind)}, expected JSDocFunctionType`),\"arg\"+k.parent.parameters.indexOf(k)}}function Ae(k){return Ld(k)?is(k.name):Ii(x.checkDefined(pe(k)))}function Oe(k,ge,Xe,Mt,Vn,jr,Or){x.assert(Or||!ty(Xe));let zi=Wr(Xe,2048)||Ed(Xe)&&Xe.name.escapedText===\"default\",_a=Or?\"__computed\":zi&&ge?\"default\":pe(Xe),ha;if(_a===void 0)ha=ce(0,\"__missing\");else if(ha=k.get(_a),Mt&2885600&&de.add(_a),!ha)k.set(_a,ha=ce(0,_a)),jr&&(ha.isReplaceableByMethod=!0);else{if(jr&&!ha.isReplaceableByMethod)return ha;if(ha.flags&Vn){if(ha.isReplaceableByMethod)k.set(_a,ha=ce(0,_a));else if(!(Mt&3&&ha.flags&67108864)){Ld(Xe)&&Aa(Xe.name,Xe);let pl=ha.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Gc=!0;(ha.flags&384||Mt&384)&&(pl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Gc=!1);let nc=!1;yn(ha.declarations)&&(zi||ha.declarations&&ha.declarations.length&&Xe.kind===277&&!Xe.isExportEquals)&&(pl=f.A_module_cannot_have_multiple_default_exports,Gc=!1,nc=!0);let Xu=[];Xf(Xe)&&_l(Xe.type)&&Wr(Xe,32)&&ha.flags&2887656&&Xu.push(ee(Xe,f.Did_you_mean_0,`export type { ${Ii(Xe.name.escapedText)} }`));let _u=mo(Xe)||Xe;an(ha.declarations,(ja,em)=>{let tm=mo(ja)||ja,Ri=Gc?ee(tm,pl,Ae(ja)):ee(tm,pl);e.bindDiagnostics.push(nc?fa(Ri,ee(_u,em===0?f.Another_export_default_is_here:f.and_here)):Ri),nc&&Xu.push(ee(tm,f.The_first_export_default_is_here))});let Ay=Gc?ee(_u,pl,Ae(Xe)):ee(_u,pl);e.bindDiagnostics.push(fa(Ay,...Xu)),ha=ce(0,_a)}}}return Z(ha,Xe,Mt),ha.parent?x.assert(ha.parent===ge,\"Existing symbol parent should match new one\"):ha.parent=ge,ha}function _e(k,ge,Xe){let Mt=!!(gb(k)&32)||be(k);if(ge&2097152)return k.kind===281||k.kind===271&&Mt?Oe(o.symbol.exports,o.symbol,k,ge,Xe):(x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe));if(bf(k)&&x.assert(Jn(k)),!sd(k)&&(Mt||o.flags&128)){if(!L_(o)||!o.locals||Wr(k,2048)&&!pe(k))return Oe(o.symbol.exports,o.symbol,k,ge,Xe);let Vn=ge&111551?1048576:0,jr=Oe(o.locals,void 0,k,Vn,Xe);return jr.exportSymbol=Oe(o.symbol.exports,o.symbol,k,ge,Xe),k.localSymbol=jr,jr}else return x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}function be(k){if(k.parent&&Il(k)&&(k=k.parent),!bf(k))return!1;if(!C2(k)&&k.fullName)return!0;let ge=mo(k);return ge?!!(UL(ge.parent)&&Nl(ge.parent)||bd(ge.parent)&&gb(ge.parent)&32):!1}function Te(k,ge){let Xe=o,Mt=s,Vn=l;if(ge&1?(k.kind!==219&&(s=o),o=l=k,ge&32&&(o.locals=Vo(),jn(o))):ge&2&&(l=k,ge&32&&(l.locals=void 0)),ge&4){let jr=m,Or=v,zi=E,_a=S,ha=R,pl=G,Gc=U,nc=ge&16&&!Wr(k,1024)&&!k.asteriskToken&&!!RS(k)||k.kind===175;nc||(m=EI({flags:2}),ge&144&&(m.node=k)),S=nc||k.kind===176||Jn(k)&&(k.kind===262||k.kind===218)?gn():void 0,R=void 0,v=void 0,E=void 0,G=void 0,U=!1,Le(k),k.flags&=-5633,!(m.flags&1)&&ge&8&&gf(k.body)&&(k.flags|=512,U&&(k.flags|=1024),k.endFlowNode=m),k.kind===312&&(k.flags|=K,k.endFlowNode=m),S&&(Wt(S,m),m=Gn(S),(k.kind===176||k.kind===175||Jn(k)&&(k.kind===262||k.kind===218))&&(k.returnFlowNode=m)),nc||(m=jr),v=Or,E=zi,S=_a,R=ha,G=pl,U=Gc}else ge&64?(h=!1,Le(k),x.assertNotNode(k,Me),k.flags=h?k.flags|256:k.flags&-257):Le(k);o=Xe,s=Mt,l=Vn}function De(k){ft(k,ge=>ge.kind===262?xe(ge):void 0),ft(k,ge=>ge.kind!==262?xe(ge):void 0)}function ft(k,ge=xe){k!==void 0&&an(k,ge)}function he(k){Ao(k,xe,ft)}function Le(k){let ge=oe;if(oe=!1,Nt(k)){he(k),dt(k),oe=ge;return}switch(k.kind>=243&&k.kind<=259&&!t.allowUnreachableCode&&(k.flowNode=m),k.kind){case 247:ki(k);break;case 246:so(k);break;case 248:Jo(k);break;case 249:case 250:Ea(k);break;case 245:ln(k);break;case 253:case 257:Tn(k);break;case 252:case 251:tt(k);break;case 258:yt(k);break;case 255:re(k);break;case 269:Ce(k);break;case 296:et(k);break;case 244:z(k);break;case 256:_t(k);break;case 224:on(k);break;case 225:Qt(k);break;case 226:if(nv(k)){oe=ge,Zt(k);return}H(k);break;case 220:Re(k);break;case 227:St(k);break;case 260:te(k);break;case 211:case 212:ti(k);break;case 213:di(k);break;case 235:Cn(k);break;case 353:case 345:case 347:Ie(k);break;case 312:{De(k.statements),xe(k.endOfFileToken);break}case 241:case 268:De(k.statements);break;case 208:j(k);break;case 169:se(k);break;case 210:case 209:case 303:case 230:oe=ge;default:he(k);break}dt(k),oe=ge}function Ke(k){switch(k.kind){case 80:case 81:case 110:case 211:case 212:return st(k);case 213:return Ge(k);case 217:if(Ux(k))return!1;case 235:return Ke(k.expression);case 226:return Vt(k);case 224:return k.operator===54&&Ke(k.operand);case 221:return Ke(k.expression)}return!1}function Dt(k){return MC(k)||(Er(k)||dI(k)||uu(k))&&Dt(k.expression)||Zn(k)&&k.operatorToken.kind===28&&Dt(k.right)||Rs(k)&&(Ap(k.argumentExpression)||gl(k.argumentExpression))&&Dt(k.expression)||lc(k)&&Dt(k.left)}function st(k){return Dt(k)||yd(k)&&st(k.expression)}function Ge(k){if(k.arguments){for(let ge of k.arguments)if(st(ge))return!0}return!!(k.expression.kind===211&&st(k.expression.expression))}function ot(k,ge){return Wx(k)&&jt(k.expression)&&Ga(ge)}function Vt(k){switch(k.operatorToken.kind){case 64:case 76:case 77:case 78:return st(k.left);case 35:case 36:case 37:case 38:return jt(k.left)||jt(k.right)||ot(k.right,k.left)||ot(k.left,k.right)||sC(k.right)&&Ke(k.left)||sC(k.left)&&Ke(k.right);case 104:return jt(k.left);case 103:return Ke(k.right);case 28:return Ke(k.right)}return!1}function jt(k){switch(k.kind){case 217:return jt(k.expression);case 226:switch(k.operatorToken.kind){case 64:return jt(k.left);case 28:return jt(k.right)}}return st(k)}function gn(){return EI({flags:4,antecedents:void 0})}function On(){return EI({flags:8,antecedents:void 0})}function en(k,ge,Xe){return EI({flags:1024,target:k,antecedents:ge,antecedent:Xe})}function zt(k){k.flags|=k.flags&2048?4096:2048}function Wt(k,ge){!(ge.flags&1)&&!To(k.antecedents,ge)&&((k.antecedents||(k.antecedents=[])).push(ge),zt(ge))}function ei(k,ge,Xe){return ge.flags&1?ge:Xe?(Xe.kind===112&&k&64||Xe.kind===97&&k&32)&&!F8(Xe)&&!jG(Xe.parent)?fe:Ke(Xe)?(zt(ge),EI({flags:k,antecedent:ge,node:Xe})):ge:k&32?ge:fe}function Ki(k,ge,Xe,Mt){return zt(k),EI({flags:128,antecedent:k,switchStatement:ge,clauseStart:Xe,clauseEnd:Mt})}function gi(k,ge,Xe){zt(ge);let Mt=EI({flags:k,antecedent:ge,node:Xe});return R&&Wt(R,Mt),Mt}function io(k,ge){return zt(k),EI({flags:512,antecedent:k,node:ge})}function Gn(k){let ge=k.antecedents;return ge?ge.length===1?ge[0]:k:fe}function Nr(k){let ge=k.parent;switch(ge.kind){case 245:case 247:case 246:return ge.expression===k;case 248:case 227:return ge.condition===k}return!1}function cr(k){for(;;)if(k.kind===217)k=k.expression;else if(k.kind===224&&k.operator===54)k=k.operand;else return jL(k)}function Jt(k){return cV(Ka(k))}function Ue(k){for(;uu(k.parent)||fy(k.parent)&&k.parent.operator===54;)k=k.parent;return!Nr(k)&&!cr(k.parent)&&!(yd(k.parent)&&k.parent.expression===k)}function Rt(k,ge,Xe,Mt){let Vn=A,jr=C;A=Xe,C=Mt,k(ge),A=Vn,C=jr}function mn(k,ge,Xe){Rt(xe,k,ge,Xe),(!k||!Jt(k)&&!cr(k)&&!(yd(k)&&nC(k)))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function qr(k,ge,Xe){let Mt=v,Vn=E;v=ge,E=Xe,xe(k),v=Mt,E=Vn}function ni(k,ge){let Xe=G;for(;Xe&&k.parent.kind===256;)Xe.continueTarget=ge,Xe=Xe.next,k=k.parent;return ge}function ki(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();Wt(ge,m),m=ge,mn(k.expression,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),Wt(ge,m),m=Gn(Mt)}function so(k){let ge=On(),Xe=ni(k,gn()),Mt=gn();Wt(ge,m),m=ge,qr(k.statement,Mt,Xe),Wt(Xe,m),m=Gn(Xe),mn(k.expression,ge,Mt),m=Gn(Mt)}function Jo(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();xe(k.initializer),Wt(ge,m),m=ge,mn(k.condition,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),xe(k.incrementor),Wt(ge,m),m=Gn(Mt)}function Ea(k){let ge=ni(k,On()),Xe=gn();xe(k.expression),Wt(ge,m),m=ge,k.kind===250&&xe(k.awaitModifier),Wt(Xe,m),xe(k.initializer),k.initializer.kind!==261&&it(k.initializer),qr(k.statement,Xe,ge),Wt(ge,m),m=Gn(Xe)}function ln(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.expression,ge,Xe),m=Gn(ge),xe(k.thenStatement),Wt(Mt,m),m=Gn(Xe),xe(k.elseStatement),Wt(Mt,m),m=Gn(Mt)}function Tn(k){xe(k.expression),k.kind===253&&(U=!0,S&&Wt(S,m)),m=fe}function ke(k){for(let ge=G;ge;ge=ge.next)if(ge.name===k)return ge}function nt(k,ge,Xe){let Mt=k.kind===252?ge:Xe;Mt&&(Wt(Mt,m),m=fe)}function tt(k){if(xe(k.label),k.label){let ge=ke(k.label.escapedText);ge&&(ge.referenced=!0,nt(k,ge.breakTarget,ge.continueTarget))}else nt(k,v,E)}function yt(k){let ge=S,Xe=R,Mt=gn(),Vn=gn(),jr=gn();if(k.finallyBlock&&(S=Vn),Wt(jr,m),R=jr,xe(k.tryBlock),Wt(Mt,m),k.catchClause&&(m=Gn(jr),jr=gn(),Wt(jr,m),R=jr,xe(k.catchClause),Wt(Mt,m)),S=ge,R=Xe,k.finallyBlock){let Or=gn();Or.antecedents=ro(ro(Mt.antecedents,jr.antecedents),Vn.antecedents),m=Or,xe(k.finallyBlock),m.flags&1?m=fe:(S&&Vn.antecedents&&Wt(S,en(Or,Vn.antecedents,m)),R&&jr.antecedents&&Wt(R,en(Or,jr.antecedents,m)),m=Mt.antecedents?en(Or,Mt.antecedents,m):fe)}else m=Gn(Mt)}function re(k){let ge=gn();xe(k.expression);let Xe=v,Mt=L;v=ge,L=m,xe(k.caseBlock),Wt(ge,m);let Vn=an(k.caseBlock.clauses,jr=>jr.kind===297);k.possiblyExhaustive=!Vn&&!ge.antecedents,Vn||Wt(ge,Ki(L,k,0,0)),v=Xe,L=Mt,m=Gn(ge)}function Ce(k){let ge=k.clauses,Xe=k.parent.expression.kind===112||Ke(k.parent.expression),Mt=fe;for(let Vn=0;Vn<ge.length;Vn++){let jr=Vn;for(;!ge[Vn].statements.length&&Vn+1<ge.length;)Mt===fe&&(m=L),xe(ge[Vn]),Vn++;let Or=gn();Wt(Or,Xe?Ki(L,k.parent,jr,Vn+1):L),Wt(Or,Mt),m=Gn(Or);let zi=ge[Vn];xe(zi),Mt=m,!(m.flags&1)&&Vn!==ge.length-1&&t.noFallthroughCasesInSwitch&&(zi.fallthroughFlowNode=m)}}function et(k){let ge=m;m=L,xe(k.expression),m=ge,ft(k.statements)}function z(k){xe(k.expression),Je(k.expression)}function Je(k){if(k.kind===213){let ge=k;ge.expression.kind!==108&&MC(ge.expression)&&(m=io(m,ge))}}function _t(k){let ge=gn();G={next:G,name:k.label.escapedText,breakTarget:ge,continueTarget:void 0,referenced:!1},xe(k.label),xe(k.statement),!G.referenced&&!t.allowUnusedLabels&&tc(Kne(t),k.label,f.Unused_label),G=G.next,Wt(ge,m),m=Gn(ge)}function ze(k){k.kind===226&&k.operatorToken.kind===64?it(k.left):it(k)}function it(k){if(Dt(k))m=gi(16,m,k);else if(k.kind===209)for(let ge of k.elements)ge.kind===230?it(ge.expression):ze(ge);else if(k.kind===210)for(let ge of k.properties)ge.kind===303?ze(ge.initializer):ge.kind===304?it(ge.name):ge.kind===305&&it(ge.expression)}function Ct(k,ge,Xe){let Mt=gn();k.operatorToken.kind===56||k.operatorToken.kind===77?mn(k.left,Mt,Xe):mn(k.left,ge,Mt),m=Gn(Mt),xe(k.operatorToken),PC(k.operatorToken.kind)?(Rt(xe,k.right,ge,Xe),it(k.left),Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k))):mn(k.right,ge,Xe)}function on(k){if(k.operator===54){let ge=A;A=C,C=ge,he(k),C=A,A=ge}else he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Qt(k){he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Zt(k){oe?(oe=!1,xe(k.operatorToken),xe(k.right),oe=!0,xe(k.left)):(oe=!0,xe(k.left),oe=!1,xe(k.operatorToken),xe(k.right)),it(k.left)}function V(){return M6(k,ge,Xe,Mt,Vn,void 0);function k(Or,zi){if(zi){zi.stackIndex++,Aa(Or,i);let ha=F;tr(Or);let pl=i;i=Or,zi.skip=!1,zi.inStrictModeStack[zi.stackIndex]=ha,zi.parentStack[zi.stackIndex]=pl}else zi={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let _a=Or.operatorToken.kind;if(VL(_a)||PC(_a)){if(Ue(Or)){let ha=gn();Ct(Or,ha,ha),m=Gn(ha)}else Ct(Or,A,C);zi.skip=!0}return zi}function ge(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Xe(Or,zi,_a){zi.skip||xe(Or)}function Mt(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Vn(Or,zi){if(!zi.skip){let pl=Or.operatorToken.kind;if(tv(pl)&&!Sh(Or)&&(it(Or.left),pl===64&&Or.left.kind===212)){let Gc=Or.left;jt(Gc.expression)&&(m=gi(256,m,Or))}}let _a=zi.inStrictModeStack[zi.stackIndex],ha=zi.parentStack[zi.stackIndex];_a!==void 0&&(F=_a),ha!==void 0&&(i=ha),zi.skip=!1,zi.stackIndex--}function jr(Or){if(Or&&Zn(Or)&&!nv(Or))return Or;xe(Or)}}function Re(k){he(k),k.expression.kind===211&&it(k.expression)}function St(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.condition,ge,Xe),m=Gn(ge),xe(k.questionToken),xe(k.whenTrue),Wt(Mt,m),m=Gn(Xe),xe(k.colonToken),xe(k.whenFalse),Wt(Mt,m),m=Gn(Mt)}function M(k){let ge=vc(k)?void 0:k.name;if(ko(ge))for(let Xe of ge.elements)M(Xe);else m=gi(16,m,k)}function te(k){he(k),(k.initializer||H1(k.parent.parent))&&M(k)}function j(k){xe(k.dotDotDotToken),xe(k.propertyName),Pe(k.initializer),xe(k.name)}function se(k){ft(k.modifiers),xe(k.dotDotDotToken),xe(k.questionToken),xe(k.type),Pe(k.initializer),xe(k.name)}function Pe(k){if(!k)return;let ge=m;if(xe(k),ge===fe||ge===m)return;let Xe=gn();Wt(Xe,ge),Wt(Xe,m),m=Gn(Xe)}function Ie(k){xe(k.tagName),k.kind!==347&&k.fullName&&(Aa(k.fullName,k),oy(k.fullName,!1)),typeof k.comment!=\"string\"&&ft(k.comment)}function gt(k){he(k);let ge=xb(k);ge&&ge.kind!==174&&Z(ge.symbol,ge,32)}function bt(k,ge,Xe){Rt(xe,k,ge,Xe),(!yd(k)||nC(k))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function Ot(k){switch(k.kind){case 211:xe(k.questionDotToken),xe(k.name);break;case 212:xe(k.questionDotToken),xe(k.argumentExpression);break;case 213:xe(k.questionDotToken),ft(k.typeArguments),ft(k.arguments);break}}function dn(k,ge,Xe){let Mt=tC(k)?gn():void 0;bt(k.expression,Mt||ge,Xe),Mt&&(m=Gn(Mt)),Rt(Ot,k,ge,Xe),nC(k)&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function An(k){if(Ue(k)){let ge=gn();dn(k,ge,ge),m=Gn(ge)}else dn(k,A,C)}function Cn(k){yd(k)?An(k):he(k)}function ti(k){yd(k)?An(k):he(k)}function di(k){if(yd(k))An(k);else{let ge=Ka(k.expression);ge.kind===218||ge.kind===219?(ft(k.typeArguments),ft(k.arguments),xe(k.expression)):(he(k),k.expression.kind===108&&(m=io(m,k)))}if(k.expression.kind===211){let ge=k.expression;Me(ge.name)&&jt(ge.expression)&&K9(ge.name)&&(m=gi(256,m,k))}}function jn(k){d&&(d.nextContainer=k),d=k}function Ar(k,ge,Xe){switch(o.kind){case 267:return _e(k,ge,Xe);case 312:return _i(k,ge,Xe);case 231:case 263:return Zi(k,ge,Xe);case 266:return Oe(o.symbol.exports,o.symbol,k,ge,Xe);case 187:case 329:case 210:case 264:case 292:return Oe(o.symbol.members,o.symbol,k,ge,Xe);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}}function Zi(k,ge,Xe){return zo(k)?Oe(o.symbol.exports,o.symbol,k,ge,Xe):Oe(o.symbol.members,o.symbol,k,ge,Xe)}function _i(k,ge,Xe){return wl(e)?_e(k,ge,Xe):Oe(e.locals,void 0,k,ge,Xe)}function ui(k){let ge=Li(k)?k:Vr(k.body,n_);return!!ge&&ge.statements.some(Xe=>xl(Xe)||dl(Xe))}function Mr(k){k.flags&33554432&&!ui(k)?k.flags|=128:k.flags&=-129}function lo(k){if(Mr(k),sd(k))if(Wr(k,32)&&ls(k,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),_9(k))_n(k);else{let ge;if(k.name.kind===11){let{text:Mt}=k.name;ge=xx(Mt),ge===void 0&&ls(k.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Mt)}let Xe=Ar(k,512,110735);e.patternAmbientModules=pn(e.patternAmbientModules,ge&&!fo(ge)?{pattern:ge,symbol:Xe}:void 0)}else{let ge=_n(k);if(ge!==0){let{symbol:Xe}=k;Xe.constEnumOnlyModule=!(Xe.flags&304)&&ge===2&&Xe.constEnumOnlyModule!==!1}}}function _n(k){let ge=dg(k),Xe=ge!==0;return Ar(k,Xe?512:1024,Xe?110735:0),ge}function ms(k){let ge=ce(131072,pe(k));Z(ge,k,131072);let Xe=ce(2048,\"__type\");Z(Xe,k,2048),Xe.members=Vo(),Xe.members.set(ge.escapedName,ge)}function Dl(k){return vs(k,4096,\"__object\")}function _o(k){return vs(k,4096,\"__jsxAttributes\")}function Va(k,ge,Xe){return Ar(k,ge,Xe)}function vs(k,ge,Xe){let Mt=ce(ge,Xe);return ge&106508&&(Mt.parent=o.symbol),Z(Mt,k,ge),Mt}function Js(k,ge,Xe){switch(l.kind){case 267:_e(k,ge,Xe);break;case 312:if(sp(o)){_e(k,ge,Xe);break}default:x.assertNode(l,L_),l.locals||(l.locals=Vo(),jn(l)),Oe(l.locals,void 0,k,ge,Xe)}}function Fc(){if(!p)return;let k=o,ge=d,Xe=l,Mt=i,Vn=m;for(let jr of p){let Or=jr.parent.parent;o=S9(Or)||e,l=w_(Or)||e,m=EI({flags:2}),i=jr,xe(jr.typeExpression);let zi=mo(jr);if((C2(jr)||!jr.fullName)&&zi&&UL(zi.parent)){let _a=Nl(zi.parent);if(_a){Ks(e.symbol,zi.parent,_a,!!Rn(zi,pl=>Er(pl)&&pl.name.escapedText===\"prototype\"),!1);let ha=o;switch(TL(zi.parent)){case 1:case 2:sp(e)?o=e:o=void 0;break;case 4:o=zi.parent.expression;break;case 3:o=zi.parent.expression.name;break;case 5:o=_0(e,zi.parent.expression)?e:Er(zi.parent.expression)?zi.parent.expression.name:zi.parent.expression;break;case 0:return x.fail(\"Shouldn't have detected typedef or enum on non-assignment declaration\")}o&&_e(jr,524288,788968),o=ha}}else C2(jr)||!jr.fullName||jr.fullName.kind===80?(i=jr.parent,Js(jr,524288,788968)):xe(jr.fullName)}o=k,d=ge,l=Xe,i=Mt,m=Vn}function $i(k){if(!e.parseDiagnostics.length&&!(k.flags&33554432)&&!(k.flags&16777216)&&!rne(k)){let ge=vb(k);if(ge===void 0)return;F&&ge>=119&&ge<=127?e.bindDiagnostics.push(ee(k,Uo(k),is(k))):ge===135?wl(e)&&hW(k)?e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,is(k))):k.flags&65536&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k))):ge===127&&k.flags&16384&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k)))}}function Uo(k){return Oc(k)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function zc(k){k.escapedText===\"#constructor\"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ee(k,f.constructor_is_a_reserved_word,is(k))))}function ts(k){F&&Tu(k.left)&&tv(k.operatorToken.kind)&&Wl(k,k.left)}function ua(k){F&&k.variableDeclaration&&Wl(k,k.variableDeclaration.name)}function Us(k){if(F&&k.expression.kind===80){let ge=IS(e,k.expression);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function tf(k){return Me(k)&&(k.escapedText===\"eval\"||k.escapedText===\"arguments\")}function Wl(k,ge){if(ge&&ge.kind===80){let Xe=ge;if(tf(Xe)){let Mt=IS(e,ge);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,il(k),ar(Xe)))}}}function il(k){return Oc(k)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function zs(k){F&&Wl(k,k.name)}function ho(k){return Oc(k)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ut(k){if(r<2&&l.kind!==312&&l.kind!==267&&!U1(l)){let ge=IS(e,k);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,ho(k)))}}function ys(k){F&&Wl(k,k.operand)}function Pc(k){F&&(k.operator===46||k.operator===47)&&Wl(k,k.operand)}function Bc(k){F&&ls(k,f.with_statements_are_not_allowed_in_strict_mode)}function Ju(k){F&&Wa(t)>=2&&(ate(k.statement)||cl(k.statement))&&ls(k.label,f.A_label_is_not_allowed_here)}function ls(k,ge,...Xe){let Mt=W_(e,k.pos);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,ge,...Xe))}function tc(k,ge,Xe){ae(k,ge,ge,Xe)}function ae(k,ge,Xe,Mt){X(k,{pos:Tb(ge,e),end:Xe.end},Mt)}function X(k,ge,Xe){let Mt=Rc(e,ge.pos,ge.end-ge.pos,Xe);k?e.bindDiagnostics.push(Mt):e.bindSuggestionDiagnostics=pn(e.bindSuggestionDiagnostics,{...Mt,category:2})}function xe(k){if(!k)return;Aa(k,i),qn&&(k.tracingPath=e.path);let ge=F;if(tr(k),k.kind>165){let Xe=i;i=k;let Mt=kU(k);Mt===0?Le(k):Te(k,Mt),i=Xe}else{let Xe=i;k.kind===1&&(i=k),dt(k),i=Xe}F=ge}function dt(k){if(ap(k))if(Jn(k))for(let ge of k.jsDoc)xe(ge);else for(let ge of k.jsDoc)Aa(ge,k),oy(ge,!1)}function $t(k){if(!F)for(let ge of k){if(!Hf(ge))return;if(sr(ge)){F=!0;return}}}function sr(k){let ge=FE(e,k.expression);return ge==='\"use strict\"'||ge===\"'use strict'\"}function tr(k){switch(k.kind){case 80:if(k.flags&4096){let Or=k.parent;for(;Or&&!bf(Or);)Or=Or.parent;Js(Or,524288,788968);break}case 110:return m&&(lt(k)||i.kind===304)&&(k.flowNode=m),$i(k);case 166:m&&EW(k)&&(k.flowNode=m);break;case 236:case 108:k.flowNode=m;break;case 81:return zc(k);case 211:case 212:let ge=k;m&&Dt(ge)&&(ge.flowNode=m),Yte(ge)&&Ln(ge),Jn(ge)&&e.commonJsModuleIndicator&&Eh(ge)&&!r4(l,\"module\")&&Oe(e.locals,void 0,ge.expression,134217729,111550);break;case 226:switch(hl(k)){case 1:Du(k);break;case 2:pc(k);break;case 3:Oo(k.left,k);break;case 6:eo(k);break;case 4:Vd(k);break;case 5:let Or=k.left.expression;if(Jn(k)&&Me(Or)){let zi=r4(l,Or.escapedText);if(gW(zi?.valueDeclaration)){Vd(k);break}}Kl(k);break;case 0:break;default:x.fail(\"Unknown binary expression special property assignment kind\")}return ts(k);case 299:return ua(k);case 220:return Us(k);case 225:return ys(k);case 224:return Pc(k);case 254:return Bc(k);case 256:return Ju(k);case 197:h=!0;return;case 182:break;case 168:return Ye(k);case 169:return mg(k);case 260:return fd(k);case 208:return k.flowNode=m,fd(k);case 172:case 171:return Ir(k);case 303:case 304:return mu(k,4,0);case 306:return mu(k,8,900095);case 179:case 180:case 181:return Ar(k,131072,0);case 174:case 173:return mu(k,8192|(k.questionToken?16777216:0),qf(k)?0:103359);case 262:return Ku(k);case 176:return Ar(k,16384,0);case 177:return mu(k,32768,46015);case 178:return mu(k,65536,78783);case 184:case 324:case 330:case 185:return ms(k);case 187:case 329:case 200:return pi(k);case 339:return gt(k);case 210:return Dl(k);case 218:case 219:return Lh(k);case 213:switch(hl(k)){case 7:return Cl(k);case 8:return Ec(k);case 9:return Po(k);case 0:break;default:return x.fail(\"Unknown call expression assignment declaration kind\")}Jn(k)&&u_(k);break;case 231:case 263:return F=!0,X_(k);case 264:return Js(k,64,788872);case 265:return Js(k,524288,788968);case 266:return fg(k);case 267:return lo(k);case 292:return _o(k);case 291:return Va(k,4,0);case 271:case 274:case 276:case 281:return Ar(k,2097152,2097152);case 270:return bc(k);case 273:return Jl(k);case 278:return bs(k);case 277:return Qs(k);case 312:return $t(k.statements),hr();case 241:if(!U1(k.parent))return;case 268:return $t(k.statements);case 348:if(k.parent.kind===330)return mg(k);if(k.parent.kind!==329)break;case 355:let Vn=k,jr=Vn.isBracketed||Vn.typeExpression&&Vn.typeExpression.type.kind===323?16777220:4;return Ar(Vn,jr,0);case 353:case 345:case 347:return(p||(p=[])).push(k);case 346:return xe(k.typeExpression)}}function Ir(k){let ge=su(k),Xe=ge?98304:4,Mt=ge?13247:0;return mu(k,Xe|(k.questionToken?16777216:0),Mt)}function pi(k){return vs(k,2048,\"__type\")}function hr(){if(Mr(e),wl(e))No();else if(yf(e)){No();let k=e.symbol;Oe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=k}}function No(){vs(e,512,`\"${Yd(e.fileName)}\"`)}function Qs(k){if(!o.symbol||!o.symbol.exports)vs(k,111551,pe(k));else{let ge=px(k)?2097152:4,Xe=Oe(o.symbol.exports,o.symbol,k,ge,-1);k.isExportEquals&&IL(Xe,k)}}function bc(k){ct(k.modifiers)&&e.bindDiagnostics.push(ee(k,f.Modifiers_cannot_appear_here));let ge=Li(k.parent)?wl(k.parent)?k.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;ge?e.bindDiagnostics.push(ee(k,ge)):(e.symbol.globalExports=e.symbol.globalExports||Vo(),Oe(e.symbol.globalExports,e.symbol,k,2097152,2097152))}function bs(k){!o.symbol||!o.symbol.exports?vs(k,8388608,pe(k)):k.exportClause?j_(k.exportClause)&&(Aa(k.exportClause,k),Oe(o.symbol.exports,o.symbol,k.exportClause,2097152,2097152)):Oe(o.symbol.exports,o.symbol,k,8388608,0)}function Jl(k){k.name&&Ar(k,2097152,2097152)}function Za(k){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=k,e.externalModuleIndicator||No()),!0)}function Ec(k){if(!Za(k))return;let ge=nf(k.arguments[0],void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));ge&&Oe(ge.exports,ge,k,1048580,0)}function Du(k){if(!Za(k))return;let ge=nf(k.left.expression,void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));if(ge){let Mt=kL(k.right)&&(DS(k.left.expression)||Eh(k.left.expression))?2097152:1048580;Aa(k.left,k),Oe(ge.exports,ge,k.left,Mt,0)}}function pc(k){if(!Za(k))return;let ge=bL(k.right);if(fV(ge)||o===e&&_0(e,ge))return;if(ma(ge)&&ji(ge.properties,xu)){an(ge.properties,Nf);return}let Xe=px(k)?2097152:1049092,Mt=Oe(e.symbol.exports,e.symbol,k,Xe|67108864,0);IL(Mt,k)}function Nf(k){Oe(e.symbol.exports,e.symbol,k,69206016,0)}function Vd(k){if(x.assert(Jn(k)),Zn(k)&&Er(k.left)&&Ci(k.left.name)||Er(k)&&Ci(k.name))return;let Xe=lu(k,!1,!1);switch(Xe.kind){case 262:case 218:let Mt=Xe.symbol;if(Zn(Xe.parent)&&Xe.parent.operatorToken.kind===64){let Or=Xe.parent.left;UE(Or)&&ry(Or.expression)&&(Mt=tu(Or.expression.expression,s))}Mt&&Mt.valueDeclaration&&(Mt.members=Mt.members||Vo(),ty(k)?Se(k,Mt,Mt.members):Oe(Mt.members,Mt,k,67108868,0),Z(Mt,Mt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Vn=Xe.parent,jr=zo(Xe)?Vn.symbol.exports:Vn.symbol.members;ty(k)?Se(k,Vn.symbol,jr):Oe(jr,Vn.symbol,k,67108868,0,!0);break;case 312:if(ty(k))break;Xe.commonJsModuleIndicator?Oe(Xe.symbol.exports,Xe.symbol,k,1048580,0):Ar(k,1,111550);break;case 267:break;default:x.failBadSyntaxKind(Xe)}}function Se(k,ge,Xe){Oe(Xe,ge,k,4,0,!0,!0),At(k,ge)}function At(k,ge){ge&&(ge.assignmentDeclarationMembers||(ge.assignmentDeclarationMembers=new Map)).set(Fa(k),k)}function Ln(k){k.expression.kind===110?Vd(k):UE(k)&&k.parent.parent.kind===312&&(ry(k.expression)?Oo(k,k.parent):Bs(k))}function eo(k){Aa(k.left,k),Aa(k.right,k),Sc(k.left.expression,k.left,!1,!0)}function Po(k){let ge=tu(k.arguments[0].expression);ge&&ge.valueDeclaration&&Z(ge,ge.valueDeclaration,32),vl(k,ge,!0)}function Oo(k,ge){let Xe=k.expression,Mt=Xe.expression;Aa(Mt,Xe),Aa(Xe,k),Aa(k,ge),Sc(Mt,k,!0,!0)}function Cl(k){let ge=tu(k.arguments[0]),Xe=k.parent.parent.kind===312;ge=Ks(ge,k.arguments[0],Xe,!1,!1),vl(k,ge,!1)}function Kl(k){var ge;let Xe=tu(k.left.expression,l)||tu(k.left.expression,o);if(!Jn(k)&&!$te(Xe))return;let Mt=Tx(k.left);if(!(Me(Mt)&&((ge=r4(o,Mt.escapedText))==null?void 0:ge.flags)&2097152))if(Aa(k.left,k),Aa(k.right,k),Me(k.left.expression)&&o===e&&_0(e,k.left.expression))Du(k);else if(ty(k)){vs(k,67108868,\"__computed\");let Vn=Ks(Xe,k.left.expression,Nl(k.left),!1,!1);At(k,Vn)}else Bs(Fo(k.left,NS))}function Bs(k){x.assert(!Me(k)),Aa(k.expression,k),Sc(k.expression,k,!1,!1)}function Ks(k,ge,Xe,Mt,Vn){return k?.flags&2097152||(Xe&&!Mt&&(k=nf(ge,k,(zi,_a,ha)=>{if(_a)return Z(_a,zi,67110400),_a;{let pl=ha?ha.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Vo());return Oe(pl,ha,zi,67110400,110735)}})),Vn&&k&&k.valueDeclaration&&Z(k,k.valueDeclaration,32)),k}function vl(k,ge,Xe){if(!ge||!kp(ge))return;let Mt=Xe?ge.members||(ge.members=Vo()):ge.exports||(ge.exports=Vo()),Vn=0,jr=0;hs(LA(k))?(Vn=8192,jr=103359):Bo(k)&&CS(k)&&(ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"set\"})&&(Vn|=65540,jr|=78783),ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"get\"})&&(Vn|=32772,jr|=46015)),Vn===0&&(Vn=4,jr=0),Oe(Mt,ge,k,Vn|67108864,jr&-67108865)}function Nl(k){return Zn(k.parent)?fu(k.parent).parent.kind===312:k.parent.parent.kind===312}function Sc(k,ge,Xe,Mt){let Vn=tu(k,l)||tu(k,o),jr=Nl(ge);Vn=Ks(Vn,ge.expression,jr,Xe,Mt),vl(ge,Vn,Xe)}function kp(k){if(k.flags&1072)return!0;let ge=k.valueDeclaration;if(ge&&Bo(ge))return!!LA(ge);let Xe=ge?yi(ge)?ge.initializer:Zn(ge)?ge.right:Er(ge)&&Zn(ge.parent)?ge.parent.right:void 0:void 0;if(Xe=Xe&&bL(Xe),Xe){let Mt=ry(yi(ge)?ge.name:Zn(ge)?ge.left:ge);return!!Ib(Zn(Xe)&&(Xe.operatorToken.kind===57||Xe.operatorToken.kind===61)?Xe.right:Xe,Mt)}return!1}function fu(k){for(;Zn(k.parent);)k=k.parent;return k.parent}function tu(k,ge=o){if(Me(k))return r4(ge,k.escapedText);{let Xe=tu(k.expression);return Xe&&Xe.exports&&Xe.exports.get(tg(k))}}function nf(k,ge,Xe){if(_0(e,k))return e.symbol;if(Me(k))return Xe(k,tu(k),ge);{let Mt=nf(k.expression,ge,Xe),Vn=SL(k);return Ci(Vn)&&x.fail(\"unexpected PrivateIdentifier\"),Xe(Vn,Mt&&Mt.exports&&Mt.exports.get(tg(k)),Mt)}}function u_(k){!e.commonJsModuleIndicator&&Xd(k,!1)&&Za(k)}function X_(k){if(k.kind===263)Js(k,32,899503);else{let Vn=k.name?k.name.escapedText:\"__class\";vs(k,32,Vn),k.name&&de.add(k.name.escapedText)}let{symbol:ge}=k,Xe=ce(4194308,\"prototype\"),Mt=ge.exports.get(Xe.escapedName);Mt&&(k.name&&Aa(k.name,k),e.bindDiagnostics.push(ee(Mt.declarations[0],f.Duplicate_identifier_0,$s(Xe)))),ge.exports.set(Xe.escapedName,Xe),Xe.parent=ge}function fg(k){return BE(k)?Js(k,128,899967):Js(k,256,899327)}function fd(k){if(F&&Wl(k,k.name),!ko(k.name)){let ge=k.kind===260?k:k.parent.parent;Jn(k)&&jE(ge)&&!yb(k)&&!(gb(k)&32)?Ar(k,2097152,2097152):p9(k)?Js(k,2,111551):JE(k)?Ar(k,1,111551):Ar(k,1,111550)}}function mg(k){if(!(k.kind===348&&o.kind!==330)&&(F&&!(k.flags&33554432)&&Wl(k,k.name),ko(k.name)?vs(k,1,\"__\"+k.parent.parameters.indexOf(k)):Ar(k,1,111551),wu(k,k.parent))){let ge=k.parent.parent;Oe(ge.symbol.members,ge.symbol,k,4|(k.questionToken?16777216:0),0)}}function Ku(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),zs(k),F?(Ut(k),Js(k,16,110991)):Ar(k,16,110991)}function Lh(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&(k.flowNode=m),zs(k);let ge=k.name?k.name.escapedText:\"__function\";return vs(k,16,ge)}function mu(k,ge,Xe){return!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&pW(k)&&(k.flowNode=m),ty(k)?vs(k,ge,\"__computed\"):Ar(k,ge,Xe)}function Y(k){let ge=Rn(k,Xe=>Xe.parent&&lI(Xe.parent)&&Xe.parent.extendsType===Xe);return ge&&ge.parent}function Ye(k){if(Df(k.parent)){let ge=NW(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):Ar(k,262144,526824)}else if(k.parent.kind===195){let ge=Y(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):vs(k,262144,pe(k))}else Ar(k,262144,526824)}function xt(k){let ge=dg(k);return ge===1||ge===2&&n0(t)}function Nt(k){if(!(m.flags&1))return!1;if(m===fe&&(QM(k)&&k.kind!==242||k.kind===263||k.kind===267&&xt(k))&&(m=q,!t.allowUnreachableCode)){let Xe=Jne(t)&&!(k.flags&33554432)&&(!cl(k)||!!(Xg(k.declarationList)&7)||k.declarationList.declarations.some(Mt=>!!Mt.initializer));b3e(k,(Mt,Vn)=>ae(Xe,Mt,Vn,f.Unreachable_code_detected))}return!0}}function b3e(e,t){if(Di(e)&&oSe(e)&&Do(e.parent)){let{statements:r}=e.parent,i=NV(r,e);Z5(i,oSe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function oSe(e){return!Ql(e)&&!E3e(e)&&!kb(e)&&!(cl(e)&&!(Xg(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function E3e(e){switch(e.kind){case 264:case 265:return!0;case 267:return dg(e)!==1;case 266:return Wr(e,4096);default:return!1}}function _0(e,t){let r=0,i=mM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),DS(t)||Eh(t))return!0;if(Me(t)){let o=r4(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),lc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function kU(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(pW(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Lo(e.parent)||nl(e.parent)?0:34}return 0}function r4(e,t){var r,i,o,s;let l=(i=(r=Vr(e,L_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(qm(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var OU,wU,aSe,S3e=pt({\"src/compiler/binder.ts\"(){\"use strict\";wo(),mS(),OU=(e=>(e[e.NonInstantiated=0]=\"NonInstantiated\",e[e.Instantiated=1]=\"Instantiated\",e[e.ConstEnumOnly=2]=\"ConstEnumOnly\",e))(OU||{}),wU=(e=>(e[e.None=0]=\"None\",e[e.IsContainer=1]=\"IsContainer\",e[e.IsBlockScopedContainer=2]=\"IsBlockScopedContainer\",e[e.IsControlFlowContainer=4]=\"IsControlFlowContainer\",e[e.IsFunctionLike=8]=\"IsFunctionLike\",e[e.IsFunctionExpression=16]=\"IsFunctionExpression\",e[e.HasLocals=32]=\"HasLocals\",e[e.IsInterface=64]=\"IsInterface\",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]=\"IsObjectLiteralOrClassExpressionMethodOrAccessor\",e))(wU||{}),aSe=y3e()}});function hoe(e,t,r,i,o,s,l,d,p,h){return m;function m(v=()=>!0){let E=[],S=[];return{walkType:de=>{try{return A(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}},walkSymbol:de=>{try{return $(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}}};function A(de){if(!(!de||E[de.id]||(E[de.id]=de,$(de.symbol)))){if(de.flags&524288){let q=de,H=q.objectFlags;H&4&&C(de),H&32&&K(de),H&3&&oe(de),H&24&&W(q)}de.flags&262144&&R(de),de.flags&3145728&&L(de),de.flags&4194304&&G(de),de.flags&8388608&&U(de)}}function C(de){A(de.target),an(h(de),A)}function R(de){A(d(de))}function L(de){an(de.types,A)}function G(de){A(de.type)}function U(de){A(de.objectType),A(de.indexType),A(de.constraint)}function K(de){A(de.typeParameter),A(de.constraintType),A(de.templateType),A(de.modifiersType)}function F(de){let fe=t(de);fe&&A(fe.type),an(de.typeParameters,A);for(let q of de.parameters)$(q);A(e(de)),A(r(de))}function oe(de){W(de),an(de.typeParameters,A),an(i(de),A),A(de.thisType)}function W(de){let fe=o(de);for(let q of fe.indexInfos)A(q.keyType),A(q.type);for(let q of fe.callSignatures)F(q);for(let q of fe.constructSignatures)F(q);for(let q of fe.properties)$(q)}function $(de){if(!de)return!1;let fe=na(de);if(S[fe])return!1;if(S[fe]=de,!v(de))return!0;let q=s(de);return A(q),de.exports&&de.exports.forEach($),an(de.declarations,H=>{if(H.type&&H.type.kind===186){let ee=H.type,le=l(p(ee.exprName));$(le)}}),!1}}}var T3e=pt({\"src/compiler/symbolWalker.ts\"(){\"use strict\";wo()}});function sk({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Ic(o)?0:1:e===\"relative\"?0:e===\"non-relative\"?1:e===\"project-relative\"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return nR(r,i.fileName)?[3,2]:[2];if(zd(r)===1)return p===2?[2,1]:[1,2];let h=nR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:x.assertNever(p)}}};function l(d){if(o!==void 0){if(QE(o))return 2;if(Zs(o,\"/index\"))return 1}return nre(t,d??i.impliedNodeFormat,r,i)}}function A3e(e,t,r,i,o,s,l={}){let d=sSe(e,t,r,i,o,sk({},e,t,s),{},l);if(d!==s)return d}function i4(e,t,r,i,o,s={}){return sSe(e,t,r,i,o,sk({},e,t),{},s)}function I3e(e,t,r,i,o,s={}){let l=WU(t.fileName,i),d=mSe(l,r,i,o,s);return ml(d,p=>voe(p,l,t,i,e,o,!0,s.overrideImportMode))}function sSe(e,t,r,i,o,s,l,d={}){let p=WU(r,o),h=mSe(p,i,o,l,d);return ml(h,m=>voe(m,p,t,o,e,l,void 0,d.overrideImportMode))||uSe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function x3e(e,t,r,i,o={}){return lSe(e,t,r,i,o)[0]}function lSe(e,t,r,i,o={}){var s;let l=eW(e);if(!l)return je;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function cSe(e,t,r,i,o,s,l={}){return dSe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function dSe(e,t,r,i,o,s,l={},d){let p=!1,h=C3e(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,v,E,S]=lSe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!v)return{moduleSpecifiers:je,computedWithoutCache:p};p=!0,E||(E=_Se(WU(i.fileName,o),v.originalFileName,o));let A=R3e(E,r,i,o,s,l,d);return S?.set(i.path,v.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function R3e(e,t,r,i,o,s={},l){let d=WU(r.fileName,i),p=sk(o,t,r),h=an(e,C=>an(i.getFileIncludeReasons().get(ks(C.path,i.getCurrentDirectory(),d.getCanonicalFileName)),R=>{if(R.kind!==3||R.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Dae(r,R.index,t))return;let L=Ak(r,R.index).text;return p.relativePreference!==1||!op(L)?L:void 0}));if(h)return[h];let m=ct(e,C=>C.isInNodeModules),v,E,S,A;for(let C of e){let R=C.isInNodeModules?voe(C,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(v=pn(v,R),R&&C.isRedirect)return v;if(!R){let L=uSe(C.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,C.isRedirect);if(!L)continue;C.isRedirect?S=pn(S,L):RG(L)?Gb(L)?A=pn(A,L):E=pn(E,L):(l||!m||C.isInNodeModules)&&(A=pn(A,L))}}return E?.length?E:S?.length?S:v?.length?v:x.checkDefined(A)}function WU(e,t){e=Qi(e,t.getCurrentDirectory());let r=od(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Ur(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function uSe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:v,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),C=m&&M3e(m,e,v,S,A,r)||lk(ME(Gf(v,e,S)),A,r);if(!p&&!h&&!DF(r)||l===0)return d?void 0:C;let R=Qi(zW(r,i)||p,i.getCurrentDirectory()),L=ySe(e,R,S);if(!L)return d?void 0:C;let G=d?void 0:P3e(e,v,r,i,o),U=d||G===void 0?h&&hSe(L,h,A,i,r):void 0;if(d)return U;let K=G??(U===void 0&&p!==void 0?lk(L,A,r):U);if(!K)return C;if(l===1&&!op(K))return K;if(l===3&&!op(K)){let F=r.configFilePath?ks(Ur(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),oe=ks(e,F,S),W=Ui(E,F),$=Ui(oe,F);if(W&&!$||!W&&$)return K;let de=goe(i,Ur(oe)),fe=goe(i,v),q=!yx(i);return D3e(de,fe,q)?C:K}return bSe(K)||o4(C)<o4(K)?C:K}function D3e(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Xh(e,t,r)===0}function o4(e){let t=0;for(let r=Ui(e,\"./\")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function pSe(e,t){return zv(t.isRedirect,e.isRedirect)||$L(e.path,t.path)}function goe(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Vf(t,r=>e.fileExists(wr(r,\"package.json\"))?r:void 0)}function fSe(e,t,r,i,o){var s;let l=ev(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=ks(t,d,l),m=r.redirectTargetsMap.get(h)||je,E=[...p?[p]:je,t,...m].map(L=>Qi(L,d)),S=!ji(E,KC);if(!i){let L=an(E,G=>!(S&&KC(G))&&o(G,p===G));if(L)return L}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),C=Qi(t,d);return A&&Vf(Ur(C),L=>{let G=A.get(_c(ks(L,d,l)));if(G)return CG(e,L,l)?!1:an(E,U=>{if(!CG(U,L,l))return;let K=Gf(L,U,l);for(let F of G){let oe=jv(F,K),W=o(oe,U===p);if(S=!0,W)return W}})})||(i?an(E,L=>S&&KC(L)?void 0:o(L,L===p)):void 0)}function mSe(e,t,r,i,o={}){var s;let l=ks(e.importingSourceFileName,r.getCurrentDirectory(),ev(r)),d=ks(t,r.getCurrentDirectory(),ev(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=_Se(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function _Se(e,t,r){let i=new Map,o=!1;fSe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=Gb(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=_c(l),p;i.forEach(({path:m,isRedirect:v,isInNodeModules:E},S)=>{Ui(m,d)&&((p||(p=[])).push({path:S,isRedirect:v,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(pSe),s.push(...p));let h=Ur(l);if(h===l)break;l=h}if(i.size){let l=bo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(pSe),s.push(...l)}return s}function C3e(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>m9(l)&&(!zE(l)||!Ic(Ef(l.name))));if(i)return i.name.text;let s=Fi(e.declarations,l=>{var d,p,h,m;if(!Il(l))return;let v=C(l);if(!((d=v?.parent)!=null&&d.parent&&n_(v.parent)&&sd(v.parent.parent)&&Li(v.parent.parent.parent)))return;let E=(m=(h=(p=v.parent.parent.symbol.exports)==null?void 0:p.get(\"export=\"))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return v.parent.parent;function C(R){for(;R.flags&8;)R=R.parent;return R}})[0];if(s)return s.name.text}function hSe(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=Yo(d),h=p.indexOf(\"*\"),m=r.map(v=>({ending:v,value:lk(e,[v],o)}));if(og(p)&&m.push({ending:void 0,value:e}),h!==-1){let v=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=v.length+E.length&&Ui(A,v)&&Zs(A,E)&&s({ending:S,value:A})){let C=A.substring(v.length,A.length-E.length);if(!op(C))return KA(l,C)}}else if(ct(m,v=>v.ending!==0&&p===v.value)||ct(m,v=>v.ending===0&&p===v.value&&s(v)))return l}function s({ending:l,value:d}){return l!==0||d===lk(e,[l],o,i)}}function a4(e,t,r,i,o,s,l,d,p){if(typeof s==\"string\"){let h=!yx(t),m=()=>t.getCommonSourceDirectory(),v=p&&fH(r,e,h,m),E=p&&pH(r,e,h,m),S=Qi(wr(i,s),void 0),A=qA(r)?Yd(r)+boe(r,e):void 0;switch(d){case 0:if(A&&Xh(A,S,h)===0||Xh(r,S,h)===0||v&&Xh(v,S,h)===0||E&&Xh(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&Bf(S,A,h)){let G=Gf(S,A,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(Bf(S,r,h)){let G=Gf(S,r,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(v&&Bf(S,v,h)){let G=Gf(S,v,!1);return{moduleFileToTry:wr(o,G)}}if(E&&Bf(S,E,h)){let G=Gf(S,E,!1);return{moduleFileToTry:wr(o,G)}}break;case 2:let C=S.indexOf(\"*\"),R=S.slice(0,C),L=S.slice(C+1);if(A&&Ui(A,R,h)&&Zs(A,L,h)){let G=A.slice(R.length,A.length-L.length);return{moduleFileToTry:KA(o,G)}}if(Ui(r,R,h)&&Zs(r,L,h)){let G=r.slice(R.length,r.length-L.length);return{moduleFileToTry:KA(o,G)}}if(v&&Ui(v,R,h)&&Zs(v,L,h)){let G=v.slice(R.length,v.length-L.length);return{moduleFileToTry:KA(o,G)}}if(E&&Ui(E,R,h)&&Zs(E,L,h)){let G=E.slice(R.length,E.length-L.length);return{moduleFileToTry:KA(o,G)}}break}}else{if(Array.isArray(s))return an(s,h=>a4(e,t,r,i,o,h,l,d,p));if(typeof s==\"object\"&&s!==null){for(let h of fh(s))if(h===\"default\"||l.indexOf(h)>=0||ok(l,h)){let m=s[h],v=a4(e,t,r,i,o,m,l,d,p);if(v)return v}}}}function N3e(e,t,r,i,o,s,l){return typeof s==\"object\"&&s!==null&&!Array.isArray(s)&&t4(s)?an(fh(s),d=>{let p=Qi(wr(o,d),void 0),h=Zs(d,\"/\")?1:d.includes(\"*\")?2:0;return a4(e,t,r,i,p,s[d],l,h,!1)}):a4(e,t,r,i,o,s,l,0,!1)}function P3e(e,t,r,i,o){var s,l,d;if(!i.readFile||!DF(r))return;let p=goe(i,t);if(!p)return;let h=wr(p,\"package.json\"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(noe(m)||!i.fileExists(h))return;let v=m?.contents.packageJsonContent||KW(i.readFile(h)),E=v?.imports;if(!E)return;let S=hy(r,o);return(d=an(fh(E),A=>{if(!Ui(A,\"#\")||A===\"#\"||Ui(A,\"#/\"))return;let C=Zs(A,\"/\")?1:A.includes(\"*\")?2:0;return a4(r,i,e,p,A,E[A],S,C,!0)}))==null?void 0:d.moduleFileToTry}function M3e(e,t,r,i,o,s){let l=gSe(t,e,i);if(l===void 0)return;let d=gSe(r,e,i),p=ta(d,m=>nn(l,v=>ME(Gf(m,v,i)))),h=cB(p,$L);if(h)return lk(h,o,s)}function voe({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=yF(e);if(!m)return;let E=sk(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let K=m.packageRootIndex,F;for(;;){let{moduleFileToTry:oe,packageRootPath:W,blockedByExports:$,verbatimFromExports:de}=U(K);if(zd(l)!==1){if($)return;if(de)return oe}if(W){S=W,A=!0;break}if(F||(F=oe),K=e.indexOf(Os,K+1),K===-1){S=lk(F,E,l,s);break}}}if(t&&!A)return;let C=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),R=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(Ui(i,R)||C&&Ui(r(C),R)))return;let L=S.substring(m.topLevelPackageNameIndex+1),G=CN(L);return zd(l)===1&&G===L?void 0:G;function U(K){var F,oe;let W=e.substring(0,K),$=wr(W,\"package.json\"),de=e,fe=!1,q=(oe=(F=s.getPackageJsonInfoCache)==null?void 0:F.call(s))==null?void 0:oe.getPackageJsonInfo($);if($6(q)||q===void 0&&s.fileExists($)){let H=q?.contents.packageJsonContent||KW(s.readFile($)),ee=h||o.impliedNodeFormat;if(RF(l)){let ce=W.substring(m.topLevelPackageNameIndex+1),Z=CN(ce),pe=hy(l,ee),Ae=H?.exports?N3e(l,s,e,W,Z,H.exports,pe):void 0;if(Ae)return{...Ae,verbatimFromExports:!0};if(H?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let le=H?.typesVersions?X6(H.typesVersions):void 0;if(le){let ce=e.slice(W.length+1),Z=hSe(ce,le.paths,E,s,l);Z===void 0?fe=!0:de=wr(W,Z)}let Ee=H?.typings||H?.types||H?.main||\"index.js\";if(fo(Ee)&&!(fe&&CV(fF(le.paths),Ee))){let ce=ks(Ee,W,r),Z=r(de);if(Yd(ce)===Yd(Z))return{packageRootPath:W,moduleFileToTry:de};if(H?.type!==\"module\"&&!$l(Z,c2)&&Ui(Z,ce)&&Ur(Z)===fb(ce)&&Yd(Ll(Z))===\"index\")return{packageRootPath:W,moduleFileToTry:de}}}else{let H=r(de.substring(m.packageRootIndex+1));if(H===\"index.d.ts\"||H===\"index.js\"||H===\"index.ts\"||H===\"index.tsx\")return{moduleFileToTry:de,packageRootPath:W}}return{moduleFileToTry:de}}}function L3e(e,t){if(!e.fileExists)return;let r=Ff(GC({allowJs:!0},[{extension:\"node\",isMixedContent:!1},{extension:\"json\",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function gSe(e,t,r){return Fi(t,i=>{let o=ySe(e,i,r);return o!==void 0&&bSe(o)?void 0:o})}function lk(e,t,r,i){if($l(e,[\".json\",\".mjs\",\".cjs\"]))return e;let o=Yd(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if($l(e,[\".mts\",\".cts\"])&&l!==-1&&l<s)return e;if($l(e,[\".d.mts\",\".mts\",\".d.cts\",\".cts\"]))return o+yoe(e,r);if(!$l(e,[\".d.ts\"])&&$l(e,[\".ts\"])&&e.includes(\".d.\"))return vSe(e);switch(t[0]){case 0:let d=C1(o,\"/index\");return i&&d!==o&&L3e(i,d)?o:d;case 1:return o;case 2:return o+yoe(e,r);case 3:if(Yc(e)){let p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+yoe(e,r)}return e;default:return x.assertNever(t[0])}}function vSe(e){let t=Ll(e);if(!Zs(e,\".ts\")||!t.includes(\".d.\")||$l(t,[\".d.ts\"]))return;let r=QL(e,\".ts\"),i=r.substring(r.lastIndexOf(\".\"));return r.substring(0,r.indexOf(\".d.\"))+i}function yoe(e,t){return boe(e,t)??x.fail(`Extension ${jC(e)} is unsupported:: FileName:: ${e}`)}function boe(e,t){let r=og(e);switch(r){case\".ts\":case\".d.ts\":return\".js\";case\".tsx\":return t.jsx===1?\".jsx\":\".js\";case\".js\":case\".jsx\":case\".json\":return r;case\".d.mts\":case\".mts\":case\".mjs\":return\".mjs\";case\".d.cts\":case\".cts\":case\".cjs\":return\".cjs\";default:return}}function ySe(e,t,r){let i=AA(t,e,t,r,!1);return Ou(i)?void 0:i}function bSe(e){return Ui(e,\"..\")}var Eoe,Soe=pt({\"src/compiler/moduleSpecifiers.ts\"(){\"use strict\";wo(),Eoe=(e=>(e[e.Relative=0]=\"Relative\",e[e.NonRelative=1]=\"NonRelative\",e[e.Shortest=2]=\"Shortest\",e[e.ExternalNonRelative=3]=\"ExternalNonRelative\",e))(Eoe||{})}}),h0={};la(h0,{RelativePreference:()=>Eoe,countPathComponents:()=>o4,forEachFileNameOfModule:()=>fSe,getModuleSpecifier:()=>i4,getModuleSpecifierPreferences:()=>sk,getModuleSpecifiers:()=>cSe,getModuleSpecifiersWithCacheInfo:()=>dSe,getNodeModulesPackageName:()=>I3e,tryGetJSExtensionForFile:()=>boe,tryGetModuleSpecifiersFromCache:()=>x3e,tryGetRealFileNameForNonJsDeclarationFileName:()=>vSe,updateModuleSpecifier:()=>A3e});var Toe=pt({\"src/compiler/_namespaces/ts.moduleSpecifiers.ts\"(){\"use strict\";Soe()}});function k3e(){this.flags=0}function Fa(e){return e.id||(e.id=xoe,xoe++),e.id}function na(e){return e.id||(e.id=Ioe,Ioe++),e.id}function FU(e,t){let r=dg(e);return r===1||t&&r===2}function Aoe(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=wc.getSymbolConstructor(),p=wc.getTypeConstructor(),h=wc.getSignatureConstructor(),m=0,v=0,E=0,S=0,A=0,C=0,R,L,G=!1,U=Vo(),K=[1],F=e.getCompilerOptions(),oe=Wa(F),W=ld(F),$=!!F.experimentalDecorators,de=nN(F),fe=Xne(F),q=zS(F),H=Fd(F,\"strictNullChecks\"),ee=Fd(F,\"strictFunctionTypes\"),le=Fd(F,\"strictBindCallApply\"),Ee=Fd(F,\"strictPropertyInitialization\"),ce=Fd(F,\"noImplicitAny\"),Z=Fd(F,\"noImplicitThis\"),pe=Fd(F,\"useUnknownInCatchVariables\"),Ae=!!F.keyofStringsOnly,Oe=Ae?1:0,_e=F.suppressExcessPropertyErrors?0:8192,be=F.exactOptionalPropertyTypes,Te=plt(),De=Hut(),ft=h_(),he=Vo(),Le=Ra(4,\"undefined\");Le.declarations=[];var Ke=Ra(1536,\"globalThis\",8);Ke.exports=he,Ke.declarations=[],he.set(Ke.escapedName,Ke);var Dt=Ra(4,\"arguments\"),st=Ra(4,\"require\"),Ge=F.verbatimModuleSyntax?\"verbatimModuleSyntax\":\"isolatedModules\",ot=!F.verbatimModuleSyntax||!!F.importsNotUsedAsValues,Vt,jt,gn=0,On,en=0;let zt={getNodeCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,v),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:hu.size,identity:Cu.size,subtype:Y_.size,strictSubtype:rf.size}),isUndefinedSymbol:n=>n===Le,isArgumentsSymbol:n=>n===Dt,isUnknownSymbol:n=>n===tt,getMergedSymbol:Oa,getDiagnostics:V8e,getGlobalDiagnostics:sut,getRecursionIdentity:dQ,getUnmatchedProperties:ehe,getTypeOfSymbolAtLocation:(n,a)=>{let c=uo(a);return c?eot(n,c):it},getTypeOfSymbol:Yn,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=uo(n,ao);return c===void 0?x.fail(\"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.\"):(x.assert(wu(c,c.parent)),TP(c,Hs(a)))},getDeclaredTypeOfSymbol:Cs,getPropertiesOfType:Xa,getPropertyOfType:(n,a)=>Qo(n,Hs(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=uo(c);if(!u)return;let _=Hs(a),g=GQ(_,u);return g?zhe(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Fe(n,Hs(a)),getIndexInfoOfType:(n,a)=>Uh(n,a===0?Ie:gt),getIndexInfosOfType:Ud,getIndexInfosOfIndexSymbol:Kme,getSignaturesOfType:Co,getIndexTypeOfType:(n,a)=>yE(n,a===0?Ie:gt),getIndexType:n=>y_(n),getBaseTypes:ep,getBaseTypeOfLiteralType:wg,getWidenedType:gp,getTypeFromTypeNode:n=>{let a=uo(n,xi);return a?si(a):it},getParameterType:zm,getParameterIdentifierInfoAtPosition:Nst,getPromisedTypeOfPromise:kw,getAwaitedType:n=>pA(n),getReturnTypeOfSignature:Ha,isNullableType:h5,getNullableType:e5,getNonNullableType:Wg,getNonOptionalType:mQ,getTypeArguments:Ts,typeToTypeNode:ft.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ft.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ft.signatureToSignatureDeclaration,symbolToEntityName:ft.symbolToEntityName,symbolToExpression:ft.symbolToExpression,symbolToNode:ft.symbolToNode,symbolToTypeParameterDeclarations:ft.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ft.symbolToParameterDeclaration,typeParameterToDeclaration:ft.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=uo(n);return c?lut(c,a):[]},getSymbolAtLocation:n=>{let a=uo(n);return a?um(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=uo(n);return a?hut(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=uo(n);return a?gut(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=uo(n,Ed);return a?vut(a):void 0},getExportSymbolOfSymbol(n){return Oa(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=uo(n);return a?S1(a):it},getTypeOfAssignmentPattern:n=>{let a=uo(n,lC);return a&&gZ(a)||it},getPropertySymbolOfDestructuringAssignment:n=>{let a=uo(n,Me);return a?yut(a):void 0},signatureToString:(n,a,c,u)=>th(n,uo(a),c,u),typeToString:(n,a,c)=>Pn(n,uo(a),c),symbolToString:(n,a,c,u)=>ai(n,uo(a),c,u),typePredicateToString:(n,a,c)=>nh(n,uo(a),c),writeSignature:(n,a,c,u,_)=>th(n,uo(a),c,u,_),writeType:(n,a,c,u)=>Pn(n,uo(a),c,u),writeSymbol:(n,a,c,u,_)=>ai(n,uo(a),c,u,_),writeTypePredicate:(n,a,c,u)=>nh(n,uo(a),c,u),getAugmentedPropertiesOfType:Bge,getRootSymbols:Y8e,getSymbolOfExpando:YQ,getContextualType:(n,a)=>{let c=uo(n,lt);if(c)return a&4?Ki(c,()=>bu(c,a)):bu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=uo(n,Zh);return a?Ihe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=uo(n,WE);return c&&Ahe(c,a)},getContextualTypeForJsxAttribute:n=>{let a=uo(n,H8);return a&&dOe(a,void 0)},isContextSensitive:uf,getTypeOfPropertyOfContextualType:DE,getFullyQualifiedName:mp,getResolvedSignature:(n,a,c)=>gi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Wt,getResolvedSignatureForSignatureHelp:(n,a,c)=>ei(n,()=>gi(n,a,c,16)),getExpandedParameters:uLe,hasEffectiveRestParameter:dh,containsArgumentsReference:Hme,getConstantValue:n=>{let a=uo(n,tWe);return a?Gge(a):void 0},isValidPropertyAccess:(n,a)=>{let c=uo(n,$ee);return!!c&&zat(c,Hs(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=uo(n,Er);return!!u&&BOe(u,a,c)},getSignatureFromDeclaration:n=>{let a=uo(n,Lo);return a?kf(a):void 0},isImplementationOfOverload:n=>{let a=uo(n,Lo);return a?Z8e(a):void 0},getImmediateAliasedSymbol:Nhe,getAliasedSymbol:fc,getEmitResolver:Ev,getExportsOfModule:wT,getExportsAndPropertiesOfModule:eD,forEachExportAndPropertyOfModule:tD,getSymbolWalker:hoe(Stt,df,Ha,ep,Om,Yn,cm,iu,dp,Ts),getAmbientModules:kpt,getJsxIntrinsicTagNamesAt:vat,isOptionalParameter:n=>{let a=uo(n,ao);return a?ow(a):!1},tryGetMemberInModuleExports:(n,a)=>WT(Hs(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>nD(Hs(n),a),tryFindAmbientModule:n=>w$(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>w$(n,!1),getApparentType:ou,getUnionType:Br,isTypeAssignableTo:ea,createAnonymousType:cs,createSignature:jh,createSymbol:Ra,createIndexInfo:sh,getAnyType:()=>z,getStringType:()=>Ie,getStringLiteralType:yu,getNumberType:()=>gt,getNumberLiteralType:Wm,getBigIntType:()=>bt,createPromiseType:R5,createArrayType:_d,getElementTypeOfArrayType:Z7,getBooleanType:()=>ti,getFalseType:n=>n?Ot:dn,getTrueType:n=>n?An:Cn,getVoidType:()=>jn,getUndefinedType:()=>Re,getNullType:()=>se,getESSymbolType:()=>di,getNeverType:()=>Ar,getOptionalType:()=>j,getPromiseType:()=>W7(!1),getPromiseLikeType:()=>QLe(!1),getAsyncIterableType:()=>{let n=q$(!1);if(n!==ho)return n},isSymbolAccessible:vi,isArrayType:ff,isTupleType:ga,isArrayLikeType:Lv,isEmptyAnonymousObjectType:ch,isTypeInvalidDueToUnionDiscriminant:rtt,getExactOptionalProperties:Nrt,getAllPossiblePropertiesOfTypes:itt,getSuggestedSymbolForNonexistentProperty:Vhe,getSuggestionForNonexistentProperty:jhe,getSuggestedSymbolForNonexistentJSXAttribute:FOe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Uhe(n,Hs(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Oat(n,Hs(a),c),getSuggestedSymbolForNonexistentModule:jQ,getSuggestionForNonexistentExport:wat,getSuggestedSymbolForNonexistentClassMember:WOe,getBaseConstraintOfType:md,getDefaultFromTypeParameter:n=>n&&n.flags&262144?KT(n):void 0,resolveName(n,a,c,u){return Xs(a,Hs(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Ii(tE(n)),getJsxFragmentFactory:n=>{let a=jge(n);return a&&Ii(dp(a).escapedText)},getAccessibleSymbolChain:Wy,getTypePredicateOfSignature:df,resolveExternalModuleName:n=>{let a=uo(n,lt);return a&&jd(a,a,!0)},resolveExternalModuleSymbol:$u,tryGetThisTypeAt:(n,a,c)=>{let u=uo(n);return u&&bhe(u,a,c)},getTypeArgumentConstraint:n=>{let a=uo(n,xi);return a&&Ult(a)},getSuggestionDiagnostics:(n,a)=>{let c=uo(n,Li)||x.fail(\"Could not determine parsed source file.\");if(UC(c,F,e))return je;let u;try{return i=a,Fge(c),x.assert(!!(Fr(c).flags&1)),u=Pr(u,yT.getDiagnostics(c.fileName)),i8e(G8e(c),(_,g,T)=>{!X1(_)&&!B8e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||je}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(zt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:gr,isDeclarationVisible:Pm,isPropertyAccessible:qhe,getTypeOnlyAliasDeclaration:of,getMemberOverrideModifierStatus:Sdt,isTypeParameterPossiblyReferenced:U7,typeHasCallOrConstructSignatures:vZ};function Wt(n,a){let c=new Set,u=[];Ki(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,ei(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);return bo(c)}function ei(n,a){if(n=Rn(n,ZG),n){let c=[],u=[];for(;n;){let g=Fr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,e0(n)){let T=Pi(dr(n)),N=T.type;u.push([T,N]),T.type=void 0}n=Rn(n.parent,ZG)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function Ki(n,a){let c=Rn(n,WE);if(c){let _=n;do Fr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}G=!0;let u=ei(n,a);if(G=!1,c){let _=n;do Fr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function gi(n,a,c,u){let _=uo(n,WE);Vt=c;let g=_?xD(_,a,u):void 0;return Vt=void 0,g}var io=new Map,Gn=new Map,Nr=new Map,cr=new Map,Jt=new Map,Ue=new Map,Rt=new Map,mn=new Map,qr=new Map,ni=new Map,ki=new Map,so=new Map,Jo=new Map,Ea=new Map,ln=new Map,Tn=[],ke=new Map,nt=new Set,tt=Ra(4,\"unknown\"),yt=Ra(0,\"__resolving__\"),re=new Map,Ce=new Map,et=new Set,z=Fl(1,\"any\"),Je=Fl(1,\"any\",262144,\"auto\"),_t=Fl(1,\"any\",void 0,\"wildcard\"),ze=Fl(1,\"any\",void 0,\"blocked string\"),it=Fl(1,\"error\"),Ct=Fl(1,\"unresolved\"),on=Fl(1,\"any\",65536,\"non-inferrable\"),Qt=Fl(1,\"intrinsic\"),Zt=Fl(2,\"unknown\"),V=Fl(2,\"unknown\",void 0,\"non-null\"),Re=Fl(32768,\"undefined\"),St=H?Re:Fl(32768,\"undefined\",65536,\"widening\"),M=Fl(32768,\"undefined\",void 0,\"missing\"),te=be?M:Re,j=Fl(32768,\"undefined\",void 0,\"optional\"),se=Fl(65536,\"null\"),Pe=H?se:Fl(65536,\"null\",65536,\"widening\"),Ie=Fl(4,\"string\"),gt=Fl(8,\"number\"),bt=Fl(64,\"bigint\"),Ot=Fl(512,\"false\",void 0,\"fresh\"),dn=Fl(512,\"false\"),An=Fl(512,\"true\",void 0,\"fresh\"),Cn=Fl(512,\"true\");An.regularType=Cn,An.freshType=An,Cn.regularType=Cn,Cn.freshType=An,Ot.regularType=dn,Ot.freshType=Ot,dn.regularType=dn,dn.freshType=Ot;var ti=Br([dn,Cn]),di=Fl(4096,\"symbol\"),jn=Fl(16384,\"void\"),Ar=Fl(131072,\"never\"),Zi=Fl(131072,\"never\",262144,\"silent\"),_i=Fl(131072,\"never\",void 0,\"implicit\"),ui=Fl(131072,\"never\",void 0,\"unreachable\"),Mr=Fl(67108864,\"object\"),lo=Br([Ie,gt]),_n=Br([Ie,gt,di]),ms=Ae?Ie:_n,Dl=Br([gt,bt]),_o=Br([Ie,gt,ti,bt,se,Re]),Va=YT([\"\",\"\"],[gt]),vs=j7(n=>n.flags&262144?rrt(n):n,()=>\"(restrictive mapper)\"),Js=j7(n=>n.flags&262144?_t:n,()=>\"(permissive mapper)\"),Fc=Fl(131072,\"never\",void 0,\"unique literal\"),$i=j7(n=>n.flags&262144?Fc:n,()=>\"(unique literal mapper)\"),Uo,zc=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!0),n),()=>\"(unmeasurable reporter)\"),ts=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!1),n),()=>\"(unreliable reporter)\"),ua=cs(void 0,U,je,je,je),Us=cs(void 0,U,je,je,je);Us.objectFlags|=2048;var tf=Ra(2048,\"__type\");tf.members=Vo();var Wl=cs(tf,U,je,je,je),il=cs(void 0,U,je,je,je),zs=H?Br([Re,se,il]):Zt,ho=cs(void 0,U,je,je,je);ho.instantiations=new Map;var Ut=cs(void 0,U,je,je,je);Ut.objectFlags|=262144;var ys=cs(void 0,U,je,je,je),Pc=cs(void 0,U,je,je,je),Bc=cs(void 0,U,je,je,je),Ju=Bp(),ls=Bp();ls.constraint=Ju;var tc=Bp(),ae=Bp(),X=Bp();X.constraint=ae;var xe=O7(1,\"<<unresolved>>\",0,z),dt=jh(void 0,void 0,void 0,je,z,void 0,0,0),$t=jh(void 0,void 0,void 0,je,it,void 0,0,0),sr=jh(void 0,void 0,void 0,je,z,void 0,0,0),tr=jh(void 0,void 0,void 0,je,Zi,void 0,0,0),Ir=sh(gt,Ie,!0),pi=new Map,hr={get yieldType(){return x.fail(\"Not supported\")},get returnType(){return x.fail(\"Not supported\")},get nextType(){return x.fail(\"Not supported\")}},No=wv(z,z,z),Qs=wv(z,z,Zt),bc=wv(Ar,z,Re),bs={iterableCacheKey:\"iterationTypesOfAsyncIterable\",iteratorCacheKey:\"iterationTypesOfAsyncIterator\",iteratorSymbolName:\"asyncIterator\",getGlobalIteratorType:Wtt,getGlobalIterableType:q$,getGlobalIterableIteratorType:Ftt,getGlobalGeneratorType:ztt,resolveIterationType:(n,a)=>pA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Jl={iterableCacheKey:\"iterationTypesOfIterable\",iteratorCacheKey:\"iterationTypesOfIterator\",iteratorSymbolName:\"iterator\",getGlobalIteratorType:Btt,getGlobalIterableType:a_e,getGlobalIterableIteratorType:Gtt,getGlobalGeneratorType:Vtt,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Za,Ec=new Map,Du=[],pc,Nf,Vd,Se,At,Ln,eo,Po,Oo,Cl,Kl,Bs,Ks,vl,Nl,Sc,kp,fu,tu,nf,u_,X_,fg,fd,mg,Ku,Lh,mu,Y,Ye,xt,Nt,k,ge,Xe,Mt,Vn,jr,Or,zi,_a,ha,pl,Gc,nc,Xu,_u,Ay,ja,em,tm,Ri,_g,yv,nm,D0,C0,Op=new Map,p_=0,wp=0,hg=0,Ne=!1,Ve=0,Tt,Pt,rn,wn=[],tn=[],Wn=[],Qr=0,Kn=[],Gr=[],Qn=0,Mo=yu(\"\"),xa=Wm(0),xd=$$({negative:!1,base10Value:\"0\"}),Vc=[],gg=[],$b=[],UI=0,Qb=!1,GR=0,VR=10,jR=[],gT=[],N0=[],HI=[],UR=[],qI=[],JI=[],KI=[],XI=[],vT=[],YI=[],P0=[],M0=[],Iy=[],xy=[],kh=[],Zb=[],La=hx(),yT=hx(),HR=eh(),eE,vg,Y_=new Map,rf=new Map,hu=new Map,Yu=new Map,Cu=new Map,bv=new Map,bT=Vo();bT.set(Le.escapedName,Le);var qR=[[\".mts\",\".mjs\"],[\".ts\",\".js\"],[\".cts\",\".cjs\"],[\".mjs\",\".mjs\"],[\".js\",\".js\"],[\".cjs\",\".cjs\"],[\".tsx\",F.jsx===1?\".jsx\":\".js\"],[\".jsx\",\".jsx\"],[\".json\",\".json\"]];return qut(),zt;function $I(n){return n?ln.get(n):void 0}function Ry(n,a){return n&&ln.set(n,a),a}function tE(n){if(n){let a=Nn(n);if(a)if(fI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get(\"jsxfrag\");if(c){let _=oo(c)?c[0]:c;if(a.localJsxFragmentFactory=gI(_.arguments.factory,oe),He(a.localJsxFragmentFactory,Xl,Su),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=dp(a.localJsxFragmentFactory).escapedText}let u=jge(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=dp(u).escapedText}else{let c=QI(a);if(c)return a.localJsxNamespace=c}}return eE||(eE=\"React\",F.jsxFactory?(vg=gI(F.jsxFactory,oe),He(vg,Xl),vg&&(eE=dp(vg).escapedText)):F.reactNamespace&&(eE=Hs(F.reactNamespace))),vg||(vg=P.createQualifiedName(P.createIdentifier(Ii(eE)),\"createElement\")),eE}function QI(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get(\"jsx\");if(a){let c=oo(a)?a[0]:a;if(n.localJsxFactory=gI(c.arguments.factory,oe),He(n.localJsxFactory,Xl,Su),n.localJsxFactory)return n.localJsxNamespace=dp(n.localJsxFactory).escapedText}}function Xl(n){return F_(n,-1,-1),un(n,Xl,void 0)}function Ev(n,a){return V8e(n,a),De}function ZI(n,a,...c){let u=n?vr(n,a,...c):bl(a,...c),_=La.lookup(u);return _||(La.add(u),u)}function xm(n,a,c,...u){let _=we(a,c,...u);return _.skippedOn=n,_}function ET(n,a,...c){return n?vr(n,a,...c):bl(a,...c)}function we(n,a,...c){let u=ET(n,a,...c);return La.add(u),u}function Rm(n,a){n?La.add(a):yT.add({...a,category:2})}function jc(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Nn(a);Rm(n,\"message\"in c?Rc(_,0,0,c,...u):T9(_,c));return}Rm(n,\"message\"in c?vr(a,c,...u):eg(Nn(a),a,c))}function nE(n,a,c,...u){let _=we(n,c,...u);if(a){let g=vr(n,f.Did_you_forget_to_use_await);fa(_,g)}return _}function e1(n,a){let c=Array.isArray(n)?an(n,zG):zG(n);return c&&fa(a,vr(c,f.The_declaration_was_marked_as_deprecated_here)),yT.add(a),a}function Dy(n){let a=nu(n);return a&&yn(n.declarations)>1?a.flags&64?ct(n.declarations,Sv):ji(n.declarations,Sv):!!n.valueDeclaration&&Sv(n.valueDeclaration)||yn(n.declarations)&&ji(n.declarations,Sv)}function Sv(n){return!!(lS(n)&536870912)}function Tv(n,a,c){let u=vr(n,f._0_is_deprecated,c);return e1(a,u)}function SP(n,a,c,u){let _=c?vr(n,f.The_signature_0_of_1_is_deprecated,u,c):vr(n,f._0_is_deprecated,u);return e1(a,_)}function Ra(n,a,c){v++;let u=new d(n|33554432,a);return u.links=new Coe,u.links.checkFlags=c||0,u}function Dm(n,a){let c=Ra(1,n);return c.links.type=a,c}function ST(n,a){let c=Ra(4,n);return c.links.type=a,c}function TT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function rE(n,a){a.mergeId||(a.mergeId=Roe,Roe++),jR[a.mergeId]=n}function AT(n){let a=Ra(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),rE(a,n),a}function Pf(n,a,c=!1){if(!(n.flags&TT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=yl(n);if(_===tt)return a;n=AT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&IL(n,a.valueDeclaration),Pr(n.declarations,a.declarations),a.members&&(n.members||(n.members=Vo()),Cm(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=Vo()),Cm(n.exports,a.exports,c)),c||rE(n,a)}else if(n.flags&1024)n!==Ke&&we(a.declarations&&mo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ai(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,N=a.declarations&&Nn(a.declarations[0]),O=n.declarations&&Nn(n.declarations[0]),B=nL(N,F.checkJs),Q=nL(O,F.checkJs),me=ai(a);if(N&&O&&Za&&!_&&N!==O){let ue=Xh(N.path,O.path)===-1?N:O,We=ue===N?O:N,at=FD(Za,`${ue.path}|${We.path}`,()=>({firstFile:ue,secondFile:We,conflictingSymbols:new Map})),ht=FD(at.conflictingSymbols,me,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));B||u(ht.firstFileLocations,a),Q||u(ht.secondFileLocations,n)}else B||Mf(a,T,me,n),Q||Mf(n,T,me,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)jp(_,T)}}function Mf(n,a,c,u){an(n.declarations,_=>{yg(_,a,c,u.declarations)})}function yg(n,a,c,u){let _=(Ib(n,!1)?L9(n):mo(n))||n,g=ZI(_,a,c);for(let T of u||je){let N=(Ib(T,!1)?L9(T):mo(T))||T;if(N===_)continue;g.relatedInformation=g.relatedInformation||[];let O=vr(N,f._0_was_also_declared_here,c),B=vr(N,f.and_here);yn(g.relatedInformation)>=5||ct(g.relatedInformation,Q=>zC(Q,B)===0||zC(Q,O)===0)||fa(g,yn(g.relatedInformation)?B:O)}}function t1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=Vo();return Cm(c,n),Cm(c,a),c}function Cm(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?Pf(g,u,c):Oa(u))})}function JR(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){x.assert(_.symbol.declarations.length>1);return}if(Jm(_))Cm(he,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=Tg(n,n,g,!0);if(!T)return;if(T=$u(T),T.flags&1920)if(ct(Nf,N=>T===N.symbol)){let N=Pf(_.symbol,T,!0);Vd||(Vd=new Map),Vd.set(n.text,N)}else{if((c=T.exports)!=null&&c.get(\"__export\")&&((u=_.symbol.exports)!=null&&u.size)){let N=Dme(T,\"resolvedExports\");for(let[O,B]of bo(_.symbol.exports.entries()))N.has(O)&&!T.exports.has(O)&&Pf(N.get(O),B)}Pf(T,_.symbol)}else we(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function L0(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?an(T.declarations,u(Ii(g),c)):n.set(g,_)});function u(_,g){return T=>La.add(vr(T,g,_))}}function Pi(n){if(n.flags&33554432)return n.links;let a=na(n);return gT[a]??(gT[a]=new Coe)}function Fr(n){let a=Fa(n);return N0[a]||(N0[a]=new k3e)}function $_(n){return n.kind===312&&!sp(n)}function gu(n,a,c){if(c){let u=Oa(n.get(a));if(u&&(x.assert((tl(u)&1)===0,\"Should never get an instantiated symbol here.\"),u.flags&c||u.flags&2097152&&Qc(u)&c))return u}}function TP(n,a){let c=n.parent,u=n.parent.parent,_=gu(c.locals,a,111551),g=gu(Ky(u.symbol),a,111551);return _&&g?[_,g]:x.fail(\"There should exist two symbols, one as property declaration and one as parameter declaration\")}function bg(n,a){let c=Nn(n),u=Nn(a),_=w_(n);if(c!==u){if(W&&(c.externalModuleIndicator||u.externalModuleIndicator)||!ss(F)||OS(a)||n.flags&33554432||T(a,n))return!0;let O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(u)}if(a.flags&16777216||OS(a)||she(a))return!0;if(n.pos<=a.pos&&!(xo(n)&&fL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let O=Db(a,208);return O?Rn(O,Na)!==Rn(n,Na)||n.pos<O.pos:bg(Db(n,260),a)}else{if(n.kind===260)return!g(n,a);if(Kr(n))return!Rn(a,O=>Pa(O)&&O.parent.parent===n);if(xo(n))return!N(n,a,!1);if(wu(n,n.parent))return!(fe&&Oc(n)===Oc(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return fe&&Oc(n)&&(xo(n)||wu(n,n.parent))?!N(n,a,!0):!0;return!1;function g(O,B){switch(O.parent.parent.kind){case 243:case 248:case 250:if(O0(B,O,_))return!0;break}let Q=O.parent.parent;return H1(Q)&&O0(B,Q.expression,_)}function T(O,B){return!!Rn(O,Q=>{if(Q===_)return\"quit\";if(Lo(Q))return!0;if(nl(Q))return B.pos<O.pos;let me=Vr(Q.parent,xo);if(me&&me.initializer===Q){if(zo(Q.parent)){if(B.kind===174)return!0;if(xo(B)&&Oc(O)===Oc(B)){let We=B.name;if(Me(We)||Ci(We)){let at=Yn(dr(B)),ht=Cr(B.parent.members,nl);if(Ddt(We,at,ht,B.parent.pos,Q.pos))return!0}}}else if(!(B.kind===172&&!zo(B))||Oc(O)!==Oc(B))return!0}return!1})}function N(O,B,Q){return B.end>O.end?!1:Rn(B,ue=>{if(ue===O)return\"quit\";switch(ue.kind){case 219:return!0;case 172:return Q&&(xo(O)&&ue.parent===O.parent||wu(O,O.parent)&&ue.parent===O.parent.parent)?\"quit\":!0;case 241:switch(ue.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function AP(n,a,c){let u=Wa(F),_=a;if(ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let N=Fr(_);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=an(_.parameters,g)||!1),!N.declarationRequiresScopeChange}return!1;function g(N){return T(N.name)||!!N.initializer&&T(N.initializer)}function T(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(N.name);case 172:return jl(N)?!fe:T(N.name);default:return jG(N)||yd(N)?u<7:Na(N)&&N.dotDotDotToken&&Rf(N.parent)?u<4:xi(N)?!1:Ao(N,T)||!1}}}function Cy(n){return ES(n)&&Qh(n.type)||gN(n)&&Qh(n.typeExpression)}function Xs(n,a,c,u,_,g,T=!1,N=!0){return pp(n,a,c,u,_,g,T,N,gu)}function pp(n,a,c,u,_,g,T,N,O){var B,Q,me;let ue=n,We,at,ht,qt,Xt,Hn=!1,En=n,Kt,In=!1;e:for(;n;){if(a===\"const\"&&Cy(n))return;if($M(n)&&at&&n.name===at&&(at=n,n=n.parent),L_(n)&&n.locals&&!$_(n)&&(We=O(n.locals,a,c))){let zn=!0;if(Lo(n)&&at&&at!==n.body?(c&We.flags&788968&&at.kind!==327&&(zn=We.flags&262144?at===n.type||at.kind===169||at.kind===348||at.kind===349||at.kind===168:!1),c&We.flags&3&&(AP(We,n,at)?zn=!1:We.flags&1&&(zn=at.kind===169||at===n.type&&!!Rn(We.valueDeclaration,ao)))):n.kind===194&&(zn=at===n.trueType),zn)break e;We=void 0}switch(Hn=Hn||Lf(n,at),n.kind){case 312:if(!sp(n))break;In=!0;case 267:let zn=((B=dr(n))==null?void 0:B.exports)||U;if(n.kind===312||Il(n)&&n.flags&33554432&&!Jm(n)){if(We=zn.get(\"default\")){let co=Ex(We);if(co&&We.flags&c&&co.escapedName===a)break e;We=void 0}let Bn=zn.get(a);if(Bn&&Bn.flags===2097152&&(Vs(Bn,281)||Vs(Bn,280)))break}if(a!==\"default\"&&(We=O(zn,a,c&2623475)))if(Li(n)&&n.commonJsModuleIndicator&&!((Q=We.declarations)!=null&&Q.some(bf)))We=void 0;else break e;break;case 266:if(We=O(((me=dr(n))==null?void 0:me.exports)||U,a,c&8)){u&&xf(F)&&!(n.flags&33554432)&&Nn(n)!==Nn(We.valueDeclaration)&&we(En,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ii(a),Ge,`${Ii(Fp(n).escapedName)}.${Ii(a)}`);break e}break;case 172:if(!zo(n)){let Bn=Ag(n.parent);Bn&&Bn.locals&&O(Bn.locals,a,c&111551)&&(x.assertNode(n,xo),qt=n)}break;case 263:case 231:case 264:if(We=O(dr(n).members||U,a,c&788968)){if(!Eg(We,n)){We=void 0;break}if(at&&zo(at)){u&&we(En,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Dc(n)&&c&32){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 233:if(at===n.expression&&n.parent.token===96){let Bn=n.parent.parent;if(Kr(Bn)&&(We=O(dr(Bn).members,a,c&788968))){u&&we(En,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Kt=n.parent.parent,(Kr(Kt)||Kt.kind===264)&&(We=O(dr(Kt).members,a,c&788968))){u&&we(En,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Wa(F)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a===\"arguments\"){We=Dt;break e}break;case 218:if(c&3&&a===\"arguments\"){We=Dt;break e}if(c&16){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(xc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let Mn=ux(n);Mn&&(n=Mn.parent);break;case 169:at&&(at===n.initializer||at===n.name&&ko(at))&&(Xt||(Xt=n));break;case 208:at&&(at===n.initializer||at===n.name&&ko(at))&&JE(n)&&!Xt&&(Xt=n);break;case 195:if(c&262144){let Bn=n.typeParameter.name;if(Bn&&a===Bn.escapedText){We=n.typeParameter.symbol;break e}}break;case 281:at&&at===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Ny(n)&&(ht=n),at=n,n=Df(n)?NW(n)||n.parent:(Tm(n)||T6(n))&&xb(n)||n.parent}if(g&&We&&(!ht||We!==ht.symbol)&&(We.isReferenced|=c),!We){if(at&&(x.assertNode(at,Li),at.commonJsModuleIndicator&&a===\"exports\"&&c&at.symbol.flags))return at.symbol;T||(We=O(he,a,c))}if(!We&&ue&&Jn(ue)&&ue.parent&&Xd(ue.parent,!1))return st;function Sn(){return qt&&!fe?(we(En,En&&qt.type&&wM(qt.type,En.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,is(qt.name),rm(_)),!0):!1}if(We){if(u&&Sn())return}else{u&&r(()=>{if(!En||En.parent.kind!==331&&!k0(En,a,_)&&!Sn()&&!IT(En)&&!n1(En,a,c)&&!Av(En,a)&&!xT(En,a,c)&&!KR(En,a,c)&&!Wh(En,a,c)){let zn,Mn;if(_&&(Mn=Lat(_),Mn&&we(En,u,rm(_),Mn)),!Mn&&N&&GR<VR&&(zn=Uhe(ue,a,c),zn?.valueDeclaration&&sd(zn.valueDeclaration)&&Jm(zn.valueDeclaration)&&(zn=void 0),zn)){let co=ai(zn),no=Ghe(ue,zn,!1),Eo=c===1920||_&&typeof _!=\"string\"&&xs(_)?f.Cannot_find_namespace_0_Did_you_mean_1:no?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,Yi=ET(En,Eo,rm(_),co);Rm(!no,Yi),zn.valueDeclaration&&fa(Yi,vr(zn.valueDeclaration,f._0_is_declared_here,co))}!zn&&!Mn&&_&&we(En,u,rm(_)),GR++}});return}return u&&r(()=>{var zn;if(En&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Mn=zp(We);(Mn.flags&2||Mn.flags&32||Mn.flags&384)&&Ds(Mn,En)}if(We&&In&&(c&111551)===111551&&!(ue.flags&16777216)){let Mn=Oa(We);yn(Mn.declarations)&&ji(Mn.declarations,Bn=>D2(Bn)||Li(Bn)&&!!Bn.symbol.globalExports)&&jc(!F.allowUmdGlobalAccess,En,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ii(a))}if(We&&Xt&&!Hn&&(c&111551)===111551){let Mn=Oa(L$(We)),Bn=Ym(Xt);Mn===dr(Xt)?we(En,f.Parameter_0_cannot_reference_itself,is(Xt.name)):Mn.valueDeclaration&&Mn.valueDeclaration.pos>Xt.pos&&Bn.parent.locals&&O(Bn.parent.locals,Mn.escapedName,c)===Mn&&we(En,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,is(Xt.name),is(En))}if(We&&En&&c&111551&&We.flags&2097152&&!(We.flags&111551)&&!Pb(En)){let Mn=of(We,111551);if(Mn){let Bn=Mn.kind===281||Mn.kind===278||Mn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,co=Ii(a);Oh(we(En,Bn,co),Mn,co)}}if(F.isolatedModules&&We&&In&&(c&111551)===111551){let Bn=O(he,a,c)===We&&Li(at)&&at.locals&&O(at.locals,a,-111552);if(Bn){let co=(zn=Bn.declarations)==null?void 0:zn.find(no=>no.kind===276||no.kind===273||no.kind===274||no.kind===271);co&&!UM(co)&&we(co,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ii(a))}}}),We}function Oh(n,a,c){return a?fa(n,vr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function Lf(n,a){return n.kind!==219&&n.kind!==218?oI(n)||(hs(n)||n.kind===172&&!zo(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Wr(n,1024)?!0:!RS(n)}function Ny(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function rm(n){return fo(n)?Ii(n):is(n)}function Eg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(Df(c.parent)?PS(c.parent):c.parent)===a)return!(Df(c.parent)&&Dr(c.parent.parent.tags,bf))}return!1}function k0(n,a,c){if(!Me(n)||n.escapedText!==a||j8e(n)||OS(n))return!1;let u=lu(n,!1,!1),_=u;for(;_;){if(Kr(_.parent)){let g=dr(_.parent);if(!g)break;let T=Yn(g);if(Qo(T,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,rm(c),ai(g)),!0;if(_===u&&!zo(_)){let N=Cs(g).thisType;if(Qo(N,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,rm(c)),!0}}_=_.parent}return!1}function IT(n){let a=wh(n);return a&&Es(a,64,!0)?(we(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Vl(a)),!0):!1}function wh(n){switch(n.kind){case 80:case 211:return n.parent?wh(n.parent):void 0;case 233:if(gl(n.expression))return n.expression;default:return}}function n1(n,a,c){let u=1920|(Jn(n)?111551:0);if(c===u){let _=yl(Xs(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if($d(g)){x.assert(g.left===n,\"Should only be resolving left side of qualified name as a namespace\");let T=g.right.escapedText;if(Qo(Cs(_),T))return we(g,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ii(a),Ii(T)),!0}return we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ii(a)),!0}}return!1}function Wh(n,a,c){if(c&788584){let u=yl(Xs(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return we(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ii(a)),!0}return!1}function f_(n){return n===\"any\"||n===\"string\"||n===\"number\"||n===\"boolean\"||n===\"never\"||n===\"unknown\"}function Av(n,a){return f_(a)&&n.parent.kind===281?(we(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function KR(n,a,c){if(c&111551){if(f_(a)){let g=n.parent.parent;if(g&&g.parent&&xp(g)){let T=g.token,N=g.parent.kind;N===264&&T===96?we(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ii(a)):N===263&&T===96?we(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ii(a)):N===263&&T===119&&we(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ii(a))}else we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ii(a));return!0}let u=yl(Xs(n,a,788544,void 0,void 0,!1)),_=u&&Qc(u);if(u&&_!==void 0&&!(_&111551)){let g=Ii(a);return YR(a)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):XR(n,u)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g===\"K\"?\"P\":\"K\"):we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function XR(n,a){let c=Rn(n.parent,u=>Pa(u)||Gu(u)?!1:ju(u)||\"quit\");if(c&&c.members.length===1){let u=Cs(a);return!!(u.flags&1048576)&&N5(u,384,!0)}return!1}function YR(n){switch(n){case\"Promise\":case\"Symbol\":case\"Map\":case\"WeakMap\":case\"Set\":case\"WeakSet\":return!0}return!1}function xT(n,a,c){if(c&111127){if(yl(Xs(n,a,1024,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_value,Ii(a)),!0}else if(c&788544&&yl(Xs(n,a,1536,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_type,Ii(a)),!0;return!1}function Ds(n,a){var c;if(x.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>p9(_)||Kr(_)||_.kind===266);if(u===void 0)return x.fail(\"checkResolvedBlockScopedVariable could not find block-scoped declaration\");if(!(u.flags&33554432)&&!bg(u,a)){let _,g=is(mo(u));n.flags&2?_=we(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=we(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=we(a,f.Enum_0_used_before_its_declaration,g):(x.assert(!!(n.flags&128)),xf(F)&&(_=we(a,f.Enum_0_used_before_its_declaration,g))),_&&fa(_,vr(u,f._0_is_declared_here,g))}}function O0(n,a,c){return!!a&&!!Rn(n,u=>u===a||(u===c||Lo(u)&&(!RS(u)||gc(u)&3)?\"quit\":!1))}function RT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function im(n){return n.declarations&&hA(n.declarations,Py)}function Py(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&px(n)||Zn(n)&&hl(n)===2&&px(n)||us(n)&&Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&$R(n.parent.right)||n.kind===304||n.kind===303&&$R(n.initializer)||n.kind===260&&jE(n)||n.kind===208&&jE(n.parent.parent)}function $R(n){return kL(n)||ps(n)&&T_(n)}function DT(n,a){let c=Ly(n);if(c){let _=Tx(c.expression).arguments[0];return Me(c.name)?yl(Qo(PLe(_),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===283){let _=jd(n,N9(n)||gC(n)),g=$u(_);return Nu(n,_,g,!1),g}let u=i1(n.moduleReference,a);return IP(n,u),u}function IP(n,a){if(Nu(n,void 0,a,!1)&&!n.isTypeOnly){let c=of(dr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?\"*\":Ii(c.name.escapedText);fa(we(n.moduleReference,_),vr(c,g,T))}}function nr(n,a,c,u){let _=n.exports.get(\"export=\"),g=_?Qo(Yn(_),a,!0):n.exports.get(a),T=yl(g,u);return Nu(c,g,T,!1),T}function Mc(n){return dl(n)&&!n.isExportEquals||Wr(n,2048)||Ed(n)||j_(n)}function Oi(n){return Ga(n)?e.getModeForUsageLocation(Nn(n),n):void 0}function Wp(n,a){return n===99&&a===1}function Iv(n){return Oi(n)===99&&Zs(n.text,\".json\")}function m_(n,a,c,u){let _=n&&Oi(u);if(n&&_!==void 0&&100<=W&&W<=199){let g=Wp(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=nr(a,\"default\",void 0,!0);return!(g&&ct(g.declarations,Mc)||nr(a,Hs(\"__esModule\"),void 0,c))}return wd(n)?typeof n.externalModuleIndicator!=\"object\"&&!nr(a,Hs(\"__esModule\"),void 0,c):xv(a)}function Xn(n,a){let c=jd(n,n.parent.moduleSpecifier);if(c)return CT(c,n,a)}function CT(n,a,c){var u;let _;pC(n)?_=n:_=nr(n,\"default\",a,c);let g=(u=n.declarations)==null?void 0:u.find(Li),T=iE(a);if(!T)return _;let N=Iv(T),O=m_(g,n,c,T);if(!_&&!O&&!N)if(xv(n)&&!q){let B=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\",me=n.exports.get(\"export=\").valueDeclaration,ue=we(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,ai(n),B);me&&fa(ue,vr(me,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,B))}else V_(a)?Tc(n,a):NT(n,n,a,RA(a)&&a.propertyName||a.name);else if(O||N){let B=$u(n,c)||yl(n,c);return Nu(a,n,B,!1),B}return Nu(a,_,void 0,!1),_}function iE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return U_(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return x.assertNever(n)}}function Tc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))we(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ai(n),ai(a.symbol));else{let g=we(a.name,f.Module_0_has_no_default_export,ai(n)),T=(u=n.exports)==null?void 0:u.get(\"__export\");if(T){let N=(_=T.declarations)==null?void 0:_.find(O=>{var B,Q;return!!(xl(O)&&O.moduleSpecifier&&((Q=(B=jd(O,O.moduleSpecifier))==null?void 0:B.exports)!=null&&Q.has(\"default\")))});N&&fa(g,vr(N,f.export_Asterisk_does_not_re_export_a_default))}}}function Q_(n,a){let c=n.parent.parent.moduleSpecifier,u=jd(n,c),_=Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function om(n,a){let c=n.parent.moduleSpecifier,u=c&&jd(n,c),_=c&&Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function w0(n,a){if(n===tt&&a===tt)return tt;if(n.flags&790504)return n;let c=Ra(n.flags|a.flags,n.escapedName);return x.assert(n.declarations||a.declarations),c.declarations=NE(ro(n.declarations,a.declarations),Hg),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function W0(n,a,c,u){var _;if(n.flags&1536){let g=Qu(n).get(a.escapedText),T=yl(g,u),N=(_=Pi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return Nu(c,g,T,!1,N,a.escapedText),T}}function My(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return yl(Qo(si(c),a))}}function Sg(n,a,c=!1){var u;let _=N9(n)||n.moduleSpecifier,g=jd(n,_),T=!Er(a)&&a.propertyName||a.name;if(!Me(T))return;let N=T.escapedText===\"default\"&&q,O=Pu(g,_,!1,N);if(O&&T.escapedText){if(pC(g))return g;let B;g&&g.exports&&g.exports.get(\"export=\")?B=Qo(Yn(O),T.escapedText,!0):B=My(O,T.escapedText),B=yl(B,c);let Q=W0(O,T,a,c);if(Q===void 0&&T.escapedText===\"default\"){let ue=(u=g.declarations)==null?void 0:u.find(Li);(Iv(_)||m_(ue,g,c,_))&&(Q=$u(g,c)||yl(g,c))}let me=Q&&B&&Q!==B?w0(B,Q):Q||B;return me||NT(g,O,n,T),me}}function NT(n,a,c,u){var _;let g=mp(n,c),T=is(u),N=jQ(u,a);if(N!==void 0){let O=ai(N),B=we(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,O);N.valueDeclaration&&fa(B,vr(N.valueDeclaration,f._0_is_declared_here,O))}else(_=n.exports)!=null&&_.has(\"default\")?we(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):am(c,u,T,n,g)}function am(n,a,c,u,_){var g,T;let N=(T=(g=Vr(u.valueDeclaration,L_))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),O=u.exports;if(N){let B=O?.get(\"export=\");if(B)Nm(B,N)?oE(n,a,c,_):we(a,f.Module_0_has_no_exported_member_1,_,c);else{let Q=O?Dr(Ume(O),ue=>!!Nm(ue,N)):void 0,me=Q?we(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,ai(Q)):we(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);N.declarations&&fa(me,...nn(N.declarations,(ue,We)=>vr(ue,We===0?f._0_is_declared_here:f.and_here,c)))}}else we(a,f.Module_0_has_no_exported_member_1,_,c)}function oE(n,a,c,u){if(W>=5){let _=z_(F)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else if(Jn(n)){let _=z_(F)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else{let _=z_(F)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c,c,u)}}function Fh(n,a){if(Iu(n)&&ar(n.propertyName||n.name)===\"default\"){let T=iE(n),N=T&&jd(n,T);if(N)return CT(N,n,a)}let c=Na(n)?Ym(n):n.parent.parent.parent,u=Ly(c),_=Sg(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Me(g)?yl(Qo(Yn(_),g.escapedText),a):(Nu(n,void 0,_,!1),_)}function Ly(n){if(yi(n)&&n.initializer&&Er(n.initializer))return n.initializer}function r1(n,a){if(qm(n.parent)){let c=$u(n.parent.symbol,a);return Nu(n,void 0,c,!1),c}}function aE(n,a,c){if(ar(n.propertyName||n.name)===\"default\"){let _=iE(n),g=_&&jd(n,_);if(g)return CT(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?Sg(n.parent.parent,n,c):Es(n.propertyName||n.name,a,!1,c);return Nu(n,void 0,u,!1),u}function QR(n,a){let c=dl(n)?n.expression:n.right,u=F0(c,a);return Nu(n,void 0,u,!1),u}function F0(n,a){if(Dc(n))return Ml(n).symbol;if(!Su(n)&&!gl(n))return;let c=Es(n,901119,!0,a);return c||(Ml(n),Fr(n).resolvedSymbol)}function PT(n,a){if(Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return F0(n.parent.right,a)}function fp(n,a=!1){switch(n.kind){case 271:case 260:return DT(n,a);case 273:return Xn(n,a);case 274:return Q_(n,a);case 280:return om(n,a);case 276:case 208:return Fh(n,a);case 281:return aE(n,901119,a);case 277:case 226:return QR(n,a);case 270:return r1(n,a);case 304:return Es(n.name,901119,!0,a);case 303:return F0(n.initializer,a);case 212:case 211:return PT(n,a);default:return x.fail()}}function MT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function yl(n,a){return!a&&MT(n)?fc(n):n}function fc(n){x.assert((n.flags&2097152)!==0,\"Should only get Alias here.\");let a=Pi(n);if(a.aliasTarget)a.aliasTarget===yt&&(a.aliasTarget=tt);else{a.aliasTarget=yt;let c=im(n);if(!c)return x.fail();let u=fp(c);a.aliasTarget===yt?a.aliasTarget=u||tt:we(c,f.Circular_definition_of_import_alias_0,ai(n))}return a.aliasTarget}function LT(n){if(Pi(n).aliasTarget!==yt)return fc(n)}function Qc(n,a,c){let u=a&&of(n),_=u&&xl(u),g=u&&(_?jd(u.moduleSpecifier,u.moduleSpecifier,!0):fc(u.symbol)),T=_&&g?Z_(g):void 0,N=c?0:n.flags,O;for(;n.flags&2097152;){let B=zp(fc(n));if(!_&&B===g||T?.get(B.escapedName)===B)break;if(B===tt)return-1;if(B===n||O?.has(B))break;B.flags&2097152&&(O?O.add(B):O=new Set([n,B])),N|=B.flags,n=B}return N}function Nu(n,a,c,u,_,g){if(!n||Er(n))return!1;let T=dr(n);if(Sb(n)){let O=Pi(T);return O.typeOnlyDeclaration=n,!0}if(_){let O=Pi(T);return O.typeOnlyDeclaration=_,T.escapedName!==g&&(O.typeOnlyExportStarName=g),!0}let N=Pi(T);return sE(N,a,u)||sE(N,c,u)}function sE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get(\"export=\"))??a,g=_.declarations&&Dr(_.declarations,Sb);n.typeOnlyDeclaration=g??Pi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function of(n,a){if(!(n.flags&2097152))return;let c=Pi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?yl(Z_(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):fc(c.typeOnlyDeclaration.symbol);return Qc(u)&a?c.typeOnlyDeclaration:void 0}}function ky(n){if(!ot)return;let a=dr(n),c=fc(a);c&&(c===tt||Qc(a,!0)&111551&&!Bw(c))&&Oy(a)}function Oy(n){x.assert(ot);let a=Pi(n);if(!a.referenced){a.referenced=!0;let c=im(n);if(!c)return x.fail();ox(c)&&Qc(yl(n))&111551&&Ml(c.moduleReference)}}function Lc(n){let a=Pi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function i1(n,a){return n.kind===80&&LC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Es(n,1920,!1,a):(x.assert(n.parent.kind===271),Es(n,901119,!1,a))}function mp(n,a){return n.parent?mp(n.parent,a)+\".\"+ai(n):ai(n,a,void 0,36)}function kT(n){for(;$d(n.parent);)n=n.parent;return n}function OT(n){let a=dp(n),c=Xs(a,a.escapedText,111551,void 0,a,!0);if(c){for(;$d(a.parent);){let u=Yn(c);if(c=Qo(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Es(n,a,c,u,_){if(_l(n))return;let g=1920|(Jn(n)?a&111551:0),T;if(n.kind===80){let N=a===g||xs(n)?f.Cannot_find_namespace_0:Ake(dp(n)),O=Jn(n)&&!xs(n)?ZR(n,a):void 0;if(T=Oa(Xs(_||n,n.escapedText,a,c||O?void 0:N,n,!0,!1)),!T)return Oa(O)}else if(n.kind===166||n.kind===211){let N=n.kind===166?n.left:n.expression,O=n.kind===166?n.right:n.name,B=Es(N,g,c,!1,_);if(!B||_l(O))return;if(B===tt)return B;if(B.valueDeclaration&&Jn(B.valueDeclaration)&&zd(F)!==100&&yi(B.valueDeclaration)&&B.valueDeclaration.initializer&&lwe(B.valueDeclaration.initializer)){let Q=B.valueDeclaration.initializer.arguments[0],me=jd(Q,Q);if(me){let ue=$u(me);ue&&(B=ue)}}if(T=Oa(gu(Qu(B),O.escapedText,a)),!T&&B.flags&2097152&&(T=Oa(gu(Qu(fc(B)),O.escapedText,a))),!T){if(!c){let Q=mp(B),me=is(O),ue=jQ(O,B);if(ue){we(O,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,me,ai(ue));return}let We=$d(n)&&kT(n);if(Se&&a&788968&&We&&!Wx(We.parent)&&OT(We)){we(We,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Wu(We));return}if(a&1920&&$d(n.parent)){let ht=Oa(gu(Qu(B),O.escapedText,788968));if(ht){we(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ai(ht),Ii(n.parent.right.escapedText));return}}we(O,f.Namespace_0_has_no_exported_member_1,Q,me)}return}}else x.assertNever(n,\"Unknown entity name kind.\");return x.assert((tl(T)&1)===0,\"Should never get an instantiated symbol here.\"),!xs(n)&&Su(n)&&(T.flags&2097152||n.parent.kind===277)&&Nu(V9(n),T,void 0,!0),T.flags&a||u?T:fc(T)}function ZR(n,a){if(U$(n.parent)){let c=lE(n.parent);if(c)return Xs(c,n.escapedText,a,void 0,n,!0)}}function lE(n){if(Rn(n,_=>q1(_)||_.flags&16777216?bf(_):\"quit\"))return;let c=PS(n);if(c&&Cc(c)&&AL(c.expression)){let _=dr(c.expression.left);if(_)return z0(_)}if(c&&ps(c)&&AL(c.parent)&&Cc(c.parent.parent)){let _=dr(c.parent.left);if(_)return z0(_)}if(c&&(qf(c)||Hl(c))&&Zn(c.parent.parent)&&hl(c.parent.parent)===6){let _=dr(c.parent.parent.left);if(_)return z0(_)}let u=Rb(n);if(u&&Lo(u)){let _=dr(u);return _&&_.valueDeclaration}}function z0(n){let a=n.parent.valueDeclaration;return a?(vC(a)?LA(a):SS(a)?yL(a):void 0)||a:void 0}function xP(n){let a=n.valueDeclaration;if(!a||!Jn(a)||n.flags&524288||Ib(a,!1))return;let c=yi(a)?yL(a):LA(a);if(c){let u=Fp(c);if(u)return Zhe(u,n)}}function jd(n,a,c){let _=zd(F)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return Tg(n,a,c?void 0:_)}function Tg(n,a,c,u=!1){return Ga(a)?__(n,a.text,c,a,u):void 0}function __(n,a,c,u,_=!1){var g,T,N,O,B,Q,me,ue,We,at,ht;if(Ui(a,\"@types/\")){let Bn=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,co=jD(a,\"@types/\");we(u,Bn,co,a)}let qt=w$(a,!0);if(qt)return qt;let Xt=Nn(n),Hn=Ga(n)?n:((g=Il(n)?n:n.parent&&Il(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=ey(n)?n:void 0)==null?void 0:T.argument.literal)||(yi(n)&&n.initializer&&Xd(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((N=Rn(n,lp))==null?void 0:N.arguments[0])||((O=Rn(n,cc))==null?void 0:O.moduleSpecifier)||((B=Rn(n,Ab))==null?void 0:B.moduleReference.expression)||((Q=Rn(n,xl))==null?void 0:Q.moduleSpecifier),En=Hn&&Ga(Hn)?e.getModeForUsageLocation(Xt,Hn):Xt.impliedNodeFormat,Kt=zd(F),In=(me=e.getResolvedModule(Xt,a,En))==null?void 0:me.resolvedModule,Sn=In&&FH(F,In,Xt),zn=In&&(!Sn||Sn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(In.resolvedFileName);if(zn){if(Sn&&we(u,Sn,a,In.resolvedFileName),In.resolvedUsingTsExtension&&Yc(a)){let Bn=((ue=Rn(n,cc))==null?void 0:ue.importClause)||Rn(n,hm(Nc,xl));(Bn&&!Bn.isTypeOnly||Rn(n,lp))&&we(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Mn(x.checkDefined(JW(a))))}else if(In.resolvedUsingTsExtension&&!nR(F,Xt.fileName)){let Bn=((We=Rn(n,cc))==null?void 0:We.importClause)||Rn(n,hm(Nc,xl));if(!(Bn?.isTypeOnly||Rn(n,Dh))){let co=x.checkDefined(JW(a));we(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,co)}}if(zn.symbol){if(In.isExternalLibraryImport&&!VC(In.extension)&&o1(!1,u,Xt,En,In,a),Kt===3||Kt===99){let Bn=Xt.impliedNodeFormat===1&&!Rn(n,lp)||!!Rn(n,Nc),co=Rn(n,no=>Dh(no)||xl(no)||cc(no));if(Bn&&zn.impliedNodeFormat===99&&!hre(co))if(Rn(n,Nc))we(u,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let no,Eo=og(Xt.fileName);if(Eo===\".ts\"||Eo===\".js\"||Eo===\".tsx\"||Eo===\".jsx\"){let Yi=Xt.packageJsonScope,ic=Eo===\".ts\"?\".mts\":Eo===\".js\"?\".mjs\":void 0;Yi&&!Yi.contents.packageJsonContent.type?ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,ic,wr(Yi.packageDirectory,\"package.json\")):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,wr(Yi.packageDirectory,\"package.json\")):ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,ic):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}La.add(eg(Nn(u),u,So(no,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return Oa(zn.symbol)}c&&we(u,f.File_0_is_not_a_module,zn.fileName);return}if(Nf){let Bn=pB(Nf,co=>co.pattern,a);if(Bn){let co=Vd&&Vd.get(a);return Oa(co||Bn.symbol)}}if(In&&!VC(In.extension)&&Sn===void 0||Sn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let Bn=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;we(u,Bn,a,In.resolvedFileName)}else o1(ce&&!!c,u,Xt,En,In,a);return}if(c){if(In){let Bn=e.getProjectReferenceRedirect(In.resolvedFileName);if(Bn){we(u,f.Output_file_0_has_not_been_built_from_source_file_1,Bn,In.resolvedFileName);return}}if(Sn)we(u,Sn,a,In.resolvedFileName);else{let Bn=op(a)&&!TA(a),co=Kt===3||Kt===99;if(!Mb(F)&&el(a,\".json\")&&Kt!==1&&rF(F))we(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(En===99&&co&&Bn){let no=Qi(a,Ur(Xt.path)),Eo=(at=qR.find(([Yi,ic])=>e.fileExists(no+Yi)))==null?void 0:at[1];Eo?we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Eo):we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((ht=e.getResolvedModule(Xt,a,En))!=null&&ht.alternateResult){let no=Q8(Xt,e,a,En,a);jc(!0,u,So(no,c,a))}else we(u,c,a)}}return;function Mn(Bn){let co=QL(a,Bn);if(nF(W)||En===99){let no=Yc(a)&&nR(F);return co+(Bn===\".mts\"||Bn===\".d.mts\"?no?\".mts\":\".mjs\":Bn===\".cts\"||Bn===\".d.mts\"?no?\".cts\":\".cjs\":no?\".ts\":\".js\")}return co}}function o1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let N;!Ic(T)&&_&&(N=Q8(c,e,T,u,_.name)),jc(n,a,So(N,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function $u(n,a){if(n?.exports){let c=yl(n.exports.get(\"export=\"),a),u=a1(Oa(c),Oa(n));return Oa(u)||n}}function a1(n,a){if(!n||n===tt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=Pi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:AT(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=Vo()),a.exports.forEach((_,g)=>{g!==\"export=\"&&u.exports.set(g,u.exports.has(g)?Pf(u.exports.get(g),_):_)}),u===n&&(Pi(u).resolvedExports=void 0,Pi(u).resolvedMembers=void 0),Pi(u).cjsExportMerged=u,c.cjsExportMerged=u}function Pu(n,a,c,u){var _;let g=$u(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!Vs(g,312)){let N=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\";return we(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),g}let T=a.parent;if(cc(T)&&cx(T)||lp(T)){let N=lp(T)?T.arguments[0]:T.moduleSpecifier,O=Yn(g),B=awe(O,g,n,N);if(B)return s1(g,B,T);let Q=(_=n?.declarations)==null?void 0:_.find(Li),me=Q&&Wp(Oi(N),Q.impliedNodeFormat);if(z_(F)||me){let ue=k7(O,0);if((!ue||!ue.length)&&(ue=k7(O,1)),ue&&ue.length||Qo(O,\"default\",!0)||me){let We=O.flags&3670016?swe(O,g,n,N):ege(g,g.parent);return s1(g,We,T)}}}}return g}function s1(n,a,c){let u=Ra(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=Om(a);return u.links.type=cs(u,_.members,je,je,_.indexInfos),u}function xv(n){return n.exports.get(\"export=\")!==void 0}function wT(n){return Ume(Z_(n))}function eD(n){let a=wT(n),c=$u(n);if(c!==n){let u=Yn(c);wy(u)&&Pr(a,Xa(u))}return a}function tD(n,a){Z_(n).forEach((_,g)=>{V0(g)||a(_,g)});let u=$u(n);if(u!==n){let _=Yn(u);wy(_)&&ntt(_,(g,T)=>{a(g,T)})}}function WT(n,a){let c=Z_(a);if(c)return c.get(n)}function nD(n,a){let c=WT(n,a);if(c)return c;let u=$u(a);if(u===a)return;let _=Yn(u);return wy(_)?Qo(_,n):void 0}function wy(n){return!(n.flags&402784252||br(n)&1||ff(n)||ga(n))}function Qu(n){return n.flags&6256?Dme(n,\"resolvedExports\"):n.flags&1536?Z_(n):n.exports||U}function Z_(n){let a=Pi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=FT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function rD(n,a,c,u){a&&a.forEach((_,g)=>{if(g===\"default\")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:Vl(u.moduleSpecifier)});else if(c&&u&&T&&yl(T)!==yl(_)){let N=c.get(g);N.exportsWithDuplicate?N.exportsWithDuplicate.push(u):N.exportsWithDuplicate=[u]}})}function FT(n){let a=[],c,u=new Set;n=$u(n);let _=g(n)||U;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,N,O){if(!O&&T?.exports&&T.exports.forEach((me,ue)=>u.add(ue)),!(T&&T.exports&&jp(a,T)))return;let B=new Map(T.exports),Q=T.exports.get(\"__export\");if(Q){let me=Vo(),ue=new Map;if(Q.declarations)for(let We of Q.declarations){let at=jd(We,We.moduleSpecifier),ht=g(at,We,O||We.isTypeOnly);rD(me,ht,ue,We)}ue.forEach(({exportsWithDuplicate:We},at)=>{if(!(at===\"export=\"||!(We&&We.length)||B.has(at)))for(let ht of We)La.add(vr(ht,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ue.get(at).specifierText,Ii(at)))}),rD(B,me)}return N?.isTypeOnly&&(c??(c=new Map),B.forEach((me,ue)=>c.set(ue,N))),B}}function Oa(n){let a;return n&&n.mergeId&&(a=jR[n.mergeId])?a:n}function dr(n){return Oa(n.symbol&&L$(n.symbol))}function Fp(n){return qm(n)?dr(n):void 0}function nu(n){return Oa(n.parent&&L$(n.parent))}function B0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&Fp(n.valueDeclaration.parent)||n}function iD(n,a){let c=Nn(a),u=Fa(c),_=Pi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let N of c.imports){if(xs(N))continue;let O=jd(a,N,!0);!O||!zh(O,n)||(g=pn(g,O))}if(yn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let N of T){if(!wl(N))continue;let O=dr(N);zh(O,n)&&(g=pn(g,O))}return _.extendedContainers=g||je}function cE(n,a,c){let u=nu(n);if(u&&!(n.flags&262144))return O(u);let _=Fi(n.declarations,Q=>{if(!sd(Q)&&Q.parent){if(Rd(Q.parent))return dr(Q.parent);if(n_(Q.parent)&&Q.parent.parent&&$u(dr(Q.parent.parent))===n)return dr(Q.parent.parent)}if(Dc(Q)&&Zn(Q.parent)&&Q.parent.operatorToken.kind===64&&us(Q.parent.left)&&gl(Q.parent.left.expression))return Eh(Q.parent.left)||DS(Q.parent.left.expression)?dr(Nn(Q)):(Ml(Q.parent.left.expression),Fr(Q.parent.left.expression).resolvedSymbol)});if(!yn(_))return;let g=Fi(_,Q=>zh(Q,n)?Q:void 0),T=[],N=[];for(let Q of g){let[me,...ue]=O(Q);T=pn(T,me),N=Pr(N,ue)}return ro(T,N);function O(Q){let me=Fi(Q.declarations,B),ue=a&&iD(n,a),We=G0(Q,c);if(a&&Q.flags&Ig(c)&&Wy(Q,a,1920,!1))return pn(ro(ro([Q],me),ue),We);let at=!(Q.flags&Ig(c))&&Q.flags&788968&&Cs(Q).flags&524288&&c===111551?U0(a,qt=>hc(qt,Xt=>{if(Xt.flags&Ig(c)&&Yn(Xt)===Cs(Q))return Xt})):void 0,ht=at?[at,...me,Q]:[...me,Q];return ht=pn(ht,We),ht=Pr(ht,ue),ht}function B(Q){return u&&zT(Q,u)}}function G0(n,a){let c=!!yn(n.declarations)&&Ta(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(ma(c)&&c===c.parent.initializer||ju(c)&&c===c.parent.type))return dr(c.parent)}function zT(n,a){let c=wi(n),u=c&&c.exports&&c.exports.get(\"export=\");return u&&Nm(u,a)?c:void 0}function zh(n,a){if(n===nu(a))return a;let c=n.exports&&n.exports.get(\"export=\");if(c&&Nm(c,a))return n;let u=Qu(n),_=u.get(a.escapedName);return _&&Nm(_,a)?_:hc(u,g=>{if(Nm(g,a))return g})}function Nm(n,a){if(Oa(yl(Oa(n)))===Oa(yl(Oa(a))))return n}function zp(n){return Oa(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function sm(n,a){return!!(n.flags&111551||n.flags&2097152&&Qc(n,!a)&111551)}function Ag(n){let a=n.members;for(let c of a)if(c.kind===176&&gf(c.body))return c}function Bh(n){var a;let c=new p(zt,n);return m++,c.id=m,(a=qn)==null||a.recordType(c),c}function Gh(n,a){let c=Bh(n);return c.symbol=a,c}function l1(n){return new p(zt,n)}function Fl(n,a,c=0,u){oD(a,u);let _=Bh(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function oD(n,a){let c=`${n},${a??\"\"}`;et.has(c)&&x.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:\"\"}; you may need to pass a name to createIntrinsicType.`),et.add(c)}function af(n,a){let c=Gh(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function eh(){return Br(bo(GU.keys(),yu))}function Bp(n){return Gh(262144,n)}function V0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function dE(n){let a;return n.forEach((c,u)=>{c1(c,u)&&(a||(a=[])).push(c)}),a||je}function c1(n,a){return!V0(a)&&sm(n)}function BT(n){let a=dE(n),c=z$(n);return c?ro(a,[c]):a}function Gp(n,a,c,u,_){let g=n;return g.members=a,g.properties=je,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==U&&(g.properties=dE(a)),g}function cs(n,a,c,u,_){return Gp(af(16,n),a,c,u,_)}function j0(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Cr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=cs(n.symbol,n.members,n.callSignatures,ct(a)?a:je,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function U0(n,a){let c;for(let u=n;u;u=u.parent){if(L_(u)&&u.locals&&!$_(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!sp(u))break;case 267:let _=dr(u);if(c=a(_?.exports||U,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((dr(u).members||U).forEach((T,N)=>{T.flags&788968&&(g||(g=Vo())).set(N,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(he,void 0,!0)}function Ig(n){return n===111551?111551:1920}function Wy(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=Pi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),N=U0(a,(Xt,Hn,En,Kt)=>Kt),O=`${u?0:1}|${N&&Fa(N)}|${c}`;if(T.has(O))return T.get(O);let B=na(n),Q=_.get(B);Q||_.set(B,Q=[]);let me=U0(a,ue);return T.set(O,me),me;function ue(Xt,Hn,En){if(!jp(Q,Xt))return;let Kt=ht(Xt,Hn,En);return Q.pop(),Kt}function We(Xt,Hn){return!uE(Xt,a,Hn)||!!Wy(Xt.parent,a,Ig(Hn),u,_)}function at(Xt,Hn,En){return(n===(Hn||Xt)||Oa(n)===Oa(Hn||Xt))&&!ct(Xt.declarations,Rd)&&(En||We(Oa(Xt),c))}function ht(Xt,Hn,En){return at(Xt.get(n.escapedName),void 0,Hn)?[n]:hc(Xt,In=>{if(In.flags&2097152&&In.escapedName!==\"export=\"&&In.escapedName!==\"default\"&&!(QW(In)&&a&&wl(Nn(a)))&&(!u||ct(In.declarations,Ab))&&(!En||!ct(In.declarations,Jte))&&(Hn||!Vs(In,281))){let Sn=fc(In),zn=qt(In,Sn,Hn);if(zn)return zn}if(In.escapedName===n.escapedName&&In.exportSymbol&&at(Oa(In.exportSymbol),void 0,Hn))return[n]})||(Xt===he?qt(Ke,Ke,Hn):void 0)}function qt(Xt,Hn,En){if(at(Xt,Hn,En))return[Xt];let Kt=Qu(Hn),In=Kt&&ue(Kt,!0);if(In&&We(Xt,Ig(c)))return[Xt].concat(In)}}function uE(n,a,c){let u=!1;return U0(a,_=>{let g=Oa(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!Vs(g,281);return g=T?fc(g):g,(T?Qc(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ne(n,a){return ri(n,a,788968,!1,!0).accessibility===0}function rt(n,a){return ri(n,a,111551,!1,!0).accessibility===0}function Ht(n,a,c){return ri(n,a,c,!1,!1).accessibility===0}function yr(n,a,c,u,_,g){if(!yn(n))return;let T,N=!1;for(let O of n){let B=Wy(O,a,u,!1);if(B){T=O;let ue=ru(B[0],_);if(ue)return ue}if(g&&ct(O.declarations,Rd)){if(_){N=!0;continue}return{accessibility:0}}let Q=cE(O,a,u),me=yr(Q,a,c,c===O?Ig(u):u,_,g);if(me)return me}if(N)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ai(c,a,u),errorModuleName:T!==c?ai(T,a,1920):void 0}}function vi(n,a,c,u){return ri(n,a,c,u,!0)}function ri(n,a,c,u,_){if(n&&a){let g=yr([n],a,n,c,u,_);if(g)return g;let T=an(n.declarations,wi);if(T){let N=wi(a);if(T!==N)return{accessibility:2,errorSymbolName:ai(n,a,c),errorModuleName:ai(T),errorNode:Jn(a)?a:void 0}}return{accessibility:1,errorSymbolName:ai(n,a,c)}}return{accessibility:0}}function wi(n){let a=Rn(n,$o);return a&&dr(a)}function $o(n){return sd(n)||n.kind===312&&sp(n)}function Rd(n){return iW(n)||n.kind===312&&sp(n)}function ru(n,a){let c;if(!ji(Cr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,N;if(!Pm(g)){let O=RT(g);if(O&&!Wr(O,32)&&Pm(O.parent))return _(g,O);if(yi(g)&&cl(g.parent.parent)&&!Wr(g.parent.parent,32)&&Pm(g.parent.parent.parent))return _(g,g.parent.parent);if(oW(g)&&!Wr(g,32)&&Pm(g.parent))return _(g,g);if(Na(g)){if(n.flags&2097152&&Jn(g)&&((T=g.parent)!=null&&T.parent)&&yi(g.parent.parent)&&((N=g.parent.parent.parent)!=null&&N.parent)&&cl(g.parent.parent.parent.parent)&&!Wr(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&Pm(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let B=Rn(g,cl);return Wr(B,32)?!0:Pm(B.parent)?_(g,B):!1}}return!1}return!0}function _(g,T){return a&&(Fr(g).isVisible=!0,c=Kh(c,T)),!0}}function sf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!yh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Fy(n,a){let c=sf(n),u=dp(n),_=Xs(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&YE(u)&&vi(dr(lu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&ru(_,!0)||{accessibility:1,errorSymbolName:Vl(u),errorNode:u}}function ai(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?ft.symbolToNode:ft.symbolToEntityName;return _?N(_).getText():dC(N);function N(O){let B=T(n,c,a,g),Q=a?.kind===312?hH():y0(),me=a&&Nn(a);return Q.writeNode(4,B,me,O),O}}function th(n,a,c=0,u,_){return _?g(_).getText():dC(g);function g(T){let N;c&262144?N=u===1?185:184:N=u===1?180:179;let O=ft.signatureToSignatureDeclaration(n,N,a,GT(c)|70221824|512),B=hk(),Q=a&&Nn(a);return B.writeNode(4,O,Q,nV(T)),T}}function Pn(n,a,c=1064960,u=GL(\"\")){let _=F.noErrorTruncation||c&1,g=ft.typeToTypeNode(n,a,GT(c)|70221824|(_?1:0));if(g===void 0)return x.fail(\"should always get typenode\");let T=n!==Ct?y0():_H(),N=a&&Nn(a);T.writeNode(4,g,N,u);let O=u.getText(),B=_?AF*2:i2*2;return B&&O&&O.length>=B?O.substr(0,B-3)+\"...\":O}function d1(n,a){let c=By(n.symbol)?Pn(n,n.symbol.valueDeclaration):Pn(n),u=By(a.symbol)?Pn(a,a.symbol.valueDeclaration):Pn(a);return c===u&&(c=zy(n),u=zy(a)),[c,u]}function zy(n){return Pn(n,void 0,64)}function By(n){return n&&!!n.valueDeclaration&&lt(n.valueDeclaration)&&!uf(n.valueDeclaration)}function GT(n=0){return n&848330095}function H0(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===cf(n.symbol)||!!(n.flags&524288)&&!!(br(n)&16777216))}function h_(){return{typeToTypeNode:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>u(Qe,Xr)),indexInfoToIndexSignatureDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>Q(Qe,Xr,void 0)),signatureToSignatureDeclaration:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>me(Qe,ve,li)),symbolToEntityName:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>Yi(Qe,li,ve,!1)),symbolToExpression:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>ic(Qe,li,ve)),symbolToTypeParameterDeclarations:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>In(Qe,Xr)),symbolToParameterDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>qt(Qe,Xr)),typeParameterToDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>at(Qe,Xr)),symbolTableToDeclarationStatements:(Qe,ve,vn,_r,Xr)=>a(ve,vn,_r,li=>Ys(Qe,li,Xr)),symbolToNode:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>n(Qe,li,ve))};function n(Qe,ve,vn){if(ve.flags&1073741824){if(Qe.valueDeclaration){let Xr=mo(Qe.valueDeclaration);if(Xr&&Pa(Xr))return Xr}let _r=Pi(Qe).nameType;if(_r&&_r.flags&9216)return ve.enclosingDeclaration=_r.symbol.valueDeclaration,P.createComputedPropertyName(ic(_r.symbol,ve,vn))}return ic(Qe,ve,vn)}function a(Qe,ve,vn,_r){x.assert(Qe===void 0||(Qe.flags&16)===0);let Xr=vn?.trackSymbol?vn.moduleResolverHost:ve&134217728?w3e(e):void 0,li={enclosingDeclaration:Qe,flags:ve||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};li.tracker=new VU(li,vn,Xr);let ci=_r(li);return li.truncating&&li.flags&1&&li.tracker.reportTruncationError(),li.encounteredError?void 0:ci}function c(Qe){return Qe.truncating?Qe.truncating:Qe.truncating=Qe.approximateLength>(Qe.flags&1?AF:i2)}function u(Qe,ve){let vn=ve.flags,_r=_(Qe,ve);return ve.flags=vn,_r}function _(Qe,ve){var vn,_r;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xr=ve.flags&8388608;if(ve.flags&=-8388609,!Qe){if(!(ve.flags&262144)){ve.encounteredError=!0;return}return ve.approximateLength+=3,P.createKeywordTypeNode(133)}if(ve.flags&536870912||(Qe=wm(Qe)),Qe.flags&1)return Qe.aliasSymbol?P.createTypeReferenceNode(Bn(Qe.aliasSymbol),O(Qe.aliasTypeArguments,ve)):Qe===Ct?iN(P.createKeywordTypeNode(133),3,\"unresolved\"):(ve.approximateLength+=3,P.createKeywordTypeNode(Qe===Qt?141:133));if(Qe.flags&2)return P.createKeywordTypeNode(159);if(Qe.flags&4)return ve.approximateLength+=6,P.createKeywordTypeNode(154);if(Qe.flags&8)return ve.approximateLength+=6,P.createKeywordTypeNode(150);if(Qe.flags&64)return ve.approximateLength+=6,P.createKeywordTypeNode(163);if(Qe.flags&16&&!Qe.aliasSymbol)return ve.approximateLength+=7,P.createKeywordTypeNode(136);if(Qe.flags&1056){if(Qe.symbol.flags&8){let fn=nu(Qe.symbol),zr=co(fn,ve,788968);if(Cs(fn)===Qe)return zr;let Ai=$s(Qe.symbol);return Tp(Ai,0)?ii(zr,P.createTypeReferenceNode(Ai,void 0)):Dh(zr)?(zr.isTypeOf=!0,P.createIndexedAccessTypeNode(zr,P.createLiteralTypeNode(P.createStringLiteral(Ai)))):Yp(zr)?P.createIndexedAccessTypeNode(P.createTypeQueryNode(zr.typeName),P.createLiteralTypeNode(P.createStringLiteral(Ai))):x.fail(\"Unhandled type node kind returned from `symbolToTypeNode`.\")}return co(Qe.symbol,ve,788968)}if(Qe.flags&128)return ve.approximateLength+=Qe.value.length+2,P.createLiteralTypeNode($n(P.createStringLiteral(Qe.value,!!(ve.flags&268435456)),16777216));if(Qe.flags&256){let fn=Qe.value;return ve.approximateLength+=(\"\"+fn).length,P.createLiteralTypeNode(fn<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-fn)):P.createNumericLiteral(fn))}if(Qe.flags&2048)return ve.approximateLength+=ZE(Qe.value).length+1,P.createLiteralTypeNode(P.createBigIntLiteral(Qe.value));if(Qe.flags&512)return ve.approximateLength+=Qe.intrinsicName.length,P.createLiteralTypeNode(Qe.intrinsicName===\"true\"?P.createTrue():P.createFalse());if(Qe.flags&8192){if(!(ve.flags&1048576)){if(rt(Qe.symbol,ve.enclosingDeclaration))return ve.approximateLength+=6,co(Qe.symbol,ve,111551);ve.tracker.reportInaccessibleUniqueSymbolError&&ve.tracker.reportInaccessibleUniqueSymbolError()}return ve.approximateLength+=13,P.createTypeOperatorNode(158,P.createKeywordTypeNode(155))}if(Qe.flags&16384)return ve.approximateLength+=4,P.createKeywordTypeNode(116);if(Qe.flags&32768)return ve.approximateLength+=9,P.createKeywordTypeNode(157);if(Qe.flags&65536)return ve.approximateLength+=4,P.createLiteralTypeNode(P.createNull());if(Qe.flags&131072)return ve.approximateLength+=5,P.createKeywordTypeNode(146);if(Qe.flags&4096)return ve.approximateLength+=6,P.createKeywordTypeNode(155);if(Qe.flags&67108864)return ve.approximateLength+=6,P.createKeywordTypeNode(151);if(YC(Qe))return ve.flags&4194304&&(!ve.encounteredError&&!(ve.flags&32768)&&(ve.encounteredError=!0),(_r=(vn=ve.tracker).reportInaccessibleThisError)==null||_r.call(vn)),ve.approximateLength+=4,P.createThisTypeNode();if(!Xr&&Qe.aliasSymbol&&(ve.flags&16384||ne(Qe.aliasSymbol,ve.enclosingDeclaration))){let fn=O(Qe.aliasTypeArguments,ve);return V0(Qe.aliasSymbol.escapedName)&&!(Qe.aliasSymbol.flags&32)?P.createTypeReferenceNode(P.createIdentifier(\"\"),fn):yn(fn)===1&&Qe.aliasSymbol===Po.symbol?P.createArrayTypeNode(fn[0]):co(Qe.aliasSymbol,ve,788968,fn)}let li=br(Qe);if(li&4)return x.assert(!!(Qe.flags&524288)),Qe.node?Ft(Qe,xn):xn(Qe);if(Qe.flags&262144||li&3){if(Qe.flags&262144&&To(ve.inferTypeParameters,Qe)){ve.approximateLength+=$s(Qe.symbol).length+6;let zr,Ai=iu(Qe);if(Ai){let Ji=OLe(Qe,!0);Ji&&kg(Ai,Ji)||(ve.approximateLength+=9,zr=Ai&&u(Ai,ve))}return P.createInferTypeNode(We(Qe,ve,zr))}if(ve.flags&4&&Qe.flags&262144){let zr=Eo(Qe,ve);return ve.approximateLength+=ar(zr).length,P.createTypeReferenceNode(P.createIdentifier(ar(zr)),void 0)}if(Qe.symbol)return co(Qe.symbol,ve,788968);let fn=(Qe===ae||Qe===X)&&L&&L.symbol?(Qe===X?\"sub-\":\"super-\")+$s(L.symbol):\"?\";return P.createTypeReferenceNode(P.createIdentifier(fn),void 0)}if(Qe.flags&1048576&&Qe.origin&&(Qe=Qe.origin),Qe.flags&3145728){let fn=Qe.flags&1048576?aD(Qe.types):Qe.types;if(yn(fn)===1)return u(fn[0],ve);let zr=O(fn,ve,!0);if(zr&&zr.length>0)return Qe.flags&1048576?P.createUnionTypeNode(zr):P.createIntersectionTypeNode(zr);!ve.encounteredError&&!(ve.flags&262144)&&(ve.encounteredError=!0);return}if(li&48)return x.assert(!!(Qe.flags&524288)),Gt(Qe);if(Qe.flags&4194304){let fn=Qe.type;ve.approximateLength+=6;let zr=u(fn,ve);return P.createTypeOperatorNode(143,zr)}if(Qe.flags&134217728){let fn=Qe.texts,zr=Qe.types,Ai=P.createTemplateHead(fn[0]),Ji=P.createNodeArray(nn(zr,(Ho,Yl)=>P.createTemplateLiteralTypeSpan(u(Ho,ve),(Yl<zr.length-1?P.createTemplateMiddle:P.createTemplateTail)(fn[Yl+1]))));return ve.approximateLength+=2,P.createTemplateLiteralType(Ai,Ji)}if(Qe.flags&268435456){let fn=u(Qe.type,ve);return co(Qe.symbol,ve,788968,[fn])}if(Qe.flags&8388608){let fn=u(Qe.objectType,ve),zr=u(Qe.indexType,ve);return ve.approximateLength+=2,P.createIndexedAccessTypeNode(fn,zr)}if(Qe.flags&16777216)return Ft(Qe,fn=>ci(fn));if(Qe.flags&33554432){let fn=u(Qe.baseType,ve),zr=wP(Qe)&&r_e(\"NoInfer\",!1);return zr?co(zr,ve,788968,[fn]):fn}return x.fail(\"Should be unreachable.\");function ci(fn){let zr=u(fn.checkType,ve);if(ve.approximateLength+=15,ve.flags&4&&fn.root.isDistributive&&!(fn.checkType.flags&262144)){let al=Bp(Ra(262144,\"T\")),Ba=Eo(al,ve),oc=P.createTypeReferenceNode(Ba);ve.approximateLength+=37;let As=eA(fn.root.checkType,al,fn.mapper),Gm=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let qe=u(Gi(fn.root.extendsType,As),ve);ve.inferTypeParameters=Gm;let ut=xr(Gi(si(fn.root.node.trueType),As)),Bt=xr(Gi(si(fn.root.node.falseType),As));return P.createConditionalTypeNode(zr,P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(oc.typeName))),P.createConditionalTypeNode(P.createTypeReferenceNode(P.cloneNode(Ba)),u(fn.checkType,ve),P.createConditionalTypeNode(oc,qe,ut,Bt),P.createKeywordTypeNode(146)),P.createKeywordTypeNode(146))}let Ai=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let Ji=u(fn.extendsType,ve);ve.inferTypeParameters=Ai;let Ho=xr(EE(fn)),Yl=xr(SE(fn));return P.createConditionalTypeNode(zr,Ji,Ho,Yl)}function xr(fn){var zr,Ai,Ji;return fn.flags&1048576?(zr=ve.visitedTypes)!=null&&zr.has(Hd(fn))?(ve.flags&131072||(ve.encounteredError=!0,(Ji=(Ai=ve.tracker)==null?void 0:Ai.reportCyclicStructureError)==null||Ji.call(Ai)),g(ve)):Ft(fn,Ho=>u(Ho,ve)):u(fn,ve)}function ur(fn){return!!fw(fn)}function $e(fn){return!!fn.target&&ur(fn.target)&&!ur(fn)}function It(fn){var zr;x.assert(!!(fn.flags&524288));let Ai=fn.declaration.readonlyToken?P.createToken(fn.declaration.readonlyToken.kind):void 0,Ji=fn.declaration.questionToken?P.createToken(fn.declaration.questionToken.kind):void 0,Ho,Yl,al=!fD(fn)&&!(HT(fn).flags&2)&&ve.flags&4&&!(Vp(fn).flags&262144&&((zr=iu(Vp(fn)))==null?void 0:zr.flags)&4194304);if(fD(fn)){if($e(fn)&&ve.flags&4){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt)}Ho=P.createTypeOperatorNode(143,Yl||u(HT(fn),ve))}else if(al){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt),Ho=Yl}else Ho=u(Vp(fn),ve);let Ba=We(km(fn),ve,Ho),oc=fn.declaration.nameType?u(Dv(fn),ve):void 0,As=u(ob(Ng(fn),!!(oh(fn)&4)),ve),Gm=P.createMappedTypeNode(Ai,Ba,oc,Ji,As,void 0);ve.approximateLength+=10;let qe=$n(Gm,1);if($e(fn)&&ve.flags&4){let ut=Gi(iu(si(fn.declaration.typeParameter.constraint.type))||Zt,fn.mapper);return P.createConditionalTypeNode(u(HT(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),ut.flags&2?void 0:u(ut,ve))),qe,P.createKeywordTypeNode(146))}else if(al)return P.createConditionalTypeNode(u(Vp(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),P.createTypeOperatorNode(143,u(HT(fn),ve)))),qe,P.createKeywordTypeNode(146));return qe}function Gt(fn){var zr,Ai;let Ji=fn.id,Ho=fn.symbol;if(Ho){if(!!(br(fn)&8388608)){let As=fn.node;if(oI(As)&&si(As)===fn){let Gm=fl(ve,As);if(Gm)return Gm}return(zr=ve.visitedTypes)!=null&&zr.has(Ji)?g(ve):Ft(fn,Yt)}let Ba=H0(fn)?788968:111551;if(T_(Ho.valueDeclaration))return co(Ho,ve,Ba);if(Ho.flags&32&&!D$(Ho)&&!(Ho.valueDeclaration&&Kr(Ho.valueDeclaration)&&ve.flags&2048&&(!Zl(Ho.valueDeclaration)||vi(Ho,ve.enclosingDeclaration,Ba,!1).accessibility!==0))||Ho.flags&896||Yl())return co(Ho,ve,Ba);if((Ai=ve.visitedTypes)!=null&&Ai.has(Ji)){let oc=S7(fn);return oc?co(oc,ve,788968):g(ve)}else return Ft(fn,Yt)}else return Yt(fn);function Yl(){var al;let Ba=!!(Ho.flags&8192)&&ct(Ho.declarations,As=>zo(As)),oc=!!(Ho.flags&16)&&(Ho.parent||an(Ho.declarations,As=>As.parent.kind===312||As.parent.kind===268));if(Ba||oc)return(!!(ve.flags&4096)||((al=ve.visitedTypes)==null?void 0:al.has(Ji)))&&(!(ve.flags&8)||rt(Ho,ve.enclosingDeclaration))}}function Ft(fn,zr){var Ai,Ji,Ho;let Yl=fn.id,al=br(fn)&16&&fn.symbol&&fn.symbol.flags&32,Ba=br(fn)&4&&fn.node?\"N\"+Fa(fn.node):fn.flags&16777216?\"N\"+Fa(fn.root.node):fn.symbol?(al?\"+\":\"\")+na(fn.symbol):void 0;ve.visitedTypes||(ve.visitedTypes=new Set),Ba&&!ve.symbolDepth&&(ve.symbolDepth=new Map);let oc=ve.enclosingDeclaration&&Fr(ve.enclosingDeclaration),As=`${Hd(fn)}|${ve.flags}`;oc&&(oc.serializedTypes||(oc.serializedTypes=new Map));let Gm=(Ai=oc?.serializedTypes)==null?void 0:Ai.get(As);if(Gm)return(Ji=Gm.trackedSymbols)==null||Ji.forEach(([Rr,Si,yo])=>ve.tracker.trackSymbol(Rr,Si,yo)),Gm.truncating&&(ve.truncating=!0),ve.approximateLength+=Gm.addedLength,cn(Gm.node);let qe;if(Ba){if(qe=ve.symbolDepth.get(Ba)||0,qe>10)return g(ve);ve.symbolDepth.set(Ba,qe+1)}ve.visitedTypes.add(Yl);let ut=ve.trackedSymbols;ve.trackedSymbols=void 0;let Bt=ve.approximateLength,kn=zr(fn),pr=ve.approximateLength-Bt;return!ve.reportedDiagnostic&&!ve.encounteredError&&((Ho=oc?.serializedTypes)==null||Ho.set(As,{node:kn,truncating:ve.truncating,addedLength:pr,trackedSymbols:ve.trackedSymbols})),ve.visitedTypes.delete(Yl),Ba&&ve.symbolDepth.set(Ba,qe),ve.trackedSymbols=ut,kn;function cn(Rr){return!xs(Rr)&&uo(Rr)===Rr?Rr:Ze(P.cloneNode(un(Rr,cn,void 0,rr)),Rr)}function rr(Rr,Si,yo,Ko,Xo){return Rr&&Rr.length===0?Ze(P.createNodeArray(void 0,Rr.hasTrailingComma),Rr):Dn(Rr,Si,yo,Ko,Xo)}}function Yt(fn){if(vu(fn)||fn.containsError)return It(fn);let zr=Om(fn);if(!zr.properties.length&&!zr.indexInfos.length){if(!zr.callSignatures.length&&!zr.constructSignatures.length)return ve.approximateLength+=2,$n(P.createTypeLiteralNode(void 0),1);if(zr.callSignatures.length===1&&!zr.constructSignatures.length){let al=zr.callSignatures[0];return me(al,184,ve)}if(zr.constructSignatures.length===1&&!zr.callSignatures.length){let al=zr.constructSignatures[0];return me(al,185,ve)}}let Ai=Cr(zr.constructSignatures,al=>!!(al.flags&4));if(ct(Ai)){let al=nn(Ai,XT);return zr.callSignatures.length+(zr.constructSignatures.length-Ai.length)+zr.indexInfos.length+(ve.flags&2048?Wv(zr.properties,oc=>!(oc.flags&4194304)):yn(zr.properties))&&al.push(j0(zr)),u(Zo(al),ve)}let Ji=ve.flags;ve.flags|=4194304;let Ho=qi(zr);ve.flags=Ji;let Yl=P.createTypeLiteralNode(Ho);return ve.approximateLength+=2,$n(Yl,ve.flags&1024?0:1),Yl}function xn(fn){let zr=Ts(fn);if(fn.target===Po||fn.target===Oo){if(ve.flags&2){let Ho=u(zr[0],ve);return P.createTypeReferenceNode(fn.target===Po?\"Array\":\"ReadonlyArray\",[Ho])}let Ai=u(zr[0],ve),Ji=P.createArrayTypeNode(Ai);return fn.target===Po?Ji:P.createTypeOperatorNode(148,Ji)}else if(fn.target.objectFlags&8){if(zr=sc(zr,(Ai,Ji)=>ob(Ai,!!(fn.target.elementFlags[Ji]&2))),zr.length>0){let Ai=Nv(fn),Ji=O(zr.slice(0,Ai),ve);if(Ji){let{labeledElementDeclarations:Ho}=fn.target;for(let al=0;al<Ji.length;al++){let Ba=fn.target.elementFlags[al],oc=Ho?.[al];oc?Ji[al]=P.createNamedTupleMember(Ba&12?P.createToken(26):void 0,P.createIdentifier(Ii(ige(oc))),Ba&2?P.createToken(58):void 0,Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ji[al]=Ba&12?P.createRestTypeNode(Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ba&2?P.createOptionalTypeNode(Ji[al]):Ji[al]}let Yl=$n(P.createTupleTypeNode(Ji),1);return fn.target.readonly?P.createTypeOperatorNode(148,Yl):Yl}}if(ve.encounteredError||ve.flags&524288){let Ai=$n(P.createTupleTypeNode([]),1);return fn.target.readonly?P.createTypeOperatorNode(148,Ai):Ai}ve.encounteredError=!0;return}else{if(ve.flags&2048&&fn.symbol.valueDeclaration&&Kr(fn.symbol.valueDeclaration)&&!rt(fn.symbol,ve.enclosingDeclaration))return Gt(fn);{let Ai=fn.target.outerTypeParameters,Ji=0,Ho;if(Ai){let oc=Ai.length;for(;Ji<oc;){let As=Ji,Gm=wLe(Ai[Ji]);do Ji++;while(Ji<oc&&wLe(Ai[Ji])===Gm);if(!nB(Ai,zr,As,Ji)){let qe=O(zr.slice(As,Ji),ve),ut=ve.flags;ve.flags|=16;let Bt=co(Gm,ve,788968,qe);ve.flags=ut,Ho=Ho?ii(Ho,Bt):Bt}}}let Yl;if(zr.length>0){let oc=(fn.target.typeParameters||je).length;Yl=O(zr.slice(Ji,oc),ve)}let al=ve.flags;ve.flags|=16;let Ba=co(fn.symbol,ve,788968,Yl);return ve.flags=al,Ho?ii(Ho,Ba):Ba}}}function ii(fn,zr){if(Dh(fn)){let Ai=fn.typeArguments,Ji=fn.qualifier;Ji&&(Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai)))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=Ji?P.createQualifiedName(Ji,Yl):Yl;return P.updateImportTypeNode(fn,fn.argument,fn.attributes,Ji,Ai,fn.isTypeOf)}else{let Ai=fn.typeArguments,Ji=fn.typeName;Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=P.createQualifiedName(Ji,Yl);return P.updateTypeReferenceNode(fn,Ji,Ai)}}function Yr(fn){let zr=fn.typeName,Ai=[];for(;!Me(zr);)Ai.unshift(zr.right),zr=zr.left;return Ai.unshift(zr),Ai}function qi(fn){if(c(ve))return[P.createPropertySignature(void 0,\"...\",void 0,void 0)];let zr=[];for(let Ho of fn.callSignatures)zr.push(me(Ho,179,ve));for(let Ho of fn.constructSignatures)Ho.flags&4||zr.push(me(Ho,180,ve));for(let Ho of fn.indexInfos)zr.push(Q(Ho,ve,fn.objectFlags&1024?g(ve):void 0));let Ai=fn.properties;if(!Ai)return zr;let Ji=0;for(let Ho of Ai){if(Ji++,ve.flags&2048){if(Ho.flags&4194304)continue;Kp(Ho)&6&&ve.tracker.reportPrivateInBaseOfClassExpression&&ve.tracker.reportPrivateInBaseOfClassExpression(Ii(Ho.escapedName))}if(c(ve)&&Ji+2<Ai.length-1){zr.push(P.createPropertySignature(void 0,`... ${Ai.length-Ji} more ...`,void 0,void 0)),N(Ai[Ai.length-1],ve,zr);break}N(Ho,ve,zr)}return zr.length?zr:void 0}}function g(Qe){return Qe.approximateLength+=3,Qe.flags&1?P.createKeywordTypeNode(133):P.createTypeReferenceNode(P.createIdentifier(\"...\"),void 0)}function T(Qe,ve){var vn;return!!(tl(Qe)&8192)&&(To(ve.reverseMappedStack,Qe)||((vn=ve.reverseMappedStack)==null?void 0:vn[0])&&!(br(Da(ve.reverseMappedStack).links.propertyType)&16))}function N(Qe,ve,vn){var _r;let Xr=!!(tl(Qe)&8192),li=T(Qe,ve)?z:qy(Qe),ci=ve.enclosingDeclaration;if(ve.enclosingDeclaration=void 0,ve.tracker.canTrackSymbol&&nw(Qe.escapedName))if(Qe.declarations){let Yt=Ta(Qe.declarations);if(D7(Yt))if(Zn(Yt)){let xn=mo(Yt);xn&&Rs(xn)&&UL(xn.argumentExpression)&&Hn(xn.argumentExpression,ci,ve)}else Hn(Yt.name.expression,ci,ve)}else ve.tracker.reportNonSerializableProperty(ai(Qe));ve.enclosingDeclaration=Qe.valueDeclaration||((_r=Qe.declarations)==null?void 0:_r[0])||ci;let xr=bn(Qe,ve);if(ve.enclosingDeclaration=ci,ve.approximateLength+=$s(Qe).length+1,Qe.flags&98304){let Yt=q0(Qe);if(li!==Yt&&!Lt(li)&&!Lt(Yt)){let xn=Vs(Qe,177),ii=kf(xn);vn.push(Ol(me(ii,177,ve,{name:xr}),xn));let Yr=Vs(Qe,178),qi=kf(Yr);vn.push(Ol(me(qi,178,ve,{name:xr}),Yr));return}}let ur=Qe.flags&16777216?P.createToken(58):void 0;if(Qe.flags&8208&&!Xy(li).length&&!Bm(Qe)){let Yt=Co(Bl(li,xn=>!(xn.flags&32768)),0);for(let xn of Yt){let ii=me(xn,173,ve,{name:xr,questionToken:ur});vn.push(Ft(ii))}if(Yt.length||!ur)return}let $e;T(Qe,ve)?$e=g(ve):(Xr&&(ve.reverseMappedStack||(ve.reverseMappedStack=[]),ve.reverseMappedStack.push(Qe)),$e=li?es(ve,li,Qe,ci):P.createKeywordTypeNode(133),Xr&&ve.reverseMappedStack.pop());let It=Bm(Qe)?[P.createToken(148)]:void 0;It&&(ve.approximateLength+=9);let Gt=P.createPropertySignature(It,xr,ur,$e);vn.push(Ft(Gt));function Ft(Yt){var xn;let ii=(xn=Qe.declarations)==null?void 0:xn.find(Yr=>Yr.kind===355);if(ii){let Yr=VM(ii.comment);Yr&&Lb(Yt,[{kind:3,text:`*","vulnerability":{}},{"path":"dify-agent-runtime/internal/server/config.go","start_line":31,"end_line":31,"snippet":"\tDefaultAuthTokenEnv                  = \"SHELLCTL_AUTH_TOKEN\"","vulnerability":{"severity":"HIGH"}},{"path":"api/clients/agent_backend/factory.py","start_line":44,"end_line":51,"snippet":"    return DifyAgentBackendRunClient(\n        create_agent_backend_client(\n            base_url=base_url,\n            api_token=api_token,\n            stream_timeout=stream_read_timeout_seconds,\n        ),\n        stream_max_reconnects=stream_max_reconnects,\n    )","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":32,"end_line":32,"snippet":"        valid_password(new_password)","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":37,"end_line":37,"snippet":"    application_services().accounts.lifecycle.reset_password(account.id, new_password, email=normalized_email)","vulnerability":{"severity":"WARNING"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0003","rule_version":"1.3.0","rule_name":"Runtime Command Injection via Process Execution","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"medium","rationale":"The dify-agent / dify-agent-runtime component's declared purpose is to run arbitrary user-submitted shell scripts/commands as a sandboxed agent tool (shellctl), so argv-based exec is within its declared contract rather than an injection bug. Tracing the sinks: (1) dify-agent-runtime/cmd/runner/main.go uses exec.Command(self, childArgs...) / syscall.Exec(binary, argv, ...) with a fixed, hardcoded self-reexec argv (binary + '--exec' + script_path + cwd) -- the actual user-supplied SCRIPT CONTENT is never concatenated into a shell string for this sink; it is written as file content at scriptPath and only the fixed path string is passed as an argv element, with shebang/`sh <path>` dispatch (buildExecArgv) -- the semgrep LOW-confidence 'non-static command' flags are the exec of the controller's OWN re-exec'd binary, not attacker-constructed shell text. (2) dify-agent-runtime/internal/server/tmux.go wraps user script execution via tmux using shellJoin/shellQuote helpers that quote each argument before composing the wrapper script, and the user's script itself runs inside a Landlock-restricted (default SHELLCTL_ENABLE_PATH_ISOLATION=true, envvar.go:34-40) sandboxed process tree that confines filesystem access -- i.e. arbitrary command execution is the TOOL'S DECLARED JOB, with sandboxing as the mitigating control, not a hidden injection flaw. api/libs/helper.py:127-128 run(script) (subprocess.getstatusoutput('source /root/.bashrc && '+script), a real shell-injection-shaped sink) has NO callers anywhere in the api/ runtime tree (grep confirms only this definition, zero call sites) -- dead code, not reachable from any HTTP/tool-call path, so it does not establish execution_reachability for a VULNERABLE verdict.","vulnerability_details":null,"fix_guidance":"Remove the unreferenced api/libs/helper.py:run() dead code to eliminate future-reachability risk; keep SHELLCTL_ENABLE_PATH_ISOLATION defaulted to true and do not allow it to be disabled in multi-tenant deployments.","why_this_matters":"Unsanitized command construction in shipped runtime code can give a remote attacker arbitrary code execution with the application's privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":108,"end_line":117,"snippet":"\tself, _ := os.Executable()\n\tchildArgs := []string{\"--exec\", scriptPath, cwd}\n\tif enableIsolation {\n\t\tchildArgs = append([]string{\"--exec\", \"--landlock\"}, childArgs[1:]...)\n\t}\n\n\tcmd := exec.Command(self, childArgs...)\n\tcmd.Env = env\n\tcmd.Dir = cwd"},{"path":"dify-agent-runtime/internal/envvar/envvar.go","start_line":33,"end_line":40,"snippet":"// PathIsolationEnabled returns whether Landlock filesystem isolation is active.\nfunc PathIsolationEnabled() bool {\n\tv, ok := os.LookupEnv(EnvEnablePathIsolation)\n\tif !ok {\n\t\treturn true\n\t}\n\treturn v == \"true\"\n}"},{"path":"api/libs/helper.py","start_line":127,"end_line":128,"snippet":"def run(script):\n    return subprocess.getstatusoutput(\"source /root/.bashrc && \" + script)"},{"path":"dify-agent-runtime/internal/server/tmux.go","start_line":246,"end_line":246,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":320,"end_line":320,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":115,"end_line":115,"snippet":null,"vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0004","rule_version":"1.2.0","rule_name":"DoS Protections: Timeouts, Concurrency, Streaming Limits","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The codebase implements layered DoS protections: (1) a generic rate-limit decorator/library (api/libs/rate_limit.py) with per-IP/session/account/email/token sliding-window limits applied to auth-sensitive endpoints (device code, SSO initiate, bearer token validation, etc.); (2) the outbound SSRF-protected HTTP client enforces connect/read/write/total timeouts by default (SSRF_DEFAULT_TIME_OUT family) and a bounded buffer_response() that raises ResponseTooLargeError once decoded bytes exceed a configured cap, preventing unbounded streaming responses from exhausting memory; (3) upload size limits are enforced per content type (UPLOAD_FILE_SIZE_LIMIT, UPLOAD_IMAGE_FILE_SIZE_LIMIT, UPLOAD_VIDEO_FILE_SIZE_LIMIT, UPLOAD_AUDIO_FILE_SIZE_LIMIT, UPLOAD_SKILL_FILE_SIZE_LIMIT) in api/configs/feature/__init__.py and enforced in FileService.is_file_size_within_limit before any save() call.","vulnerability_details":null,"fix_guidance":"Continue to audit newly added external-facing endpoints to ensure they are decorated with an appropriate RateLimit spec; consider a global default body-size limit at the WSGI/reverse-proxy layer as defense in depth.","why_this_matters":"Resource exhaustion can crash or stall MCP.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/helper/ssrf_proxy.py","start_line":287,"end_line":300,"snippet":"def buffer_response(response: httpx.Response, *, max_response_bytes: int) -> httpx.Response:\n    \"\"\"Consume one open identity response under a decoded byte limit and close its stream.\"\"\"\n    if max_response_bytes <= 0:\n        raise ValueError(\"max_response_bytes must be positive\")\n    try:\n        content_encoding = response.headers.get(\"content-encoding\", \"identity\").strip().lower()\n        if content_encoding not in {\"\", \"identity\"}:\n            raise UnsupportedResponseEncodingError(...)\n        content = bytearray()\n        for chunk in response.iter_bytes():\n            if len(content) + len(chunk) > max_response_bytes:\n                raise ResponseTooLargeError(f\"response exceeded {max_response_bytes} bytes\")\n            content.extend(chunk)"},{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_DEVICE_FLOW_APPROVE = RateLimit(...)\nLIMIT_LOOKUP_PUBLIC = RateLimit(60, timedelta(minutes=5), (RateLimitScope.IP,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/configs/feature/__init__.py","start_line":458,"end_line":488,"snippet":"    UPLOAD_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    KNOWLEDGE_UPLOAD_FILE_SIZE_LIMIT_FOR_PAID_PLAN: NonNegativeInt = Field(...)\n    UPLOAD_IMAGE_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_VIDEO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_AUDIO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_SKILL_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0005","rule_version":"1.2.0","rule_name":"Logging Hygiene (No Secrets/PII/Tokens) & Audit Trail","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"api/libs/helper.py's TokenManager.get_token_data() logs the FULL raw token value at WARNING level (enabled by default under LOG_LEVEL=INFO) whenever a lookup misses. TokenManager mints these tokens for password-reset and other auth flows, so a reset-password token lands in application logs verbatim, with no central redaction filter in place.","vulnerability_details":"api/libs/helper.py line 549: `logger.warning(\"%s token %s not found with key %s\", token_type, token, key)` logs the raw `token` argument (a UUID minted by TokenManager.generate_token for sensitive flows including password reset, api/services/account/login_adapters.py:328) at WARNING level, enabled under the default LOG_LEVEL=INFO. Anyone with read access to application logs (log-aggregation/SIEM access, a separate log-exposure bug, or an insider) can harvest live password-reset tokens straight from this log line and use them to take over the corresponding account before the token's TTL expires -- turning a routine 'token not found' debug log into an account-takeover credential leak.","fix_guidance":"Change helper.py:549 to log only a hash/prefix of the token (e.g. token[:8]+'...') or omit it entirely and log the Redis key alone; add a logging filter/formatter that redacts known credential-shaped fields project-wide as defense in depth.","why_this_matters":"Prevents sensitive data leakage; enables forensics.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0005 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"api/libs/helper.py","start_line":544,"end_line":551,"snippet":"    @classmethod\n    def get_token_data(cls, token: str, token_type: str) -> dict[str, Any] | None:\n        key = cls._get_token_key(token, token_type)\n        token_data_json = redis_client.get(key)\n        if token_data_json is None:\n            logger.warning(\"%s token %s not found with key %s\", token_type, token, key)\n            return None\n        return dict(_token_data_adapter.validate_json(token_data_json))"},{"path":"api/services/account/login_adapters.py","start_line":325,"end_line":330,"snippet":"            token = TokenManager.generate_token(\n                account_id=account_id,\n                email=email,"},{"path":"api/configs/feature/__init__.py","start_line":804,"end_line":807,"snippet":"    LOG_LEVEL: str = Field(\n        description=\"Logging level, default to INFO. Set to ERROR for production environments.\",\n        default=\"INFO\",\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0006","rule_version":"1.2.0","rule_name":"Container/Runtime Hardening","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"Trivy config scan identifies concrete hardening gaps: docker/couchbase-server/Dockerfile uses the floating ':latest' tag (DS-0001) and never sets a non-root USER (DS-0002, HIGH) -- confirmed by manual read, no USER directive exists so the container runs as root by inheritance from the base image. .devcontainer/Dockerfile also runs as root (DS-0002) and misses --no-install-recommends on apt-get install (DS-0029, HIGH). All Dockerfiles lack HEALTHCHECK (DS-0026, LOW). The two internet-facing production images (api/Dockerfile, web/Dockerfile) DO create and switch to a non-root 'dify' user, so the primary attack surface is hardened; the finding is scoped to the auxiliary Couchbase and dev-container images.","vulnerability_details":"docker/couchbase-server/Dockerfile runs its vector-DB backing service container as root (no USER directive) with an unpinned FROM couchbase/server:latest base. If an attacker achieves any code-execution foothold inside that container (e.g. via a future Couchbase CVE pulled in silently by the floating tag, or a vulnerability in init-cbserver.sh), running as root removes the standard UID-separation barrier, giving the attacker root-equivalent privileges inside the container and a larger blast radius for container-breakout primitives (e.g. abusing any mounted docker.sock, writable host paths, or kernel-level capabilities available to root but not to an unprivileged UID). The floating :latest tag means a rebuild can silently pull a newer and differently-vulnerable image without the change being reviewed.","fix_guidance":"Pin docker/couchbase-server/Dockerfile to a specific Couchbase version tag (not :latest) and add a non-root USER switch after setup; add USER directives to .devcontainer/Dockerfile and use --no-install-recommends there; add HEALTHCHECK instructions to all shipped Dockerfiles.","why_this_matters":"Reduces blast radius of exploits.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0006 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM couchbase/server:latest AS stage_base\n# FROM couchbase:latest AS stage_base\nCOPY init-cbserver.sh /opt/couchbase/init/\nRUN chmod +x /opt/couchbase/init/init-cbserver.sh"},{"path":".devcontainer/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM mcr.microsoft.com/devcontainers/python:3.13-bookworm\n\nRUN apt-get update && export DEBIAN_FRONTEND=noninteractive \\\n     && apt-get -y install libgmp-dev libmpfr-dev libmpc-dev"},{"path":"api/Dockerfile","start_line":125,"end_line":125,"snippet":"USER dify"},{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":1,"snippet":"FROM couchbase/server:latest AS stage_base"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0007","rule_version":"1.2.0","rule_name":"Dependency Risk & Supply Chain","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"Trivy's scan of the committed lockfiles (api/uv.lock, dify-agent/uv.lock, pnpm-lock.yaml, dify-agent-runtime/go.mod) found 23 known CVEs in pinned, locked dependency versions, including chromadb==0.5.20 (pinned in api/uv.lock as the Chroma vector-store provider's declared runtime dependency) mapped to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH), and CVE-2026-45831 (HIGH) with no fixed version yet published, alongside other HIGH/MEDIUM findings (e.g. pydantic-ai-slim, golang.org/x/mod, socket.io-parser) that do have published fixed versions the project has not yet adopted. The presence of these scanner-confirmed, unpatched CVEs in exact pinned dependency versions constitutes a supply-chain risk on its own; this finding does not assert a specific demonstrated remote-exploit path through the Chroma vector-store API, only that the vulnerable versions are locked and declared as runtime dependencies.","vulnerability_details":"api/uv.lock pins chromadb to exact version 0.5.20, which Trivy's vulnerability database maps to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH) and CVE-2026-45831 (HIGH) with no fixed version yet published. chromadb is Dify's vector-database client, used by the RAG/knowledge-base subsystem that ingests and queries attacker-influenceable document content; a deployment that enables the Chroma vector-store provider runs this vulnerable client code against untrusted document/query content, exposing whatever remote-code-execution/data-exposure primitive CVE-2026-45833 represents to any user who can trigger a knowledge-base query or ingest a document into a Chroma-backed dataset.","fix_guidance":"Upgrade or replace chromadb beyond 0.5.20 once a patched release addressing CVE-2026-45833/45830/45831 is available (or pin to a patched fork / disable the Chroma vector-store provider until then); separately upgrade pydantic-ai-slim to >=2.53.0, bump the vulnerable golang.org/x/mod dependency, and update socket.io-parser to a fixed release; add a scheduled dependency CVE scan to CI to catch newly disclosed CVEs in already-pinned packages.","why_this_matters":"Prevents typosquat and malicious update compromise.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0007 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The scan reported mitigation_present but the independent adjudication did not corroborate it; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/uv.lock","start_line":880,"end_line":883,"snippet":"name = \"chromadb\"\nversion = \"0.5.20\"\nsource = { registry = \"https://pypi.org/simple\" }\ndependencies = ["},{"path":"Makefile","start_line":170,"end_line":1,"snippet":"(go.mod pins golang.org/x/mod to a version affected by CVE-2026-56864 HIGH / CVE-2026-56865 HIGH, per trivy-fs.json Results[] for Target=='dify-agent-runtime/go.mod')"},{"path":"web/package.json","start_line":29,"end_line":29,"snippet":"\"preinstall\": \"npx only-allow pnpm\","},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45833","pkg_name":"chromadb","severity":"CRITICAL","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45830","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45831","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107286","pkg_name":"pydantic-ai-slim","severity":"HIGH","installed_version":"2.31.0","fixed_version":"2.53.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-69185","pkg_name":"socket.io-parser","severity":"HIGH","installed_version":"4.2.6","fixed_version":"4.2.7, 3.4.5, 3.3.6"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-102991","pkg_name":"mako","severity":"MEDIUM","installed_version":"1.3.12","fixed_version":"1.4.2"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-104874","pkg_name":"multidict","severity":"MEDIUM","installed_version":"6.7.0","fixed_version":"6.9.1"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49264","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49265","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107287","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.7, 2.52.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107289","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107290","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107291","pkg_name":"pydantic-ai-slim","severity":"LOW","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-103923","pkg_name":"katex","severity":"LOW","installed_version":"0.16.47","fixed_version":"0.18.2"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0008","rule_version":"1.2.0","rule_name":"Missing or Inadequate Input Validation","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Dify's console/service/web API controllers consistently validate request bodies against typed schemas before use: console endpoints use flask-restx `@console_ns.expect(...)` model bindings plus a `model_validate(SomeModel)` decorator pattern (e.g. api/controllers/console/auth/login.py `@console_ns.expect(console_ns.models[EmailPayload.__name__])` + `@model_validate(EmailPayload)`) backed by Pydantic models, and service-api / inner-api endpoints use Pydantic `TypeAdapter`/`BaseModel.model_validate_json` for structured payload validation (e.g. api/services/data_source/notion_oauth_gateway.py uses `_NOTION_SOURCE_INFO_ADAPTER`/`_NOTION_PAGE_SUMMARY_ADAPTER` TypeAdapters to validate even third-party OAuth provider responses before use). File-upload input is explicitly constrained (extension blacklist, size limits, filename character blacklist) in FileService before any filesystem write. This is the rule's documented negative-indicator pattern (strict schema validation; type/length checks) applied broadly across the controller surface.","vulnerability_details":null,"fix_guidance":"Keep enforcing Pydantic/TypeAdapter schema validation for all new endpoints and third-party response parsing; add `.strict()`/reject-unknown-fields where the framework supports it.","why_this_matters":"Frontline control to prevent multiple classes of vulns.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/services/file_service.py","start_line":100,"end_line":113,"snippet":"        extension = os.path.splitext(filename)[1].lstrip(\".\").lower()\n        if any(c in filename for c in [\"/\", \"\\\\\"]):\n            raise ValueError(\"Filename contains invalid characters\")\n        if len(filename) > 200:\n            filename = filename.split(\".\")[0][:200] + \".\" + extension\n        if extension and extension in dify_config.UPLOAD_FILE_EXTENSION_BLACKLIST:\n            raise BlockedFileExtensionError(f\"File extension '.{extension}' is not allowed for security reasons\")\n        if source == \"datasets\" and extension not in DOCUMENT_EXTENSIONS:\n            raise UnsupportedFileTypeError()"},{"path":"api/services/data_source/notion_oauth_gateway.py","start_line":25,"end_line":34,"snippet":"class _NotionSourceInfo(TypedDict):\n    workspace_name: str | None\n    workspace_icon: str | None\n    workspace_id: str | None\n    pages: list[_NotionPageSummary]\n    total: int\n\n_NOTION_SOURCE_INFO_ADAPTER = TypeAdapter(_NotionSourceInfo)\n_NOTION_PAGE_SUMMARY_ADAPTER = TypeAdapter(_NotionPageSummary)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0009","rule_version":"1.2.0","rule_name":"Insecure Deserialization","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"pickle is used to serialize/deserialize RAG embedding vectors (api/models/dataset.py:744-747, api/core/rag/embedding/cached_embedding.py:115,198), but tracing the write path shows embedding bytes are produced exclusively by CacheEmbedding, which pickles the FLOAT LIST returned directly from the configured embedding model's own invoke_text_embedding()/invoke_multimodal_embedding() output -- there is no code path where externally-supplied bytes (an uploaded file, an HTTP body, a tool argument) are passed to pickle.loads. Reaching the sink with attacker-chosen bytes would require an independent primitive (e.g. direct DB write access or a different injection bug) that is not present in this codebase, so the required attacker_controlled_source and continuous source_to_sink_flow this rule demands cannot be established from the cited code; the evaluation_rubric's 'Deserialization of constants only' false_positive_guard class applies by analogy (model-generated, not request-controlled). Separately, api/services/agent/roster_package_reader.py:352-379 deserializes untrusted Roster Agent package YAML using a hardened yaml.SafeLoader subclass (_PackageYamlLoader) that explicitly rejects YAML aliases and non-string mapping keys -- the one YAML-deserialization sink that DOES take externally-supplied (uploaded package) content uses the safe loader, which is the rule's documented negative indicator.","vulnerability_details":null,"fix_guidance":"Defense-in-depth: replace pickle with numpy .tobytes()/np.frombuffer (fixed dtype) or a JSON float array for the Embedding.embedding column so this stored blob can never become a code-execution primitive even if a future bug (SQLi, bulk-import, compromised worker) lets an attacker write to that column directly.","why_this_matters":"Can lead to arbitrary code execution.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/rag/embedding/cached_embedding.py","start_line":107,"end_line":119,"snippet":"                cache_embeddings = []\n                try:\n                    for i, n_embedding in zip(embedding_queue_indices, embedding_queue_embeddings):\n                        text_embeddings[i] = n_embedding\n                        hash = helper.generate_text_hash(texts[i])\n                        if hash not in cache_embeddings:\n                            embedding_cache = Embedding(\n                                model_name=self._model_instance.model_name,\n                                hash=hash,\n                                provider_name=self._model_instance.provider,\n                                embedding=pickle.dumps(n_embedding, protocol=pickle.HIGHEST_PROTOCOL),\n                            )"},{"path":"api/models/dataset.py","start_line":743,"end_line":747,"snippet":"    def set_embedding(self, embedding_data: list[float]):\n        self.embedding = pickle.dumps(embedding_data, protocol=pickle.HIGHEST_PROTOCOL)\n\n    def get_embedding(self) -> list[float]:\n        return cast(list[float], pickle.loads(self.embedding))  # noqa: S301"},{"path":"api/services/agent/roster_package_reader.py","start_line":352,"end_line":379,"snippet":"            return yaml.load(payload, Loader=_PackageYamlLoader), size  # noqa: S506\n        except (UnicodeDecodeError, yaml.YAMLError, ValueError, RecursionError) as exc:\n            raise InvalidRosterAgentPackageError(...)\n                f\"Roster Agent package {path.removesuffix('.yaml')} is invalid\"\n            ) from exc\n\n\nclass _PackageYamlLoader(yaml.SafeLoader):\n    \"\"\"Reject ambiguous mappings and aliases in untrusted package documents.\"\"\"\n\n    @override"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0010","rule_version":"1.2.0","rule_name":"Lack of Output Encoding/Sanitization","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The semgrep XSS-shaped hits (python.flask.security.audit.xss.make-response-with-unknown-content, 8 occurrences across login.py, agent_config_inspector.py, recommended_app.py, tool_providers.py, trigger_providers.py) all resolve on inspection to `make_response(dump_response(SomeTypedModel, {...}))` calls -- i.e. a structured, schema-typed JSON-shaped payload serialized through a typed response-dump helper, not raw/unescaped user input written into an HTML content-type response. The project's web frontend (React/Next.js in web/) uses JSX's default auto-escaping for rendered text and the two `render-template-string` hits (api/libs/email_template_renderer.py, api/tasks/mail_inner_task.py) go through a Jinja2 `ImmutableSandboxedEnvironment` in SANDBOX mode by default (MAIL_TEMPLATING_MODE default = SANDBOX), which blocks template-level code/attribute-traversal exploitation even if the template string itself were attacker-influenced.","vulnerability_details":null,"fix_guidance":"Keep MAIL_TEMPLATING_MODE defaulted to SANDBOX (never UNSAFE) in production configuration guidance; continue returning typed/serialized model objects from make_response rather than raw string concatenation.","why_this_matters":"Prevents UI-level injection and operator compromise.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/controllers/console/auth/login.py","start_line":173,"end_line":177,"snippet":"        response = make_response(dump_response(SimpleResultResponse, {\"result\": \"success\"}))\n        clear_access_token_from_cookie(response)\n        clear_refresh_token_from_cookie(response)\n        clear_csrf_token_from_cookie(response)\n        return response"},{"path":"api/libs/email_template_renderer.py","start_line":17,"end_line":28,"snippet":"class SandboxedEnvironment(ImmutableSandboxedEnvironment):\n    \"\"\"Sandboxed environment with execution timeout.\"\"\"\n    def __init__(self, timeout: int, *args: Any, **kwargs: Any):\n        self._deadline = time.time() + timeout if timeout else None\n        super().__init__(*args, **kwargs)\n    @override\n    def call(self, context: Context, obj: Any, *args: Any, **kwargs: Any) -> Any:\n        if self._deadline is not None and time.time() > self._deadline:\n            raise TimeoutError(\"Template rendering timeout\")\n        return super().call(context, obj, *args, **kwargs)"},{"path":"api/configs/feature/__init__.py","start_line":1155,"end_line":1158,"snippet":"    MAIL_TEMPLATING_MODE: TemplateMode = Field(\n        description=\"Template mode for email services\",\n        default=TemplateMode.SANDBOX,\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0011","rule_version":"1.4.0","rule_name":"Path Traversal & Symlink Bypass (Filesystem Tools)","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The agent CLI's skill-pull flow (dify-agent-runtime/internal/agentcli/config.go) builds the download archive path and extraction directory directly from a skill name supplied via CLI argument or a downloaded manifest, using filepath.Join(targetDir, name+\".zip\") and a matching skillDir, without checking for path separators, absolute paths, or containment within targetDir. filepath.Join normalizes '../' segments, so a name such as '../../outside' causes the resulting path to escape targetDir, and the subsequent MkdirAll/os.WriteFile calls can then create or overwrite files outside the intended skills directory. The earlier SECURE verdict considered only the UUID-keyed API upload path (which is safely indirected) and did not examine this separate CLI/manifest-driven skill-pull flow, which has no equivalent indirection or validation before the filesystem sink.","vulnerability_details":null,"fix_guidance":"Validate the skill name before it is used to build any filesystem path in config.go's skill-pull flow: reject names containing path separators or '..' segments, or that resolve (after filepath.Clean/filepath.Abs) outside targetDir, before calling filepath.Join/MkdirAll/os.WriteFile.","why_this_matters":"Traversal exposes arbitrary host files; can lead to code execution.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":56,"end_line":63,"snippet":"// RunConfigSkillsPull executes the `config skills pull` command.\nfunc RunConfigSkillsPull(env *Environment, names []string, localDir string, jsonOutput bool) error {\n\tclient, err := NewStubClient(env)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer func() { _ = client.Close() }()\n"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":76,"end_line":83,"snippet":"\t\t\t\t} `json:\"items\"`\n\t\t\t} `json:\"skills\"`\n\t\t}\n\t\tif err := json.Unmarshal(body, &manifest); err != nil {\n\t\t\treturn fmt.Errorf(\"parse manifest: %w\", err)\n\t\t}\n\t\tfor _, item := range manifest.Skills.Items {\n\t\t\tnames = append(names, item.Name)"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":104,"end_line":123,"snippet":"\t}\n\n\terr = runConfigPulls(len(names), func(index int) error {\n\t\tname := names[index]\n\t\tdownload, err := client.CreateConfigDownloadURL(ctx, \"skill\", name)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"request config skill %q download URL: %w\", name, err)\n\t\t}\n\t\tarchiveBytes, err := client.DownloadFromURL(download.DownloadURL)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"download config skill %q: %w\", name, err)\n\t\t}\n\n\t\tarchivePath := filepath.Join(targetDir, name+\".zip\")\n\t\tskillDir := filepath.Join(targetDir, name)\n\t\tif err := os.MkdirAll(skillDir, 0o755); err != nil {\n\t\t\treturn fmt.Errorf(\"create skill directory: %w\", err)\n\t\t}\n\t\tif err := os.WriteFile(archivePath, archiveBytes, 0o644); err != nil {\n\t\t\treturn fmt.Errorf(\"write archive: %w\", err)"},{"path":"dify-agent-runtime/internal/snapshot/save.go","start_line":83,"end_line":83,"snippet":"\t\t\tf, err := os.Open(p)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":763,"end_line":763,"snippet":"\tendedAtRaw, err := os.ReadFile(endedAtPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":759,"end_line":759,"snippet":"\texitCodeRaw, err := os.ReadFile(exitCodePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":106,"end_line":106,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":38,"end_line":38,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/sanitize/sanitize.go","start_line":155,"end_line":155,"snippet":"\t\tf, err := os.Create(readyFile)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/httpclient.go","start_line":72,"end_line":72,"snippet":"\treturn os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":548,"end_line":548,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":471,"end_line":471,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":133,"end_line":133,"snippet":"\t\tif data, err := os.ReadFile(skillMDPath); err == nil {","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":120,"end_line":120,"snippet":"\t\toutFile, err := os.Create(destPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":71,"end_line":71,"snippet":"\t\tfile, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":15,"end_line":15,"snippet":"\toutFile, err := os.Create(archivePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":343,"end_line":343,"snippet":"\tdata, err := os.ReadFile(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":325,"end_line":325,"snippet":"\tf, err := os.Open(scriptPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":254,"end_line":254,"snippet":"\tfile, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0600)","vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0012","rule_version":"1.2.0","rule_name":"Denial of Wallet / Cost Controls","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"Model/tool invocation paths are protected by multiple quota/budget layers: api/libs/rate_limit.py provides per-IP/account/session/email/token sliding-window rate limits applied to auth and API-bearer-token validation; FeatureService (api/services/feature_service.py referenced throughout controllers, e.g. human_input_delivery_test_service.py's `features.human_input_email_delivery_enabled` gate) enforces plan-based feature/quota gating before billable operations execute; and dataset/knowledge upload size limits (UPLOAD_FILE_SIZE_LIMIT family) bound the cost of ingestion-triggered embedding calls. The SSRF-protected HTTP client additionally bounds retries (SSRF_DEFAULT_MAX_RETRIES) and response size (buffer_response max_response_bytes), preventing unbounded retry storms or oversized-response costs on outbound calls to paid third-party APIs/model providers.","vulnerability_details":null,"fix_guidance":"Continue enforcing plan-based quotas (FeatureService) on any newly added billable/model-invocation endpoint; ensure per-tenant model-call quotas are consistently checked before each LLM/tool invocation.","why_this_matters":"Prevents cost-based disruption.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/core/helper/ssrf_proxy.py","start_line":226,"end_line":284,"snippet":"    retries = 0\n    while retries <= max_retries:\n        ...\n        retries += 1\n        if retries <= max_retries:\n            time.sleep(BACKOFF_FACTOR * (2 ** (retries - 1)))\n    raise MaxRetriesExceededError(f\"Reached maximum retries ({max_retries}) for URL {url}\")"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0013","rule_version":"1.1.0","rule_name":"Tool Output Sanitization & Injection Containment","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"low","rationale":"Dify's CoT agent runner assigns tool invocation results verbatim to scratchpad.observation and then interpolates that value verbatim into the 'Observation:' section of model-visible assistant history (api/core/agent/cot_agent_runner.py), with no sanitization, escaping, role-marker stripping, or untrusted-return annotation applied anywhere between the tool-output assignment and the point it re-enters the model's context. This allows tool-sourced content (e.g. a malicious web page or API response surfaced through a fetch/scrape-style tool) to inject text that the model treats as part of its own reasoning history, with no host-enforced trust boundary on that path.","vulnerability_details":null,"fix_guidance":"Add a sanitization/escaping layer for tool outputs before they are concatenated into the agent scratchpad: strip or neutralize control characters and fake role/system markers, and wrap tool output in an explicit untrusted-content envelope before it is interpolated into the Observation: section in cot_agent_runner.py and fc_agent_runner.py.","why_this_matters":"Tool outputs are a primary prompt-injection vector. Third-party content (web pages, files, API responses) may contain text crafted to override instructions or impersonate system/tool messages. Without a host-enforced envelope, sanitization, and an explicit untrusted-return signal, the model can be coerced into executing attacker-controlled directives, leaking secrets, or chaining further tool calls on behalf of the adversary.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0013 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/agent/cot_agent_runner.py","start_line":244,"end_line":252,"snippet":"                    tool_invoke_response, tool_invoke_meta = self._handle_invoke_action(\n                        session=session,\n                        action=scratchpad.action,\n                        tool_instances=tool_instances,\n                        message_file_ids=message_file_ids,\n                        trace_manager=trace_manager,\n                    )\n                    scratchpad.observation = tool_invoke_response\n                    scratchpad.agent_response = tool_invoke_response"},{"path":"api/core/agent/cot_agent_runner.py","start_line":400,"end_line":413,"snippet":"    def _format_assistant_message(self, agent_scratchpad: list[AgentScratchpadUnit]) -> str:\n        \"\"\"\n        format assistant message\n        \"\"\"\n        message = \"\"\n        for scratchpad in agent_scratchpad:\n            if scratchpad.is_final():\n                message += f\"Final Answer: {scratchpad.agent_response}\"\n            else:\n                message += f\"Thought: {scratchpad.thought}\\n\\n\"\n                if scratchpad.action_str:\n                    message += f\"Action: {scratchpad.action_str}\\n\\n\"\n                if scratchpad.observation:\n                    message += f\"Observation: {scratchpad.observation}\\n\\n\""}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0014","rule_version":"1.2.0","rule_name":"CI/CD Workflow Script Injection","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Reviewed all workflows using dangerous triggers (workflow_run, repository_dispatch, workflow_dispatch) for attacker-controlled interpolation into shell run blocks. The i18n translation pipeline (trigger-i18n-sync.yml -> translate-i18n-claude.yml) passes attacker-influenceable data (PR/commit content) only through typed client_payload fields consumed as quoted shell variables (BASE_SHA=\"...\"), and the PR-coverage-comment workflows (pyrefly-diff-comment.yml, pyrefly-type-coverage-comment.yml) using workflow_run only check out the DEFAULT branch (trusted code) and fetch data via the GitHub API/artifacts rather than interpolating untrusted strings directly into a run: block. The 12 semgrep yaml.github-actions.security.run-shell-injection hits (accessibility-e2e.yml, cli-e2e.yml, pyrefly-diff.yml, pyrefly-type-coverage.yml, style.yml, translate-i18n-claude.yml) all resolve to either workflow_dispatch 'choice' inputs enforced by a fixed options list, maintainer-only manual dispatch, values interpolated only within an already-double-quoted shell string consumed as data (not re-parsed/eval'd), or SHA values resolved via git/GitHub Actions context rather than free-form attacker text. No case shows a continuous source-to-sink path from an untrusted field to an unguarded shell execution with secrets/write-token exposure.","vulnerability_details":null,"fix_guidance":"Continue pinning actions by SHA (already done); keep workflow_dispatch choice-type inputs server-enforced; avoid ever switching the i18n pipeline to pull_request_target without validating client_payload fields against a strict allowlist/regex before use.","why_this_matters":"CI/CD script injection can execute attacker-controlled commands with workflow tokens, repository secrets, trusted-runner access, artifact or cache authority, and release or deployment privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":".github/workflows/translate-i18n-claude.yml","start_line":75,"end_line":95,"snippet":"if [ \"${{ github.event_name }}\" = \"repository_dispatch\" ]; then\n  BASE_SHA=\"${{ github.event.client_payload.base_sha }}\"\n  HEAD_SHA=\"${{ github.event.client_payload.head_sha }}\"\n  CHANGED_FILES=\"${{ github.event.client_payload.changed_files }}\"\n  ...\n  if [ -n \"${{ github.event.client_payload.changes_base64 }}\" ]; then\n    printf '%s' '${{ github.event.client_payload.changes_base64 }}' | base64 -d > /tmp/i18n-changes.json"},{"path":".github/workflows/pyrefly-type-coverage-comment.yml","start_line":20,"end_line":29,"snippet":"if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.pull_requests[0].head.repo.full_name != github.repository }}\nsteps:\n  - name: Checkout default branch (trusted code)\n    uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-R0001","rule_version":"1.3.0","rule_name":"Weaponization: Malicious-Purpose Artifact (Offensive Capability by Design)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Investigated all 3 YARA matches flagged repo-wide. (1) api/configs/remote_settings_sources/apollo/utils.py:46-47 'Zeus_Malware_Reverse_Shell' -- this is a UDP connect()-to-8.8.8.8 trick used purely to discover the machine's outbound-facing local IP address for Apollo remote-config client registration; there is no socket-to-shell wiring, no subprocess/exec, no network listener -- a benign, extremely common Python idiom misidentified by the socket+connect co-occurrence heuristic. (2) dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py:57-61 -- a pytest fixture that spawns a throwaway, loopback-bound (127.0.0.1) redis-server subprocess for an integration test and tears it down in a finally block; it is test infrastructure, not an operational reverse shell (no socket piped to a shell, no attacker-facing listener). (3) e2e/AGENTS.md:26-56 'tool_poisoning secondary-objective wide-span' match itself carries confidence 25 and is explicitly annotated by the scanner as 'likely ordinary prose, not a poisoned tool description' -- reading the cited span confirms it is contributor-facing documentation about E2E test runner architecture (tags, seeds, cleanup) with zero instructions directing model/agent behavior, no injected directives, and no secondary objective. Dify's overall product is a LLM app-development/agent-orchestration platform (not an offensive-security tool), and none of its shipped code, skills, or agent instructions direct generation of malware/exploits/credential theft or mass-abuse tooling.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact whose purpose is to weaponize the agent -- to produce malware, steal credentials, evade defenses, or run attacks at scale -- is dangerous regardless of how securely it is built; posture controls (auth, input validation, least privilege) cannot make a weapon safe, which is why a confirmed weaponization finding caps the trust verdict to `blocked` rather than being averaged against a good posture score. Catching malicious PURPOSE is a distinct safety control, and it must be conservative because offensive capability is dual-use: legitimate pentest, CTF, defensive, and research work must abstain (UNKNOWN), never block -- unless the artifact itself hides from the people who install, run or audit it.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"api/configs/remote_settings_sources/apollo/utils.py","start_line":42,"end_line":52,"snippet":"def init_ip() -> str:\n    ip = \"\"\n    s = None\n    try:\n        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n        s.connect((\"8.8.8.8\", 53))\n        ip = s.getsockname()[0]\n    finally:\n        if s:\n            s.close()\n    return ip","vulnerability":{}},{"path":"dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py","start_line":50,"end_line":76,"snippet":"@pytest.fixture\ndef redis_url() -> Iterator[str]:\n    \"\"\"Start an isolated Redis when the binary is available locally.\"\"\"\n    redis_server = shutil.which(\"redis-server\")\n    if redis_server is None:\n        pytest.skip(\"redis-server is required for run terminal integration tests\")\n    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as probe:\n        probe.bind((\"127.0.0.1\", 0))\n        port = probe.getsockname()[1]\n    process = subprocess.Popen(  # noqa: S603\n        [redis_server, \"--bind\", \"127.0.0.1\", \"--port\", str(port), \"--save\", \"\", \"--appendonly\", \"no\"],\n        stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT,\n    )","vulnerability":{}},{"path":"e2e/AGENTS.md","start_line":26,"end_line":56,"snippet":"- Generate disposable resource names through `support/naming.ts` with an `E2E` prefix.\n- Keep deterministic upload material in `fixtures/test-materials/`...\n- Seed scripts own shared long-lived fixtures; scenarios own disposable resources...\n- Use typed `DifyWorld` cleanup fields... Registered callbacks run LIFO after typed cleanup queues.\n- Remove child and referencing resources before owners. Attach cleanup failures to the report instead of swallowing them.\n(contributor-facing E2E test architecture doc; no agent-directed secondary objective)","vulnerability":{}}],"affected_tools":null,"component_name":null}],"component_tools":[],"summary":{"high_level_risks":["Known CVEs in pinned dependency versions, notably chromadb==0.5.20 (CVE-2026-45833 CRITICAL, plus two HIGH CVEs) with no fix currently available, and additional HIGH CVEs in pydantic-ai-slim, golang.org/x/mod, and socket.io-parser (ATR-C0007, HIGH).","Hardcoded default secrets shipped in docker-compose.yaml/docker-compose-template.yaml (PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY, DIFY_AGENT_SERVER_SECRET_KEY, MINIO_SECRET_KEY) take effect on any deployment that does not override them, giving a publicly-known static credential for internal plugin-daemon/inner-API/object-storage channels (ATR-C0002, HIGH).","Dify's app-as-MCP-server feature (api/controllers/mcp/mcp.py, api/core/mcp/server/streamable_http.py) exposes a remote streamable-HTTP MCP endpoint gated solely by a 16-char CSPRNG 'server_code' embedded in the URL path -- there is no standard Authorization/Bearer check, no OAuth 2.1/PKCE flow, and no rate limiting on the server_code lookup, making it a bearer-URL style credential with brute-force risk and typical URL-secret leakage via proxy/access logs and Referer headers.","The `mcp` Flask blueprint is the only blueprint registered in extensions/ext_blueprints.py with NO CORS/Origin policy applied, leaving no Origin/Host validation in front of a host-side-effectful endpoint that invokes full Dify app generation.","A password-reset / sensitive auth token is logged in full at WARNING level in api/libs/helper.py TokenManager.get_token_data, exposing a usable account-takeover credential to anyone with log access (ATR-C0005, MEDIUM).","The reference deployment ships insecure-by-default transport settings: the API container's gunicorn process binds 0.0.0.0 with no TLS, and NGINX_HTTPS_ENABLED defaults to false in docker/docker-compose.yaml / docker/.env.example, making TLS opt-in rather than mandatory.","Insecure deserialization (pickle) used for the RAG embedding cache column; the stored BLOB has no integrity binding, so any future write primitive against that column becomes an RCE vector (ATR-C0009).","Auxiliary/dev container images (docker/couchbase-server/Dockerfile, .devcontainer/Dockerfile) run as root and/or use a floating ':latest' base tag, unlike the hardened production api/Dockerfile and web/Dockerfile (ATR-C0006, MEDIUM).","Tool-output-to-LLM-context sanitization (ATR-C0013) could not be fully verified across the plugin-daemon boundary; the agent scratchpad/Observation concatenation path and plugin-daemon tool-result boundary lack confirmed control-character/injection-marker stripping.","skills/difyctl destructive operations (remove/revoke) have no enforced confirmation prompt, relying on the model volunteering confirmation rather than enforcing it in the agent harness."],"top_remediations":["Upgrade or disable the chromadb vector-store provider pending a fix for CVE-2026-45833/45830/45831; upgrade pydantic-ai-slim, golang.org/x/mod, and socket.io-parser to patched versions.","Remove hardcoded fallback secret values from docker-compose*.yaml; fail-fast or auto-generate random secrets on first run instead.","Add OAuth 2.1 (with PKCE) as the primary authorization mechanism for the inbound MCP server endpoint, or at minimum require a standard Authorization header bearer token in addition to server_code, plus rate limiting/lockout on failed server_code lookups.","Apply an explicit CORS/Origin allowlist (or host-based validation) to the `mcp` Flask blueprint consistent with the other blueprints in extensions/ext_blueprints.py.","Stop logging raw token values in api/libs/helper.py TokenManager.get_token_data; log only a hash/prefix or the Redis key.","Make TLS mandatory (NGINX_HTTPS_ENABLED default true) for any deployment exposing MCP/API endpoints beyond localhost, and default DIFY_BIND_ADDRESS to loopback for standalone (non-compose) runs.","Replace pickle-based embedding serialization with a safe format (numpy tobytes/JSON) as defense-in-depth against any future write-path compromise.","Add non-root USER directives and pin a specific (non-'latest') base image tag for docker/couchbase-server/Dockerfile and .devcontainer/Dockerfile; add HEALTHCHECK to all shipped Dockerfiles.","Conduct a focused audit of the tool-output-to-context concatenation path (agent scratchpad Observation field) and the plugin-daemon boundary for control-character/prompt-injection-marker sanitization.","Harden skills/difyctl's destructive-operation guidance into an enforced confirmation gate in the surrounding agent harness."]},"rollup":{"component_findings_count":{"vulnerable":0,"secure":6,"not_applicable":2},"repo_findings_inherited_count":{"vulnerable":7,"secure":8,"not_applicable":0},"component_tools_count":{},"worst_case_severity":"HIGH"},"trust_scores":{"repo_level":{"score":25,"tier":"critical","capability_band":"extreme","score_confidence":"low","score_interval":{"low":8,"high":42},"factors":["ATR-M0003 HIGH","ATR-M0009 HIGH","ATR-C0001 HIGH","ATR-C0002 HIGH","ATR-C0005 MEDIUM","ATR-C0006 MEDIUM","ATR-C0007 HIGH","ATR-C0011 HIGH","ATR-C0013 HIGH"]},"component_level":{"score":100,"tier":"high","capability_band":"minimal","score_confidence":"high","score_interval":{"low":96,"high":100},"factors":[]}}},{"artifact_version":"2.0","component":{"component_type":"skill","component_name":"skills-plugins/skills/difyctl","component_path":"skills/difyctl","metadata":{"manifest":"SKILL.md"}},"scan_provenance":{"scanned_at":"2026-10-14T23:52:06.135Z","resolved_ref":"f77facfe6520ed379d723288aed0b4806ad76143","resolved_ver":null},"repo_context":{"repo_url":"https://github.com/langgenius/dify","languages":["Python","TypeScript","JavaScript","Go","Dockerfile"],"transports_detected":["stdio","sse","streamable_http"],"deployment_artifacts":["docker/docker-compose.yaml","docker/Dockerfile","api/Dockerfile","web/Dockerfile","docker/docker-compose.middleware.yaml"],"provenance":{"publisher":"langgenius","publisher_verified":true,"signed_build":false,"dependency_cve_count":34,"maintenance_active":true,"declared_policy":false}},"component_findings":[{"rule_id":"ATR-P0001","rule_version":"1.0.0","rule_name":"Capability Transparency: Declared Purpose vs. Actual Behavior (Shadow Features)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"difyctl SKILL.md declares its purpose (discover/run Dify server operations via CLI) and documents its full behavior including auth, destructive-op handling, and sub-skill installation; no hidden or undeclared capability is present in the manifest text itself.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Install-time trust is granted from the artifact's self-description, so any bundled capability the description does not disclose -- network egress, credential reads, or subprocess execution -- runs as an unconsented backdoor with the host agent's full privileges.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"skills/difyctl/SKILL.md","start_line":1,"end_line":11,"snippet":"---\nname: difyctl\ndescription: 'Base skill for the difyctl CLI: find any command or Dify operation through help and run it as a command. Use when the task involves difyctl or a Dify server from the command line.'\n---\n\n# difyctl\n\ndifyctl talks to a Dify server. Business commands are not built in: the server publishes a catalog of operations, and each one is a command you discover at run time.\n\nAlways pass `--json`. Help and errors are text on a terminal and JSON in a pipe; `--json` (or `DIFY_OUTPUT=json`) forces JSON. Results and streams are always JSON."}],"affected_tools":null,"component_name":"skills-plugins/skills/difyctl"},{"rule_id":"ATR-P0002","rule_version":"1.0.0","rule_name":"Consent Suppression and Guardrail / Human-in-the-Loop Subversion via Trusted Instructions","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"medium","rationale":"Before any remove/revoke operation, the skill text imperatively requires confirming with the person first; this is an explicit user-confirmation requirement, not an instruction that suppresses or bypasses consent.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Because a skill/plugin instruction body is ingested as trusted first-party context, consent- or oversight-suppressing prose inherits the host's full authority and turns a passive package into a self-authorizing backdoor that strips the human-in-the-loop control from every action it can reach.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"skills/difyctl/SKILL.md","start_line":53,"end_line":55,"snippet":"## Destructive operations\n\nOperations that remove or revoke have no confirmation prompt. Confirm with the person first."}],"affected_tools":null,"component_name":"skills-plugins/skills/difyctl"},{"rule_id":"ATR-P0003","rule_version":"1.2.0","rule_name":"Host-Credential and Conversation-Context Harvesting and Exfiltration","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"difyctl stores its auth token via OS keyring by default (or a local file with --no-keyring, an explicit opt-in documented to the user), and sends it only to the Dify server the user explicitly configured via --server; there is no instruction to transmit the token or conversation context to any third party or undisclosed destination.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin that couples a host-credential or live-conversation read with an outbound channel turns an ostensibly benign helper into an autonomous exfiltration agent, leaking long-lived secrets, session tokens, and confidential prompt context to an attacker on every invocation across every tool the artifact serves.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"skills/difyctl/SKILL.md","start_line":47,"end_line":51,"snippet":"`difyctl login --server https://...` (device flow; `--no-browser` prints the URL and code; `--no-keyring` keeps the token in a file; `--insecure` skips TLS verification). One login at a time. `difyctl use workspace <id>` pins a workspace; `difyctl get workspace` shows them. Scripts skip login with `DIFY_SERVER` and `DIFY_TOKEN`; `DIFY_WORKSPACE_ID` overrides the pin; `DIFY_CONFIG_DIR` and `DIFY_CACHE_DIR` move the files."}],"affected_tools":null,"component_name":"skills-plugins/skills/difyctl"},{"rule_id":"ATR-P0004","rule_version":"1.1.0","rule_name":"Format-Native Out-of-Band Execution and Host Control-Plane Persistence","finding":"NOT_APPLICABLE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"This component ships only SKILL.md prose describing ordinary model-directed CLI invocation; it contains no script, lifecycle hook, entry point, host config, dotenv, git hook, or exec-enabling/endpoint-substituting assignment that would bring it into this rule's scope.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Format-native execution and control-plane writes bypass the model's reasoning loop, converting a single install approval into durable, self-reinjecting code execution that can MITM the host agent's own model endpoint and silently subvert every subsequent tool call.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"skills/difyctl/SKILL.md","start_line":47,"end_line":51,"snippet":"`difyctl login --server https://...` (device flow; `--no-browser` prints the URL and code; `--no-keyring` keeps the token in a file; `--insecure` skips TLS verification). ... `DIFY_CONFIG_DIR` and `DIFY_CACHE_DIR` move the files.\n\n`login` blocks until the browser approval arrives. Run `difyctl login --server <url> --no-browser` as a background job, relay the `open <url>` and `code <code>` lines from its stderr to the user, and do not cancel the job."}],"affected_tools":null,"component_name":"skills-plugins/skills/difyctl"},{"rule_id":"ATR-P0005","rule_version":"1.0.0","rule_name":"Over-Declared / Over-Privileged Artifact Manifest Scope","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"difyctl's declared scope is broad (any Dify server operation the server's own catalog exposes) but that breadth is the explicit, disclosed purpose of the tool -- a generic CLI client to the Dify server's own operation catalog -- not an undisclosed over-grant beyond its stated purpose. The server-side RBAC of the Dify API (console/service-api auth) bounds what operations are actually available to the authenticated user, and difyctl itself requests no filesystem/OS capability beyond reading local config/cache dirs and files the user explicitly passes.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact that self-declares host privilege far beyond its stated function -- or hides executable reach inside a passive-looking package -- gives a single install a blast radius the operator never scoped, so any later mistake, compromise, or misconfiguration detonates across resources the artifact never needed.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"skills/difyctl/SKILL.md","start_line":3,"end_line":3,"snippet":"description: 'Base skill for the difyctl CLI: find any command or Dify operation through help and run it as a command. Use when the task involves difyctl or a Dify server from the command line.'"}],"affected_tools":null,"component_name":"skills-plugins/skills/difyctl"},{"rule_id":"ATR-P0006","rule_version":"1.1.0","rule_name":"Injection and Concealed Directives in Skill/Plugin Manifest and Instruction Text","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"low","rationale":"No concealed/injected directives found; full manifest reviewed as plain prose documenting CLI usage.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill or plugin's always-loaded manifest and instruction carriers (frontmatter/body, `description_for_model`, Gemini `FunctionDeclaration.description` / Vertex AI extension `manifest` / ADK agent `instruction`, tool docstrings, JSON-Schema descriptions) are concatenated into the host agent prompt at operator privilege, so a directive that is hidden with non-printing codepoints, disguised with a homoglyph, forged with role-control tokens, or masked from the rendered view silently commandeers model behavior toward attacker-chosen actions across every tool the artifact serves -- with no code execution required and nothing visible to a reviewer reading the rendered text.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"skills/difyctl/SKILL.md","start_line":1,"end_line":59,"snippet":"(full file reviewed; plain markdown prose, no hidden/zero-width characters or concealed directives found)"}],"affected_tools":null,"component_name":"skills-plugins/skills/difyctl"},{"rule_id":"ATR-P0007","rule_version":"1.0.0","rule_name":"Skill/Plugin Package Provenance, Integrity, and Post-Approval Mutation (Rug-Pull)","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"low","rationale":"Repository documentation establishes that default skill installation is pinned to the commit the difyctl binary was built from, and refresh of installed skills occurs only through an explicit user-invoked rerun after upgrading difyctl; this is neither silent post-approval mutation nor an unpinned runtime fetch.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"A skill/plugin reviewed once and then trusted indefinitely becomes a rug-pull vector when its OWN model-facing instruction body, declared scope, or manifest can be live-swapped or silently mutated after approval -- without an approval-time digest that is re-compared on load and re-consent on any change, a publisher (or an attacker who compromises the distribution channel) can rewrite the artifact's trusted instructions or widen its tool scope under authority the host already granted, turning an approved package into an exfiltration or unauthorized-action backdoor.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"skills/difyctl/SKILL.md","start_line":57,"end_line":59,"snippet":"## Other skills\n\nScenario skills add guidance for one kind of task. `difyctl get skills` shows them; `difyctl install skills <skills root> --skill <name>` installs one, where `<skills root>` is the folder above this file's folder. Re-running `difyctl install skills <skills root>` after upgrading difyctl refreshes every skill."}],"affected_tools":null,"component_name":"skills-plugins/skills/difyctl"},{"rule_id":"ATR-P0008","rule_version":"1.0.0","rule_name":"Skill/Plugin Impersonation, Typosquatting & Publisher Spoofing","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"high","rationale":"difyctl is the first-party CLI for the Dify project itself, shipped in the Dify repo; its name accurately identifies its own first-party product, not an impersonation of a distinct third party.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"Impersonation is the entry point of the agentic supply chain (OWASP LLM ASI04 / MITRE ATT&CK T1195): a skill or plugin installed on the strength of a familiar name inherits the host agent's execution context before any payload runs. The deception front-runs trust, so catching the identity lie breaks the chain at the cheapest point -- and it is independent of whether the current code is benign, because the same trusted-looking name can ship a payload in the next version.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"skills/difyctl/SKILL.md","start_line":2,"end_line":4,"snippet":"---\nname: difyctl\ndescription: 'Base skill for the difyctl CLI: find any command or Dify operation through help and run it as a command. Use when the task involves difyctl or a Dify server from the command line.'\n---"}],"affected_tools":null,"component_name":"skills-plugins/skills/difyctl"}],"repo_findings_inherited":[{"rule_id":"ATR-C0001","rule_version":"1.2.0","rule_name":"Unrestricted Network Fetch / SSRF","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The outbound HTTP client used for custom tool invocations and HTTP Request nodes falls back to a direct httpx client whenever SSRF_PROXY_HTTP_URL/SSRF_PROXY_HTTPS_URL are unset (they default to None in api/core/helper/ssrf_proxy.py), meaning the SSRF-blocking Squid proxy is an opt-in deployment choice rather than a code-enforced control. The custom-tool invocation path (api/core/tools/custom_tool/tool.py) dispatches the tool's configured server URL through this client with no in-code destination gate (no check against private/loopback/link-local ranges) before the request is sent. A deployment that does not explicitly configure the SSRF proxy environment variables -- which is possible under the project's supported configuration surface, not just the shipped Compose example -- allows a custom tool's configured URL to reach internal or private network destinations unguarded.","vulnerability_details":null,"fix_guidance":"Enforce SSRF protection in code rather than relying solely on an external proxy default: add a destination-validation check (reject private/loopback/link-local IP ranges) directly in the HTTP client construction path in api/core/helper/ssrf_proxy.py so protection applies even when SSRF_PROXY_HTTP_URL/HTTPS_URL are unset, and add an explicit gate in the custom-tool dispatch path in api/core/tools/custom_tool/tool.py before the configured server URL is fetched.","why_this_matters":"Enables internal pivoting and data exfiltration.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/tools/custom_tool/tool.py","start_line":65,"end_line":76,"snippet":"        self, credentials: dict[str, Any], parameters: dict[str, Any], format_only: bool = False\n    ) -> str:\n        \"\"\"\n        validate the credentials for Api tool\n        \"\"\"\n        # assemble validate request and request parameters\n        headers = self.assembling_request(parameters)\n\n        if format_only:\n            return \"\"\n\n        response = self.do_http_request(self.api_bundle.server_url, self.api_bundle.method, headers, parameters)"},{"path":"api/configs/feature/__init__.py","start_line":725,"end_line":738,"snippet":"    SSRF_PROXY_ALL_URL: str | None = Field(\n        description=\"Proxy URL for HTTP or HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTP_URL: str | None = Field(\n        description=\"Proxy URL for HTTP requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )\n\n    SSRF_PROXY_HTTPS_URL: str | None = Field(\n        description=\"Proxy URL for HTTPS requests to prevent Server-Side Request Forgery (SSRF)\",\n        default=None,\n    )"},{"path":"api/core/helper/ssrf_proxy.py","start_line":86,"end_line":101,"snippet":"def _build_ssrf_client(verify: bool) -> httpx.Client:\n    if dify_config.SSRF_PROXY_ALL_URL:\n        return httpx.Client(\n            proxy=dify_config.SSRF_PROXY_ALL_URL,\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    if dify_config.SSRF_PROXY_HTTP_URL and dify_config.SSRF_PROXY_HTTPS_URL:\n        return httpx.Client(\n            mounts=_create_proxy_mounts(verify=verify),\n            verify=verify,\n            limits=_SSRF_CLIENT_LIMITS,\n        )\n\n    return httpx.Client(verify=verify, limits=_SSRF_CLIENT_LIMITS)"},{"path":"api/core/tools/custom_tool/tool.py","start_line":292,"end_line":306,"snippet":"            raise ValueError(f\"Invalid http method {method}\")\n        response: httpx.Response = _METHOD_MAP[\n            method_lc\n        ](  # https://discuss.python.org/t/type-inference-for-function-return-types/42926\n            url,\n            max_retries=0,\n            params=params,\n            headers=headers,\n            cookies=cookies,\n            data=body,\n            files=files,\n            timeout=API_TOOL_DEFAULT_TIMEOUT,\n            follow_redirects=True,\n        )\n        return response"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0002","rule_version":"1.3.2","rule_name":"Static Secrets","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"docker-compose.yaml and docker-compose-template.yaml ship REAL-LOOKING hardcoded default secret VALUES for inter-service authentication that take effect the moment an operator runs `docker compose up` without overriding the env vars: PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY default to the fixed base64-looking string 'lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi' / 'QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1' (identical across every public clone of the repo), DIFY_AGENT_SERVER_SECRET_KEY defaults to the fixed hex string '0123456789abcdef0123456789abcdef', and MINIO_SECRET_KEY defaults to 'minioadmin'. These are not placeholder/empty values in a .env.example (which would be the negative case) -- they are live fallback defaults baked directly into the shipped docker-compose YAML that is the project's documented one-command quick-start path, so any internet-reachable deployment that forgets to override them authenticates its internal plugin-daemon/inner-API channel and MinIO object storage with a publicly known static secret. This matches the rule's positive_indicator 'default changeme-style value' and its CWE-798/312 class directly.","vulnerability_details":"docker/docker-compose.yaml uses shell-style `${VAR:-default}` substitution where `default` is a concrete, realistic-looking secret baked into the committed YAML (not a placeholder like 'changeme' or empty string), for PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY/INNER_API_KEY_FOR_PLUGIN, DIFY_AGENT_SERVER_SECRET_KEY, and MINIO_SECRET_KEY. Any deployment that does not explicitly set these environment variables before `docker compose up` will run with these known-to-the-public credentials protecting the plugin-daemon <-> API inner channel and the MinIO backing store, letting anyone with network access to those internal ports (e.g. via SSRF, container escape, or a misconfigured network) authenticate as a trusted internal service.","fix_guidance":"Remove hardcoded fallback values from docker-compose for PLUGIN_DAEMON_KEY/PLUGIN_DIFY_INNER_API_KEY/DIFY_AGENT_SERVER_SECRET_KEY/MINIO_SECRET_KEY; instead fail fast (or auto-generate a random secret at first-run via an init script) when the operator has not supplied a value, so no installation ever runs with a secret value that is identical and publicly known across every Dify deployment.","why_this_matters":"Plaintext secrets are easily exfiltrated.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0002 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/docker-compose.yaml","start_line":600,"end_line":604,"snippet":"      SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}\n      ...\n      DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":688,"end_line":688,"snippet":"      DIFY_AGENT_SERVER_SECRET_KEY: ${DIFY_AGENT_SERVER_SECRET_KEY:[REDACTED]}"},{"path":"docker/docker-compose.yaml","start_line":1104,"end_line":1104,"snippet":"      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}"},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":16,"end_line":17,"snippet":"PLUGIN_DAEMON_KEY=[REDACTED]\nPLUGIN_DIFY_INNER_API_KEY=[REDACTED]"},{"path":"api/Dockerfile","start_line":57,"end_line":57,"snippet":"ARG NODESOURCE_KEY_FPR=6F71F525282841EEDAF851B42F59B5F99B1BE0B4","vulnerability":{}},{"path":"api/.env.example","start_line":239,"end_line":239,"snippet":"# Prefix used to create collection name in vector database","vulnerability":{}},{"path":"api/.env.example","start_line":701,"end_line":701,"snippet":"POSITION_TOOL_EXCLUDES=","vulnerability":{}},{"path":"api/.env.example","start_line":715,"end_line":715,"snippet":"PLUGIN_MODEL_PROVIDERS_CACHE_TTL=86400","vulnerability":{}},{"path":"api/knowledge-fs-contract.lock.json","start_line":3,"end_line":3,"snippet":"  \"openapiSha256\": \"f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb\",","vulnerability":{}},{"path":"api/providers/vdb/vdb-alibabacloud-mysql/pyproject.toml","start_line":10,"end_line":10,"snippet":"alibabacloud_mysql = \"dify_vdb_alibabacloud_mysql.alibabacloud_mysql_vector:AlibabaCloudMySQLVectorFactory\"","vulnerability":{}},{"path":"api/services/agent/package_resource_exporter.py","start_line":257,"end_line":257,"snippet":"                    try:","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":30,"end_line":30,"snippet":"DIFY_AGENT_PLUGIN_DAEMON_API_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":36,"end_line":36,"snippet":"DIFY_AGENT_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"dify-agent/.example.env","start_line":91,"end_line":91,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"dify-agent/docs/dify-agent/guide/index.md","start_line":151,"end_line":151,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/worker.env.example","start_line":10,"end_line":10,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/api.env.example","start_line":13,"end_line":13,"snippet":"INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":165,"end_line":165,"snippet":"WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":174,"end_line":174,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/.env.example","start_line":224,"end_line":224,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/.env.example","start_line":234,"end_line":234,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/.env.example","start_line":280,"end_line":280,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/core-services/plugin-daemon.env.example","start_line":17,"end_line":17,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/core-services/dify-agent.env.example","start_line":118,"end_line":118,"snippet":"DIFY_AGENT_SERVER_SECRET_KEY=MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY","vulnerability":{}},{"path":"docker/envs/security.env.example","start_line":28,"end_line":29,"snippet":"OTLP_API_KEY=\nBAIDU_VECTOR_DB_API_KEY=dify","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":133,"end_line":133,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":166,"end_line":166,"snippet":"PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi","vulnerability":{}},{"path":"docker/envs/middleware.env.example","start_line":179,"end_line":179,"snippet":"PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1","vulnerability":{}},{"path":"docker/envs/vectorstores/weaviate.env.example","start_line":11,"end_line":11,"snippet":"WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":204,"end_line":205,"snippet":"SENDGRID_API_KEY=\nINVITE_EXPIRY_HOURS=72","vulnerability":{}},{"path":"docker/envs/core-services/shared.env.example","start_line":495,"end_line":495,"snippet":"VECTOR_STORE=weaviate","vulnerability":{}},{"path":"docker/docker-compose.yaml","start_line":1273,"end_line":1273,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"docker/docker-compose-template.yaml","start_line":1267,"end_line":1267,"snippet":"      - elasticsearch","vulnerability":{}},{"path":"packages/contracts/generated/knowledge-fs/metadata.gen.ts","start_line":4,"end_line":5,"snippet":"export const knowledgeFsSourceOpenapiSha256 =\n  'f18910e9c45a64f0855e0643a7a626fb2889021b4f943458de86c6bd2469facb'","vulnerability":{}},{"path":"web/public/vs/editor/editor.main.js","start_line":631,"end_line":631,"snippet":"`))}}e.Trace=t}),define(ne[689],se([1,0,8,247,140]),function(oe,e,d,k,I){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.BaseResolvedKeybinding=void 0;class E extends I.ResolvedKeybinding{constructor(m,_){if(super(),_.length===0)throw(0,d.illegalArgument)(\"chords\");this._os=m,this._chords=_}getLabel(){return k.UILabelProvider.toLabel(this._os,this._chords,m=>this._getLabel(m))}getAriaLabel(){return k.AriaLabelProvider.toLabel(this._os,this._chords,m=>this._getAriaLabel(m))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:k.ElectronAcceleratorLabelProvider.toLabel(this._os,this._chords,m=>this._getElectronAccelerator(m))}getUserSettingsLabel(){return k.UserSettingsLabelProvider.toLabel(this._os,this._chords,m=>this._getUserSettingsLabel(m))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(m=>this._getChord(m))}_getChord(m){return new I.ResolvedChord(m.ctrlKey,m.shiftKey,m.altKey,m.metaKey,this._getLabel(m),this._getAriaLabel(m))}getDispatchChords(){return this._chords.map(m=>this._getChordDispatch(m))}getSingleModifierDispatchChords(){return this._chords.map(m=>this._getSingleModifierChordDispatch(m))}}e.BaseResolvedKeybinding=E}),define(ne[31],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,d.createDecorator)(\"keybindingService\")}),define(ne[391],se([1,0,5,174,2,31]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorHoverStatusBar=void 0;const y=d.$;let m=class extends I.Disposable{get hasContent(){return this._hasContent}constructor(b){super(),this._keybindingService=b,this.actions=[],this._hasContent=!1,this.hoverElement=y(\"div.hover-row.status-bar\"),this.hoverElement.tabIndex=0,this.actionsElement=d.append(this.hoverElement,y(\"div.actions\"))}addAction(b){const p=this._keybindingService.lookupKeybinding(b.commandId),n=p?p.getLabel():null;this._hasContent=!0;const o=this._register(k.HoverAction.render(this.actionsElement,b,n));return this.actions.push(o),o}append(b){const p=d.append(this.actionsElement,b);return this._hasContent=!0,p}};e.EditorHoverStatusBar=m,e.EditorHoverStatusBar=m=ke([ce(0,E.IKeybindingService)],m)}),define(ne[690],se([1,0,5,31,670,12,28,61,20,174,6]),function(oe,e,d,k,I,E,y,m,_,b,p){\"use strict\";var n;Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContentHoverWidget=void 0;const o=30,t=6;let i=class extends I.ResizableContentWidget{static{n=this}static{this.ID=\"editor.contrib.resizableContentHoverWidget\"}static{this._lastDimensions=new d.Dimension(0,0)}get isVisibleFromKeyboard(){return this._renderedHover?.source===1}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(c,l,a,r,u){const C=c.getOption(67)+8,f=150,h=new d.Dimension(f,C);super(c,h),this._configurationService=a,this._accessibilityService=r,this._keybindingService=u,this._hover=this._register(new b.HoverWidget),this._onDidResize=this._register(new p.Emitter),this.onDidResize=this._onDidResize.event,this._minimumSize=h,this._hoverVisibleKey=_.EditorContextKeys.hoverVisible.bindTo(l),this._hoverFocusedKey=_.EditorContextKeys.hoverFocused.bindTo(l),d.append(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex=\"50\",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(w=>{w.hasChanged(50)&&this._updateFont()}));const v=this._register(d.trackFocus(this._resizableNode.domNode));this._register(v.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(v.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return n.ID}static _applyDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.width=r,c.style.height=u}_setContentsDomNodeDimensions(c,l){const a=this._hover.contentsDomNode;return n._applyDimensions(a,c,l)}_setContainerDomNodeDimensions(c,l){const a=this._hover.containerDomNode;return n._applyDimensions(a,c,l)}_setHoverWidgetDimensions(c,l){this._setContentsDomNodeDimensions(c,l),this._setContainerDomNodeDimensions(c,l),this._layoutContentWidget()}static _applyMaxDimensions(c,l,a){const r=typeof l==\"number\"?`${l}px`:l,u=typeof a==\"number\"?`${a}px`:a;c.style.maxWidth=r,c.style.maxHeight=u}_setHoverWidgetMaxDimensions(c,l){n._applyMaxDimensions(this._hover.contentsDomNode,c,l),n._applyMaxDimensions(this._hover.containerDomNode,c,l),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-maxWidth\",typeof c==\"number\"?`${c}px`:c),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(c){this._setHoverWidgetMaxDimensions(\"none\",\"none\");const l=c.width,a=c.height;this._setHoverWidgetDimensions(l,a)}_updateResizableNodeMaxDimensions(){const c=this._findMaximumRenderingWidth()??1/0,l=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new d.Dimension(c,l),this._setHoverWidgetMaxDimensions(c,l)}_resize(c){n._lastDimensions=new d.Dimension(c.width,c.height),this._setAdjustedHoverWidgetDimensions(c),this._resizableNode.layout(c.height,c.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const c=this._renderedHover?.showAtPosition;if(c)return this._positionPreference===1?this._availableVerticalSpaceAbove(c):this._availableVerticalSpaceBelow(c)}_findMaximumRenderingHeight(){const c=this._findAvailableSpaceVertically();if(!c)return;let l=t;return Array.from(this._hover.contentsDomNode.children).forEach(a=>{l+=a.clientHeight}),Math.min(c,l)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty(\"--vscode-hover-whiteSpace\",\"nowrap\"),this._hover.containerDomNode.style.setProperty(\"--vscode-hover-sourceWhiteSpace\",\"nowrap\");const c=Array.from(this._hover.contentsDomNode.children).some(l=>l.scrollWidth>l.clientWidth);return this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-whiteSpace\"),this._hover.containerDomNode.style.removeProperty(\"--vscode-hover-sourceWhiteSpace\"),c}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const c=this._isHoverTextOverflowing(),l=typeof this._contentWidth>\"u\"?0:this._contentWidth-2;return c||this._hover.containerDomNode.clientWidth<l?d.getClientArea(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(c,l){if(!this._renderedHover)return!1;if(this._renderedHover.initialMousePosX===void 0||this._renderedHover.initialMousePosY===void 0)return this._renderedHover.initialMousePosX=c,this._renderedHover.initialMousePosY=l,!1;const a=d.getDomNodePagePosition(this.getDomNode());this._renderedHover.closestMouseDistance===void 0&&(this._renderedHover.closestMouseDistance=s(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,a.left,a.top,a.width,a.height));const r=s(c,l,a.left,a.top,a.width,a.height);return r>this._renderedHover.closestMouseDistance+4?!1:(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,r),!0)}_setRenderedHover(c){this._renderedHover?.dispose(),this._renderedHover=c,this._hoverVisibleKey.set(!!c),this._hover.containerDomNode.classList.toggle(\"hidden\",!c)}_updateFont(){const{fontSize:c,lineHeight:l}=this._editor.getOption(50),a=this._hover.contentsDomNode;a.style.fontSize=`${c}px`,a.style.lineHeight=`${l/c}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName(\"code\")).forEach(u=>this._editor.applyFontInfo(u))}_updateContent(c){const l=this._hover.contentsDomNode;l.style.paddingBottom=\"\",l.textContent=\"\",l.appendChild(c)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const c=Math.max(this._editor.getLayoutInfo().height/4,250,n._lastDimensions.height),l=Math.max(this._editor.getLayoutInfo().width*.66,500,n._lastDimensions.width);this._setHoverWidgetMaxDimensions(l,c)}_render(c){this._setRenderedHover(c),this._updateFont(),this._updateContent(c.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(c){if(!this._editor||!this._editor.hasModel())return;this._render(c);const l=d.getTotalHeight(this._hover.containerDomNode),a=c.showAtPosition;this._positionPreference=this._findPositionPreference(l,a)??1,this.onContentsChanged(),c.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const u=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,b.getHoverAccessibleViewHint)(this._configurationService.getValue(\"accessibility.verbosity.hover\")===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding(\"editor.action.accessibleView\")?.getAriaLabel()??\"\");u&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+\", \"+u)}hide(){if(!this._renderedHover)return;const c=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new d.Dimension(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),c&&this._editor.focus()}_removeConstraintsRenderNormally(){const c=this._editor.getLayoutInfo();this._resizableNode.layout(c.height,c.width),this._setHoverWidgetDimensions(\"auto\",\"auto\")}setMinimumDimensions(c){this._minimumSize=new d.Dimension(Math.max(this._minimumSize.width,c.width),Math.max(this._minimumSize.height,c.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const c=typeof this._contentWidth>\"u\"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new d.Dimension(c,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const c=this._hover.containerDomNode;let l=d.getTotalHeight(c),a=d.getTotalWidth(c);if(this._resizableNode.layout(l,a),this._setHoverWidgetDimensions(a,l),l=d.getTotalHeight(c),a=d.getTotalWidth(c),this._contentWidth=a,this._updateMinimumWidth(),this._resizableNode.layout(l,a),this._renderedHover?.showAtPosition){const r=d.getTotalHeight(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(r,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c-l.lineHeight})}scrollDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:c+l.lineHeight})}scrollLeft(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c-o})}scrollRight(){const c=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:c+o})}pageUp(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c-l})}pageDown(){const c=this._hover.scrollbar.getScrollPosition().scrollTop,l=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:c+l})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};e.ContentHoverWidget=i,e.ContentHoverWidget=i=n=ke([ce(1,E.IContextKeyService),ce(2,y.IConfigurationService),ce(3,m.IAccessibilityService),ce(4,k.IKeybindingService)],i);function s(g,c,l,a,r,u){const C=l+r/2,f=a+u/2,h=Math.max(Math.abs(g-C)-r/2,0),v=Math.max(Math.abs(c-f)-u/2,0);return Math.sqrt(h*h+v*v)}}),define(ne[392],se([1,0,12]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.KeybindingResolver=e.NoMatchingKb=void 0,e.NoMatchingKb={kind:0};const k={kind:1};function I(_,b,p){return{kind:2,commandId:_,commandArgs:b,isBubble:p}}class E{constructor(b,p,n){this._log=n,this._defaultKeybindings=b,this._defaultBoundCommands=new Map;for(const o of b){const t=o.command;t&&t.charAt(0)!==\"-\"&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=E.handleRemovals([].concat(b).concat(p));for(let o=0,t=this._keybindings.length;o<t;o++){const i=this._keybindings[o];if(i.chords.length===0)continue;const s=i.when?.substituteConstants();s&&s.type===0||this._addKeyPress(i.chords[0],i)}}static _isTargetedForRemoval(b,p,n){if(p){for(let o=0;o<p.length;o++)if(p[o]!==b.chords[o])return!1}return!(n&&n.type!==1&&(!b.when||!(0,d.expressionsAreEqualWithConstantSubstitution)(n,b.when)))}static handleRemovals(b){const p=new Map;for(let o=0,t=b.length;o<t;o++){const i=b[o];if(i.command&&i.command.charAt(0)===\"-\"){const s=i.command.substring(1);p.has(s)?p.get(s).push(i):p.set(s,[i])}}if(p.size===0)return b;const n=[];for(let o=0,t=b.length;o<t;o++){const i=b[o];if(!i.command||i.command.length===0){n.push(i);continue}if(i.command.charAt(0)===\"-\")continue;const s=p.get(i.command);if(!s||!i.isDefault){n.push(i);continue}let g=!1;for(const c of s){const l=c.when;if(this._isTargetedForRemoval(i,c.chords,l)){g=!0;break}}if(!g){n.push(i);continue}}return n}_addKeyPress(b,p){const n=this._map.get(b);if(typeof n>\"u\"){this._map.set(b,[p]),this._addToLookupMap(p);return}for(let o=n.length-1;o>=0;o--){const t=n[o];if(t.command===p.command)continue;let i=!0;for(let s=1;s<t.chords.length&&s<p.chords.length;s++)if(t.chords[s]!==p.chords[s]){i=!1;break}i&&E.whenIsEntirelyIncluded(t.when,p.when)&&this._removeFromLookupMap(t)}n.push(p),this._addToLookupMap(p)}_addToLookupMap(b){if(!b.command)return;let p=this._lookupMap.get(b.command);typeof p>\"u\"?(p=[b],this._lookupMap.set(b.command,p)):p.push(b)}_removeFromLookupMap(b){if(!b.command)return;const p=this._lookupMap.get(b.command);if(!(typeof p>\"u\")){for(let n=0,o=p.length;n<o;n++)if(p[n]===b){p.splice(n,1);return}}}static whenIsEntirelyIncluded(b,p){return!p||p.type===1?!0:!b||b.type===1?!1:(0,d.implies)(b,p)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(b,p){const n=this._lookupMap.get(b);if(typeof n>\"u\"||n.length===0)return null;if(n.length===1)return n[0];for(let o=n.length-1;o>=0;o--){const t=n[o];if(p.contextMatchesRules(t.when))return t}return n[n.length-1]}resolve(b,p,n){const o=[...p,n];this._log(`| Resolving ${o}`);const t=this._map.get(o[0]);if(t===void 0)return this._log(\"\\\\ No keybinding entries.\"),e.NoMatchingKb;let i=null;if(o.length<2)i=t;else{i=[];for(let g=0,c=t.length;g<c;g++){const l=t[g];if(o.length>l.chords.length)continue;let a=!0;for(let r=1;r<o.length;r++)if(l.chords[r]!==o[r]){a=!1;break}a&&i.push(l)}}const s=this._findCommand(b,i);return s?o.length<s.chords.length?(this._log(`\\\\ From ${i.length} keybinding entries, awaiting ${s.chords.length-o.length} more chord(s), when: ${y(s.when)}, source: ${m(s)}.`),k):(this._log(`\\\\ From ${i.length} keybinding entries, matched ${s.command}, when: ${y(s.when)}, source: ${m(s)}.`),I(s.command,s.commandArgs,s.bubble)):(this._log(`\\\\ From ${i.length} keybinding entries, no when clauses matched the context.`),e.NoMatchingKb)}_findCommand(b,p){for(let n=p.length-1;n>=0;n--){const o=p[n];if(E._contextMatchesRules(b,o.when))return o}return null}static _contextMatchesRules(b,p){return p?p.evaluate(b):!0}}e.KeybindingResolver=E;function y(_){return _?`${_.serialize()}`:\"no when condition\"}function m(_){return _.extensionId?_.isBuiltinExtension?`built-in extension ${_.extensionId}`:`user extension ${_.extensionId}`:_.isDefault?\"built-in\":\"user\"}}),define(ne[691],se([1,0,14,8,6,300,2,3,392]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AbstractKeybindingService=void 0;const b=/^(cursor|delete|undo|redo|tab|editor\\.action\\.clipboard)/;class p extends y.Disposable{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:I.Event.None}get inChordMode(){return this._currentChords.length>0}constructor(t,i,s,g,c){super(),this._contextKeyService=t,this._commandService=i,this._telemetryService=s,this._notificationService=g,this._logService=c,this._onDidUpdateKeybindings=this._register(new I.Emitter),this._currentChords=[],this._currentChordChecker=new d.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new d.TimeoutTimer,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(t){this._logging&&this._logService.info(`[KeybindingService]: ${t}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(t,i){const s=this._getResolver().lookupPrimaryKeybinding(t,i||this._contextKeyService);if(s)return s.resolvedKeybinding}dispatchEvent(t,i){return this._dispatch(t,i)}softDispatch(t,i){this._log(\"/ Soft dispatching keyboard event\");const s=this.resolveKeyboardEvent(t);if(s.hasMultipleChords())return console.warn(\"keyboard event should not be mapped to multiple chords\"),_.NoMatchingKb;const[g]=s.getDispatchChords();if(g===null)return this._log(\"\\\\ Keyboard event cannot be dispatched\"),_.NoMatchingKb;const c=this._contextKeyService.getContext(i),l=this._currentChords.map(({keypress:a})=>a);return this._getResolver().resolve(c,l,g)}_scheduleLeaveChordMode(){const t=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-t>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(t,i){switch(this._currentChords.push({keypress:t,label:i}),this._currentChords.length){case 0:throw(0,k.illegalState)(\"impossible\");case 1:this._currentChordStatusMessage=this._notificationService.status(m.localize(1538,\"({0}) was pressed. Waiting for second key of chord...\",i));break;default:{const s=this._currentChords.map(({label:g})=>g).join(\", \");this._currentChordStatusMessage=this._notificationService.status(m.localize(1539,\"({0}) was pressed. Waiting for next key of chord...\",s))}}this._scheduleLeaveChordMode(),E.IME.enabled&&E.IME.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],E.IME.enable()}_dispatch(t,i){return this._doDispatch(this.resolveKeyboardEvent(t),i,!1)}_singleModifierDispatch(t,i){const s=this.resolveKeyboardEvent(t),[g]=s.getSingleModifierDispatchChords();if(g)return this._ignoreSingleModifiers.has(g)?(this._log(`+ Ignoring single modifier ${g} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=n.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${g}.`),this._currentSingleModifier=g,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log(\"+ Clearing single modifier due to 300ms elapsed.\"),this._currentSingleModifier=null},300),!1):g===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${g} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(s,i,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${g}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[c]=s.getChords();return this._ignoreSingleModifiers=new n(c),this._currentSingleModifier!==null&&this._log(\"+ Clearing single modifier due to other key up.\"),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(t,i,s=!1){let g=!1;if(t.hasMultipleChords())return console.warn(\"Unexpected keyboard event mapped to multiple chords\"),!1;let c=null,l=null;if(s){const[C]=t.getSingleModifierDispatchChords();c=C,l=C?[C]:[]}else[c]=t.getDispatchChords(),l=this._currentChords.map(({keypress:C})=>C);if(c===null)return this._log(\"\\\\ Keyboard event cannot be dispatched in keydown phase.\"),g;const a=this._contextKeyService.getContext(i),r=t.getLabel(),u=this._getResolver().resolve(a,l,c);switch(u.kind){case 0:{if(this._logService.trace(\"KeybindingService#dispatch\",r,\"[ No matching keybinding ]\"),this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving multi-chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1540,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}return g}case 1:return this._logService.trace(\"KeybindingService#dispatch\",r,\"[ Several keybindings match - more chords needed ]\"),g=!0,this._expectAnotherChord(c,r),this._log(this._currentChords.length===1?\"+ Entering multi-chord mode...\":\"+ Continuing multi-chord mode...\"),g;case 2:{if(this._logService.trace(\"KeybindingService#dispatch\",r,`[ Will dispatch command ${u.commandId} ]`),u.commandId===null||u.commandId===\"\"){if(this.inChordMode){const C=this._currentChords.map(({label:f})=>f).join(\", \");this._log(`+ Leaving chord mode: Nothing bound to \"${C}, ${r}\".`),this._notificationService.status(m.localize(1541,\"The key combination ({0}, {1}) is not a command.\",C,r),{hideAfter:10*1e3}),this._leaveChordMode(),g=!0}}else{this.inChordMode&&this._leaveChordMode(),u.isBubble||(g=!0),this._log(`+ Invoking command ${u.commandId}.`),this._currentlyDispatchingCommandId=u.commandId;try{typeof u.commandArgs>\"u\"?this._commandService.executeCommand(u.commandId).then(void 0,C=>this._notificationService.warn(C)):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,C=>this._notificationService.warn(C))}finally{this._currentlyDispatchingCommandId=null}b.test(u.commandId)||this._telemetryService.publicLog2(\"workbenchActionExecuted\",{id:u.commandId,from:\"keybinding\",detail:t.getUserSettingsLabel()??void 0})}return g}}}mightProducePrintableCharacter(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30}}e.AbstractKeybindingService=p;class n{static{this.EMPTY=new n(null)}constructor(t){this._ctrlKey=t?t.ctrlKey:!1,this._shiftKey=t?t.shiftKey:!1,this._altKey=t?t.altKey:!1,this._metaKey=t?t.metaKey:!1}has(t){switch(t){case\"ctrl\":return this._ctrlKey;case\"shift\":return this._shiftKey;case\"alt\":return this._altKey;case\"meta\":return this._metaKey}}}}),define(ne[393],se([1,0]),function(oe,e){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ResolvedKeybindingItem=void 0,e.toEmptyArrayIfContainsNull=k;class d{constructor(E,y,m,_,b,p,n){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=E,this.chords=E?k(E.getDispatchChords()):[],E&&this.chords.length===0&&(this.chords=k(E.getSingleModifierDispatchChords())),this.bubble=y?y.charCodeAt(0)===94:!1,this.command=this.bubble?y.substr(1):y,this.commandArgs=m,this.when=_,this.isDefault=b,this.extensionId=p,this.isBuiltinExtension=n}}e.ResolvedKeybindingItem=d;function k(I){const E=[];for(let y=0,m=I.length;y<m;y++){const _=I[y];if(!_)return[];E.push(_)}return E}}),define(ne[692],se([1,0,72,140,689,393]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.USLayoutResolvedKeybinding=void 0;class y extends I.BaseResolvedKeybinding{constructor(_,b){super(b,_)}_keyCodeToUILabel(_){if(this._os===2)switch(_){case 15:return\"\\u2190\";case 16:return\"\\u2191\";case 17:return\"\\u2192\";case 18:return\"\\u2193\"}return d.KeyCodeUtils.toString(_)}_getLabel(_){return _.isDuplicateModifierCase()?\"\":this._keyCodeToUILabel(_.keyCode)}_getAriaLabel(_){return _.isDuplicateModifierCase()?\"\":d.KeyCodeUtils.toString(_.keyCode)}_getElectronAccelerator(_){return d.KeyCodeUtils.toElectronAccelerator(_.keyCode)}_getUserSettingsLabel(_){if(_.isDuplicateModifierCase())return\"\";const b=d.KeyCodeUtils.toUserSettingsUS(_.keyCode);return b&&b.toLowerCase()}_getChordDispatch(_){return y.getDispatchStr(_)}static getDispatchStr(_){if(_.isModifierKey())return null;let b=\"\";return _.ctrlKey&&(b+=\"ctrl+\"),_.shiftKey&&(b+=\"shift+\"),_.altKey&&(b+=\"alt+\"),_.metaKey&&(b+=\"meta+\"),b+=d.KeyCodeUtils.toString(_.keyCode),b}_getSingleModifierChordDispatch(_){return _.keyCode===5&&!_.shiftKey&&!_.altKey&&!_.metaKey?\"ctrl\":_.keyCode===4&&!_.ctrlKey&&!_.altKey&&!_.metaKey?\"shift\":_.keyCode===6&&!_.ctrlKey&&!_.shiftKey&&!_.metaKey?\"alt\":_.keyCode===57&&!_.ctrlKey&&!_.shiftKey&&!_.altKey?\"meta\":null}static _scanCodeToKeyCode(_){const b=d.IMMUTABLE_CODE_TO_KEY_CODE[_];if(b!==-1)return b;switch(_){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(_){if(!_)return null;if(_ instanceof k.KeyCodeChord)return _;const b=this._scanCodeToKeyCode(_.scanCode);return b===0?null:new k.KeyCodeChord(_.ctrlKey,_.shiftKey,_.altKey,_.metaKey,b)}static resolveKeybinding(_,b){const p=(0,E.toEmptyArrayIfContainsNull)(_.chords.map(n=>this._toKeyCodeChord(n)));return p.length>0?[new y(p,b)]:[]}}e.USLayoutResolvedKeybinding=y}),define(ne[181],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,d.createDecorator)(\"labelService\")}),define(ne[119],se([1,0,7]),function(oe,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ILayoutService=void 0,e.ILayoutService=(0,d.createDecorator)(\"layoutService\")}),define(ne[394],se([1,0,5,52,13,6,34,49,119]),function(oe,e,d,k,I,E,y,m,_){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.EditorScopedLayoutService=void 0;let b=class{get mainContainer(){return(0,I.firstOrDefault)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??k.mainWindow.document.body}get activeContainer(){return(this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor())?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return d.getClientArea(this.mainContainer)}get activeContainerDimension(){return d.getClientArea(this.activeContainer)}get containers(){return(0,I.coalesce)(this._codeEditorService.listCodeEditors().map(o=>o.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(o){this._codeEditorService=o,this.onDidLayoutMainContainer=E.Event.None,this.onDidLayoutActiveContainer=E.Event.None,this.onDidLayoutContainer=E.Event.None,this.onDidChangeActiveContainer=E.Event.None,this.onDidAddContainer=E.Event.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};b=ke([ce(0,y.ICodeEditorService)],b);let p=class extends b{get mainContainer(){return this._container}constructor(o,t){super(t),this._container=o}};e.EditorScopedLayoutService=p,e.EditorScopedLayoutService=p=ke([ce(1,y.ICodeEditorService)],p),(0,m.registerSingleton)(_.ILayoutService,b,1)}),define(ne[693],se([1,0,5,52,6,2,61,28,12,119]),function(oe,e,d,k,I,E,y,m,_,b){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AccessibilityService=void 0;let p=class extends E.Disposable{constructor(o,t,i){super(),this._contextKeyService=o,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new I.Emitter,this._onDidChangeReducedMotion=new I.Emitter,this._onDidChangeLinkUnderline=new I.Emitter,this._accessibilityModeEnabledContext=y.CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration(\"editor.accessibilitySupport\")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),c.affectsConfiguration(\"workbench.reduceMotion\")&&(this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._onDidChangeReducedMotion.fire())})),s(),this._register(this.onDidChangeScreenReaderOptimized(()=>s()));const g=k.mainWindow.matchMedia(\"(prefers-reduced-motion: reduce)\");this._systemMotionReduced=g.matches,this._configMotionReduced=this._configurationService.getValue(\"workbench.reduceMotion\"),this._linkUnderlinesEnabled=this._configurationService.getValue(\"accessibility.underlineLinks\"),this.initReducedMotionListeners(g),this.initLinkUnderlineListeners()}initReducedMotionListeners(o){this._register((0,d.addDisposableListener)(o,\"change\",()=>{this._systemMotionReduced=o.matches,this._configMotionReduced===\"auto\"&&this._onDidChangeReducedMotion.fire()}));const t=()=>{const i=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle(\"reduce-motion\",i),this._layoutService.mainContainer.classList.toggle(\"enable-motion\",!i)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration(t=>{if(t.affectsConfiguration(\"accessibility.underlineLinks\")){const i=this._configurationService.getValue(\"accessibility.underlineLinks\");this._linkUnderlinesEnabled=i,this._onDidChangeLinkUnderline.fire()}}));const o=()=>{const t=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle(\"underline-links\",t)};o(),this._register(this.onDidChangeLinkUnderlines(()=>o()))}onDidChangeLinkUnderlines(o){return this._onDidChangeLinkUnderline.event(o)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const o=this._configurationService.getValue(\"editor.accessibilitySupport\");return o===\"on\"||o===\"auto\"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const o=this._configMotionReduced;return o===\"on\"||o===\"auto\"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};e.AccessibilityService=p,e.AccessibilityService=p=ke([ce(0,_.IContextKeyService),ce(1,b.ILayoutService),ce(2,m.IConfigurationService)],p)}),define(ne[395],se([1,0,353,2,119,5]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ContextViewService=e.ContextViewHandler=void 0;let y=class extends k.Disposable{constructor(b){super(),this.layoutService=b,this.contextView=this._register(new d.ContextView(this.layoutService.mainContainer,1)),this.layout(),this._register(b.onDidLayoutContainer(()=>this.layout()))}showContextView(b,p,n){let o;p?p===this.layoutService.getContainer((0,E.getWindow)(p))?o=1:n?o=3:o=2:o=1,this.contextView.setContainer(p??this.layoutService.activeContainer,o),this.contextView.show(b);const t={close:()=>{this.openContextView===t&&this.hideContextView()}};return this.openContextView=t,t}layout(){this.contextView.layout()}hideContextView(b){this.contextView.hide(b),this.openContextView=void 0}};e.ContextViewHandler=y,e.ContextViewHandler=y=ke([ce(0,I.ILayoutService)],y);class m extends y{getContextViewElement(){return this.contextView.getViewElement()}}e.ContextViewService=m}),define(ne[62],se([1,0,6,2,12,7]),function(oe,e,d,k,I,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.CONTEXT_LOG_LEVEL=e.MultiplexLogger=e.ConsoleLogger=e.AbstractLogger=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILogService=void 0,e.LogLevelToString=p,e.ILogService=(0,E.createDecorator)(\"logService\");var y;(function(n){n[n.Off=0]=\"Off\",n[n.Trace=1]=\"Trace\",n[n.Debug=2]=\"Debug\",n[n.Info=3]=\"Info\",n[n.Warning=4]=\"Warning\",n[n.Error=5]=\"Error\"})(y||(e.LogLevel=y={})),e.DEFAULT_LOG_LEVEL=y.Info;class m extends k.Disposable{constructor(){super(...arguments),this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new d.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(o){this.level!==o&&(this.level=o,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(o){return this.level!==y.Off&&this.level<=o}}e.AbstractLogger=m;class _ extends m{constructor(o=e.DEFAULT_LOG_LEVEL,t=!0){super(),this.useColors=t,this.setLevel(o)}trace(o,...t){this.checkLogLevel(y.Trace)&&(this.useColors?console.log(\"%cTRACE\",\"color: #888\",o,...t):console.log(o,...t))}debug(o,...t){this.checkLogLevel(y.Debug)&&(this.useColors?console.log(\"%cDEBUG\",\"background: #eee; color: #888\",o,...t):console.log(o,...t))}info(o,...t){this.checkLogLevel(y.Info)&&(this.useColors?console.log(\"%c INFO\",\"color: #33f\",o,...t):console.log(o,...t))}warn(o,...t){this.checkLogLevel(y.Warning)&&(this.useColors?console.log(\"%c WARN\",\"color: #993\",o,...t):console.log(o,...t))}error(o,...t){this.checkLogLevel(y.Error)&&(this.useColors?console.log(\"%c  ERR\",\"color: #f33\",o,...t):console.error(o,...t))}}e.ConsoleLogger=_;class b extends m{constructor(o){super(),this.loggers=o,o.length&&this.setLevel(o[0].getLevel())}setLevel(o){for(const t of this.loggers)t.setLevel(o);super.setLevel(o)}trace(o,...t){for(const i of this.loggers)i.trace(o,...t)}debug(o,...t){for(const i of this.loggers)i.debug(o,...t)}info(o,...t){for(const i of this.loggers)i.info(o,...t)}warn(o,...t){for(const i of this.loggers)i.warn(o,...t)}error(o,...t){for(const i of this.loggers)i.error(o,...t)}dispose(){for(const o of this.loggers)o.dispose();super.dispose()}}e.MultiplexLogger=b;function p(n){switch(n){case y.Trace:return\"trace\";case y.Debug:return\"debug\";case y.Info:return\"info\";case y.Warning:return\"warn\";case y.Error:return\"error\";case y.Off:return\"off\"}}e.CONTEXT_LOG_LEVEL=new I.RawContextKey(\"logLevel\",p(y.Info))}),define(ne[212],se([1,0,64,5,93,47,296,14,6,2,128,11,310,23,61,62]),function(oe,e,d,k,I,E,y,m,_,b,p,n,o,t,i,s){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.TextAreaWrapper=e.ClipboardEventUtils=e.TextAreaInput=e.InMemoryClipboardMetadataManager=e.CopyOptions=e.TextAreaSyntethicEvents=void 0;var g;(function(u){u.Tap=\"-monaco-textarea-synthetic-tap\"})(g||(e.TextAreaSyntethicEvents=g={})),e.CopyOptions={forceCopyWithSyntaxHighlighting:!1};class c{static{this.INSTANCE=new c}constructor(){this._lastState=null}set(C,f){this._lastState={lastCopiedValue:C,data:f}}get(C){return this._lastState&&this._lastState.lastCopiedValue===C?this._lastState.data:(this._lastState=null,null)}}e.InMemoryClipboardMetadataManager=c;class l{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(C){C=C||\"\";const f={text:C,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=C.length,f}}let a=class extends b.Disposable{get textAreaState(){return this._textAreaState}constructor(C,f,h,v,w,S){super(),this._host=C,this._textArea=f,this._OS=h,this._browser=v,this._accessibilityService=w,this._logService=S,this._onFocus=this._register(new _.Emitter),this.onFocus=this._onFocus.event,this._onBlur=this._register(new _.Emitter),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new _.Emitter),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new _.Emitter),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new _.Emitter),this.onCut=this._onCut.event,this._onPaste=this._register(new _.Emitter),this.onPaste=this._onPaste.event,this._onType=this._register(new _.Emitter),this.onType=this._onType.event,this._onCompositionStart=this._register(new _.Emitter),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new _.Emitter),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new _.Emitter),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new _.Emitter),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new b.MutableDisposable),this._asyncTriggerCut=this._register(new m.RunOnceScheduler(()=>this._onCut.fire(),0)),this._textAreaState=o.TextAreaState.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent(\"ctor\"),this._register(_.Event.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let L=null;this._register(this._textArea.onKeyDown(D=>{const T=new E.StandardKeyboardEvent(D);(T.keyCode===114||this._currentComposition&&T.keyCode===1)&&T.stopPropagation(),T.equals(9)&&T.preventDefault(),L=T,this._onKeyDown.fire(T)})),this._register(this._textArea.onKeyUp(D=>{const T=new E.StandardKeyboardEvent(D);this._onKeyUp.fire(T)})),this._register(this._textArea.onCompositionStart(D=>{o._debugComposition&&console.log(\"[compositionstart]\",D);const T=new l;if(this._currentComposition){this._currentComposition=T;return}if(this._currentComposition=T,this._OS===2&&L&&L.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===D.data&&(L.code===\"ArrowRight\"||L.code===\"ArrowLeft\")){o._debugComposition&&console.log(\"[compositionstart] Handling long press case on macOS + arrow key\",D),T.handleCompositionUpdate(\"x\"),this._onCompositionStart.fire({data:D.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:D.data});return}this._onCompositionStart.fire({data:D.data})})),this._register(this._textArea.onCompositionUpdate(D=>{o._debugComposition&&console.log(\"[compositionupdate]\",D);const T=this._currentComposition;if(!T)return;if(this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionUpdate.fire(D);return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionUpdate.fire(D)})),this._register(this._textArea.onCompositionEnd(D=>{o._debugComposition&&console.log(\"[compositionend]\",D);const T=this._currentComposition;if(!T)return;if(this._currentComposition=null,this._browser.isAndroid){const A=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),P=o.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,A);this._textAreaState=A,this._onType.fire(P),this._onCompositionEnd.fire();return}const M=T.handleCompositionUpdate(D.data);this._textAreaState=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(M),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(D=>{if(o._debugComposition&&console.log(\"[input]\",D),this._textArea.setIgnoreSelectionChangeTime(\"received input event\"),this._currentComposition)return;const T=o.TextAreaState.readFromTextArea(this._textArea,this._textAreaState),M=o.TextAreaState.deduceInput(this._textAreaState,T,this._OS===2);M.replacePrevCharCnt===0&&M.text.length===1&&(n.isHighSurrogate(M.text.charCodeAt(0))||M.text.charCodeAt(0)===127)||(this._textAreaState=T,(M.text!==\"\"||M.replacePrevCharCnt!==0||M.replaceNextCharCnt!==0||M.positionDelta!==0)&&this._onType.fire(M))})),this._register(this._textArea.onCut(D=>{this._textArea.setIgnoreSelectionChangeTime(\"received cut event\"),this._ensureClipboardGetsEditorSelection(D),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(D=>{this._ensureClipboardGetsEditorSelection(D)})),this._register(this._textArea.onPaste(D=>{if(this._textArea.setIgnoreSelectionChangeTime(\"received paste event\"),D.preventDefault(),!D.clipboardData)return;let[T,M]=e.ClipboardEventUtils.getTextData(D.clipboardData);T&&(M=M||c.INSTANCE.get(T),this._onPaste.fire({text:T,metadata:M}))})),this._register(this._textArea.onFocus(()=>{const D=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!D&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new m.RunOnceScheduler(()=>this.writeNativeTextAreaContent(\"asyncFocusGain\"),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"blurWithoutCompositionEnd\"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent(\"tapWithoutCompositionEnd\"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let C=0;return k.addDisposableListener(this._textArea.ownerDocument,\"selectionchange\",f=>{if(y.inputLatency.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const h=Date.now(),v=h-C;if(C=h,v<5)return;const w=h-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),w<100||!this._textAreaState.selection)return;const S=this._textArea.getValue();if(this._textAreaState.value!==S)return;const L=this._textArea.getSelectionStart(),D=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===L&&this._textAreaState.selectionEnd===D)return;const T=this._textAreaState.deduceEditorPosition(L),M=this._host.deduceModelPosition(T[0],T[1],T[2]),A=this._textAreaState.deduceEditorPosition(D),P=this._host.deduceModelPosition(A[0],A[1],A[2]),N=new t.Selection(M.lineNumber,M.column,P.lineNumber,P.column);this._onSelectionChangeRequest.fire(N)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(C){this._hasFocus!==C&&(this._hasFocus=C,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent(\"focusgain\"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(C,f){this._hasFocus||(f=f.collapseSelection()),f.writeToTextArea(C,this._textArea,this._hasFocus),this._textAreaState=f}writeNativeTextAreaContent(C){!this._accessibilityService.isScreenReaderOptimized()&&C===\"render\"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${C})`),this._setAndWriteTextAreaState(C,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(C){const f=this._host.getDataToCopy(),h={version:1,isFromEmptySelection:f.isFromEmptySelection,multicursorText:f.multicursorText,mode:f.mode};c.INSTANCE.set(this._browser.isFirefox?f.text.replace(/\\r\\n/g,`","vulnerability":{}},{"path":"web/public/vs/language/typescript/tsWorker.js","start_line":320,"end_line":320,"snippet":"`||hn[0]===\"\\r\");)hn.shift()}function CP(hn){for(;hn.length;){let Tr=hn[hn.length-1].trimEnd();if(Tr===\"\")hn.pop();else if(Tr.length<hn[hn.length-1].length){hn[hn.length-1]=Tr;break}else break}}function fE(){for(;;){if(gt(),j()===1)return!0;if(!(j()===5||j()===4))return!1}}function Dg(){if(!((j()===5||j()===4)&&_i(fE)))for(;j()===5||j()===4;)gt()}function jy(){if((j()===5||j()===4)&&_i(fE))return\"\";let hn=t.hasPrecedingLineBreak(),Tr=!1,gr=\"\";for(;hn&&j()===42||j()===5||j()===4;)gr+=t.getTokenText(),j()===4?(hn=!0,Tr=!0,gr=\"\"):j()===42&&(hn=!1),gt();return Tr?gr:\"\"}function lD(hn){x.assert(j()===60);let Tr=t.getTokenStart();gt();let gr=gE(void 0),Ei=jy(),hi;switch(gr.escapedText){case\"author\":hi=Ss(Tr,gr,hn,Ei);break;case\"implements\":hi=Hy(Tr,gr,hn,Ei);break;case\"augments\":case\"extends\":hi=lm(Tr,gr,hn,Ei);break;case\"class\":case\"constructor\":hi=hE(Tr,m.createJSDocClassTag,gr,hn,Ei);break;case\"public\":hi=hE(Tr,m.createJSDocPublicTag,gr,hn,Ei);break;case\"private\":hi=hE(Tr,m.createJSDocPrivateTag,gr,hn,Ei);break;case\"protected\":hi=hE(Tr,m.createJSDocProtectedTag,gr,hn,Ei);break;case\"readonly\":hi=hE(Tr,m.createJSDocReadonlyTag,gr,hn,Ei);break;case\"override\":hi=hE(Tr,m.createJSDocOverrideTag,gr,hn,Ei);break;case\"deprecated\":Nr=!0,hi=hE(Tr,m.createJSDocDeprecatedTag,gr,hn,Ei);break;case\"this\":hi=T7(Tr,gr,hn,Ei);break;case\"enum\":hi=D$(Tr,gr,hn,Ei);break;case\"arg\":case\"argument\":case\"param\":return w(Tr,gr,2,hn);case\"return\":case\"returns\":hi=Be(Tr,gr,hn,Ei);break;case\"template\":hi=Jy(Tr,gr,hn,Ei);break;case\"type\":hi=kt(Tr,gr,hn,Ei);break;case\"typedef\":hi=MP(Tr,gr,hn,Ei);break;case\"callback\":hi=Ame(Tr,gr,hn,Ei);break;case\"overload\":hi=Ime(Tr,gr,hn,Ei);break;case\"satisfies\":hi=_E(Tr,gr,hn,Ei);break;case\"see\":hi=ir(Tr,gr,hn,Ei);break;case\"exception\":case\"throws\":hi=Wi(Tr,gr,hn,Ei);break;default:hi=Uy(Tr,gr,hn,Ei);break}return hi}function _p(hn,Tr,gr,Ei){return Ei||(gr+=Tr-hn),Sa(gr,Ei.slice(gr))}function Sa(hn,Tr){let gr=M(),Ei=[],hi=[],wa,ns=0,Dd;function ih(Cg){Dd||(Dd=hn),Ei.push(Cg),hn+=Cg.length}Tr!==void 0&&(Tr!==\"\"&&ih(Tr),ns=1);let Zu=j();e:for(;;){switch(Zu){case 4:ns=0,Ei.push(t.getTokenText()),hn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:x.assert(ns!==2&&ns!==3,\"whitespace shouldn't come from the scanner while saving comment text\");let Cg=t.getTokenText();Dd!==void 0&&hn+Cg.length>Dd&&(Ei.push(Cg.slice(Dd-hn)),ns=2),hn+=Cg.length;break;case 19:ns=2;let ep=t.getTokenFullStart(),uD=t.getTokenEnd()-1,tw=zl(uD);tw?(hi.push(Ut(m.createJSDocText(Ei.join(\"\")),wa??gr,ep)),hi.push(tw),Ei=[],wa=t.getTokenEnd()):ih(t.getTokenText());break;case 62:ns===3?ns=2:ns=3,ih(t.getTokenText());break;case 82:ns!==3&&(ns=2),ih(t.getTokenValue());break;case 42:if(ns===0){ns=1,hn+=1;break}default:ns!==3&&(ns=2),ih(t.getTokenText());break}ns===2||ns===3?Zu=bt(ns===3):Zu=gt()}DP(Ei);let Lm=Ei.join(\"\").trimEnd();if(hi.length)return Lm.length&&hi.push(Ut(m.createJSDocText(Lm),wa??gr)),ho(hi,gr,t.getTokenEnd());if(Lm.length)return Lm}function zl(hn){let Tr=ui(p1);if(!Tr)return;gt(),Dg();let gr=mE(),Ei=[];for(;j()!==20&&j()!==4&&j()!==1;)Ei.push(t.getTokenText()),gt();let hi=Tr===\"link\"?m.createJSDocLink:Tr===\"linkcode\"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return Ut(hi(gr,Ei.join(\"\")),hn,t.getTokenEnd())}function mE(){if(Md(j())){let hn=M(),Tr=tc();for(;$i(25);)Tr=Ut(m.createQualifiedName(Tr,j()===81?ys(80,!1):ls()),hn);for(;j()===81;)ti(),gt(),Tr=Ut(m.createJSDocMemberName(Tr,ls()),hn);return Tr}}function p1(){if(jy(),j()===19&&gt()===60&&Md(gt())){let hn=t.getTokenValue();if(NP(hn))return hn}}function NP(hn){return hn===\"link\"||hn===\"linkcode\"||hn===\"linkplain\"}function Uy(hn,Tr,gr,Ei){return Ut(m.createJSDocUnknownTag(Tr,_p(hn,M(),gr,Ei)),hn)}function PP(hn){hn&&(Ma?Ma.push(hn):(Ma=[hn],lf=hn.pos),v_=hn.end)}function Un(){return jy(),j()===19?Fe():void 0}function y(){let hn=Rv(23);hn&&Dg();let Tr=Rv(62),gr=dD();return Tr&&ua(62),hn&&(Dg(),Uo(64)&&we(),_n(24)),{name:gr,isBracketed:hn}}function D(hn){switch(hn.kind){case 151:return!0;case 188:return D(hn.elementType);default:return Yp(hn)&&Me(hn.typeName)&&hn.typeName.escapedText===\"Object\"&&!hn.typeArguments}}function w(hn,Tr,gr,Ei){let hi=Un(),wa=!hi;jy();let{name:ns,isBracketed:Dd}=y(),ih=jy();wa&&!_i(p1)&&(hi=Un());let Zu=_p(hn,M(),Ei,ih),Lm=ie(hi,ns,gr,Ei);Lm&&(hi=Lm,wa=!0);let Cg=gr===1?m.createJSDocPropertyTag(Tr,ns,Dd,hi,wa,Zu):m.createJSDocParameterTag(Tr,ns,Dd,hi,wa,Zu);return Ut(Cg,hn)}function ie(hn,Tr,gr,Ei){if(hn&&D(hn.type)){let hi=M(),wa,ns;for(;wa=ui(()=>I7(gr,Ei,Tr));)wa.kind===348||wa.kind===355?ns=pn(ns,wa):wa.kind===352&&Re(wa.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ns){let Dd=Ut(m.createJSDocTypeLiteral(ns,hn.type.kind===188),hi);return Ut(m.createJSDocTypeExpression(Dd),hi)}}}function Be(hn,Tr,gr,Ei){ct(Ma,T6)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Un();return Ut(m.createJSDocReturnTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function kt(hn,Tr,gr,Ei){ct(Ma,gN)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Fe(!0),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocTypeTag(Tr,hi,wa),hn)}function ir(hn,Tr,gr,Ei){let wa=j()===23||_i(()=>gt()===60&&Md(gt())&&NP(t.getTokenValue()))?void 0:mt(),ns=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSeeTag(Tr,wa,ns),hn)}function Wi(hn,Tr,gr,Ei){let hi=Un(),wa=_p(hn,M(),gr,Ei);return Ut(m.createJSDocThrowsTag(Tr,hi,wa),hn)}function Ss(hn,Tr,gr,Ei){let hi=M(),wa=Mm(),ns=t.getTokenFullStart(),Dd=_p(hn,ns,gr,Ei);Dd||(ns=t.getTokenFullStart());let ih=typeof Dd!=\"string\"?ho(ro([Ut(wa,hi,ns)],Dd),hi):wa.text+Dd;return Ut(m.createJSDocAuthorTag(Tr,ih),hn)}function Mm(){let hn=[],Tr=!1,gr=t.getToken();for(;gr!==1&&gr!==4;){if(gr===30)Tr=!0;else{if(gr===60&&!Tr)break;if(gr===32&&Tr){hn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}hn.push(t.getTokenText()),gr=gt()}return m.createJSDocText(hn.join(\"\"))}function Hy(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocImplementsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function lm(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocAugmentsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function _E(hn,Tr,gr,Ei){let hi=Fe(!1),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSatisfiesTag(Tr,hi,wa),hn)}function R$(){let hn=$i(19),Tr=M(),gr=Tme();t.setInJSDocType(!0);let Ei=uE();t.setInJSDocType(!1);let hi=m.createExpressionWithTypeArguments(gr,Ei),wa=Ut(hi,Tr);return hn&&_n(20),wa}function Tme(){let hn=M(),Tr=gE();for(;$i(25);){let gr=gE();Tr=Ut(K(Tr,gr),hn)}return Tr}function hE(hn,Tr,gr,Ei,hi){return Ut(Tr(gr,_p(hn,M(),Ei,hi)),hn)}function T7(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocThisTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function D$(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocEnumTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function MP(hn,Tr,gr,Ei){let hi=Un();jy();let wa=A7();Dg();let ns=Sa(gr),Dd;if(!hi||D(hi.type)){let Zu,Lm,Cg,ep=!1;for(;(Zu=ui(()=>P$(gr)))&&Zu.kind!==352;)if(ep=!0,Zu.kind===351)if(Lm){let uD=Qt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);uD&&fa(uD,Ix(_e,Te,0,0,f.The_tag_was_first_specified_here));break}else Lm=Zu;else Cg=pn(Cg,Zu);if(ep){let uD=hi&&hi.type.kind===188,tw=m.createJSDocTypeLiteral(Cg,uD);hi=Lm&&Lm.typeExpression&&!D(Lm.typeExpression.type)?Lm.typeExpression:Ut(tw,hn),Dd=hi.end}}Dd=Dd||ns!==void 0?M():(wa??hi??Tr).end,ns||(ns=_p(hn,Dd,gr,Ei));let ih=m.createJSDocTypedefTag(Tr,hi,wa,ns);return Ut(ih,hn,Dd)}function A7(hn){let Tr=t.getTokenStart();if(!Md(j()))return;let gr=gE();if($i(25)){let Ei=A7(!0),hi=m.createModuleDeclaration(void 0,gr,Ei,hn?8:void 0);return Ut(hi,Tr)}return hn&&(gr.flags|=4096),gr}function C$(hn){let Tr=M(),gr,Ei;for(;gr=ui(()=>I7(4,hn));){if(gr.kind===352){Re(gr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ei=pn(Ei,gr)}return ho(Ei||[],Tr)}function N$(hn,Tr){let gr=C$(Tr),Ei=ui(()=>{if(Rv(60)){let hi=lD(Tr);if(hi&&hi.kind===349)return hi}});return Ut(m.createJSDocSignature(void 0,gr,Ei),hn)}function Ame(hn,Tr,gr,Ei){let hi=A7();Dg();let wa=Sa(gr),ns=N$(hn,gr);wa||(wa=_p(hn,M(),gr,Ei));let Dd=wa!==void 0?M():ns.end;return Ut(m.createJSDocCallbackTag(Tr,ns,hi,wa),hn,Dd)}function Ime(hn,Tr,gr,Ei){Dg();let hi=Sa(gr),wa=N$(hn,gr);hi||(hi=_p(hn,M(),gr,Ei));let ns=hi!==void 0?M():wa.end;return Ut(m.createJSDocOverloadTag(Tr,wa,hi),hn,ns)}function cD(hn,Tr){for(;!Me(hn)||!Me(Tr);)if(!Me(hn)&&!Me(Tr)&&hn.right.escapedText===Tr.right.escapedText)hn=hn.left,Tr=Tr.left;else return!1;return hn.escapedText===Tr.escapedText}function P$(hn){return I7(1,hn)}function I7(hn,Tr,gr){let Ei=!0,hi=!1;for(;;)switch(gt()){case 60:if(Ei){let wa=q0(hn,Tr);return wa&&(wa.kind===348||wa.kind===355)&&gr&&(Me(wa.name)||!cD(gr,wa.name.left))?!1:wa}hi=!1;break;case 4:Ei=!0,hi=!1;break;case 42:hi&&(Ei=!1),hi=!0;break;case 80:Ei=!1;break;case 1:return!1}}function q0(hn,Tr){x.assert(j()===60);let gr=t.getTokenFullStart();gt();let Ei=gE(),hi=jy(),wa;switch(Ei.escapedText){case\"type\":return hn===1&&kt(gr,Ei);case\"prop\":case\"property\":wa=1;break;case\"arg\":case\"argument\":case\"param\":wa=6;break;case\"template\":return Jy(gr,Ei,Tr,hi);case\"this\":return T7(gr,Ei,Tr,hi);default:return!1}return hn&wa?w(gr,Ei,hn,Tr):!1}function Yn(){let hn=M(),Tr=Rv(23);Tr&&Dg();let gr=eh(!1,!0),Ei=gE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),hi;if(Tr&&(Dg(),_n(64),hi=Ea(16777216,nm),_n(24)),!_l(Ei))return Ut(m.createTypeParameterDeclaration(gr,Ei,void 0,hi),hn)}function qy(){let hn=M(),Tr=[];do{Dg();let gr=Yn();gr!==void 0&&Tr.push(gr),jy()}while(Rv(28));return ho(Tr,hn)}function Jy(hn,Tr,gr,Ei){let hi=j()===19?Fe():void 0,wa=qy();return Ut(m.createJSDocTemplateTag(Tr,hi,wa,_p(hn,M(),gr,Ei)),hn)}function Rv(hn){return j()===hn?(gt(),!0):!1}function dD(){let hn=gE();for($i(23)&&_n(24);$i(25);){let Tr=gE();$i(23)&&_n(24),hn=Ye(hn,Tr)}return hn}function gE(hn){if(!Md(j()))return ys(80,!hn,hn||f.Identifier_expected);Vt++;let Tr=t.getTokenStart(),gr=t.getTokenEnd(),Ei=j(),hi=Pc(t.getTokenValue()),wa=Ut(C(hi,Ei),Tr,gr);return gt(),wa}}})(g_=e.JSDocParser||(e.JSDocParser={}))})(zb||(zb={})),(e=>{function t(S,A,C,R){if(R=R||x.shouldAssert(2),m(S,A,C,R),Iee(C))return S;if(S.statements.length===0)return zb.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let L=S;x.assert(!L.hasBeenIncrementallyParsed),L.hasBeenIncrementallyParsed=!0,zb.fixupParentReferences(L);let G=S.text,U=v(S),K=p(S,C);m(S,A,K,R),x.assert(K.span.start<=C.span.start),x.assert(Al(K.span)===Al(C.span)),x.assert(Al(ZD(K))===Al(ZD(C)));let F=ZD(K).length-K.span.length;d(L,K.span.start,Al(K.span),Al(ZD(K)),F,G,A,R);let oe=zb.parseSourceFile(S.fileName,A,S.languageVersion,U,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return oe.commentDirectives=r(S.commentDirectives,oe.commentDirectives,K.span.start,Al(K.span),F,G,A,R),oe.impliedNodeFormat=S.impliedNodeFormat,oe}e.updateSourceFile=t;function r(S,A,C,R,L,G,U,K){if(!S)return A;let F,oe=!1;for(let $ of S){let{range:de,type:fe}=$;if(de.end<C)F=pn(F,$);else if(de.pos>R){W();let q={range:{pos:de.pos+L,end:de.end+L},type:fe};F=pn(F,q),K&&x.assert(G.substring(de.pos,de.end)===U.substring(q.range.pos,q.range.end))}}return W(),F;function W(){oe||(oe=!0,F?A&&F.push(...A):F=A)}}function i(S,A,C,R,L,G){A?K(S):U(S);return;function U(F){let oe=\"\";if(G&&o(F)&&(oe=R.substring(F.pos,F.end)),F._children&&(F._children=void 0),F_(F,F.pos+C,F.end+C),G&&o(F)&&x.assert(oe===L.substring(F.pos,F.end)),Ao(F,U,K),ap(F))for(let W of F.jsDoc)U(W);l(F,G)}function K(F){F._children=void 0,F_(F,F.pos+C,F.end+C);for(let oe of F)U(oe)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,C,R,L){x.assert(S.end>=A,\"Adjusting an element that was entirely before the change range\"),x.assert(S.pos<=C,\"Adjusting an element that was entirely after the change range\"),x.assert(S.pos<=S.end);let G=Math.min(S.pos,R),U=S.end>=C?S.end+L:Math.min(S.end,R);x.assert(G<=U),S.parent&&(x.assertGreaterThanOrEqual(G,S.parent.pos),x.assertLessThanOrEqual(U,S.parent.end)),F_(S,G,U)}function l(S,A){if(A){let C=S.pos,R=L=>{x.assert(L.pos>=C),C=L.end};if(ap(S))for(let L of S.jsDoc)R(L);Ao(S,R),x.assert(C<=S.end)}}function d(S,A,C,R,L,G,U,K){F(S);return;function F(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!1,L,G,U,K);return}let $=W.end;if($>=A){if(W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L),Ao(W,F,oe),ap(W))for(let de of W.jsDoc)F(de);l(W,K);return}x.assert($<A)}function oe(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!0,L,G,U,K);return}let $=W.end;if($>=A){W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L);for(let de of W)F(de);return}x.assert($<A)}}function p(S,A){let R=A.span.start;for(let U=0;R>0&&U<=1;U++){let K=h(S,R);x.assert(K.pos<=R);let F=K.pos;R=Math.max(0,F-1)}let L=Gl(R,Al(A.span)),G=A.newLength+(A.span.start-R);return FM(L,G)}function h(S,A){let C=S,R;if(Ao(S,G),R){let U=L(R);U.pos>C.pos&&(C=U)}return C;function L(U){for(;;){let K=yV(U);if(K)U=K;else return U}}function G(U){if(!_l(U))if(U.pos<=A){if(U.pos>=C.pos&&(C=U),A<U.end)return Ao(U,G),!0;x.assert(U.end<=A),R=U}else return x.assert(U.pos>A),!0}}function m(S,A,C,R){let L=S.text;if(C&&(x.assert(L.length-C.span.length+C.newLength===A.length),R||x.shouldAssert(3))){let G=L.substr(0,C.span.start),U=A.substr(0,C.span.start);x.assert(G===U);let K=L.substring(Al(C.span),L.length),F=A.substring(Al(ZD(C)),A.length);x.assert(K===F)}}function v(S){let A=S.statements,C=0;x.assert(C<A.length);let R=A[C],L=-1;return{currentNode(U){return U!==L&&(R&&R.end===U&&C<A.length-1&&(C++,R=A[C]),(!R||R.pos!==U)&&G(U)),L=U,x.assert(!R||R.pos===U),R}};function G(U){A=void 0,C=-1,R=void 0,Ao(S,K,F);return;function K(oe){return U>=oe.pos&&U<oe.end?(Ao(oe,K,F),!0):!1}function F(oe){if(U>=oe.pos&&U<oe.end)for(let W=0;W<oe.length;W++){let $=oe[W];if($){if($.pos===U)return A=oe,C=W,R=$,!0;if($.pos<U&&U<$.end)return Ao($,K,F),!0}}return!1}}}e.createSyntaxCursor=v;let E;(S=>{S[S.Value=-1]=\"Value\"})(E||(E={}))})(Zj||(Zj={})),eU=new Map,wEe=/^\\/\\/\\/\\s*<(\\S+)\\s.*?\\/>/im,WEe=/^\\/\\/\\/?\\s*@([^\\s:]+)(.*)\\s*$/im}});function O6(e){let t=new Map,r=new Map;return an(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function Xx(){return E0e||(E0e=O6(Nh))}function Mie(e){return FEe(e,bl)}function FEe(e,t){let r=bo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(\", \");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function w6(e,t,r){return h0e(e,(t??\"\").trim(),r)}function Lie(e,t=\"\",r){if(t=t.trim(),Ui(t,\"-\"))return;if(e.type===\"listOrElement\"&&!t.includes(\",\"))return vI(e,t,r);if(t===\"\")return[];let i=t.split(\",\");switch(e.element.type){case\"number\":return Fi(i,o=>vI(e.element,parseInt(o),r));case\"string\":return Fi(i,o=>vI(e.element,o||\"\",r));case\"boolean\":case\"object\":return x.fail(`List of ${e.element.type} is not yet supported.`);default:return Fi(i,o=>w6(e.element,o,r))}}function zEe(e){return e.name}function kie(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return Bb(o,i,t.alternateMode.diagnostic,e);let l=VD(e,t.optionDeclarations,zEe);return l?Bb(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):Bb(o,i,t.unknownOptionDiagnostic,r||e)}function tU(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;m<h.length;){let v=h[m];if(m++,v.charCodeAt(0)===64)p(v.slice(1));else if(v.charCodeAt(0)===45){let E=v.slice(v.charCodeAt(1)===45?2:1),S=Oie(e.getOptionsNameMap,E,!0);if(S)m=BEe(h,m,e,S,i,l);else{let A=Oie(q6.getOptionsNameMap,E,!0);A?m=BEe(h,m,q6,A,o||(o={}),l):l.push(kie(E,e,v))}}else s.push(v)}}function p(h){let m=SN(h,r||(S=>Hc.readFile(S)));if(!fo(m)){l.push(m);return}let v=[],E=0;for(;;){for(;E<m.length&&m.charCodeAt(E)<=32;)E++;if(E>=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E<m.length&&m.charCodeAt(E)!==34;)E++;E<m.length?(v.push(m.substring(S+1,E)),E++):l.push(bl(f.Unterminated_quoted_string_in_response_file_0,h))}else{for(;m.charCodeAt(E)>32;)E++;v.push(m.substring(S,E))}}d(v)}}function BEe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l===\"null\"?(o[i.name]=void 0,t++):i.type===\"boolean\"?l===\"false\"?(o[i.name]=vI(i,!1,s),t++):(l===\"true\"&&t++,s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!Ui(l,\"-\")&&t++)}else if(!e[t]&&i.type!==\"boolean\"&&s.push(bl(r.optionTypeMismatchDiagnostic,i.name,oU(i))),e[t]!==\"null\")switch(i.type){case\"number\":o[i.name]=vI(i,parseInt(e[t]),s),t++;break;case\"boolean\":let l=e[t];o[i.name]=vI(i,l!==\"false\",s),(l===\"false\"||l===\"true\")&&t++;break;case\"string\":o[i.name]=vI(i,e[t]||\"\",s),t++;break;case\"list\":let d=Lie(i,e[t],s);o[i.name]=d||[],d&&t++;break;case\"listOrElement\":x.fail(\"listOrElement not supported here\");break;default:o[i.name]=w6(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function GEe(e,t){return tU(Q2,e,t)}function nU(e,t){return Oie(Xx,e,t)}function Oie(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function VEe(){return T0e||(T0e=O6(U6))}function jEe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=tU(I0e,e),s=t;return i.length===0&&i.push(\".\"),s.clean&&s.force&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"force\")),s.clean&&s.verbose&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"verbose\")),s.clean&&s.watch&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"clean\",\"watch\")),s.watch&&s.dry&&o.push(bl(f.Options_0_and_1_cannot_be_combined,\"watch\",\"dry\")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function UEe(e,...t){return Fo(bl(e,...t).messageText,fo)}function V2(e,t,r,i,o,s){let l=SN(e,h=>r.readFile(h));if(!fo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=G2(e,l),p=r.getCurrentDirectory();return d.path=ks(e,p,od(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,H2(d,r,Qi(Ur(e),p),t,Qi(e,p),void 0,s,i,o)}function j2(e,t){let r=SN(e,t);return fo(r)?rU(e,r):{config:{},error:r}}function rU(e,t){let r=G2(e,t);return{config:XEe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function wie(e,t){let r=SN(e,t);return fo(r)?G2(e,r):{fileName:e,parseDiagnostics:[r]}}function SN(e,t){let r;try{r=t(e)}catch(i){return bl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?bl(f.Cannot_read_file_0,e):r}function iU(e){return PE(e,zEe)}function HEe(){return x0e||(x0e=O6(Yx))}function qEe(){return R0e||(R0e=iU(Nh))}function JEe(){return D0e||(D0e=iU(Yx))}function KEe(){return C0e||(C0e=iU($2))}function R4e(){return $ie===void 0&&($ie={name:void 0,type:\"object\",elementOptions:iU([Kie,Xie,Yie,Z2,{name:\"references\",type:\"list\",element:{name:\"references\",type:\"object\"},category:f.Projects},{name:\"files\",type:\"list\",element:{name:\"files\",type:\"string\"},category:f.File_Management},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},J2])}),$ie}function XEe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(vf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,Ll(e.fileName)===\"jsconfig.json\"?\"jsconfig.json\":\"tsconfig.json\")),Bd(o)){let s=Dr(o.elements,ma);if(s)return U2(e,s,t,!0,r)}return{}}return U2(e,o,t,!0,r)}function Wie(e,t){var r;return U2(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function U2(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var v;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(vf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(vf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,\"?\")),p(S.name)||r.push(vf(e,S.name,f.String_literal_with_double_quotes_expected));let A=aL(S.name)?void 0:$1(S.name),C=A&&Ii(A),R=C?(v=m?.elementOptions)==null?void 0:v.get(C):void 0,L=d(S.initializer,R);typeof C<\"u\"&&(i&&(E[C]=L),o?.onPropertySet(C,L,S,m,R))}return E}function l(h,m){if(!i){h.forEach(v=>d(v,m));return}return Cr(h.map(v=>d(v,m)),v=>v!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(vf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(vf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,oU(m))):r.push(vf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return da(h)&&IW(h,e)}}function oU(e){return e.type===\"listOrElement\"?`${oU(e.element)} or Array`:e.type===\"list\"?\"Array\":fo(e.type)?e.type:\"string\"}function YEe(e,t){if(e){if(q2(t))return!e.disallowNullOrUndefined;if(e.type===\"list\")return oo(t);if(e.type===\"listOrElement\")return oo(t)||YEe(e.element,t);let r=fo(e.type)?e.type:\"string\";return typeof t===r}return!1}function $Ee(e,t,r){var i,o,s;let l=od(r.useCaseSensitiveFileNames),d=nn(Cr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?C4e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ug),A=>RM(Qi(t,r.getCurrentDirectory()),Qi(A,r.getCurrentDirectory()),l)),p={configFilePath:Qi(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=F6(e.options,p),m=e.watchOptions&&N4e(e.watchOptions),v={compilerOptions:{...W6(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&W6(m),references:nn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:\"\",originalPath:void 0})),files:yn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:D4e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in Ul)if(!E.has(A)&&ct(Ul[A].dependencies,C=>E.has(C))){let C=Ul[A].computeValue(e.options),R=Ul[A].computeValue({});C!==R&&(S[A]=Ul[A].computeValue(e.options))}return R1(v.compilerOptions,W6(F6(S,p))),v}function W6(e){return{...bo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function D4e(e){if(yn(e)){if(yn(e)!==1)return e;if(e[0]!==J6)return e}}function C4e(e,t,r,i){if(!t)return Ug;let o=dF(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&iy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&iy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ug}function QEe(e){switch(e.type){case\"string\":case\"number\":case\"boolean\":case\"object\":return;case\"list\":case\"listOrElement\":return QEe(e.element);default:return e.type}}function aU(e,t){return hc(t,(r,i)=>{if(r===e)return i})}function F6(e,t){return ZEe(e,Xx(),t)}function N4e(e){return ZEe(e,HEe())}function ZEe(e,{optionsNameMap:t},r){let i=new Map,o=r&&od(r.useCaseSensitiveFileNames);for(let s in e)if(rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){x.assert(d.type!==\"listOrElement\");let p=QEe(d);p?d.type===\"list\"?i.set(s,l.map(h=>aU(h,p))):i.set(s,aU(l,p)):r&&d.isFilePath?i.set(s,RM(r.configFilePath,Qi(l,Ur(r.configFilePath)),o)):i.set(s,l)}}return i}function e0e(e,t){let r=t0e(e);return o();function i(s){return Array(s+1).join(\" \")}function o(){let s=[],l=i(2);return uU.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=Uie(d);p!==h?s.push(`${l}${d.name}: ${p}`):rs(H6,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function t0e(e){let t=Xw(e,H6);return F6(t)}function n0e(e,t,r){let i=t0e(e);return l();function o(d){return Array(d+1).join(\" \")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of Nh)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:\"\"}),m.push({value:`/* ${vo(A)} */`});for(let C of S){let R;i.has(C.name)?R=`\"${C.name}\": ${JSON.stringify(i.get(C.name))}${(h+=1)===i.size?\"\":\",\"}`:R=`// \"${C.name}\": ${JSON.stringify(Uie(C))},`,m.push({value:R,description:`/* ${C.description&&vo(C.description)||C.name} */`}),p=Math.max(R.length,p)}});let v=o(2),E=[];E.push(\"{\"),E.push(`${v}\"compilerOptions\": {`),E.push(`${v}${v}/* ${vo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push(\"\");for(let S of m){let{value:A,description:C=\"\"}=S;E.push(A&&`${v}${v}${A}${C&&o(p-A.length+2)+C}`)}if(t.length){E.push(`${v}},`),E.push(`${v}\"files\": [`);for(let S=0;S<t.length;S++)E.push(`${v}${v}${JSON.stringify(t[S])}${S===t.length-1?\"\":\",\"}`);E.push(`${v}]`)}else E.push(`${v}}`);return E.push(\"}\"),E.join(r)+r}}function sU(e,t){let r={},i=Xx().optionsNameMap;for(let o in e)rs(e,o)&&(r[o]=P4e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function P4e(e,t,r){if(e&&!q2(t)){if(e.type===\"list\"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);x.assert(e.type!==\"listOrElement\")}return t}function r0e(e,t,r,i,o,s,l,d,p){return o0e(e,void 0,t,r,i,p,o,s,l,d)}function H2(e,t,r,i,o,s,l,d,p){var h,m;(h=qn)==null||h.push(qn.Phase.Parse,\"parseJsonSourceFileConfigFileContent\",{path:e.fileName});let v=o0e(void 0,e,t,r,i,p,o,s,l,d);return(m=qn)==null||m.pop(),v}function lU(e,t){t&&Object.defineProperty(e,\"configFile\",{enumerable:!1,writable:!1,value:t})}function q2(e){return e==null}function i0e(e,t){return Ur(Qi(e,t))}function o0e(e,t,r,i,o={},s,l,d=[],p=[],h){x.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let m=[],v=l0e(e,t,r,i,l,d,m,h),{raw:E}=v,S=Xw(o,v.options||{}),A=s&&v.watchOptions?Xw(s,v.watchOptions):v.watchOptions||s;S.configFilePath=l&&ad(l);let C=L();t&&(t.configFileSpecs=C),lU(S,t);let R=Yo(l?i0e(l,i):i);return{options:S,watchOptions:A,fileNames:G(R),projectReferences:U(R),typeAcquisition:v.typeAcquisition||cU(),raw:E,errors:m,wildcardDirectories:B4e(C,R,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function L(){let $=oe(\"references\",ce=>typeof ce==\"object\",\"object\"),de=K(F(\"files\"));if(de){let ce=$===\"no-prop\"||oo($)&&$.length===0,Z=rs(E,\"extends\");if(de.length===0&&ce&&!Z)if(t){let pe=l||\"tsconfig.json\",Ae=f.The_files_list_in_config_file_0_is_empty,Oe=uL(t,\"files\",be=>be.initializer),_e=Bb(t,Oe,Ae,pe);m.push(_e)}else W(f.The_files_list_in_config_file_0_is_empty,l||\"tsconfig.json\")}let fe=K(F(\"include\")),q=F(\"exclude\"),H=!1,ee=K(q);if(q===\"no-prop\"&&E.compilerOptions){let ce=E.compilerOptions.outDir,Z=E.compilerOptions.declarationDir;(ce||Z)&&(ee=[ce,Z].filter(pe=>!!pe))}de===void 0&&fe===void 0&&(fe=[J6],H=!0);let le,Ee;return fe&&(le=b0e(fe,m,!0,t,\"include\")),ee&&(Ee=b0e(ee,m,!1,t,\"exclude\")),{filesSpecs:de,includeSpecs:fe,excludeSpecs:ee,validatedFilesSpec:Cr(de,fo),validatedIncludeSpecs:le,validatedExcludeSpecs:Ee,pathPatterns:void 0,isDefaultIncludeSpec:H}}function G($){let de=AN(C,$,S,r,p);return s0e(de,TN(E),d)&&m.push(a0e(C,l)),de}function U($){let de,fe=oe(\"references\",q=>typeof q==\"object\",\"object\");if(oo(fe))for(let q of fe)typeof q.path!=\"string\"?W(f.Compiler_option_0_requires_a_value_of_type_1,\"reference.path\",\"string\"):(de||(de=[])).push({path:Qi(q.path,$),originalPath:q.path,prepend:q.prepend,circular:q.circular});return de}function K($){return oo($)?$:void 0}function F($){return oe($,fo,\"string\")}function oe($,de,fe){if(rs(E,$)&&!q2(E[$]))if(oo(E[$])){let q=E[$];return!t&&!ji(q,de)&&m.push(bl(f.Compiler_option_0_requires_a_value_of_type_1,$,fe)),q}else return W(f.Compiler_option_0_requires_a_value_of_type_1,$,\"Array\"),\"not-array\";return\"no-prop\"}function W($,...de){t||m.push(bl($,...de))}}function M4e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function a0e({includeSpecs:e,excludeSpecs:t},r){return bl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||\"tsconfig.json\",JSON.stringify(e||[]),JSON.stringify(t||[]))}function s0e(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function TN(e){return!rs(e,\"files\")&&!rs(e,\"references\")}function z6(e,t,r,i,o){let s=i.length;return s0e(e,o)?i.push(a0e(r,t)):X5(i,l=>!M4e(l)),s!==i.length}function L4e(e){return!!e.options}function l0e(e,t,r,i,o,s,l,d){var p;i=ad(i);let h=Qi(o||\"\",i);if(s.includes(h))return l.push(bl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(\" -> \"))),{raw:e||Wie(t,l)};let m=e?k4e(e,r,i,o,l):O4e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};fo(m.extendedConfigPath)?v(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>v(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=bo(E.extendedSourceFiles.keys())),m.options=R1(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?R1(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function v(E,S){let A=w4e(t,S,r,s,l,d,E);if(A&&L4e(A)){let C=A.raw,R,L=G=>{C[G]&&(E[G]=nn(C[G],U=>Ou(U)?U:wr(R||(R=KD(Ur(S),i,od(r.useCaseSensitiveFileNames))),U)))};L(\"include\"),L(\"exclude\"),L(\"files\"),C.compileOnSave!==void 0&&(E.compileOnSave=C.compileOnSave),R1(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?R1({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function k4e(e,t,r,i,o){rs(e,\"excludes\")&&o.push(bl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=m0e(e.compilerOptions,r,o,i),l=_0e(e.typeAcquisition,r,o,i),d=F4e(e.watchOptions,r,o);e.compileOnSave=W4e(e,r,o);let p=e.extends||e.extends===\"\"?c0e(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function c0e(e,t,r,i,o,s,l,d){let p,h=i?i0e(i,r):r;if(fo(e))p=d0e(e,t,h,o,l,d);else if(oo(e)){p=[];for(let m=0;m<e.length;m++){let v=e[m];fo(v)?p=pn(p,d0e(v,t,h,o,l?.elements[m],d)):eT(Z2.element,e,r,o,s,l?.elements[m],d)}}else eT(Z2,e,r,o,s,l,d);return p}function O4e(e,t,r,i,o){let s=f0e(i),l,d,p,h,m=R4e(),v=XEe(e,o,{rootOptions:m,onPropertySet:E});return l||(l=cU(i)),h&&v&&v.compilerOptions===void 0&&o.push(vf(e,h[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,$1(h[0]))),{raw:v,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p};function E(S,A,C,R,L){if(L&&L!==Z2&&(A=eT(L,A,r,o,C,C.initializer,e)),R?.name)if(L){let G;R===Kie?G=s:R===Xie?G=d??(d={}):R===Yie?G=l??(l=cU(i)):x.fail(\"Unknown option\"),G[L.name]=A}else S&&R?.extraKeyDiagnostics&&(R.elementOptions?o.push(kie(S,R.extraKeyDiagnostics,void 0,C.name,e)):o.push(vf(e,C.name,R.extraKeyDiagnostics.unknownOptionDiagnostic,S)));else R===m&&(L===Z2?p=c0e(A,t,r,i,o,C,C.initializer,e):L||(S===\"excludes\"&&o.push(vf(e,C.name,f.Unknown_option_excludes_Did_you_mean_exclude)),Dr(uU,G=>G.name===S)&&(h=pn(h,C.name))))}}function d0e(e,t,r,i,o,s){if(e=ad(e),Ou(e)||Ui(e,\"./\")||Ui(e,\"../\")){let d=Qi(e,r);if(!t.fileExists(d)&&!Zs(d,\".json\")&&(d=`${d}.json`,!t.fileExists(d))){i.push(Bb(s,o,f.File_0_not_found,e));return}return d}let l=soe(e,wr(r,\"tsconfig.json\"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===\"\"?i.push(Bb(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,\"extends\")):i.push(Bb(s,o,f.File_0_not_found,e))}function w4e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:C_(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=wie(t,v=>r.readFile(v)),h.parseDiagnostics.length||(m=l0e(void 0,h,r,Ur(t),Ll(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let v of h.extendedSourceFiles)l.extendedSourceFiles.add(v);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function W4e(e,t,r){if(!rs(e,J2.name))return!1;let i=eT(J2,e.compileOnSave,t,r);return typeof i==\"boolean\"&&i}function u0e(e,t,r){let i=[];return{options:m0e(e,t,i,r),errors:i}}function p0e(e,t,r){let i=[];return{options:_0e(e,t,i,r),errors:i}}function f0e(e){return e&&Ll(e)===\"jsconfig.json\"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function m0e(e,t,r,i){let o=f0e(i);return Fie(qEe(),e,t,o,Q2,r),i&&(o.configFilePath=ad(i)),o}function cU(e){return{enable:!!e&&Ll(e)===\"jsconfig.json\",include:[],exclude:[]}}function _0e(e,t,r,i){let o=cU(i);return Fie(KEe(),e,t,o,Jie,r),o}function F4e(e,t,r){return Fie(JEe(),e,t,void 0,q6,r)}function Fie(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=eT(d,t[l],r,s):s.push(kie(l,o))}return i}}function Bb(e,t,r,...i){return e&&t?vf(e,t,r,...i):bl(r,...i)}function eT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(Bb(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(YEe(e,t)){let d=e.type;if(d===\"list\"&&oo(t))return g0e(e,t,r,i,o,s,l);if(d===\"listOrElement\")return oo(t)?g0e(e,t,r,i,o,s,l):eT(e.element,t,r,i,o,s,l);if(!fo(e.type))return h0e(e,t,i,s,l);let p=vI(e,t,i,s,l);return q2(p)?p:z4e(e,r,p)}else i.push(Bb(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,oU(e)))}function z4e(e,t,r){return e.isFilePath&&(r=Qi(r,t),r===\"\"&&(r=\".\")),r}function vI(e,t,r,i,o){var s;if(q2(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(Bb(o,i,...l))}function h0e(e,t,r,i,o){if(q2(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return vI(e,l,r,i,o);r.push(FEe(e,(d,...p)=>Bb(o,i,d,...p)))}function g0e(e,t,r,i,o,s,l){return Cr(nn(t,(d,p)=>eT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function AN(e,t,r,i,o=je){t=Yo(t);let s=od(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,E=GC(r,o),S=YL(r,E);if(h)for(let L of h){let G=Qi(L,t);l.set(s(G),G)}let A;if(m&&m.length>0)for(let L of i.readDirectory(t,Ff(S),v,m,void 0)){if(el(L,\".json\")){if(!A){let K=m.filter(oe=>Zs(oe,\".json\")),F=nn(lF(K,t,\"files\"),oe=>`^${oe}$`);A=F?F.map(oe=>iy(oe,i.useCaseSensitiveFileNames)):je}if(Tl(A,K=>K.test(L))!==-1){let K=s(L);!l.has(K)&&!p.has(K)&&p.set(K,L)}continue}if(V4e(L,l,d,E,s))continue;j4e(L,d,E,s);let G=s(L);!l.has(G)&&!d.has(G)&&d.set(G,L)}let C=bo(l.values()),R=bo(d.values());return C.concat(R,bo(p.values()))}function zie(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!yn(l)||!yn(d))return!1;r=Yo(r);let p=od(i);if(s){for(let h of s)if(p(Qi(h,r))===e)return!1}return y0e(e,d,i,o,r)}function v0e(e){let t=Ui(e,\"**/\")?0:e.indexOf(\"/**/\");return t===-1?!1:(Zs(e,\"/..\")?e.length:e.lastIndexOf(\"/../\"))>t}function B6(e,t,r,i){return y0e(e,Cr(t,o=>!v0e(o)),r,i)}function y0e(e,t,r,i,o){let s=BC(t,wr(Yo(i),o),\"exclude\"),l=s&&iy(s,r);return l?l.test(e)?!0:!TA(e)&&l.test(_c(e)):!1}function b0e(e,t,r,i,o){return e.filter(l=>{if(!fo(l))return!1;let d=Bie(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=fW(i,o,d);return Bb(i,p,l,d)}}function Bie(e,t){if(x.assert(typeof e==\"string\"),t&&N0e.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(v0e(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B4e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=BC(t,r,\"exclude\"),s=o&&new RegExp(o,i?\"\":\"i\"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=Yo(wr(r,h));if(s&&s.test(m))continue;let v=G4e(m,i);if(v){let{key:E,path:S,flags:A}=v,C=d.get(E),R=C!==void 0?l[C]:void 0;(R===void 0||R<A)&&(l[C!==void 0?C:S]=A,C===void 0&&d.set(E,S),A===1&&p.push(E))}}for(let h in l)if(rs(l,h))for(let m of p){let v=Gie(h,i);v!==m&&Bf(m,v,r,!i)&&delete l[h]}}return l}function Gie(e,t){return t?e:C_(e)}function G4e(e,t){let r=P0e.exec(e);if(r){let i=e.indexOf(\"?\"),o=e.indexOf(\"*\"),s=e.lastIndexOf(Os);return{key:Gie(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(RV(e.substring(e.lastIndexOf(Os)+1))){let i=fb(e);return{key:Gie(i,t),path:i,flags:1}}}function V4e(e,t,r,i,o){let s=an(i,l=>$l(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(el(e,l)&&(l!==\".ts\"||!el(e,\".d.ts\")))return!1;let d=o(Nb(e,l));if(t.has(d)||r.has(d)){if(l===\".d.ts\"&&(el(e,\".js\")||el(e,\".jsx\")))continue;return!0}}return!1}function j4e(e,t,r,i){let o=an(r,s=>$l(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(el(e,l))return;let d=i(Nb(e,l));t.delete(d)}}function Vie(e){let t={};for(let r in e)if(rs(e,r)){let i=nU(r);i!==void 0&&(t[r]=jie(e[r],i))}return t}function jie(e,t){if(e===void 0)return e;switch(t.type){case\"object\":return\"\";case\"string\":return\"\";case\"number\":return typeof e==\"number\"?e:\"\";case\"boolean\":return typeof e==\"boolean\"?e:\"\";case\"listOrElement\":if(!oo(e))return jie(e,t.element);case\"list\":let r=t.element;return oo(e)?Fi(e,i=>jie(i,r)):\"\";default:return hc(t.type,(i,o)=>{if(i===e)return o})}}function Uie(e){switch(e.type){case\"number\":return 1;case\"boolean\":return!0;case\"string\":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t==\"string\"?t:\"\"}`:\"\";case\"list\":return[];case\"listOrElement\":return Uie(e.element);case\"object\":return{};default:let r=qw(e.type.keys());return r!==void 0?r:x.fail(\"Expected 'option.type' to have entries.\")}}var J2,Hie,IN,qie,K2,G6,Yx,X2,Y2,dU,uU,Nh,pU,fU,mU,V6,j6,_U,hU,gU,U6,$2,E0e,S0e,H6,Q2,T0e,A0e,I0e,Jie,x0e,q6,R0e,D0e,C0e,Z2,Kie,Xie,Yie,$ie,J6,N0e,P0e,U4e=pt({\"src/compiler/commandLineParser.ts\"(){\"use strict\";wo(),J2={name:\"compileOnSave\",type:\"boolean\",defaultValueDescription:!1},Hie=new Map(Object.entries({preserve:1,\"react-native\":3,react:2,\"react-jsx\":4,\"react-jsxdev\":5})),IN=new Map(OD(Hie.entries(),([e,t])=>[\"\"+t,e])),qie=[[\"es5\",\"lib.es5.d.ts\"],[\"es6\",\"lib.es2015.d.ts\"],[\"es2015\",\"lib.es2015.d.ts\"],[\"es7\",\"lib.es2016.d.ts\"],[\"es2016\",\"lib.es2016.d.ts\"],[\"es2017\",\"lib.es2017.d.ts\"],[\"es2018\",\"lib.es2018.d.ts\"],[\"es2019\",\"lib.es2019.d.ts\"],[\"es2020\",\"lib.es2020.d.ts\"],[\"es2021\",\"lib.es2021.d.ts\"],[\"es2022\",\"lib.es2022.d.ts\"],[\"es2023\",\"lib.es2023.d.ts\"],[\"esnext\",\"lib.esnext.d.ts\"],[\"dom\",\"lib.dom.d.ts\"],[\"dom.iterable\",\"lib.dom.iterable.d.ts\"],[\"dom.asynciterable\",\"lib.dom.asynciterable.d.ts\"],[\"webworker\",\"lib.webworker.d.ts\"],[\"webworker.importscripts\",\"lib.webworker.importscripts.d.ts\"],[\"webworker.iterable\",\"lib.webworker.iterable.d.ts\"],[\"webworker.asynciterable\",\"lib.webworker.asynciterable.d.ts\"],[\"scripthost\",\"lib.scripthost.d.ts\"],[\"es2015.core\",\"lib.es2015.core.d.ts\"],[\"es2015.collection\",\"lib.es2015.collection.d.ts\"],[\"es2015.generator\",\"lib.es2015.generator.d.ts\"],[\"es2015.iterable\",\"lib.es2015.iterable.d.ts\"],[\"es2015.promise\",\"lib.es2015.promise.d.ts\"],[\"es2015.proxy\",\"lib.es2015.proxy.d.ts\"],[\"es2015.reflect\",\"lib.es2015.reflect.d.ts\"],[\"es2015.symbol\",\"lib.es2015.symbol.d.ts\"],[\"es2015.symbol.wellknown\",\"lib.es2015.symbol.wellknown.d.ts\"],[\"es2016.array.include\",\"lib.es2016.array.include.d.ts\"],[\"es2016.intl\",\"lib.es2016.intl.d.ts\"],[\"es2017.date\",\"lib.es2017.date.d.ts\"],[\"es2017.object\",\"lib.es2017.object.d.ts\"],[\"es2017.sharedmemory\",\"lib.es2017.sharedmemory.d.ts\"],[\"es2017.string\",\"lib.es2017.string.d.ts\"],[\"es2017.intl\",\"lib.es2017.intl.d.ts\"],[\"es2017.typedarrays\",\"lib.es2017.typedarrays.d.ts\"],[\"es2018.asyncgenerator\",\"lib.es2018.asyncgenerator.d.ts\"],[\"es2018.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"es2018.intl\",\"lib.es2018.intl.d.ts\"],[\"es2018.promise\",\"lib.es2018.promise.d.ts\"],[\"es2018.regexp\",\"lib.es2018.regexp.d.ts\"],[\"es2019.array\",\"lib.es2019.array.d.ts\"],[\"es2019.object\",\"lib.es2019.object.d.ts\"],[\"es2019.string\",\"lib.es2019.string.d.ts\"],[\"es2019.symbol\",\"lib.es2019.symbol.d.ts\"],[\"es2019.intl\",\"lib.es2019.intl.d.ts\"],[\"es2020.bigint\",\"lib.es2020.bigint.d.ts\"],[\"es2020.date\",\"lib.es2020.date.d.ts\"],[\"es2020.promise\",\"lib.es2020.promise.d.ts\"],[\"es2020.sharedmemory\",\"lib.es2020.sharedmemory.d.ts\"],[\"es2020.string\",\"lib.es2020.string.d.ts\"],[\"es2020.symbol.wellknown\",\"lib.es2020.symbol.wellknown.d.ts\"],[\"es2020.intl\",\"lib.es2020.intl.d.ts\"],[\"es2020.number\",\"lib.es2020.number.d.ts\"],[\"es2021.promise\",\"lib.es2021.promise.d.ts\"],[\"es2021.string\",\"lib.es2021.string.d.ts\"],[\"es2021.weakref\",\"lib.es2021.weakref.d.ts\"],[\"es2021.intl\",\"lib.es2021.intl.d.ts\"],[\"es2022.array\",\"lib.es2022.array.d.ts\"],[\"es2022.error\",\"lib.es2022.error.d.ts\"],[\"es2022.intl\",\"lib.es2022.intl.d.ts\"],[\"es2022.object\",\"lib.es2022.object.d.ts\"],[\"es2022.sharedmemory\",\"lib.es2022.sharedmemory.d.ts\"],[\"es2022.string\",\"lib.es2022.string.d.ts\"],[\"es2022.regexp\",\"lib.es2022.regexp.d.ts\"],[\"es2023.array\",\"lib.es2023.array.d.ts\"],[\"es2023.collection\",\"lib.es2023.collection.d.ts\"],[\"esnext.array\",\"lib.es2023.array.d.ts\"],[\"esnext.collection\",\"lib.esnext.collection.d.ts\"],[\"esnext.symbol\",\"lib.es2019.symbol.d.ts\"],[\"esnext.asynciterable\",\"lib.es2018.asynciterable.d.ts\"],[\"esnext.intl\",\"lib.esnext.intl.d.ts\"],[\"esnext.disposable\",\"lib.esnext.disposable.d.ts\"],[\"esnext.bigint\",\"lib.es2020.bigint.d.ts\"],[\"esnext.string\",\"lib.es2022.string.d.ts\"],[\"esnext.promise\",\"lib.esnext.promise.d.ts\"],[\"esnext.weakref\",\"lib.es2021.weakref.d.ts\"],[\"esnext.decorators\",\"lib.esnext.decorators.d.ts\"],[\"esnext.object\",\"lib.esnext.object.d.ts\"],[\"decorators\",\"lib.decorators.d.ts\"],[\"decorators.legacy\",\"lib.decorators.legacy.d.ts\"]],K2=qie.map(e=>e[0]),G6=new Map(qie),Yx=[{name:\"watchFile\",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:\"watchDirectory\",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:\"fallbackPolling\",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:\"synchronousWatchDirectory\",type:\"boolean\",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:\"excludeDirectories\",type:\"list\",element:{name:\"excludeDirectory\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:\"excludeFiles\",type:\"list\",element:{name:\"excludeFile\",type:\"string\",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],X2=[{name:\"help\",shortName:\"h\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:\"help\",shortName:\"?\",type:\"boolean\",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:\"watch\",shortName:\"w\",type:\"boolean\",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:\"preserveWatchOutput\",type:\"boolean\",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:\"listFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:\"explainFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:\"listEmittedFiles\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:\"pretty\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:\"traceResolution\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:\"diagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"extendedDiagnostics\",type:\"boolean\",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:\"generateCpuProfile\",type:\"string\",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:\"profile.cpuprofile\"},{name:\"generateTrace\",type:\"string\",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:\"incremental\",shortName:\"i\",type:\"boolean\",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declaration\",shortName:\"d\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:\"declarationMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:\"emitDeclarationOnly\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"sourceMap\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:\"inlineSourceMap\",type:\"boolean\",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"assumeChangesOnlyAffectDirectDependencies\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:\"locale\",type:\"string\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],Y2={name:\"target\",shortName:\"t\",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set([\"es3\"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},dU={name:\"module\",shortName:\"m\",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},uU=[{name:\"all\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:\"version\",shortName:\"v\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:\"init\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:\"project\",shortName:\"p\",type:\"string\",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:\"build\",type:\"boolean\",shortName:\"b\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:\"showConfig\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:\"listFilesOnly\",type:\"boolean\",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Y2,dU,{name:\"lib\",type:\"list\",element:{name:\"lib\",type:G6,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:\"allowJs\",type:\"boolean\",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:\"checkJs\",type:\"boolean\",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:\"jsx\",type:Hie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:\"outFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:\"outDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:\"rootDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"composite\",type:\"boolean\",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:\"tsBuildInfoFile\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:\".tsbuildinfo\",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:\"removeComments\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:\"noEmit\",type:\"boolean\",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:\"importHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:\"importsNotUsedAsValues\",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:\"downlevelIteration\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:\"isolatedModules\",type:\"boolean\",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"verbatimModuleSyntax\",type:\"boolean\",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:\"strict\",type:\"boolean\",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:\"noImplicitAny\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictNullChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictFunctionTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictBindCallApply\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:\"strictPropertyInitialization\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noImplicitThis\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"useUnknownInCatchVariables\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:\"alwaysStrict\",type:\"boolean\",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:\"noUnusedLocals\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:\"noUnusedParameters\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:\"exactOptionalPropertyTypes\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:\"noImplicitReturns\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:\"noFallthroughCasesInSwitch\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:\"noUncheckedIndexedAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:\"noImplicitOverride\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:\"noPropertyAccessFromIndexSignature\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:\"moduleResolution\",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set([\"node\"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:\"baseUrl\",type:\"string\",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:\"paths\",type:\"object\",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:\"rootDirs\",type:\"list\",isTSConfigOnly:!0,element:{name:\"rootDirs\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:\"typeRoots\",type:\"list\",element:{name:\"typeRoots\",type:\"string\",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:\"types\",type:\"list\",element:{name:\"types\",type:\"string\"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:\"allowSyntheticDefaultImports\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:\"esModuleInterop\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:\"preserveSymlinks\",type:\"boolean\",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:\"allowUmdGlobalAccess\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:\"moduleSuffixes\",type:\"list\",element:{name:\"suffix\",type:\"string\"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:\"allowImportingTsExtensions\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:\"resolvePackageJsonExports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"resolvePackageJsonImports\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:\"customConditions\",type:\"list\",element:{name:\"condition\",type:\"string\"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:\"sourceRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:\"mapRoot\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:\"inlineSources\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:\"experimentalDecorators\",type:\"boolean\",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:\"emitDecoratorMetadata\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:\"jsxFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:\"`React.createElement`\"},{name:\"jsxFragmentFactory\",type:\"string\",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:\"React.Fragment\"},{name:\"jsxImportSource\",type:\"string\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:\"react\"},{name:\"resolveJsonModule\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:\"allowArbitraryExtensions\",type:\"boolean\",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:\"out\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:\"reactNamespace\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:\"`React`\"},{name:\"skipDefaultLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:\"charset\",type:\"string\",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:\"utf8\"},{name:\"emitBOM\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:\"newLine\",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:\"lf\"},{name:\"noErrorTruncation\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:\"noLib\",type:\"boolean\",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"noResolve\",type:\"boolean\",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:\"stripInternal\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:\"disableSizeLimit\",type:\"boolean\",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:\"disableSourceOfProjectReferenceRedirect\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:\"disableSolutionSearching\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:\"disableReferencedProjectLoad\",type:\"boolean\",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:\"noImplicitUseStrict\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:\"noEmitHelpers\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:\"noEmitOnError\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:\"preserveConstEnums\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:\"declarationDir\",type:\"string\",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:\"skipLibCheck\",type:\"boolean\",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:\"allowUnusedLabels\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:\"allowUnreachableCode\",type:\"boolean\",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:\"suppressExcessPropertyErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:\"suppressImplicitAnyIndexErrors\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:\"forceConsistentCasingInFileNames\",type:\"boolean\",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:\"maxNodeModuleJsDepth\",type:\"number\",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:\"noStrictGenericChecks\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:\"useDefineForClassFields\",type:\"boolean\",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:\"preserveValueImports\",type:\"boolean\",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:\"keyofStringsOnly\",type:\"boolean\",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:\"plugins\",type:\"list\",isTSConfigOnly:!0,element:{name:\"plugin\",type:\"object\"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:\"moduleDetection\",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:\"ignoreDeprecations\",type:\"string\",defaultValueDescription:void 0}],Nh=[...X2,...uU],pU=Nh.filter(e=>!!e.affectsSemanticDiagnostics),fU=Nh.filter(e=>!!e.affectsEmit),mU=Nh.filter(e=>!!e.affectsDeclarationPath),V6=Nh.filter(e=>!!e.affectsModuleResolution),j6=Nh.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),_U=Nh.filter(e=>!!e.affectsProgramStructure),hU=Nh.filter(e=>rs(e,\"transpileOptionValue\")),gU=[{name:\"verbose\",shortName:\"v\",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:\"boolean\",defaultValueDescription:!1},{name:\"dry\",shortName:\"d\",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:\"boolean\",defaultValueDescription:!1},{name:\"force\",shortName:\"f\",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:\"boolean\",defaultValueDescription:!1},{name:\"clean\",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:\"boolean\",defaultValueDescription:!1}],U6=[...X2,...gU],$2=[{name:\"enable\",type:\"boolean\",defaultValueDescription:!1},{name:\"include\",type:\"list\",element:{name:\"include\",type:\"string\"}},{name:\"exclude\",type:\"list\",element:{name:\"exclude\",type:\"string\"}},{name:\"disableFilenameBasedTypeAcquisition\",type:\"boolean\",defaultValueDescription:!1}],S0e={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:VEe},H6={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Q2={alternateMode:S0e,getOptionsNameMap:Xx,optionDeclarations:Nh,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},A0e={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Xx},I0e={alternateMode:A0e,getOptionsNameMap:VEe,optionDeclarations:U6,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Jie={optionDeclarations:$2,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},q6={getOptionsNameMap:HEe,optionDeclarations:Yx,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},Z2={name:\"extends\",type:\"listOrElement\",element:{name:\"extends\",type:\"string\"},category:f.File_Management,disallowNullOrUndefined:!0},Kie={name:\"compilerOptions\",type:\"object\",elementOptions:qEe(),extraKeyDiagnostics:Q2},Xie={name:\"watchOptions\",type:\"object\",elementOptions:JEe(),extraKeyDiagnostics:q6},Yie={name:\"typeAcquisition\",type:\"object\",elementOptions:KEe(),extraKeyDiagnostics:Jie},J6=\"**/*\",N0e=/(^|\\/)\\*\\*\\/?$/,P0e=/^[^*?]*(?=\\/[^/]*[*?])/}});function to(e,t,...r){e.trace(SV(t,...r))}function cg(e,t){return!!e.traceResolution&&t.trace!==void 0}function yI(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name==\"string\"&&typeof i.version==\"string\"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Os.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function vU(e){return yI(void 0,e)}function M0e(e){if(e)return x.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function K6(e){let t=[];return e&1&&t.push(\"TypeScript\"),e&2&&t.push(\"JavaScript\"),e&4&&t.push(\"Declaration\"),e&8&&t.push(\"JSON\"),t.join(\", \")}function H4e(e){let t=[];return e&1&&t.push(...l2),e&2&&t.push(...Px),e&4&&t.push(...s2),e&8&&t.push(\".json\"),t}function Qie(e){if(e)return x.assert(mF(e.extension)),{fileName:e.path,packageId:e.packageId}}function L0e(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Ic(e)){let{resolvedFileName:h,originalPath:m}=w0e(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return k0e(t,r,i,o,s,l.resultFromCache,d,p)}function k0e(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:Zie(s.failedLookupLocations,r),affectingLocations:Zie(s.affectingLocations,i),resolutionDiagnostics:Zie(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=$x(s.failedLookupLocations,r),s.affectingLocations=$x(s.affectingLocations,i),s.resolutionDiagnostics=$x(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:xN(r),affectingLocations:xN(i),resolutionDiagnostics:xN(o),alternateResult:d}}function xN(e){return e.length?e:void 0}function $x(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Zie(e,t){return e?.length?t.length?[...e,...t]:e.slice():xN(t)}function O0e(e,t,r,i){if(!rs(e,t)){i.traceEnabled&&to(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&to(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?\"null\":typeof o);return}return o}function yU(e,t,r,i){let o=O0e(e,t,\"string\",i);if(o===void 0)return;if(!o){i.traceEnabled&&to(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=Yo(wr(r,o));return i.traceEnabled&&to(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function q4e(e,t,r){return yU(e,\"typings\",t,r)||yU(e,\"types\",t,r)}function J4e(e,t,r){return yU(e,\"tsconfig\",t,r)}function K4e(e,t,r){return yU(e,\"main\",t,r)}function X4e(e,t){let r=O0e(e,\"typesVersions\",\"object\",t);if(r!==void 0)return t.traceEnabled&&to(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y4e(e,t){let r=X4e(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)rs(r,l)&&!hM.tryParse(l)&&to(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=X6(r);if(!i){t.traceEnabled&&to(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,jm);return}let{version:o,paths:s}=i;if(typeof s!=\"object\"){t.traceEnabled&&to(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,\"object\",typeof s);return}return i}function X6(e){foe||(foe=new zf(bp));for(let t in e){if(!rs(e,t))continue;let r=hM.tryParse(t);if(r!==void 0&&r.test(foe))return{version:t,paths:e[t]}}}function RN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=Ur(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $4e(r)}function $4e(e){let t;return Vf(Yo(e),r=>{let i=wr(r,iSe);(t??(t=[])).push(i)}),t}function Q4e(e,t,r){let i=typeof r.useCaseSensitiveFileNames==\"function\"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Xh(e,t,!i)===0}function w0e(e,t,r){let i=d3e(e,t,r),o=Q4e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function W0e(e,t,r){let i=Zs(e,\"/node_modules/@types\")||Zs(e,\"/node_modules/@types/\")?tSe(t,r):t;return wr(e,i)}function eoe(e,t,r,i,o,s,l){x.assert(typeof e==\"string\",\"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.\");let d=cg(r,i);o&&(r=o.commandLine.options);let p=t?Ur(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Ic(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(to(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),to(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),F(h)),h;let m=RN(r,i);d&&(t===void 0?m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let v=[],E=[],S=toe(r);l!==void 0&&(S|=30);let A=zd(r);l===99&&3<=A&&A<=99&&(S|=32);let C=S&8?hy(r,l):[],R=[],L={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:v,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:C,requestContainingDirectory:p,reportDiagnostic:$=>void R.push($),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},G=oe(),U=!0;G||(G=W(),U=!1);let K;if(G){let{fileName:$,packageId:de}=G,fe=$,q;r.preserveSymlinks||({resolvedFileName:fe,originalPath:q}=w0e($,i,d)),K={primary:U,resolvedFileName:fe,originalPath:q,packageId:de,isExternalLibraryImport:Gb($)}}return h={resolvedTypeReferenceDirective:K,failedLookupLocations:xN(v),affectingLocations:xN(E),resolutionDiagnostics:xN(R)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Ic(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&F(h),h;function F($){var de;(de=$.resolvedTypeReferenceDirective)!=null&&de.resolvedFileName?$.resolvedTypeReferenceDirective.packageId?to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,$.resolvedTypeReferenceDirective.resolvedFileName,Qv($.resolvedTypeReferenceDirective.packageId),$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,$.resolvedTypeReferenceDirective.resolvedFileName,$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_not_resolved,e)}function oe(){if(m&&m.length)return d&&to(i,f.Resolving_with_primary_search_path_0,m.join(\", \")),ml(m,$=>{let de=W0e($,e,L),fe=gm($,i);if(!fe&&d&&to(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,$),r.typeRoots){let q=eR(4,de,!fe,L);if(q){let H=tk(q.path),ee=H?m0(H,!1,L):void 0;return Qie(yI(ee,q))}}return Qie(coe(4,de,!fe,L))});d&&to(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function W(){let $=t&&Ur(t);if($!==void 0){let de;if(!r.typeRoots||!Zs(t,lR))if(d&&to(i,f.Looking_up_in_node_modules_folder_initial_location_0,$),Ic(e)){let{path:fe}=j0e($,e);de=AU(4,fe,!1,L,!0)}else{let fe=$0e(4,e,$,L,void 0,void 0);de=fe&&fe.value}else d&&to(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Qie(de)}else d&&to(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function toe(e){let t=0;switch(zd(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function hy(e,t){let r=zd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?[\"import\"]:[\"require\"];return e.noDtsResolution||i.push(\"types\"),r!==100&&i.push(\"node\"),ro(i,e.customConditions)}function bU(e,t,r,i,o){let s=nk(o?.getPackageJsonInfoCache(),i,r);return Vf(t,l=>{if(Ll(l)!==\"node_modules\"){let d=wr(l,\"node_modules\"),p=wr(d,e);return m0(p,!1,s)}})}function Y6(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=RN(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=Yo(s),d=wr(o,l,\"package.json\");if(!(t.fileExists(d)&&kC(d,t).typings===null)){let h=Ll(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function $6(e){return!!e?.contents}function noe(e){return!!e&&!e.contents}function roe(e){var t;if(e===null||typeof e!=\"object\")return\"\"+e;if(oo(e))return`[${(t=e.map(i=>roe(i)))==null?void 0:t.join(\",\")}]`;let r=\"{\";for(let i in e)rs(e,i)&&(r+=`${i}: ${roe(e[i])}`);return r+\"}\"}function EU(e,t){return t.map(r=>roe(iF(e,r))).join(\"|\")+`|${e.pathsBasePath}`}function SU(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(v){return v?p(v.commandLine.options,!1):o}function l(v){return v?p(v.commandLine.options,!0):o}function d(v){e!==v&&(e?o=p(v,!0):r.set(v,o),e=v)}function p(v,E){let S=r.get(v);if(S)return S;let A=m(v);if(S=i.get(A),!S){if(e){let C=m(e);C===A?S=o:i.has(C)||i.set(C,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(v,S),S}function h(){let v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function m(v){let E=t.get(v);return E||t.set(v,E=EU(v,V6)),E}}function Z4e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(ks(d,e,t))}function o(d,p){(r||(r=new Map)).set(ks(d,e,t),p)}function s(){r=void 0}function l(){return r}}function F0e(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function e3e(e,t,r,i){let o=SU(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let v=ks(h,e,t);return F0e(o,m,v,()=>bI())}function p(h,m,v,E){var S,A;let C=ks(v,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(C))==null?void 0:A.get(h,m)}}function DN(e,t){return t===void 0?e:`${t}|${e}`}function bI(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=DN(o,s);return t.set(l,[o,s]),l}}function t3e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function n3e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function r3e(e,t,r,i,o){let s=SU(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(v){s.update(v)}function p(v,E,S,A){var C,R;return x.assert(!Ic(v)),(R=(C=s.getMapOfCacheRedirects(A))==null?void 0:C.get(DN(v,E)))==null?void 0:R.get(S)}function h(v,E,S){return x.assert(!Ic(v)),F0e(s,S,DN(v,E),m)}function m(){let v=new Map;return{get:E,set:S};function E(C){return v.get(ks(C,e,t))}function S(C,R){let L=ks(C,e,t);if(v.has(L))return;v.set(L,R);let G=i(R),U=G&&A(L,G),K=L;for(;K!==U;){let F=Ur(K);if(F===K||v.has(F))break;v.set(F,R),K=F}}function A(C,R){let L=ks(Ur(R),e,t),G=0,U=Math.min(C.length,L.length);for(;G<U&&C.charCodeAt(G)===L.charCodeAt(G);)G++;if(G===C.length&&(L.length===G||L[G]===Os))return C;let K=M_(C);if(G<K)return;let F=C.lastIndexOf(Os,G-1);if(F!==-1)return C.substr(0,Math.max(F,K))}}}function z0e(e,t,r,i,o,s){s??(s=new Map);let l=e3e(e,t,r,s),d=r3e(e,t,r,o,s);return i??(i=Z4e(e,t)),{...i,...l,...d,clear:p,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(v){l.update(v),d.update(v)}}function Qx(e,t,r,i,o){let s=z0e(e,t,r,i,t3e,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function Q6(e,t,r,i,o){return z0e(e,t,r,i,n3e,o)}function TU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Z6(e,t,r,i,o){return Zx(e,t,TU(r),i,o)}function B0e(e,t,r,i){let o=Ur(t);return r.getFromDirectoryCache(e,i,o,void 0)}function Zx(e,t,r,i,o,s,l){var d,p,h;let m=cg(r,i);s&&(r=s.commandLine.options),m&&(to(i,f.Resolving_module_0_from_1,e,t),s&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let v=Ur(t),E=o?.getFromDirectoryCache(e,l,v,s);if(E)m&&to(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,v);else{let S=r.moduleResolution;switch(S===void 0?(S=zd(r),m&&to(i,f.Module_resolution_kind_is_not_specified_using_0,O1[S])):m&&to(i,f.Explicitly_specified_module_resolution_kind_Colon_0,O1[S]),(d=Pd)==null||d.logStartResolveModule(e),S){case 3:E=s3e(e,t,r,i,o,s,l);break;case 99:E=l3e(e,t,r,i,o,s,l);break;case 2:E=aoe(e,t,r,i,o,s,l?hy(r,l):void 0);break;case 1:E=uoe(e,t,r,i,o,s);break;case 100:E=ooe(e,t,r,i,o,s,l?hy(r,l):void 0);break;default:return x.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=Pd)==null||p.logInfoEvent(`Module \"${e}\" resolved to \"${E.resolvedModule.resolvedFileName}\"`)),(h=Pd)==null||h.logStopResolveModule(E&&E.resolvedModule?\"\"+E.resolvedModule.resolvedFileName:\"null\"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(v,s).set(e,l,E),Ic(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(v,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?to(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,Qv(E.resolvedModule.packageId)):to(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):to(i,f.Module_name_0_was_not_resolved,e)),E}function G0e(e,t,r,i,o){let s=i3e(e,t,i,o);return s?s.value:Ic(t)?o3e(e,t,r,i,o):a3e(e,t,i,o)}function i3e(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!op(t)){i.traceEnabled&&(s&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),to(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=zW(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=fF(l)):void 0;return doe(e,t,p,l,h,r,!1,i)}}function o3e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&to(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=Yo(wr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=Yo(p);Zs(h,Os)||(h+=Os);let m=Ui(s,h)&&(d===void 0||d.length<h.length);o.traceEnabled&&to(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,m),m&&(d=h,l=p)}if(d){o.traceEnabled&&to(o.host,f.Longest_matching_prefix_for_0_is_1,s,d);let p=s.substr(d.length);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,d,s);let h=i(e,s,!gm(r,o.host),o);if(h)return h;o.traceEnabled&&to(o.host,f.Trying_other_entries_in_rootDirs);for(let m of o.compilerOptions.rootDirs){if(m===l)continue;let v=wr(Yo(m),p);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,m,v);let E=Ur(v),S=i(e,v,!gm(E,o.host),o);if(S)return S}o.traceEnabled&&to(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function a3e(e,t,r,i){let{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);let s=Yo(wr(o,t));return i.traceEnabled&&to(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!gm(Ur(s),i.host),i)}function ioe(e,t,r){let{resolvedModule:i,failedLookupLocations:o}=c3e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(\", \")}`);return i.resolvedFileName}function s3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function l3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function V0e(e,t,r,i,o,s,l,d,p){let h=Ur(r),m=d===99?32:0,v=i.noDtsResolution?3:7;return Mb(i)&&(v|=8),ek(e|m,t,h,i,o,s,v,!1,l,p)}function c3e(e,t,r){return ek(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function ooe(e,t,r,i,o,s,l){let d=Ur(t),p=r.noDtsResolution?3:7;return Mb(r)&&(p|=8),ek(toe(r),e,d,r,i,o,p,!1,s,l)}function aoe(e,t,r,i,o,s,l,d){let p;return d?p=8:r.noDtsResolution?(p=3,Mb(r)&&(p|=8)):p=Mb(r)?15:7,ek(l?30:0,e,Ur(t),r,i,o,p,!!d,s,l)}function soe(e,t,r){return ek(30,e,Ur(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function ek(e,t,r,i,o,s,l,d,p,h){var m,v,E,S,A;let C=cg(i,o),R=[],L=[],G=zd(i);h??(h=hy(i,G===100||G===2?void 0:e&32?99:1));let U=[],K={compilerOptions:i,host:o,traceEnabled:C,failedLookupLocations:R,affectingLocations:L,packageJsonInfoCache:s,features:e,conditions:h??je,requestContainingDirectory:r,reportDiagnostic:$=>void U.push($),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};C&&HA(G)&&to(o,f.Resolving_in_0_mode_with_conditions_1,e&32?\"ESM\":\"CJS\",K.conditions.map($=>`'${$}'`).join(\", \"));let F;if(G===2){let $=l&5,de=l&-6;F=$&&W($,K)||de&&W(de,K)||void 0}else F=W(l,K);let oe;if(K.resolvedPackageDirectory&&!d&&!Ic(t)){let $=F?.value&&l&5&&!K0e(5,F.value.resolved.extension);if((m=F?.value)!=null&&m.isExternalLibraryImport&&$&&e&8&&h?.includes(\"import\")){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let de={...K,features:K.features&-9,reportDiagnostic:Ca},fe=W(l&5,de);(v=fe?.value)!=null&&v.isExternalLibraryImport&&(oe=fe.value.resolved.path)}else if((!F?.value||$)&&G===2){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let de={...K.compilerOptions,moduleResolution:100},fe={...K,compilerOptions:de,features:30,conditions:hy(de),reportDiagnostic:Ca},q=W(l&5,fe);(E=q?.value)!=null&&E.isExternalLibraryImport&&(oe=q.value.resolved.path)}}return L0e(t,(S=F?.value)==null?void 0:S.resolved,(A=F?.value)==null?void 0:A.isExternalLibraryImport,R,L,U,K,s,oe);function W($,de){let q=G0e($,t,r,(H,ee,le,Ee)=>AU(H,ee,le,Ee,!0),de);if(q)return Rp({resolved:q,isExternalLibraryImport:Gb(q.path)});if(Ic(t)){let{path:H,parts:ee}=j0e(r,t),le=AU($,H,!1,de,!0);return le&&Rp({resolved:le,isExternalLibraryImport:To(ee,\"node_modules\")})}else{let H;if(e&2&&Ui(t,\"#\")&&(H=m3e($,t,r,de,s,p)),!H&&e&4&&(H=f3e($,t,r,de,s,p)),!H){if(t.includes(\":\")){C&&to(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,K6($));return}C&&to(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,K6($)),H=$0e($,t,r,de,s,p)}return $&4&&(H??(H=rSe(t,de))),H&&{value:H.value&&{resolved:H.value,isExternalLibraryImport:!0}}}}}function j0e(e,t){let r=wr(e,t),i=mc(r),o=Ns(i);return{path:o===\".\"||o===\"..\"?_c(Yo(r)):Yo(r),parts:i}}function d3e(e,t,r){if(!t.realpath)return e;let i=Yo(t.realpath(e));return r&&to(t,f.Resolving_real_path_for_0_result_1,e,i),i}function AU(e,t,r,i,o){if(i.traceEnabled&&to(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,K6(e)),!Jg(t)){if(!r){let l=Ur(t);gm(l,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=eR(e,t,r,i);if(s){let l=o?tk(s.path):void 0,d=l?m0(l,!1,i):void 0;return yI(d,s)}}if(r||gm(t,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return coe(e,t,r,i,o)}function Gb(e){return e.includes(q_)}function tk(e,t){let r=Yo(e),i=r.lastIndexOf(q_);if(i===-1)return;let o=i+q_.length,s=U0e(r,o,t);return r.charCodeAt(o)===64&&(s=U0e(r,s,t)),r.slice(0,s)}function U0e(e,t,r){let i=e.indexOf(Os,t+1);return i===-1?r?e.length:t:i}function loe(e,t,r,i){return vU(eR(e,t,r,i))}function eR(e,t,r,i){let o=H0e(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=q0e(t,e,\"\",r,i);if(s)return s}}function H0e(e,t,r,i){if(!Ll(t).includes(\".\"))return;let s=Yd(t);s===t&&(s=t.substring(0,t.lastIndexOf(\".\")));let l=t.substring(s.length);return i.traceEnabled&&to(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),q0e(s,e,l,r,i)}function IU(e,t,r,i){return e&1&&$l(t,l2)||e&4&&$l(t,s2)?xU(t,r,i)!==void 0?{path:t,ext:JW(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&el(t,\".json\")?xU(t,r,i)!==void 0?{path:t,ext:\".json\",resolvedUsingTsExtension:void 0}:void 0:H0e(e,t,r,i)}function q0e(e,t,r,i,o){if(!i){let l=Ur(e);l&&(i=!gm(l,o.host))}switch(r){case\".mjs\":case\".mts\":case\".d.mts\":return t&1&&s(\".mts\",r===\".mts\"||r===\".d.mts\")||t&4&&s(\".d.mts\",r===\".mts\"||r===\".d.mts\")||t&2&&s(\".mjs\")||void 0;case\".cjs\":case\".cts\":case\".d.cts\":return t&1&&s(\".cts\",r===\".cts\"||r===\".d.cts\")||t&4&&s(\".d.cts\",r===\".cts\"||r===\".d.cts\")||t&2&&s(\".cjs\")||void 0;case\".json\":return t&4&&s(\".d.json.ts\")||t&8&&s(\".json\")||void 0;case\".tsx\":case\".jsx\":return t&1&&(s(\".tsx\",r===\".tsx\")||s(\".ts\",r===\".tsx\"))||t&4&&s(\".d.ts\",r===\".tsx\")||t&2&&(s(\".jsx\")||s(\".js\"))||void 0;case\".ts\":case\".d.ts\":case\".js\":case\"\":return t&1&&(s(\".ts\",r===\".ts\"||r===\".d.ts\")||s(\".tsx\",r===\".ts\"||r===\".d.ts\"))||t&4&&s(\".d.ts\",r===\".ts\"||r===\".d.ts\")||t&2&&(s(\".js\")||s(\".jsx\"))||o.isConfigLookup&&s(\".json\")||void 0;default:return t&4&&!Yc(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=xU(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function xU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return J0e(e,t,r);let o=og(e)??\"\",s=o?QL(e,o):e;return an(r.compilerOptions.moduleSuffixes,l=>J0e(s+l+o,t,r))}function J0e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&to(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&to(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function coe(e,t,r,i,o=!0){let s=o?m0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&e4(s,i);return yI(s,DU(e,t,r,i,l,d))}function RU(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=toe(t),p=nk(i?.getPackageJsonInfoCache(),r,t);p.conditions=hy(t),p.requestContainingDirectory=e.packageDirectory;let h=DU(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,e4(e,p));if(s=pn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=NE([hy(t,99),hy(t,1)],mm);for(let v of m){let E={...p,failedLookupLocations:[],conditions:v,host:r},S=u3e(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=Kh(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function u3e(e,t,r,i){let o;if(oo(t))for(let l of t)s(l);else if(typeof t==\"object\"&&t!==null&&t4(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l==\"string\"&&Ui(l,\"./\"))if(l.includes(\"*\")&&r.host.readDirectory){if(l.indexOf(\"*\")!==l.lastIndexOf(\"*\"))return!1;r.host.readDirectory(e.packageDirectory,H4e(i),void 0,[pee(KA(l,\"**/*\"),\".*\")]).forEach(h=>{o=Kh(o,{path:h,ext:w1(h),resolvedUsingTsExtension:void 0})})}else{let h=mc(l).slice(2);if(h.includes(\"..\")||h.includes(\".\")||h.includes(\"node_modules\"))return!1;let m=wr(e.packageDirectory,l),v=Qi(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=IU(i,v,!1,r);if(E)return o=Kh(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l==\"object\"&&l!==null)return an(fh(l),h=>{if(h===\"default\"||To(r.conditions,h)||ok(r.conditions,h))return s(l[h]),!0})}}function nk(e,t,r){return{host:t,compilerOptions:r,traceEnabled:cg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:je,requestContainingDirectory:void 0,reportDiagnostic:Ca,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function rk(e,t){let r=mc(e);for(r.pop();r.length>0;){let i=m0(Vv(r),!1,t);if(i)return i;r.pop()}}function e4(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y4e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,v=wr(e,\"package.json\");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(E!==void 0){if($6(E))return m&&to(h,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&to(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}let S=gm(e,h);if(S&&h.fileExists(v)){let A=kC(v,h);m&&to(h,f.Found_package_json_at_0,v);let C={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,C),(d=r.affectingLocations)==null||d.push(v),C}else S&&m&&to(h,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(v)}function DU(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=J4e(o,t,i):l=e&4&&q4e(o,t,i)||e&7&&K4e(o,t,i)||void 0);let d=(E,S,A,C)=>{let R=IU(E,S,A,C);if(R)return vU(R);let L=E===4?5:E,G=C.features,U=C.candidateIsFromPackageJsonField;C.candidateIsFromPackageJsonField=!0,o?.type!==\"module\"&&(C.features&=-33);let K=AU(L,S,A,C,!1);return C.features=G,C.candidateIsFromPackageJsonField=U,K},p=l?!gm(Ur(l),i.host):void 0,h=r||!gm(t,i.host),m=wr(t,i.isConfigLookup?\"tsconfig\":\"index\");if(s&&(!l||Bf(t,l))){let E=Gf(t,l||m,!1);i.traceEnabled&&to(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,bp,E);let S=doe(e,E,t,s.paths,void 0,d,p||h,i);if(S)return M0e(S.value)}let v=l&&M0e(d(e,l,p,i));if(v)return v;if(!(i.features&32))return eR(e,m,h,i)}function K0e(e,t){return e&2&&(t===\".js\"||t===\".jsx\"||t===\".mjs\"||t===\".cjs\")||e&1&&(t===\".ts\"||t===\".tsx\"||t===\".mts\"||t===\".cts\")||e&4&&(t===\".d.ts\"||t===\".d.mts\"||t===\".d.cts\")||e&8&&t===\".json\"||!1}function ik(e){let t=e.indexOf(Os);return e[0]===\"@\"&&(t=e.indexOf(Os,t+1)),t===-1?{packageName:e,rest:\"\"}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function t4(e){return ji(fh(e),t=>Ui(t,\".\"))}function p3e(e){return!ct(fh(e),t=>Ui(t,\".\"))}function f3e(e,t,r,i,o,s){var l,d;let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!=\"string\")return;let m=mc(t),v=mc(h.contents.packageJsonContent.name);if(!ji(v,(R,L)=>m[L]===R))return;let E=m.slice(v.length),S=yn(E)?`.${Os}${E.join(Os)}`:\".\";if(sy(i.compilerOptions)&&!Gb(r))return CU(h,e,S,i,o,s);let A=e&5,C=e&-6;return CU(h,A,S,i,o,s)||CU(h,C,S,i,o,s)}function CU(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r===\".\"){let l;if(typeof e.contents.packageJsonContent.exports==\"string\"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports==\"object\"&&p3e(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:rs(e.contents.packageJsonContent.exports,\".\")&&(l=e.contents.packageJsonContent.exports[\".\"]),l)return Y0e(t,i,o,s,r,e,!1)(l,\"\",!1,\".\")}else if(t4(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!=\"object\")return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0);let l=X0e(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Rp(void 0)}}function m3e(e,t,r,i,o,s){var l,d;if(t===\"#\"||Ui(t,\"#/\"))return i.traceEnabled&&to(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),Rp(void 0);let p=Qi(wr(r,\"dummy\"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h)return i.traceEnabled&&to(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),Rp(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&to(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),Rp(void 0);let m=X0e(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&to(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),Rp(void 0))}function NU(e,t){let r=e.indexOf(\"*\"),i=t.indexOf(\"*\"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function X0e(e,t,r,i,o,s,l,d){let p=Y0e(e,t,r,i,o,l,d);if(!Zs(o,Os)&&!o.includes(\"*\")&&rs(s,o)){let v=s[o];return p(v,\"\",!1,o)}let h=uS(Cr(fh(s),v=>v.includes(\"*\")||Zs(v,\"/\")),NU);for(let v of h)if(t.features&16&&m(v,o)){let E=s[v],S=v.indexOf(\"*\"),A=o.substring(v.substring(0,S).length,o.length-(v.length-1-S));return p(E,A,!0,v)}else if(Zs(v,\"*\")&&Ui(o,v.substring(0,v.length-1))){let E=s[v],S=o.substring(v.length-1);return p(E,S,!0,v)}else if(Ui(o,v)){let E=s[v],S=o.substring(v.length);return p(E,S,!1,v)}function m(v,E){if(Zs(v,\"*\"))return!1;let S=v.indexOf(\"*\");return S===-1?!1:Ui(E,v.substring(0,S))&&Zs(E,v.substring(S+1))}}function Y0e(e,t,r,i,o,s,l){return d;function d(p,h,m,v){if(typeof p==\"string\"){if(!m&&h.length>0&&!Zs(p,\"/\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);if(!Ui(p,\"./\")){if(l&&!Ui(p,\"../\")&&!Ui(p,\"/\")&&!Ou(p)){let F=m?p.replace(/\\*/g,h):p+h;gy(t,f.Using_0_subpath_1_with_target_2,\"imports\",v,F),gy(t,f.Resolving_module_0_from_1,F,s.packageDirectory+\"/\");let oe=ek(t.features,F,s.packageDirectory+\"/\",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return Rp(oe.resolvedModule?{path:oe.resolvedModule.resolvedFileName,extension:oe.resolvedModule.extension,packageId:oe.resolvedModule.packageId,originalPath:oe.resolvedModule.originalPath,resolvedUsingTsExtension:oe.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0)}let R=(op(p)?mc(p).slice(1):mc(p)).slice(1);if(R.includes(\"..\")||R.includes(\".\")||R.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);let L=wr(s.packageDirectory,p),G=mc(h);if(G.includes(\"..\")||G.includes(\".\")||G.includes(\"node_modules\"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);t.traceEnabled&&to(t.host,f.Using_0_subpath_1_with_target_2,l?\"imports\":\"exports\",v,m?p.replace(/\\*/g,h):p+h);let U=E(m?L.replace(/\\*/g,h):L+h),K=A(U,h,wr(s.packageDirectory,\"package.json\"),l);return K||Rp(yI(s,IU(e,U,!1,t)))}else if(typeof p==\"object\"&&p!==null)if(Array.isArray(p)){if(!yn(p))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);for(let C of p){let R=d(C,h,m,v);if(R)return R}}else{gy(t,f.Entering_conditional_exports);for(let C of fh(p))if(C===\"default\"||t.conditions.includes(C)||ok(t.conditions,C)){gy(t,f.Matched_0_condition_1,l?\"imports\":\"exports\",C);let R=p[C],L=d(R,h,m,v);if(L)return gy(t,f.Resolved_under_condition_0,C),gy(t,f.Exiting_conditional_exports),L;gy(t,f.Failed_to_resolve_under_condition_0,C)}else gy(t,f.Saw_non_matching_condition_0,C);gy(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&to(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),Rp(void 0);return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Rp(void 0);function E(C){var R,L;return C===void 0?C:Qi(C,(L=(R=t.host).getCurrentDirectory)==null?void 0:L.call(R))}function S(C,R){return _c(wr(C,R))}function A(C,R,L,G){var U,K,F,oe;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!C.includes(\"/node_modules/\")&&(!t.compilerOptions.configFile||Bf(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!PU(t)))){let $=ev({useCaseSensitiveFileNames:()=>PU(t)}),de=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let fe=E(VN(t.compilerOptions,()=>[],((K=(U=t.host).getCurrentDirectory)==null?void 0:K.call(U))||\"\",$));de.push(fe)}else if(t.requestContainingDirectory){let fe=E(wr(t.requestContainingDirectory,\"index.ts\")),q=E(VN(t.compilerOptions,()=>[fe,E(L)],((oe=(F=t.host).getCurrentDirectory)==null?void 0:oe.call(F))||\"\",$));de.push(q);let H=_c(q);for(;H&&H.length>1;){let ee=mc(H);ee.pop();let le=Vv(ee);de.unshift(le),H=_c(le)}}de.length>1&&t.reportDiagnostic(bl(G?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,R===\"\"?\".\":R,L));for(let fe of de){let q=W(fe);for(let H of q)if(Bf(H,C,!PU(t))){let ee=C.slice(H.length+1),le=wr(fe,ee),Ee=[\".mjs\",\".cjs\",\".js\",\".json\",\".d.mts\",\".d.cts\",\".d.ts\"];for(let ce of Ee)if(el(le,ce)){let Z=une(le);for(let pe of Z){if(!K0e(e,pe))continue;let Ae=xM(le,pe,ce,!PU(t));if(t.host.fileExists(Ae))return Rp(yI(s,IU(e,Ae,!1,t)))}}}}}return;function W($){var de,fe;let q=t.compilerOptions.configFile?((fe=(de=t.host).getCurrentDirectory)==null?void 0:fe.call(de))||\"\":$,H=[];return t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.outDir))),H}}}}function ok(e,t){if(!e.includes(\"types\")||!Ui(t,\"types@\"))return!1;let r=hM.tryParse(t.substring(6));return r?r.test(bp):!1}function $0e(e,t,r,i,o,s){return Q0e(e,t,r,i,!1,o,s)}function _3e(e,t,r){return Q0e(4,e,t,r,!0,void 0,void 0)}function Q0e(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){gy(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,K6(p));let v=m(p);if(v)return v}if(h&&!o)return gy(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,K6(h)),m(h);function m(v){return Vf(ad(r),E=>{if(Ll(E)!==\"node_modules\"){let S=nSe(s,t,d,E,l,i);return S||Rp(Z0e(v,t,E,i,o,s,l))}})}}function Z0e(e,t,r,i,o,s,l){let d=wr(r,\"node_modules\"),p=gm(d,i.host);if(!p&&i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=eSe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=wr(d,\"@types\"),m=p;return p&&!gm(h,i.host)&&(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),eSe(4,tSe(t,i),h,m,i,s,l)}}function eSe(e,t,r,i,o,s,l){var d,p;let h=Yo(wr(r,t)),{packageName:m,rest:v}=ik(t),E=wr(r,m),S,A=m0(h,!i,o);if(v!==\"\"&&A&&(!(o.features&8)||!rs(((d=S=m0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??je,\"exports\"))){let L=eR(e,h,!i,o);if(L)return vU(L);let G=DU(e,h,!i,o,A.contents.packageJsonContent,e4(A,o));return yI(A,G)}let C=(L,G,U,K)=>{let F=(v||!(K.features&32))&&eR(L,G,U,K)||DU(L,G,U,K,A&&A.contents.packageJsonContent,A&&e4(A,K));return!F&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&K.features&32&&(F=eR(L,wr(G,\"index.js\"),U,K)),yI(A,F)};if(v!==\"\"&&(A=S??m0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=CU(A,e,wr(\".\",v),o,s,l))==null?void 0:p.value;let R=v!==\"\"&&A?e4(A,o):void 0;if(R){o.traceEnabled&&to(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,R.version,bp,v);let L=i&&gm(E,o.host),G=doe(e,v,E,R.paths,void 0,C,!L,o);if(G)return G.value}return C(e,h,!i,o)}function doe(e,t,r,i,o,s,l,d){o||(o=fF(i));let p=CV(o,t);if(p){let h=fo(p)?void 0:qZ(p,t),m=fo(p)?p:HZ(p);return d.traceEnabled&&to(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:an(i[m],E=>{let S=h?KA(E,h):E,A=Yo(wr(r,S));d.traceEnabled&&to(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let C=og(E);if(C!==void 0){let R=xU(A,l,d);if(R!==void 0)return vU({path:R,ext:C,resolvedUsingTsExtension:void 0})}return s(e,A,l||!gm(Ur(A),d.host),d)})}}}function tSe(e,t){let r=tR(e);return t.traceEnabled&&r!==e&&to(t.host,f.Scoped_package_detected_looking_in_0,r),r}function n4(e){return`@types/${tR(e)}`}function tR(e){if(Ui(e,\"@\")){let t=e.replace(Os,LU);if(t!==e)return t.slice(1)}return e}function CN(e){let t=jD(e,\"@types/\");return t!==e?ak(t):e}function ak(e){return e.includes(LU)?\"@\"+e.replace(LU,Os):e}function nSe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&to(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function uoe(e,t,r,i,o,s){let l=cg(r,i),d=[],p=[],h=Ur(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return L0e(e,E&&E.value,E?.value&&Gb(E.value.path),d,p,m,v,o);function S(A){let C=G0e(A,e,h,loe,v);if(C)return{value:C};if(Ic(e)){let R=Yo(wr(h,e));return Rp(loe(A,R,!1,v))}else{let R=Vf(h,L=>{let G=nSe(o,e,void 0,L,s,v);if(G)return G;let U=Yo(wr(L,e));return Rp(loe(A,U,!1,v))});if(R)return R;if(A&5){let L=_3e(e,h,v);return A&4&&(L??(L=rSe(e,v))),L}}}}function rSe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=W0e(r,e,t),o=gm(r,t.host);!o&&t.traceEnabled&&to(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=eR(4,i,!o,t);if(s){let d=tk(s.path),p=d?m0(d,!1,t):void 0;return Rp(yI(p,s))}let l=coe(4,i,!o,t);if(l)return Rp(l)}}function nR(e,t){return!!e.allowImportingTsExtensions||t&&Yc(t)}function poe(e,t,r,i,o,s){let l=cg(r,i);l&&to(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=Z0e(4,e,o,m,!1,void 0,void 0);return k0e(v,!0,d,p,h,m.resultFromCache,void 0)}function Rp(e){return e!==void 0?{value:e}:void 0}function gy(e,t,...r){e.traceEnabled&&to(e.host,t,...r)}function PU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames==\"boolean\"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var foe,iSe,MU,q_,LU,h3e=pt({\"src/compiler/moduleNameResolver.ts\"(){\"use strict\";wo(),iSe=wr(\"node_modules\",\"@types\"),MU=(e=>(e[e.None=0]=\"None\",e[e.Imports=2]=\"Imports\",e[e.SelfName=4]=\"SelfName\",e[e.Exports=8]=\"Exports\",e[e.ExportsPatternTrailers=16]=\"ExportsPatternTrailers\",e[e.AllFeatures=30]=\"AllFeatures\",e[e.Node16Default=30]=\"Node16Default\",e[e.NodeNextDefault=30]=\"NodeNextDefault\",e[e.BundlerDefault=30]=\"BundlerDefault\",e[e.EsmMode=32]=\"EsmMode\",e))(MU||{}),q_=\"/node_modules/\",LU=\"__\"}});function dg(e,t){return e.body&&!e.body.parent&&(Aa(e.body,e),oy(e.body,!1)),e.body?moe(e.body,t):1}function moe(e,t=new Map){let r=Fa(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=g3e(e,t);return t.set(r,i),i}function g3e(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(BE(e))return 2;break;case 272:case 271:if(!Wr(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=v3e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ao(e,o=>{let s=moe(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:x.assertNever(s)}}),i}case 267:return dg(e,t);case 80:if(e.flags&4096)return 0}return 1}function v3e(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Do(i)||n_(i)||Li(i)){let o=i.statements,s;for(let l of o)if(zM(l,r)){l.parent||(Aa(l,i),oy(l,!1));let d=moe(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function EI(e){return x.attachFlowNodeDebugInfo(e),e}function _oe(e,t){var r,i;Ls(\"beforeBind\"),(r=Pd)==null||r.logStartBindFile(\"\"+e.fileName),aSe(e,t),(i=Pd)==null||i.logStopBindFile(),Ls(\"afterBind\"),Sp(\"Bind\",\"beforeBind\",\"afterBind\")}function y3e(){var e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K,F,oe=!1,W=0,$,de,fe={flags:1},q={flags:1},H=V();return le;function ee(k,ge,...Xe){return vf(Nn(k)||e,k,ge,...Xe)}function le(k,ge){var Xe,Mt;e=k,t=ge,r=Wa(t),F=Ee(e,ge),de=new Set,W=0,$=wc.getSymbolConstructor(),x.attachFlowNodeDebugInfo(fe),x.attachFlowNodeDebugInfo(q),e.locals||((Xe=qn)==null||Xe.push(qn.Phase.Bind,\"bindSourceFile\",{path:e.path},!0),xe(e),(Mt=qn)==null||Mt.pop(),e.symbolCount=W,e.classifiableNames=de,Fc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,v=void 0,E=void 0,S=void 0,A=void 0,C=void 0,R=void 0,G=void 0,U=!1,oe=!1,K=0}function Ee(k,ge){return Fd(ge,\"alwaysStrict\")&&!k.isDeclarationFile?!0:!!k.externalModuleIndicator}function ce(k,ge){return W++,new $(k,ge)}function Z(k,ge,Xe){k.flags|=Xe,ge.symbol=k,k.declarations=Kh(k.declarations,ge),Xe&1955&&!k.exports&&(k.exports=Vo()),Xe&6240&&!k.members&&(k.members=Vo()),k.constEnumOnlyModule&&k.flags&304&&(k.constEnumOnlyModule=!1),Xe&111551&&IL(k,ge)}function pe(k){if(k.kind===277)return k.isExportEquals?\"export=\":\"default\";let ge=mo(k);if(ge){if(sd(k)){let Xe=Ef(ge);return Jm(k)?\"__global\":`\"${Xe}\"`}if(ge.kind===167){let Xe=ge.expression;if(Ap(Xe))return Hs(Xe.text);if(LW(Xe))return qo(Xe.operator)+Xe.operand.text;x.fail(\"Only computed properties with literal names have declaration names\")}if(Ci(ge)){let Xe=Oc(k);if(!Xe)return;let Mt=Xe.symbol;return wL(Mt,ge.escapedText)}return Em(ge)?JA(ge):Xm(ge)?AC(ge):void 0}switch(k.kind){case 176:return\"__constructor\";case 184:case 179:case 330:return\"__call\";case 185:case 180:return\"__new\";case 181:return\"__index\";case 278:return\"__export\";case 312:return\"export=\";case 226:if(hl(k)===2)return\"export=\";x.fail(\"Unknown binary declaration kind\");break;case 324:return dx(k)?\"__new\":\"__call\";case 169:return x.assert(k.parent.kind===324,\"Impossible parameter parent kind\",()=>`parent is: ${x.formatSyntaxKind(k.parent.kind)}, expected JSDocFunctionType`),\"arg\"+k.parent.parameters.indexOf(k)}}function Ae(k){return Ld(k)?is(k.name):Ii(x.checkDefined(pe(k)))}function Oe(k,ge,Xe,Mt,Vn,jr,Or){x.assert(Or||!ty(Xe));let zi=Wr(Xe,2048)||Ed(Xe)&&Xe.name.escapedText===\"default\",_a=Or?\"__computed\":zi&&ge?\"default\":pe(Xe),ha;if(_a===void 0)ha=ce(0,\"__missing\");else if(ha=k.get(_a),Mt&2885600&&de.add(_a),!ha)k.set(_a,ha=ce(0,_a)),jr&&(ha.isReplaceableByMethod=!0);else{if(jr&&!ha.isReplaceableByMethod)return ha;if(ha.flags&Vn){if(ha.isReplaceableByMethod)k.set(_a,ha=ce(0,_a));else if(!(Mt&3&&ha.flags&67108864)){Ld(Xe)&&Aa(Xe.name,Xe);let pl=ha.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Gc=!0;(ha.flags&384||Mt&384)&&(pl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Gc=!1);let nc=!1;yn(ha.declarations)&&(zi||ha.declarations&&ha.declarations.length&&Xe.kind===277&&!Xe.isExportEquals)&&(pl=f.A_module_cannot_have_multiple_default_exports,Gc=!1,nc=!0);let Xu=[];Xf(Xe)&&_l(Xe.type)&&Wr(Xe,32)&&ha.flags&2887656&&Xu.push(ee(Xe,f.Did_you_mean_0,`export type { ${Ii(Xe.name.escapedText)} }`));let _u=mo(Xe)||Xe;an(ha.declarations,(ja,em)=>{let tm=mo(ja)||ja,Ri=Gc?ee(tm,pl,Ae(ja)):ee(tm,pl);e.bindDiagnostics.push(nc?fa(Ri,ee(_u,em===0?f.Another_export_default_is_here:f.and_here)):Ri),nc&&Xu.push(ee(tm,f.The_first_export_default_is_here))});let Ay=Gc?ee(_u,pl,Ae(Xe)):ee(_u,pl);e.bindDiagnostics.push(fa(Ay,...Xu)),ha=ce(0,_a)}}}return Z(ha,Xe,Mt),ha.parent?x.assert(ha.parent===ge,\"Existing symbol parent should match new one\"):ha.parent=ge,ha}function _e(k,ge,Xe){let Mt=!!(gb(k)&32)||be(k);if(ge&2097152)return k.kind===281||k.kind===271&&Mt?Oe(o.symbol.exports,o.symbol,k,ge,Xe):(x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe));if(bf(k)&&x.assert(Jn(k)),!sd(k)&&(Mt||o.flags&128)){if(!L_(o)||!o.locals||Wr(k,2048)&&!pe(k))return Oe(o.symbol.exports,o.symbol,k,ge,Xe);let Vn=ge&111551?1048576:0,jr=Oe(o.locals,void 0,k,Vn,Xe);return jr.exportSymbol=Oe(o.symbol.exports,o.symbol,k,ge,Xe),k.localSymbol=jr,jr}else return x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}function be(k){if(k.parent&&Il(k)&&(k=k.parent),!bf(k))return!1;if(!C2(k)&&k.fullName)return!0;let ge=mo(k);return ge?!!(UL(ge.parent)&&Nl(ge.parent)||bd(ge.parent)&&gb(ge.parent)&32):!1}function Te(k,ge){let Xe=o,Mt=s,Vn=l;if(ge&1?(k.kind!==219&&(s=o),o=l=k,ge&32&&(o.locals=Vo(),jn(o))):ge&2&&(l=k,ge&32&&(l.locals=void 0)),ge&4){let jr=m,Or=v,zi=E,_a=S,ha=R,pl=G,Gc=U,nc=ge&16&&!Wr(k,1024)&&!k.asteriskToken&&!!RS(k)||k.kind===175;nc||(m=EI({flags:2}),ge&144&&(m.node=k)),S=nc||k.kind===176||Jn(k)&&(k.kind===262||k.kind===218)?gn():void 0,R=void 0,v=void 0,E=void 0,G=void 0,U=!1,Le(k),k.flags&=-5633,!(m.flags&1)&&ge&8&&gf(k.body)&&(k.flags|=512,U&&(k.flags|=1024),k.endFlowNode=m),k.kind===312&&(k.flags|=K,k.endFlowNode=m),S&&(Wt(S,m),m=Gn(S),(k.kind===176||k.kind===175||Jn(k)&&(k.kind===262||k.kind===218))&&(k.returnFlowNode=m)),nc||(m=jr),v=Or,E=zi,S=_a,R=ha,G=pl,U=Gc}else ge&64?(h=!1,Le(k),x.assertNotNode(k,Me),k.flags=h?k.flags|256:k.flags&-257):Le(k);o=Xe,s=Mt,l=Vn}function De(k){ft(k,ge=>ge.kind===262?xe(ge):void 0),ft(k,ge=>ge.kind!==262?xe(ge):void 0)}function ft(k,ge=xe){k!==void 0&&an(k,ge)}function he(k){Ao(k,xe,ft)}function Le(k){let ge=oe;if(oe=!1,Nt(k)){he(k),dt(k),oe=ge;return}switch(k.kind>=243&&k.kind<=259&&!t.allowUnreachableCode&&(k.flowNode=m),k.kind){case 247:ki(k);break;case 246:so(k);break;case 248:Jo(k);break;case 249:case 250:Ea(k);break;case 245:ln(k);break;case 253:case 257:Tn(k);break;case 252:case 251:tt(k);break;case 258:yt(k);break;case 255:re(k);break;case 269:Ce(k);break;case 296:et(k);break;case 244:z(k);break;case 256:_t(k);break;case 224:on(k);break;case 225:Qt(k);break;case 226:if(nv(k)){oe=ge,Zt(k);return}H(k);break;case 220:Re(k);break;case 227:St(k);break;case 260:te(k);break;case 211:case 212:ti(k);break;case 213:di(k);break;case 235:Cn(k);break;case 353:case 345:case 347:Ie(k);break;case 312:{De(k.statements),xe(k.endOfFileToken);break}case 241:case 268:De(k.statements);break;case 208:j(k);break;case 169:se(k);break;case 210:case 209:case 303:case 230:oe=ge;default:he(k);break}dt(k),oe=ge}function Ke(k){switch(k.kind){case 80:case 81:case 110:case 211:case 212:return st(k);case 213:return Ge(k);case 217:if(Ux(k))return!1;case 235:return Ke(k.expression);case 226:return Vt(k);case 224:return k.operator===54&&Ke(k.operand);case 221:return Ke(k.expression)}return!1}function Dt(k){return MC(k)||(Er(k)||dI(k)||uu(k))&&Dt(k.expression)||Zn(k)&&k.operatorToken.kind===28&&Dt(k.right)||Rs(k)&&(Ap(k.argumentExpression)||gl(k.argumentExpression))&&Dt(k.expression)||lc(k)&&Dt(k.left)}function st(k){return Dt(k)||yd(k)&&st(k.expression)}function Ge(k){if(k.arguments){for(let ge of k.arguments)if(st(ge))return!0}return!!(k.expression.kind===211&&st(k.expression.expression))}function ot(k,ge){return Wx(k)&&jt(k.expression)&&Ga(ge)}function Vt(k){switch(k.operatorToken.kind){case 64:case 76:case 77:case 78:return st(k.left);case 35:case 36:case 37:case 38:return jt(k.left)||jt(k.right)||ot(k.right,k.left)||ot(k.left,k.right)||sC(k.right)&&Ke(k.left)||sC(k.left)&&Ke(k.right);case 104:return jt(k.left);case 103:return Ke(k.right);case 28:return Ke(k.right)}return!1}function jt(k){switch(k.kind){case 217:return jt(k.expression);case 226:switch(k.operatorToken.kind){case 64:return jt(k.left);case 28:return jt(k.right)}}return st(k)}function gn(){return EI({flags:4,antecedents:void 0})}function On(){return EI({flags:8,antecedents:void 0})}function en(k,ge,Xe){return EI({flags:1024,target:k,antecedents:ge,antecedent:Xe})}function zt(k){k.flags|=k.flags&2048?4096:2048}function Wt(k,ge){!(ge.flags&1)&&!To(k.antecedents,ge)&&((k.antecedents||(k.antecedents=[])).push(ge),zt(ge))}function ei(k,ge,Xe){return ge.flags&1?ge:Xe?(Xe.kind===112&&k&64||Xe.kind===97&&k&32)&&!F8(Xe)&&!jG(Xe.parent)?fe:Ke(Xe)?(zt(ge),EI({flags:k,antecedent:ge,node:Xe})):ge:k&32?ge:fe}function Ki(k,ge,Xe,Mt){return zt(k),EI({flags:128,antecedent:k,switchStatement:ge,clauseStart:Xe,clauseEnd:Mt})}function gi(k,ge,Xe){zt(ge);let Mt=EI({flags:k,antecedent:ge,node:Xe});return R&&Wt(R,Mt),Mt}function io(k,ge){return zt(k),EI({flags:512,antecedent:k,node:ge})}function Gn(k){let ge=k.antecedents;return ge?ge.length===1?ge[0]:k:fe}function Nr(k){let ge=k.parent;switch(ge.kind){case 245:case 247:case 246:return ge.expression===k;case 248:case 227:return ge.condition===k}return!1}function cr(k){for(;;)if(k.kind===217)k=k.expression;else if(k.kind===224&&k.operator===54)k=k.operand;else return jL(k)}function Jt(k){return cV(Ka(k))}function Ue(k){for(;uu(k.parent)||fy(k.parent)&&k.parent.operator===54;)k=k.parent;return!Nr(k)&&!cr(k.parent)&&!(yd(k.parent)&&k.parent.expression===k)}function Rt(k,ge,Xe,Mt){let Vn=A,jr=C;A=Xe,C=Mt,k(ge),A=Vn,C=jr}function mn(k,ge,Xe){Rt(xe,k,ge,Xe),(!k||!Jt(k)&&!cr(k)&&!(yd(k)&&nC(k)))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function qr(k,ge,Xe){let Mt=v,Vn=E;v=ge,E=Xe,xe(k),v=Mt,E=Vn}function ni(k,ge){let Xe=G;for(;Xe&&k.parent.kind===256;)Xe.continueTarget=ge,Xe=Xe.next,k=k.parent;return ge}function ki(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();Wt(ge,m),m=ge,mn(k.expression,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),Wt(ge,m),m=Gn(Mt)}function so(k){let ge=On(),Xe=ni(k,gn()),Mt=gn();Wt(ge,m),m=ge,qr(k.statement,Mt,Xe),Wt(Xe,m),m=Gn(Xe),mn(k.expression,ge,Mt),m=Gn(Mt)}function Jo(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();xe(k.initializer),Wt(ge,m),m=ge,mn(k.condition,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),xe(k.incrementor),Wt(ge,m),m=Gn(Mt)}function Ea(k){let ge=ni(k,On()),Xe=gn();xe(k.expression),Wt(ge,m),m=ge,k.kind===250&&xe(k.awaitModifier),Wt(Xe,m),xe(k.initializer),k.initializer.kind!==261&&it(k.initializer),qr(k.statement,Xe,ge),Wt(ge,m),m=Gn(Xe)}function ln(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.expression,ge,Xe),m=Gn(ge),xe(k.thenStatement),Wt(Mt,m),m=Gn(Xe),xe(k.elseStatement),Wt(Mt,m),m=Gn(Mt)}function Tn(k){xe(k.expression),k.kind===253&&(U=!0,S&&Wt(S,m)),m=fe}function ke(k){for(let ge=G;ge;ge=ge.next)if(ge.name===k)return ge}function nt(k,ge,Xe){let Mt=k.kind===252?ge:Xe;Mt&&(Wt(Mt,m),m=fe)}function tt(k){if(xe(k.label),k.label){let ge=ke(k.label.escapedText);ge&&(ge.referenced=!0,nt(k,ge.breakTarget,ge.continueTarget))}else nt(k,v,E)}function yt(k){let ge=S,Xe=R,Mt=gn(),Vn=gn(),jr=gn();if(k.finallyBlock&&(S=Vn),Wt(jr,m),R=jr,xe(k.tryBlock),Wt(Mt,m),k.catchClause&&(m=Gn(jr),jr=gn(),Wt(jr,m),R=jr,xe(k.catchClause),Wt(Mt,m)),S=ge,R=Xe,k.finallyBlock){let Or=gn();Or.antecedents=ro(ro(Mt.antecedents,jr.antecedents),Vn.antecedents),m=Or,xe(k.finallyBlock),m.flags&1?m=fe:(S&&Vn.antecedents&&Wt(S,en(Or,Vn.antecedents,m)),R&&jr.antecedents&&Wt(R,en(Or,jr.antecedents,m)),m=Mt.antecedents?en(Or,Mt.antecedents,m):fe)}else m=Gn(Mt)}function re(k){let ge=gn();xe(k.expression);let Xe=v,Mt=L;v=ge,L=m,xe(k.caseBlock),Wt(ge,m);let Vn=an(k.caseBlock.clauses,jr=>jr.kind===297);k.possiblyExhaustive=!Vn&&!ge.antecedents,Vn||Wt(ge,Ki(L,k,0,0)),v=Xe,L=Mt,m=Gn(ge)}function Ce(k){let ge=k.clauses,Xe=k.parent.expression.kind===112||Ke(k.parent.expression),Mt=fe;for(let Vn=0;Vn<ge.length;Vn++){let jr=Vn;for(;!ge[Vn].statements.length&&Vn+1<ge.length;)Mt===fe&&(m=L),xe(ge[Vn]),Vn++;let Or=gn();Wt(Or,Xe?Ki(L,k.parent,jr,Vn+1):L),Wt(Or,Mt),m=Gn(Or);let zi=ge[Vn];xe(zi),Mt=m,!(m.flags&1)&&Vn!==ge.length-1&&t.noFallthroughCasesInSwitch&&(zi.fallthroughFlowNode=m)}}function et(k){let ge=m;m=L,xe(k.expression),m=ge,ft(k.statements)}function z(k){xe(k.expression),Je(k.expression)}function Je(k){if(k.kind===213){let ge=k;ge.expression.kind!==108&&MC(ge.expression)&&(m=io(m,ge))}}function _t(k){let ge=gn();G={next:G,name:k.label.escapedText,breakTarget:ge,continueTarget:void 0,referenced:!1},xe(k.label),xe(k.statement),!G.referenced&&!t.allowUnusedLabels&&tc(Kne(t),k.label,f.Unused_label),G=G.next,Wt(ge,m),m=Gn(ge)}function ze(k){k.kind===226&&k.operatorToken.kind===64?it(k.left):it(k)}function it(k){if(Dt(k))m=gi(16,m,k);else if(k.kind===209)for(let ge of k.elements)ge.kind===230?it(ge.expression):ze(ge);else if(k.kind===210)for(let ge of k.properties)ge.kind===303?ze(ge.initializer):ge.kind===304?it(ge.name):ge.kind===305&&it(ge.expression)}function Ct(k,ge,Xe){let Mt=gn();k.operatorToken.kind===56||k.operatorToken.kind===77?mn(k.left,Mt,Xe):mn(k.left,ge,Mt),m=Gn(Mt),xe(k.operatorToken),PC(k.operatorToken.kind)?(Rt(xe,k.right,ge,Xe),it(k.left),Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k))):mn(k.right,ge,Xe)}function on(k){if(k.operator===54){let ge=A;A=C,C=ge,he(k),C=A,A=ge}else he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Qt(k){he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Zt(k){oe?(oe=!1,xe(k.operatorToken),xe(k.right),oe=!0,xe(k.left)):(oe=!0,xe(k.left),oe=!1,xe(k.operatorToken),xe(k.right)),it(k.left)}function V(){return M6(k,ge,Xe,Mt,Vn,void 0);function k(Or,zi){if(zi){zi.stackIndex++,Aa(Or,i);let ha=F;tr(Or);let pl=i;i=Or,zi.skip=!1,zi.inStrictModeStack[zi.stackIndex]=ha,zi.parentStack[zi.stackIndex]=pl}else zi={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let _a=Or.operatorToken.kind;if(VL(_a)||PC(_a)){if(Ue(Or)){let ha=gn();Ct(Or,ha,ha),m=Gn(ha)}else Ct(Or,A,C);zi.skip=!0}return zi}function ge(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Xe(Or,zi,_a){zi.skip||xe(Or)}function Mt(Or,zi,_a){if(!zi.skip){let ha=jr(Or);return _a.operatorToken.kind===28&&Je(Or),ha}}function Vn(Or,zi){if(!zi.skip){let pl=Or.operatorToken.kind;if(tv(pl)&&!Sh(Or)&&(it(Or.left),pl===64&&Or.left.kind===212)){let Gc=Or.left;jt(Gc.expression)&&(m=gi(256,m,Or))}}let _a=zi.inStrictModeStack[zi.stackIndex],ha=zi.parentStack[zi.stackIndex];_a!==void 0&&(F=_a),ha!==void 0&&(i=ha),zi.skip=!1,zi.stackIndex--}function jr(Or){if(Or&&Zn(Or)&&!nv(Or))return Or;xe(Or)}}function Re(k){he(k),k.expression.kind===211&&it(k.expression)}function St(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.condition,ge,Xe),m=Gn(ge),xe(k.questionToken),xe(k.whenTrue),Wt(Mt,m),m=Gn(Xe),xe(k.colonToken),xe(k.whenFalse),Wt(Mt,m),m=Gn(Mt)}function M(k){let ge=vc(k)?void 0:k.name;if(ko(ge))for(let Xe of ge.elements)M(Xe);else m=gi(16,m,k)}function te(k){he(k),(k.initializer||H1(k.parent.parent))&&M(k)}function j(k){xe(k.dotDotDotToken),xe(k.propertyName),Pe(k.initializer),xe(k.name)}function se(k){ft(k.modifiers),xe(k.dotDotDotToken),xe(k.questionToken),xe(k.type),Pe(k.initializer),xe(k.name)}function Pe(k){if(!k)return;let ge=m;if(xe(k),ge===fe||ge===m)return;let Xe=gn();Wt(Xe,ge),Wt(Xe,m),m=Gn(Xe)}function Ie(k){xe(k.tagName),k.kind!==347&&k.fullName&&(Aa(k.fullName,k),oy(k.fullName,!1)),typeof k.comment!=\"string\"&&ft(k.comment)}function gt(k){he(k);let ge=xb(k);ge&&ge.kind!==174&&Z(ge.symbol,ge,32)}function bt(k,ge,Xe){Rt(xe,k,ge,Xe),(!yd(k)||nC(k))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function Ot(k){switch(k.kind){case 211:xe(k.questionDotToken),xe(k.name);break;case 212:xe(k.questionDotToken),xe(k.argumentExpression);break;case 213:xe(k.questionDotToken),ft(k.typeArguments),ft(k.arguments);break}}function dn(k,ge,Xe){let Mt=tC(k)?gn():void 0;bt(k.expression,Mt||ge,Xe),Mt&&(m=Gn(Mt)),Rt(Ot,k,ge,Xe),nC(k)&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function An(k){if(Ue(k)){let ge=gn();dn(k,ge,ge),m=Gn(ge)}else dn(k,A,C)}function Cn(k){yd(k)?An(k):he(k)}function ti(k){yd(k)?An(k):he(k)}function di(k){if(yd(k))An(k);else{let ge=Ka(k.expression);ge.kind===218||ge.kind===219?(ft(k.typeArguments),ft(k.arguments),xe(k.expression)):(he(k),k.expression.kind===108&&(m=io(m,k)))}if(k.expression.kind===211){let ge=k.expression;Me(ge.name)&&jt(ge.expression)&&K9(ge.name)&&(m=gi(256,m,k))}}function jn(k){d&&(d.nextContainer=k),d=k}function Ar(k,ge,Xe){switch(o.kind){case 267:return _e(k,ge,Xe);case 312:return _i(k,ge,Xe);case 231:case 263:return Zi(k,ge,Xe);case 266:return Oe(o.symbol.exports,o.symbol,k,ge,Xe);case 187:case 329:case 210:case 264:case 292:return Oe(o.symbol.members,o.symbol,k,ge,Xe);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&x.assertNode(o,L_),Oe(o.locals,void 0,k,ge,Xe)}}function Zi(k,ge,Xe){return zo(k)?Oe(o.symbol.exports,o.symbol,k,ge,Xe):Oe(o.symbol.members,o.symbol,k,ge,Xe)}function _i(k,ge,Xe){return wl(e)?_e(k,ge,Xe):Oe(e.locals,void 0,k,ge,Xe)}function ui(k){let ge=Li(k)?k:Vr(k.body,n_);return!!ge&&ge.statements.some(Xe=>xl(Xe)||dl(Xe))}function Mr(k){k.flags&33554432&&!ui(k)?k.flags|=128:k.flags&=-129}function lo(k){if(Mr(k),sd(k))if(Wr(k,32)&&ls(k,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),_9(k))_n(k);else{let ge;if(k.name.kind===11){let{text:Mt}=k.name;ge=xx(Mt),ge===void 0&&ls(k.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Mt)}let Xe=Ar(k,512,110735);e.patternAmbientModules=pn(e.patternAmbientModules,ge&&!fo(ge)?{pattern:ge,symbol:Xe}:void 0)}else{let ge=_n(k);if(ge!==0){let{symbol:Xe}=k;Xe.constEnumOnlyModule=!(Xe.flags&304)&&ge===2&&Xe.constEnumOnlyModule!==!1}}}function _n(k){let ge=dg(k),Xe=ge!==0;return Ar(k,Xe?512:1024,Xe?110735:0),ge}function ms(k){let ge=ce(131072,pe(k));Z(ge,k,131072);let Xe=ce(2048,\"__type\");Z(Xe,k,2048),Xe.members=Vo(),Xe.members.set(ge.escapedName,ge)}function Dl(k){return vs(k,4096,\"__object\")}function _o(k){return vs(k,4096,\"__jsxAttributes\")}function Va(k,ge,Xe){return Ar(k,ge,Xe)}function vs(k,ge,Xe){let Mt=ce(ge,Xe);return ge&106508&&(Mt.parent=o.symbol),Z(Mt,k,ge),Mt}function Js(k,ge,Xe){switch(l.kind){case 267:_e(k,ge,Xe);break;case 312:if(sp(o)){_e(k,ge,Xe);break}default:x.assertNode(l,L_),l.locals||(l.locals=Vo(),jn(l)),Oe(l.locals,void 0,k,ge,Xe)}}function Fc(){if(!p)return;let k=o,ge=d,Xe=l,Mt=i,Vn=m;for(let jr of p){let Or=jr.parent.parent;o=S9(Or)||e,l=w_(Or)||e,m=EI({flags:2}),i=jr,xe(jr.typeExpression);let zi=mo(jr);if((C2(jr)||!jr.fullName)&&zi&&UL(zi.parent)){let _a=Nl(zi.parent);if(_a){Ks(e.symbol,zi.parent,_a,!!Rn(zi,pl=>Er(pl)&&pl.name.escapedText===\"prototype\"),!1);let ha=o;switch(TL(zi.parent)){case 1:case 2:sp(e)?o=e:o=void 0;break;case 4:o=zi.parent.expression;break;case 3:o=zi.parent.expression.name;break;case 5:o=_0(e,zi.parent.expression)?e:Er(zi.parent.expression)?zi.parent.expression.name:zi.parent.expression;break;case 0:return x.fail(\"Shouldn't have detected typedef or enum on non-assignment declaration\")}o&&_e(jr,524288,788968),o=ha}}else C2(jr)||!jr.fullName||jr.fullName.kind===80?(i=jr.parent,Js(jr,524288,788968)):xe(jr.fullName)}o=k,d=ge,l=Xe,i=Mt,m=Vn}function $i(k){if(!e.parseDiagnostics.length&&!(k.flags&33554432)&&!(k.flags&16777216)&&!rne(k)){let ge=vb(k);if(ge===void 0)return;F&&ge>=119&&ge<=127?e.bindDiagnostics.push(ee(k,Uo(k),is(k))):ge===135?wl(e)&&hW(k)?e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,is(k))):k.flags&65536&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k))):ge===127&&k.flags&16384&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k)))}}function Uo(k){return Oc(k)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function zc(k){k.escapedText===\"#constructor\"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ee(k,f.constructor_is_a_reserved_word,is(k))))}function ts(k){F&&Tu(k.left)&&tv(k.operatorToken.kind)&&Wl(k,k.left)}function ua(k){F&&k.variableDeclaration&&Wl(k,k.variableDeclaration.name)}function Us(k){if(F&&k.expression.kind===80){let ge=IS(e,k.expression);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function tf(k){return Me(k)&&(k.escapedText===\"eval\"||k.escapedText===\"arguments\")}function Wl(k,ge){if(ge&&ge.kind===80){let Xe=ge;if(tf(Xe)){let Mt=IS(e,ge);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,il(k),ar(Xe)))}}}function il(k){return Oc(k)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function zs(k){F&&Wl(k,k.name)}function ho(k){return Oc(k)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ut(k){if(r<2&&l.kind!==312&&l.kind!==267&&!U1(l)){let ge=IS(e,k);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,ho(k)))}}function ys(k){F&&Wl(k,k.operand)}function Pc(k){F&&(k.operator===46||k.operator===47)&&Wl(k,k.operand)}function Bc(k){F&&ls(k,f.with_statements_are_not_allowed_in_strict_mode)}function Ju(k){F&&Wa(t)>=2&&(ate(k.statement)||cl(k.statement))&&ls(k.label,f.A_label_is_not_allowed_here)}function ls(k,ge,...Xe){let Mt=W_(e,k.pos);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,ge,...Xe))}function tc(k,ge,Xe){ae(k,ge,ge,Xe)}function ae(k,ge,Xe,Mt){X(k,{pos:Tb(ge,e),end:Xe.end},Mt)}function X(k,ge,Xe){let Mt=Rc(e,ge.pos,ge.end-ge.pos,Xe);k?e.bindDiagnostics.push(Mt):e.bindSuggestionDiagnostics=pn(e.bindSuggestionDiagnostics,{...Mt,category:2})}function xe(k){if(!k)return;Aa(k,i),qn&&(k.tracingPath=e.path);let ge=F;if(tr(k),k.kind>165){let Xe=i;i=k;let Mt=kU(k);Mt===0?Le(k):Te(k,Mt),i=Xe}else{let Xe=i;k.kind===1&&(i=k),dt(k),i=Xe}F=ge}function dt(k){if(ap(k))if(Jn(k))for(let ge of k.jsDoc)xe(ge);else for(let ge of k.jsDoc)Aa(ge,k),oy(ge,!1)}function $t(k){if(!F)for(let ge of k){if(!Hf(ge))return;if(sr(ge)){F=!0;return}}}function sr(k){let ge=FE(e,k.expression);return ge==='\"use strict\"'||ge===\"'use strict'\"}function tr(k){switch(k.kind){case 80:if(k.flags&4096){let Or=k.parent;for(;Or&&!bf(Or);)Or=Or.parent;Js(Or,524288,788968);break}case 110:return m&&(lt(k)||i.kind===304)&&(k.flowNode=m),$i(k);case 166:m&&EW(k)&&(k.flowNode=m);break;case 236:case 108:k.flowNode=m;break;case 81:return zc(k);case 211:case 212:let ge=k;m&&Dt(ge)&&(ge.flowNode=m),Yte(ge)&&Ln(ge),Jn(ge)&&e.commonJsModuleIndicator&&Eh(ge)&&!r4(l,\"module\")&&Oe(e.locals,void 0,ge.expression,134217729,111550);break;case 226:switch(hl(k)){case 1:Du(k);break;case 2:pc(k);break;case 3:Oo(k.left,k);break;case 6:eo(k);break;case 4:Vd(k);break;case 5:let Or=k.left.expression;if(Jn(k)&&Me(Or)){let zi=r4(l,Or.escapedText);if(gW(zi?.valueDeclaration)){Vd(k);break}}Kl(k);break;case 0:break;default:x.fail(\"Unknown binary expression special property assignment kind\")}return ts(k);case 299:return ua(k);case 220:return Us(k);case 225:return ys(k);case 224:return Pc(k);case 254:return Bc(k);case 256:return Ju(k);case 197:h=!0;return;case 182:break;case 168:return Ye(k);case 169:return mg(k);case 260:return fd(k);case 208:return k.flowNode=m,fd(k);case 172:case 171:return Ir(k);case 303:case 304:return mu(k,4,0);case 306:return mu(k,8,900095);case 179:case 180:case 181:return Ar(k,131072,0);case 174:case 173:return mu(k,8192|(k.questionToken?16777216:0),qf(k)?0:103359);case 262:return Ku(k);case 176:return Ar(k,16384,0);case 177:return mu(k,32768,46015);case 178:return mu(k,65536,78783);case 184:case 324:case 330:case 185:return ms(k);case 187:case 329:case 200:return pi(k);case 339:return gt(k);case 210:return Dl(k);case 218:case 219:return Lh(k);case 213:switch(hl(k)){case 7:return Cl(k);case 8:return Ec(k);case 9:return Po(k);case 0:break;default:return x.fail(\"Unknown call expression assignment declaration kind\")}Jn(k)&&u_(k);break;case 231:case 263:return F=!0,X_(k);case 264:return Js(k,64,788872);case 265:return Js(k,524288,788968);case 266:return fg(k);case 267:return lo(k);case 292:return _o(k);case 291:return Va(k,4,0);case 271:case 274:case 276:case 281:return Ar(k,2097152,2097152);case 270:return bc(k);case 273:return Jl(k);case 278:return bs(k);case 277:return Qs(k);case 312:return $t(k.statements),hr();case 241:if(!U1(k.parent))return;case 268:return $t(k.statements);case 348:if(k.parent.kind===330)return mg(k);if(k.parent.kind!==329)break;case 355:let Vn=k,jr=Vn.isBracketed||Vn.typeExpression&&Vn.typeExpression.type.kind===323?16777220:4;return Ar(Vn,jr,0);case 353:case 345:case 347:return(p||(p=[])).push(k);case 346:return xe(k.typeExpression)}}function Ir(k){let ge=su(k),Xe=ge?98304:4,Mt=ge?13247:0;return mu(k,Xe|(k.questionToken?16777216:0),Mt)}function pi(k){return vs(k,2048,\"__type\")}function hr(){if(Mr(e),wl(e))No();else if(yf(e)){No();let k=e.symbol;Oe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=k}}function No(){vs(e,512,`\"${Yd(e.fileName)}\"`)}function Qs(k){if(!o.symbol||!o.symbol.exports)vs(k,111551,pe(k));else{let ge=px(k)?2097152:4,Xe=Oe(o.symbol.exports,o.symbol,k,ge,-1);k.isExportEquals&&IL(Xe,k)}}function bc(k){ct(k.modifiers)&&e.bindDiagnostics.push(ee(k,f.Modifiers_cannot_appear_here));let ge=Li(k.parent)?wl(k.parent)?k.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;ge?e.bindDiagnostics.push(ee(k,ge)):(e.symbol.globalExports=e.symbol.globalExports||Vo(),Oe(e.symbol.globalExports,e.symbol,k,2097152,2097152))}function bs(k){!o.symbol||!o.symbol.exports?vs(k,8388608,pe(k)):k.exportClause?j_(k.exportClause)&&(Aa(k.exportClause,k),Oe(o.symbol.exports,o.symbol,k.exportClause,2097152,2097152)):Oe(o.symbol.exports,o.symbol,k,8388608,0)}function Jl(k){k.name&&Ar(k,2097152,2097152)}function Za(k){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=k,e.externalModuleIndicator||No()),!0)}function Ec(k){if(!Za(k))return;let ge=nf(k.arguments[0],void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));ge&&Oe(ge.exports,ge,k,1048580,0)}function Du(k){if(!Za(k))return;let ge=nf(k.left.expression,void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));if(ge){let Mt=kL(k.right)&&(DS(k.left.expression)||Eh(k.left.expression))?2097152:1048580;Aa(k.left,k),Oe(ge.exports,ge,k.left,Mt,0)}}function pc(k){if(!Za(k))return;let ge=bL(k.right);if(fV(ge)||o===e&&_0(e,ge))return;if(ma(ge)&&ji(ge.properties,xu)){an(ge.properties,Nf);return}let Xe=px(k)?2097152:1049092,Mt=Oe(e.symbol.exports,e.symbol,k,Xe|67108864,0);IL(Mt,k)}function Nf(k){Oe(e.symbol.exports,e.symbol,k,69206016,0)}function Vd(k){if(x.assert(Jn(k)),Zn(k)&&Er(k.left)&&Ci(k.left.name)||Er(k)&&Ci(k.name))return;let Xe=lu(k,!1,!1);switch(Xe.kind){case 262:case 218:let Mt=Xe.symbol;if(Zn(Xe.parent)&&Xe.parent.operatorToken.kind===64){let Or=Xe.parent.left;UE(Or)&&ry(Or.expression)&&(Mt=tu(Or.expression.expression,s))}Mt&&Mt.valueDeclaration&&(Mt.members=Mt.members||Vo(),ty(k)?Se(k,Mt,Mt.members):Oe(Mt.members,Mt,k,67108868,0),Z(Mt,Mt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Vn=Xe.parent,jr=zo(Xe)?Vn.symbol.exports:Vn.symbol.members;ty(k)?Se(k,Vn.symbol,jr):Oe(jr,Vn.symbol,k,67108868,0,!0);break;case 312:if(ty(k))break;Xe.commonJsModuleIndicator?Oe(Xe.symbol.exports,Xe.symbol,k,1048580,0):Ar(k,1,111550);break;case 267:break;default:x.failBadSyntaxKind(Xe)}}function Se(k,ge,Xe){Oe(Xe,ge,k,4,0,!0,!0),At(k,ge)}function At(k,ge){ge&&(ge.assignmentDeclarationMembers||(ge.assignmentDeclarationMembers=new Map)).set(Fa(k),k)}function Ln(k){k.expression.kind===110?Vd(k):UE(k)&&k.parent.parent.kind===312&&(ry(k.expression)?Oo(k,k.parent):Bs(k))}function eo(k){Aa(k.left,k),Aa(k.right,k),Sc(k.left.expression,k.left,!1,!0)}function Po(k){let ge=tu(k.arguments[0].expression);ge&&ge.valueDeclaration&&Z(ge,ge.valueDeclaration,32),vl(k,ge,!0)}function Oo(k,ge){let Xe=k.expression,Mt=Xe.expression;Aa(Mt,Xe),Aa(Xe,k),Aa(k,ge),Sc(Mt,k,!0,!0)}function Cl(k){let ge=tu(k.arguments[0]),Xe=k.parent.parent.kind===312;ge=Ks(ge,k.arguments[0],Xe,!1,!1),vl(k,ge,!1)}function Kl(k){var ge;let Xe=tu(k.left.expression,l)||tu(k.left.expression,o);if(!Jn(k)&&!$te(Xe))return;let Mt=Tx(k.left);if(!(Me(Mt)&&((ge=r4(o,Mt.escapedText))==null?void 0:ge.flags)&2097152))if(Aa(k.left,k),Aa(k.right,k),Me(k.left.expression)&&o===e&&_0(e,k.left.expression))Du(k);else if(ty(k)){vs(k,67108868,\"__computed\");let Vn=Ks(Xe,k.left.expression,Nl(k.left),!1,!1);At(k,Vn)}else Bs(Fo(k.left,NS))}function Bs(k){x.assert(!Me(k)),Aa(k.expression,k),Sc(k.expression,k,!1,!1)}function Ks(k,ge,Xe,Mt,Vn){return k?.flags&2097152||(Xe&&!Mt&&(k=nf(ge,k,(zi,_a,ha)=>{if(_a)return Z(_a,zi,67110400),_a;{let pl=ha?ha.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Vo());return Oe(pl,ha,zi,67110400,110735)}})),Vn&&k&&k.valueDeclaration&&Z(k,k.valueDeclaration,32)),k}function vl(k,ge,Xe){if(!ge||!kp(ge))return;let Mt=Xe?ge.members||(ge.members=Vo()):ge.exports||(ge.exports=Vo()),Vn=0,jr=0;hs(LA(k))?(Vn=8192,jr=103359):Bo(k)&&CS(k)&&(ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"set\"})&&(Vn|=65540,jr|=78783),ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)===\"get\"})&&(Vn|=32772,jr|=46015)),Vn===0&&(Vn=4,jr=0),Oe(Mt,ge,k,Vn|67108864,jr&-67108865)}function Nl(k){return Zn(k.parent)?fu(k.parent).parent.kind===312:k.parent.parent.kind===312}function Sc(k,ge,Xe,Mt){let Vn=tu(k,l)||tu(k,o),jr=Nl(ge);Vn=Ks(Vn,ge.expression,jr,Xe,Mt),vl(ge,Vn,Xe)}function kp(k){if(k.flags&1072)return!0;let ge=k.valueDeclaration;if(ge&&Bo(ge))return!!LA(ge);let Xe=ge?yi(ge)?ge.initializer:Zn(ge)?ge.right:Er(ge)&&Zn(ge.parent)?ge.parent.right:void 0:void 0;if(Xe=Xe&&bL(Xe),Xe){let Mt=ry(yi(ge)?ge.name:Zn(ge)?ge.left:ge);return!!Ib(Zn(Xe)&&(Xe.operatorToken.kind===57||Xe.operatorToken.kind===61)?Xe.right:Xe,Mt)}return!1}function fu(k){for(;Zn(k.parent);)k=k.parent;return k.parent}function tu(k,ge=o){if(Me(k))return r4(ge,k.escapedText);{let Xe=tu(k.expression);return Xe&&Xe.exports&&Xe.exports.get(tg(k))}}function nf(k,ge,Xe){if(_0(e,k))return e.symbol;if(Me(k))return Xe(k,tu(k),ge);{let Mt=nf(k.expression,ge,Xe),Vn=SL(k);return Ci(Vn)&&x.fail(\"unexpected PrivateIdentifier\"),Xe(Vn,Mt&&Mt.exports&&Mt.exports.get(tg(k)),Mt)}}function u_(k){!e.commonJsModuleIndicator&&Xd(k,!1)&&Za(k)}function X_(k){if(k.kind===263)Js(k,32,899503);else{let Vn=k.name?k.name.escapedText:\"__class\";vs(k,32,Vn),k.name&&de.add(k.name.escapedText)}let{symbol:ge}=k,Xe=ce(4194308,\"prototype\"),Mt=ge.exports.get(Xe.escapedName);Mt&&(k.name&&Aa(k.name,k),e.bindDiagnostics.push(ee(Mt.declarations[0],f.Duplicate_identifier_0,$s(Xe)))),ge.exports.set(Xe.escapedName,Xe),Xe.parent=ge}function fg(k){return BE(k)?Js(k,128,899967):Js(k,256,899327)}function fd(k){if(F&&Wl(k,k.name),!ko(k.name)){let ge=k.kind===260?k:k.parent.parent;Jn(k)&&jE(ge)&&!yb(k)&&!(gb(k)&32)?Ar(k,2097152,2097152):p9(k)?Js(k,2,111551):JE(k)?Ar(k,1,111551):Ar(k,1,111550)}}function mg(k){if(!(k.kind===348&&o.kind!==330)&&(F&&!(k.flags&33554432)&&Wl(k,k.name),ko(k.name)?vs(k,1,\"__\"+k.parent.parameters.indexOf(k)):Ar(k,1,111551),wu(k,k.parent))){let ge=k.parent.parent;Oe(ge.symbol.members,ge.symbol,k,4|(k.questionToken?16777216:0),0)}}function Ku(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),zs(k),F?(Ut(k),Js(k,16,110991)):Ar(k,16,110991)}function Lh(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&(k.flowNode=m),zs(k);let ge=k.name?k.name.escapedText:\"__function\";return vs(k,16,ge)}function mu(k,ge,Xe){return!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&pW(k)&&(k.flowNode=m),ty(k)?vs(k,ge,\"__computed\"):Ar(k,ge,Xe)}function Y(k){let ge=Rn(k,Xe=>Xe.parent&&lI(Xe.parent)&&Xe.parent.extendsType===Xe);return ge&&ge.parent}function Ye(k){if(Df(k.parent)){let ge=NW(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):Ar(k,262144,526824)}else if(k.parent.kind===195){let ge=Y(k.parent);ge?(x.assertNode(ge,L_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):vs(k,262144,pe(k))}else Ar(k,262144,526824)}function xt(k){let ge=dg(k);return ge===1||ge===2&&n0(t)}function Nt(k){if(!(m.flags&1))return!1;if(m===fe&&(QM(k)&&k.kind!==242||k.kind===263||k.kind===267&&xt(k))&&(m=q,!t.allowUnreachableCode)){let Xe=Jne(t)&&!(k.flags&33554432)&&(!cl(k)||!!(Xg(k.declarationList)&7)||k.declarationList.declarations.some(Mt=>!!Mt.initializer));b3e(k,(Mt,Vn)=>ae(Xe,Mt,Vn,f.Unreachable_code_detected))}return!0}}function b3e(e,t){if(Di(e)&&oSe(e)&&Do(e.parent)){let{statements:r}=e.parent,i=NV(r,e);Z5(i,oSe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function oSe(e){return!Ql(e)&&!E3e(e)&&!kb(e)&&!(cl(e)&&!(Xg(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function E3e(e){switch(e.kind){case 264:case 265:return!0;case 267:return dg(e)!==1;case 266:return Wr(e,4096);default:return!1}}function _0(e,t){let r=0,i=mM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),DS(t)||Eh(t))return!0;if(Me(t)){let o=r4(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),lc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function kU(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(pW(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Lo(e.parent)||nl(e.parent)?0:34}return 0}function r4(e,t){var r,i,o,s;let l=(i=(r=Vr(e,L_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(qm(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var OU,wU,aSe,S3e=pt({\"src/compiler/binder.ts\"(){\"use strict\";wo(),mS(),OU=(e=>(e[e.NonInstantiated=0]=\"NonInstantiated\",e[e.Instantiated=1]=\"Instantiated\",e[e.ConstEnumOnly=2]=\"ConstEnumOnly\",e))(OU||{}),wU=(e=>(e[e.None=0]=\"None\",e[e.IsContainer=1]=\"IsContainer\",e[e.IsBlockScopedContainer=2]=\"IsBlockScopedContainer\",e[e.IsControlFlowContainer=4]=\"IsControlFlowContainer\",e[e.IsFunctionLike=8]=\"IsFunctionLike\",e[e.IsFunctionExpression=16]=\"IsFunctionExpression\",e[e.HasLocals=32]=\"HasLocals\",e[e.IsInterface=64]=\"IsInterface\",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]=\"IsObjectLiteralOrClassExpressionMethodOrAccessor\",e))(wU||{}),aSe=y3e()}});function hoe(e,t,r,i,o,s,l,d,p,h){return m;function m(v=()=>!0){let E=[],S=[];return{walkType:de=>{try{return A(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}},walkSymbol:de=>{try{return $(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}}};function A(de){if(!(!de||E[de.id]||(E[de.id]=de,$(de.symbol)))){if(de.flags&524288){let q=de,H=q.objectFlags;H&4&&C(de),H&32&&K(de),H&3&&oe(de),H&24&&W(q)}de.flags&262144&&R(de),de.flags&3145728&&L(de),de.flags&4194304&&G(de),de.flags&8388608&&U(de)}}function C(de){A(de.target),an(h(de),A)}function R(de){A(d(de))}function L(de){an(de.types,A)}function G(de){A(de.type)}function U(de){A(de.objectType),A(de.indexType),A(de.constraint)}function K(de){A(de.typeParameter),A(de.constraintType),A(de.templateType),A(de.modifiersType)}function F(de){let fe=t(de);fe&&A(fe.type),an(de.typeParameters,A);for(let q of de.parameters)$(q);A(e(de)),A(r(de))}function oe(de){W(de),an(de.typeParameters,A),an(i(de),A),A(de.thisType)}function W(de){let fe=o(de);for(let q of fe.indexInfos)A(q.keyType),A(q.type);for(let q of fe.callSignatures)F(q);for(let q of fe.constructSignatures)F(q);for(let q of fe.properties)$(q)}function $(de){if(!de)return!1;let fe=na(de);if(S[fe])return!1;if(S[fe]=de,!v(de))return!0;let q=s(de);return A(q),de.exports&&de.exports.forEach($),an(de.declarations,H=>{if(H.type&&H.type.kind===186){let ee=H.type,le=l(p(ee.exprName));$(le)}}),!1}}}var T3e=pt({\"src/compiler/symbolWalker.ts\"(){\"use strict\";wo()}});function sk({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Ic(o)?0:1:e===\"relative\"?0:e===\"non-relative\"?1:e===\"project-relative\"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return nR(r,i.fileName)?[3,2]:[2];if(zd(r)===1)return p===2?[2,1]:[1,2];let h=nR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:x.assertNever(p)}}};function l(d){if(o!==void 0){if(QE(o))return 2;if(Zs(o,\"/index\"))return 1}return nre(t,d??i.impliedNodeFormat,r,i)}}function A3e(e,t,r,i,o,s,l={}){let d=sSe(e,t,r,i,o,sk({},e,t,s),{},l);if(d!==s)return d}function i4(e,t,r,i,o,s={}){return sSe(e,t,r,i,o,sk({},e,t),{},s)}function I3e(e,t,r,i,o,s={}){let l=WU(t.fileName,i),d=mSe(l,r,i,o,s);return ml(d,p=>voe(p,l,t,i,e,o,!0,s.overrideImportMode))}function sSe(e,t,r,i,o,s,l,d={}){let p=WU(r,o),h=mSe(p,i,o,l,d);return ml(h,m=>voe(m,p,t,o,e,l,void 0,d.overrideImportMode))||uSe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function x3e(e,t,r,i,o={}){return lSe(e,t,r,i,o)[0]}function lSe(e,t,r,i,o={}){var s;let l=eW(e);if(!l)return je;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function cSe(e,t,r,i,o,s,l={}){return dSe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function dSe(e,t,r,i,o,s,l={},d){let p=!1,h=C3e(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,v,E,S]=lSe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!v)return{moduleSpecifiers:je,computedWithoutCache:p};p=!0,E||(E=_Se(WU(i.fileName,o),v.originalFileName,o));let A=R3e(E,r,i,o,s,l,d);return S?.set(i.path,v.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function R3e(e,t,r,i,o,s={},l){let d=WU(r.fileName,i),p=sk(o,t,r),h=an(e,C=>an(i.getFileIncludeReasons().get(ks(C.path,i.getCurrentDirectory(),d.getCanonicalFileName)),R=>{if(R.kind!==3||R.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Dae(r,R.index,t))return;let L=Ak(r,R.index).text;return p.relativePreference!==1||!op(L)?L:void 0}));if(h)return[h];let m=ct(e,C=>C.isInNodeModules),v,E,S,A;for(let C of e){let R=C.isInNodeModules?voe(C,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(v=pn(v,R),R&&C.isRedirect)return v;if(!R){let L=uSe(C.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,C.isRedirect);if(!L)continue;C.isRedirect?S=pn(S,L):RG(L)?Gb(L)?A=pn(A,L):E=pn(E,L):(l||!m||C.isInNodeModules)&&(A=pn(A,L))}}return E?.length?E:S?.length?S:v?.length?v:x.checkDefined(A)}function WU(e,t){e=Qi(e,t.getCurrentDirectory());let r=od(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Ur(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function uSe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:v,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),C=m&&M3e(m,e,v,S,A,r)||lk(ME(Gf(v,e,S)),A,r);if(!p&&!h&&!DF(r)||l===0)return d?void 0:C;let R=Qi(zW(r,i)||p,i.getCurrentDirectory()),L=ySe(e,R,S);if(!L)return d?void 0:C;let G=d?void 0:P3e(e,v,r,i,o),U=d||G===void 0?h&&hSe(L,h,A,i,r):void 0;if(d)return U;let K=G??(U===void 0&&p!==void 0?lk(L,A,r):U);if(!K)return C;if(l===1&&!op(K))return K;if(l===3&&!op(K)){let F=r.configFilePath?ks(Ur(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),oe=ks(e,F,S),W=Ui(E,F),$=Ui(oe,F);if(W&&!$||!W&&$)return K;let de=goe(i,Ur(oe)),fe=goe(i,v),q=!yx(i);return D3e(de,fe,q)?C:K}return bSe(K)||o4(C)<o4(K)?C:K}function D3e(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Xh(e,t,r)===0}function o4(e){let t=0;for(let r=Ui(e,\"./\")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function pSe(e,t){return zv(t.isRedirect,e.isRedirect)||$L(e.path,t.path)}function goe(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Vf(t,r=>e.fileExists(wr(r,\"package.json\"))?r:void 0)}function fSe(e,t,r,i,o){var s;let l=ev(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=ks(t,d,l),m=r.redirectTargetsMap.get(h)||je,E=[...p?[p]:je,t,...m].map(L=>Qi(L,d)),S=!ji(E,KC);if(!i){let L=an(E,G=>!(S&&KC(G))&&o(G,p===G));if(L)return L}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),C=Qi(t,d);return A&&Vf(Ur(C),L=>{let G=A.get(_c(ks(L,d,l)));if(G)return CG(e,L,l)?!1:an(E,U=>{if(!CG(U,L,l))return;let K=Gf(L,U,l);for(let F of G){let oe=jv(F,K),W=o(oe,U===p);if(S=!0,W)return W}})})||(i?an(E,L=>S&&KC(L)?void 0:o(L,L===p)):void 0)}function mSe(e,t,r,i,o={}){var s;let l=ks(e.importingSourceFileName,r.getCurrentDirectory(),ev(r)),d=ks(t,r.getCurrentDirectory(),ev(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=_Se(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function _Se(e,t,r){let i=new Map,o=!1;fSe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=Gb(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=_c(l),p;i.forEach(({path:m,isRedirect:v,isInNodeModules:E},S)=>{Ui(m,d)&&((p||(p=[])).push({path:S,isRedirect:v,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(pSe),s.push(...p));let h=Ur(l);if(h===l)break;l=h}if(i.size){let l=bo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(pSe),s.push(...l)}return s}function C3e(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>m9(l)&&(!zE(l)||!Ic(Ef(l.name))));if(i)return i.name.text;let s=Fi(e.declarations,l=>{var d,p,h,m;if(!Il(l))return;let v=C(l);if(!((d=v?.parent)!=null&&d.parent&&n_(v.parent)&&sd(v.parent.parent)&&Li(v.parent.parent.parent)))return;let E=(m=(h=(p=v.parent.parent.symbol.exports)==null?void 0:p.get(\"export=\"))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return v.parent.parent;function C(R){for(;R.flags&8;)R=R.parent;return R}})[0];if(s)return s.name.text}function hSe(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=Yo(d),h=p.indexOf(\"*\"),m=r.map(v=>({ending:v,value:lk(e,[v],o)}));if(og(p)&&m.push({ending:void 0,value:e}),h!==-1){let v=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=v.length+E.length&&Ui(A,v)&&Zs(A,E)&&s({ending:S,value:A})){let C=A.substring(v.length,A.length-E.length);if(!op(C))return KA(l,C)}}else if(ct(m,v=>v.ending!==0&&p===v.value)||ct(m,v=>v.ending===0&&p===v.value&&s(v)))return l}function s({ending:l,value:d}){return l!==0||d===lk(e,[l],o,i)}}function a4(e,t,r,i,o,s,l,d,p){if(typeof s==\"string\"){let h=!yx(t),m=()=>t.getCommonSourceDirectory(),v=p&&fH(r,e,h,m),E=p&&pH(r,e,h,m),S=Qi(wr(i,s),void 0),A=qA(r)?Yd(r)+boe(r,e):void 0;switch(d){case 0:if(A&&Xh(A,S,h)===0||Xh(r,S,h)===0||v&&Xh(v,S,h)===0||E&&Xh(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&Bf(S,A,h)){let G=Gf(S,A,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(Bf(S,r,h)){let G=Gf(S,r,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(v&&Bf(S,v,h)){let G=Gf(S,v,!1);return{moduleFileToTry:wr(o,G)}}if(E&&Bf(S,E,h)){let G=Gf(S,E,!1);return{moduleFileToTry:wr(o,G)}}break;case 2:let C=S.indexOf(\"*\"),R=S.slice(0,C),L=S.slice(C+1);if(A&&Ui(A,R,h)&&Zs(A,L,h)){let G=A.slice(R.length,A.length-L.length);return{moduleFileToTry:KA(o,G)}}if(Ui(r,R,h)&&Zs(r,L,h)){let G=r.slice(R.length,r.length-L.length);return{moduleFileToTry:KA(o,G)}}if(v&&Ui(v,R,h)&&Zs(v,L,h)){let G=v.slice(R.length,v.length-L.length);return{moduleFileToTry:KA(o,G)}}if(E&&Ui(E,R,h)&&Zs(E,L,h)){let G=E.slice(R.length,E.length-L.length);return{moduleFileToTry:KA(o,G)}}break}}else{if(Array.isArray(s))return an(s,h=>a4(e,t,r,i,o,h,l,d,p));if(typeof s==\"object\"&&s!==null){for(let h of fh(s))if(h===\"default\"||l.indexOf(h)>=0||ok(l,h)){let m=s[h],v=a4(e,t,r,i,o,m,l,d,p);if(v)return v}}}}function N3e(e,t,r,i,o,s,l){return typeof s==\"object\"&&s!==null&&!Array.isArray(s)&&t4(s)?an(fh(s),d=>{let p=Qi(wr(o,d),void 0),h=Zs(d,\"/\")?1:d.includes(\"*\")?2:0;return a4(e,t,r,i,p,s[d],l,h,!1)}):a4(e,t,r,i,o,s,l,0,!1)}function P3e(e,t,r,i,o){var s,l,d;if(!i.readFile||!DF(r))return;let p=goe(i,t);if(!p)return;let h=wr(p,\"package.json\"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(noe(m)||!i.fileExists(h))return;let v=m?.contents.packageJsonContent||KW(i.readFile(h)),E=v?.imports;if(!E)return;let S=hy(r,o);return(d=an(fh(E),A=>{if(!Ui(A,\"#\")||A===\"#\"||Ui(A,\"#/\"))return;let C=Zs(A,\"/\")?1:A.includes(\"*\")?2:0;return a4(r,i,e,p,A,E[A],S,C,!0)}))==null?void 0:d.moduleFileToTry}function M3e(e,t,r,i,o,s){let l=gSe(t,e,i);if(l===void 0)return;let d=gSe(r,e,i),p=ta(d,m=>nn(l,v=>ME(Gf(m,v,i)))),h=cB(p,$L);if(h)return lk(h,o,s)}function voe({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=yF(e);if(!m)return;let E=sk(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let K=m.packageRootIndex,F;for(;;){let{moduleFileToTry:oe,packageRootPath:W,blockedByExports:$,verbatimFromExports:de}=U(K);if(zd(l)!==1){if($)return;if(de)return oe}if(W){S=W,A=!0;break}if(F||(F=oe),K=e.indexOf(Os,K+1),K===-1){S=lk(F,E,l,s);break}}}if(t&&!A)return;let C=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),R=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(Ui(i,R)||C&&Ui(r(C),R)))return;let L=S.substring(m.topLevelPackageNameIndex+1),G=CN(L);return zd(l)===1&&G===L?void 0:G;function U(K){var F,oe;let W=e.substring(0,K),$=wr(W,\"package.json\"),de=e,fe=!1,q=(oe=(F=s.getPackageJsonInfoCache)==null?void 0:F.call(s))==null?void 0:oe.getPackageJsonInfo($);if($6(q)||q===void 0&&s.fileExists($)){let H=q?.contents.packageJsonContent||KW(s.readFile($)),ee=h||o.impliedNodeFormat;if(RF(l)){let ce=W.substring(m.topLevelPackageNameIndex+1),Z=CN(ce),pe=hy(l,ee),Ae=H?.exports?N3e(l,s,e,W,Z,H.exports,pe):void 0;if(Ae)return{...Ae,verbatimFromExports:!0};if(H?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let le=H?.typesVersions?X6(H.typesVersions):void 0;if(le){let ce=e.slice(W.length+1),Z=hSe(ce,le.paths,E,s,l);Z===void 0?fe=!0:de=wr(W,Z)}let Ee=H?.typings||H?.types||H?.main||\"index.js\";if(fo(Ee)&&!(fe&&CV(fF(le.paths),Ee))){let ce=ks(Ee,W,r),Z=r(de);if(Yd(ce)===Yd(Z))return{packageRootPath:W,moduleFileToTry:de};if(H?.type!==\"module\"&&!$l(Z,c2)&&Ui(Z,ce)&&Ur(Z)===fb(ce)&&Yd(Ll(Z))===\"index\")return{packageRootPath:W,moduleFileToTry:de}}}else{let H=r(de.substring(m.packageRootIndex+1));if(H===\"index.d.ts\"||H===\"index.js\"||H===\"index.ts\"||H===\"index.tsx\")return{moduleFileToTry:de,packageRootPath:W}}return{moduleFileToTry:de}}}function L3e(e,t){if(!e.fileExists)return;let r=Ff(GC({allowJs:!0},[{extension:\"node\",isMixedContent:!1},{extension:\"json\",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function gSe(e,t,r){return Fi(t,i=>{let o=ySe(e,i,r);return o!==void 0&&bSe(o)?void 0:o})}function lk(e,t,r,i){if($l(e,[\".json\",\".mjs\",\".cjs\"]))return e;let o=Yd(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if($l(e,[\".mts\",\".cts\"])&&l!==-1&&l<s)return e;if($l(e,[\".d.mts\",\".mts\",\".d.cts\",\".cts\"]))return o+yoe(e,r);if(!$l(e,[\".d.ts\"])&&$l(e,[\".ts\"])&&e.includes(\".d.\"))return vSe(e);switch(t[0]){case 0:let d=C1(o,\"/index\");return i&&d!==o&&L3e(i,d)?o:d;case 1:return o;case 2:return o+yoe(e,r);case 3:if(Yc(e)){let p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+yoe(e,r)}return e;default:return x.assertNever(t[0])}}function vSe(e){let t=Ll(e);if(!Zs(e,\".ts\")||!t.includes(\".d.\")||$l(t,[\".d.ts\"]))return;let r=QL(e,\".ts\"),i=r.substring(r.lastIndexOf(\".\"));return r.substring(0,r.indexOf(\".d.\"))+i}function yoe(e,t){return boe(e,t)??x.fail(`Extension ${jC(e)} is unsupported:: FileName:: ${e}`)}function boe(e,t){let r=og(e);switch(r){case\".ts\":case\".d.ts\":return\".js\";case\".tsx\":return t.jsx===1?\".jsx\":\".js\";case\".js\":case\".jsx\":case\".json\":return r;case\".d.mts\":case\".mts\":case\".mjs\":return\".mjs\";case\".d.cts\":case\".cts\":case\".cjs\":return\".cjs\";default:return}}function ySe(e,t,r){let i=AA(t,e,t,r,!1);return Ou(i)?void 0:i}function bSe(e){return Ui(e,\"..\")}var Eoe,Soe=pt({\"src/compiler/moduleSpecifiers.ts\"(){\"use strict\";wo(),Eoe=(e=>(e[e.Relative=0]=\"Relative\",e[e.NonRelative=1]=\"NonRelative\",e[e.Shortest=2]=\"Shortest\",e[e.ExternalNonRelative=3]=\"ExternalNonRelative\",e))(Eoe||{})}}),h0={};la(h0,{RelativePreference:()=>Eoe,countPathComponents:()=>o4,forEachFileNameOfModule:()=>fSe,getModuleSpecifier:()=>i4,getModuleSpecifierPreferences:()=>sk,getModuleSpecifiers:()=>cSe,getModuleSpecifiersWithCacheInfo:()=>dSe,getNodeModulesPackageName:()=>I3e,tryGetJSExtensionForFile:()=>boe,tryGetModuleSpecifiersFromCache:()=>x3e,tryGetRealFileNameForNonJsDeclarationFileName:()=>vSe,updateModuleSpecifier:()=>A3e});var Toe=pt({\"src/compiler/_namespaces/ts.moduleSpecifiers.ts\"(){\"use strict\";Soe()}});function k3e(){this.flags=0}function Fa(e){return e.id||(e.id=xoe,xoe++),e.id}function na(e){return e.id||(e.id=Ioe,Ioe++),e.id}function FU(e,t){let r=dg(e);return r===1||t&&r===2}function Aoe(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=wc.getSymbolConstructor(),p=wc.getTypeConstructor(),h=wc.getSignatureConstructor(),m=0,v=0,E=0,S=0,A=0,C=0,R,L,G=!1,U=Vo(),K=[1],F=e.getCompilerOptions(),oe=Wa(F),W=ld(F),$=!!F.experimentalDecorators,de=nN(F),fe=Xne(F),q=zS(F),H=Fd(F,\"strictNullChecks\"),ee=Fd(F,\"strictFunctionTypes\"),le=Fd(F,\"strictBindCallApply\"),Ee=Fd(F,\"strictPropertyInitialization\"),ce=Fd(F,\"noImplicitAny\"),Z=Fd(F,\"noImplicitThis\"),pe=Fd(F,\"useUnknownInCatchVariables\"),Ae=!!F.keyofStringsOnly,Oe=Ae?1:0,_e=F.suppressExcessPropertyErrors?0:8192,be=F.exactOptionalPropertyTypes,Te=plt(),De=Hut(),ft=h_(),he=Vo(),Le=Ra(4,\"undefined\");Le.declarations=[];var Ke=Ra(1536,\"globalThis\",8);Ke.exports=he,Ke.declarations=[],he.set(Ke.escapedName,Ke);var Dt=Ra(4,\"arguments\"),st=Ra(4,\"require\"),Ge=F.verbatimModuleSyntax?\"verbatimModuleSyntax\":\"isolatedModules\",ot=!F.verbatimModuleSyntax||!!F.importsNotUsedAsValues,Vt,jt,gn=0,On,en=0;let zt={getNodeCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,v),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:hu.size,identity:Cu.size,subtype:Y_.size,strictSubtype:rf.size}),isUndefinedSymbol:n=>n===Le,isArgumentsSymbol:n=>n===Dt,isUnknownSymbol:n=>n===tt,getMergedSymbol:Oa,getDiagnostics:V8e,getGlobalDiagnostics:sut,getRecursionIdentity:dQ,getUnmatchedProperties:ehe,getTypeOfSymbolAtLocation:(n,a)=>{let c=uo(a);return c?eot(n,c):it},getTypeOfSymbol:Yn,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=uo(n,ao);return c===void 0?x.fail(\"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.\"):(x.assert(wu(c,c.parent)),TP(c,Hs(a)))},getDeclaredTypeOfSymbol:Cs,getPropertiesOfType:Xa,getPropertyOfType:(n,a)=>Qo(n,Hs(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=uo(c);if(!u)return;let _=Hs(a),g=GQ(_,u);return g?zhe(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Fe(n,Hs(a)),getIndexInfoOfType:(n,a)=>Uh(n,a===0?Ie:gt),getIndexInfosOfType:Ud,getIndexInfosOfIndexSymbol:Kme,getSignaturesOfType:Co,getIndexTypeOfType:(n,a)=>yE(n,a===0?Ie:gt),getIndexType:n=>y_(n),getBaseTypes:ep,getBaseTypeOfLiteralType:wg,getWidenedType:gp,getTypeFromTypeNode:n=>{let a=uo(n,xi);return a?si(a):it},getParameterType:zm,getParameterIdentifierInfoAtPosition:Nst,getPromisedTypeOfPromise:kw,getAwaitedType:n=>pA(n),getReturnTypeOfSignature:Ha,isNullableType:h5,getNullableType:e5,getNonNullableType:Wg,getNonOptionalType:mQ,getTypeArguments:Ts,typeToTypeNode:ft.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ft.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ft.signatureToSignatureDeclaration,symbolToEntityName:ft.symbolToEntityName,symbolToExpression:ft.symbolToExpression,symbolToNode:ft.symbolToNode,symbolToTypeParameterDeclarations:ft.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ft.symbolToParameterDeclaration,typeParameterToDeclaration:ft.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=uo(n);return c?lut(c,a):[]},getSymbolAtLocation:n=>{let a=uo(n);return a?um(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=uo(n);return a?hut(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=uo(n);return a?gut(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=uo(n,Ed);return a?vut(a):void 0},getExportSymbolOfSymbol(n){return Oa(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=uo(n);return a?S1(a):it},getTypeOfAssignmentPattern:n=>{let a=uo(n,lC);return a&&gZ(a)||it},getPropertySymbolOfDestructuringAssignment:n=>{let a=uo(n,Me);return a?yut(a):void 0},signatureToString:(n,a,c,u)=>th(n,uo(a),c,u),typeToString:(n,a,c)=>Pn(n,uo(a),c),symbolToString:(n,a,c,u)=>ai(n,uo(a),c,u),typePredicateToString:(n,a,c)=>nh(n,uo(a),c),writeSignature:(n,a,c,u,_)=>th(n,uo(a),c,u,_),writeType:(n,a,c,u)=>Pn(n,uo(a),c,u),writeSymbol:(n,a,c,u,_)=>ai(n,uo(a),c,u,_),writeTypePredicate:(n,a,c,u)=>nh(n,uo(a),c,u),getAugmentedPropertiesOfType:Bge,getRootSymbols:Y8e,getSymbolOfExpando:YQ,getContextualType:(n,a)=>{let c=uo(n,lt);if(c)return a&4?Ki(c,()=>bu(c,a)):bu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=uo(n,Zh);return a?Ihe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=uo(n,WE);return c&&Ahe(c,a)},getContextualTypeForJsxAttribute:n=>{let a=uo(n,H8);return a&&dOe(a,void 0)},isContextSensitive:uf,getTypeOfPropertyOfContextualType:DE,getFullyQualifiedName:mp,getResolvedSignature:(n,a,c)=>gi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Wt,getResolvedSignatureForSignatureHelp:(n,a,c)=>ei(n,()=>gi(n,a,c,16)),getExpandedParameters:uLe,hasEffectiveRestParameter:dh,containsArgumentsReference:Hme,getConstantValue:n=>{let a=uo(n,tWe);return a?Gge(a):void 0},isValidPropertyAccess:(n,a)=>{let c=uo(n,$ee);return!!c&&zat(c,Hs(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=uo(n,Er);return!!u&&BOe(u,a,c)},getSignatureFromDeclaration:n=>{let a=uo(n,Lo);return a?kf(a):void 0},isImplementationOfOverload:n=>{let a=uo(n,Lo);return a?Z8e(a):void 0},getImmediateAliasedSymbol:Nhe,getAliasedSymbol:fc,getEmitResolver:Ev,getExportsOfModule:wT,getExportsAndPropertiesOfModule:eD,forEachExportAndPropertyOfModule:tD,getSymbolWalker:hoe(Stt,df,Ha,ep,Om,Yn,cm,iu,dp,Ts),getAmbientModules:kpt,getJsxIntrinsicTagNamesAt:vat,isOptionalParameter:n=>{let a=uo(n,ao);return a?ow(a):!1},tryGetMemberInModuleExports:(n,a)=>WT(Hs(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>nD(Hs(n),a),tryFindAmbientModule:n=>w$(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>w$(n,!1),getApparentType:ou,getUnionType:Br,isTypeAssignableTo:ea,createAnonymousType:cs,createSignature:jh,createSymbol:Ra,createIndexInfo:sh,getAnyType:()=>z,getStringType:()=>Ie,getStringLiteralType:yu,getNumberType:()=>gt,getNumberLiteralType:Wm,getBigIntType:()=>bt,createPromiseType:R5,createArrayType:_d,getElementTypeOfArrayType:Z7,getBooleanType:()=>ti,getFalseType:n=>n?Ot:dn,getTrueType:n=>n?An:Cn,getVoidType:()=>jn,getUndefinedType:()=>Re,getNullType:()=>se,getESSymbolType:()=>di,getNeverType:()=>Ar,getOptionalType:()=>j,getPromiseType:()=>W7(!1),getPromiseLikeType:()=>QLe(!1),getAsyncIterableType:()=>{let n=q$(!1);if(n!==ho)return n},isSymbolAccessible:vi,isArrayType:ff,isTupleType:ga,isArrayLikeType:Lv,isEmptyAnonymousObjectType:ch,isTypeInvalidDueToUnionDiscriminant:rtt,getExactOptionalProperties:Nrt,getAllPossiblePropertiesOfTypes:itt,getSuggestedSymbolForNonexistentProperty:Vhe,getSuggestionForNonexistentProperty:jhe,getSuggestedSymbolForNonexistentJSXAttribute:FOe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Uhe(n,Hs(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Oat(n,Hs(a),c),getSuggestedSymbolForNonexistentModule:jQ,getSuggestionForNonexistentExport:wat,getSuggestedSymbolForNonexistentClassMember:WOe,getBaseConstraintOfType:md,getDefaultFromTypeParameter:n=>n&&n.flags&262144?KT(n):void 0,resolveName(n,a,c,u){return Xs(a,Hs(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Ii(tE(n)),getJsxFragmentFactory:n=>{let a=jge(n);return a&&Ii(dp(a).escapedText)},getAccessibleSymbolChain:Wy,getTypePredicateOfSignature:df,resolveExternalModuleName:n=>{let a=uo(n,lt);return a&&jd(a,a,!0)},resolveExternalModuleSymbol:$u,tryGetThisTypeAt:(n,a,c)=>{let u=uo(n);return u&&bhe(u,a,c)},getTypeArgumentConstraint:n=>{let a=uo(n,xi);return a&&Ult(a)},getSuggestionDiagnostics:(n,a)=>{let c=uo(n,Li)||x.fail(\"Could not determine parsed source file.\");if(UC(c,F,e))return je;let u;try{return i=a,Fge(c),x.assert(!!(Fr(c).flags&1)),u=Pr(u,yT.getDiagnostics(c.fileName)),i8e(G8e(c),(_,g,T)=>{!X1(_)&&!B8e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||je}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(zt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:gr,isDeclarationVisible:Pm,isPropertyAccessible:qhe,getTypeOnlyAliasDeclaration:of,getMemberOverrideModifierStatus:Sdt,isTypeParameterPossiblyReferenced:U7,typeHasCallOrConstructSignatures:vZ};function Wt(n,a){let c=new Set,u=[];Ki(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,ei(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);return bo(c)}function ei(n,a){if(n=Rn(n,ZG),n){let c=[],u=[];for(;n;){let g=Fr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,e0(n)){let T=Pi(dr(n)),N=T.type;u.push([T,N]),T.type=void 0}n=Rn(n.parent,ZG)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function Ki(n,a){let c=Rn(n,WE);if(c){let _=n;do Fr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}G=!0;let u=ei(n,a);if(G=!1,c){let _=n;do Fr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function gi(n,a,c,u){let _=uo(n,WE);Vt=c;let g=_?xD(_,a,u):void 0;return Vt=void 0,g}var io=new Map,Gn=new Map,Nr=new Map,cr=new Map,Jt=new Map,Ue=new Map,Rt=new Map,mn=new Map,qr=new Map,ni=new Map,ki=new Map,so=new Map,Jo=new Map,Ea=new Map,ln=new Map,Tn=[],ke=new Map,nt=new Set,tt=Ra(4,\"unknown\"),yt=Ra(0,\"__resolving__\"),re=new Map,Ce=new Map,et=new Set,z=Fl(1,\"any\"),Je=Fl(1,\"any\",262144,\"auto\"),_t=Fl(1,\"any\",void 0,\"wildcard\"),ze=Fl(1,\"any\",void 0,\"blocked string\"),it=Fl(1,\"error\"),Ct=Fl(1,\"unresolved\"),on=Fl(1,\"any\",65536,\"non-inferrable\"),Qt=Fl(1,\"intrinsic\"),Zt=Fl(2,\"unknown\"),V=Fl(2,\"unknown\",void 0,\"non-null\"),Re=Fl(32768,\"undefined\"),St=H?Re:Fl(32768,\"undefined\",65536,\"widening\"),M=Fl(32768,\"undefined\",void 0,\"missing\"),te=be?M:Re,j=Fl(32768,\"undefined\",void 0,\"optional\"),se=Fl(65536,\"null\"),Pe=H?se:Fl(65536,\"null\",65536,\"widening\"),Ie=Fl(4,\"string\"),gt=Fl(8,\"number\"),bt=Fl(64,\"bigint\"),Ot=Fl(512,\"false\",void 0,\"fresh\"),dn=Fl(512,\"false\"),An=Fl(512,\"true\",void 0,\"fresh\"),Cn=Fl(512,\"true\");An.regularType=Cn,An.freshType=An,Cn.regularType=Cn,Cn.freshType=An,Ot.regularType=dn,Ot.freshType=Ot,dn.regularType=dn,dn.freshType=Ot;var ti=Br([dn,Cn]),di=Fl(4096,\"symbol\"),jn=Fl(16384,\"void\"),Ar=Fl(131072,\"never\"),Zi=Fl(131072,\"never\",262144,\"silent\"),_i=Fl(131072,\"never\",void 0,\"implicit\"),ui=Fl(131072,\"never\",void 0,\"unreachable\"),Mr=Fl(67108864,\"object\"),lo=Br([Ie,gt]),_n=Br([Ie,gt,di]),ms=Ae?Ie:_n,Dl=Br([gt,bt]),_o=Br([Ie,gt,ti,bt,se,Re]),Va=YT([\"\",\"\"],[gt]),vs=j7(n=>n.flags&262144?rrt(n):n,()=>\"(restrictive mapper)\"),Js=j7(n=>n.flags&262144?_t:n,()=>\"(permissive mapper)\"),Fc=Fl(131072,\"never\",void 0,\"unique literal\"),$i=j7(n=>n.flags&262144?Fc:n,()=>\"(unique literal mapper)\"),Uo,zc=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!0),n),()=>\"(unmeasurable reporter)\"),ts=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!1),n),()=>\"(unreliable reporter)\"),ua=cs(void 0,U,je,je,je),Us=cs(void 0,U,je,je,je);Us.objectFlags|=2048;var tf=Ra(2048,\"__type\");tf.members=Vo();var Wl=cs(tf,U,je,je,je),il=cs(void 0,U,je,je,je),zs=H?Br([Re,se,il]):Zt,ho=cs(void 0,U,je,je,je);ho.instantiations=new Map;var Ut=cs(void 0,U,je,je,je);Ut.objectFlags|=262144;var ys=cs(void 0,U,je,je,je),Pc=cs(void 0,U,je,je,je),Bc=cs(void 0,U,je,je,je),Ju=Bp(),ls=Bp();ls.constraint=Ju;var tc=Bp(),ae=Bp(),X=Bp();X.constraint=ae;var xe=O7(1,\"<<unresolved>>\",0,z),dt=jh(void 0,void 0,void 0,je,z,void 0,0,0),$t=jh(void 0,void 0,void 0,je,it,void 0,0,0),sr=jh(void 0,void 0,void 0,je,z,void 0,0,0),tr=jh(void 0,void 0,void 0,je,Zi,void 0,0,0),Ir=sh(gt,Ie,!0),pi=new Map,hr={get yieldType(){return x.fail(\"Not supported\")},get returnType(){return x.fail(\"Not supported\")},get nextType(){return x.fail(\"Not supported\")}},No=wv(z,z,z),Qs=wv(z,z,Zt),bc=wv(Ar,z,Re),bs={iterableCacheKey:\"iterationTypesOfAsyncIterable\",iteratorCacheKey:\"iterationTypesOfAsyncIterator\",iteratorSymbolName:\"asyncIterator\",getGlobalIteratorType:Wtt,getGlobalIterableType:q$,getGlobalIterableIteratorType:Ftt,getGlobalGeneratorType:ztt,resolveIterationType:(n,a)=>pA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Jl={iterableCacheKey:\"iterationTypesOfIterable\",iteratorCacheKey:\"iterationTypesOfIterator\",iteratorSymbolName:\"iterator\",getGlobalIteratorType:Btt,getGlobalIterableType:a_e,getGlobalIterableIteratorType:Gtt,getGlobalGeneratorType:Vtt,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Za,Ec=new Map,Du=[],pc,Nf,Vd,Se,At,Ln,eo,Po,Oo,Cl,Kl,Bs,Ks,vl,Nl,Sc,kp,fu,tu,nf,u_,X_,fg,fd,mg,Ku,Lh,mu,Y,Ye,xt,Nt,k,ge,Xe,Mt,Vn,jr,Or,zi,_a,ha,pl,Gc,nc,Xu,_u,Ay,ja,em,tm,Ri,_g,yv,nm,D0,C0,Op=new Map,p_=0,wp=0,hg=0,Ne=!1,Ve=0,Tt,Pt,rn,wn=[],tn=[],Wn=[],Qr=0,Kn=[],Gr=[],Qn=0,Mo=yu(\"\"),xa=Wm(0),xd=$$({negative:!1,base10Value:\"0\"}),Vc=[],gg=[],$b=[],UI=0,Qb=!1,GR=0,VR=10,jR=[],gT=[],N0=[],HI=[],UR=[],qI=[],JI=[],KI=[],XI=[],vT=[],YI=[],P0=[],M0=[],Iy=[],xy=[],kh=[],Zb=[],La=hx(),yT=hx(),HR=eh(),eE,vg,Y_=new Map,rf=new Map,hu=new Map,Yu=new Map,Cu=new Map,bv=new Map,bT=Vo();bT.set(Le.escapedName,Le);var qR=[[\".mts\",\".mjs\"],[\".ts\",\".js\"],[\".cts\",\".cjs\"],[\".mjs\",\".mjs\"],[\".js\",\".js\"],[\".cjs\",\".cjs\"],[\".tsx\",F.jsx===1?\".jsx\":\".js\"],[\".jsx\",\".jsx\"],[\".json\",\".json\"]];return qut(),zt;function $I(n){return n?ln.get(n):void 0}function Ry(n,a){return n&&ln.set(n,a),a}function tE(n){if(n){let a=Nn(n);if(a)if(fI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get(\"jsxfrag\");if(c){let _=oo(c)?c[0]:c;if(a.localJsxFragmentFactory=gI(_.arguments.factory,oe),He(a.localJsxFragmentFactory,Xl,Su),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=dp(a.localJsxFragmentFactory).escapedText}let u=jge(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=dp(u).escapedText}else{let c=QI(a);if(c)return a.localJsxNamespace=c}}return eE||(eE=\"React\",F.jsxFactory?(vg=gI(F.jsxFactory,oe),He(vg,Xl),vg&&(eE=dp(vg).escapedText)):F.reactNamespace&&(eE=Hs(F.reactNamespace))),vg||(vg=P.createQualifiedName(P.createIdentifier(Ii(eE)),\"createElement\")),eE}function QI(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get(\"jsx\");if(a){let c=oo(a)?a[0]:a;if(n.localJsxFactory=gI(c.arguments.factory,oe),He(n.localJsxFactory,Xl,Su),n.localJsxFactory)return n.localJsxNamespace=dp(n.localJsxFactory).escapedText}}function Xl(n){return F_(n,-1,-1),un(n,Xl,void 0)}function Ev(n,a){return V8e(n,a),De}function ZI(n,a,...c){let u=n?vr(n,a,...c):bl(a,...c),_=La.lookup(u);return _||(La.add(u),u)}function xm(n,a,c,...u){let _=we(a,c,...u);return _.skippedOn=n,_}function ET(n,a,...c){return n?vr(n,a,...c):bl(a,...c)}function we(n,a,...c){let u=ET(n,a,...c);return La.add(u),u}function Rm(n,a){n?La.add(a):yT.add({...a,category:2})}function jc(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Nn(a);Rm(n,\"message\"in c?Rc(_,0,0,c,...u):T9(_,c));return}Rm(n,\"message\"in c?vr(a,c,...u):eg(Nn(a),a,c))}function nE(n,a,c,...u){let _=we(n,c,...u);if(a){let g=vr(n,f.Did_you_forget_to_use_await);fa(_,g)}return _}function e1(n,a){let c=Array.isArray(n)?an(n,zG):zG(n);return c&&fa(a,vr(c,f.The_declaration_was_marked_as_deprecated_here)),yT.add(a),a}function Dy(n){let a=nu(n);return a&&yn(n.declarations)>1?a.flags&64?ct(n.declarations,Sv):ji(n.declarations,Sv):!!n.valueDeclaration&&Sv(n.valueDeclaration)||yn(n.declarations)&&ji(n.declarations,Sv)}function Sv(n){return!!(lS(n)&536870912)}function Tv(n,a,c){let u=vr(n,f._0_is_deprecated,c);return e1(a,u)}function SP(n,a,c,u){let _=c?vr(n,f.The_signature_0_of_1_is_deprecated,u,c):vr(n,f._0_is_deprecated,u);return e1(a,_)}function Ra(n,a,c){v++;let u=new d(n|33554432,a);return u.links=new Coe,u.links.checkFlags=c||0,u}function Dm(n,a){let c=Ra(1,n);return c.links.type=a,c}function ST(n,a){let c=Ra(4,n);return c.links.type=a,c}function TT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function rE(n,a){a.mergeId||(a.mergeId=Roe,Roe++),jR[a.mergeId]=n}function AT(n){let a=Ra(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),rE(a,n),a}function Pf(n,a,c=!1){if(!(n.flags&TT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=yl(n);if(_===tt)return a;n=AT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&IL(n,a.valueDeclaration),Pr(n.declarations,a.declarations),a.members&&(n.members||(n.members=Vo()),Cm(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=Vo()),Cm(n.exports,a.exports,c)),c||rE(n,a)}else if(n.flags&1024)n!==Ke&&we(a.declarations&&mo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ai(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,N=a.declarations&&Nn(a.declarations[0]),O=n.declarations&&Nn(n.declarations[0]),B=nL(N,F.checkJs),Q=nL(O,F.checkJs),me=ai(a);if(N&&O&&Za&&!_&&N!==O){let ue=Xh(N.path,O.path)===-1?N:O,We=ue===N?O:N,at=FD(Za,`${ue.path}|${We.path}`,()=>({firstFile:ue,secondFile:We,conflictingSymbols:new Map})),ht=FD(at.conflictingSymbols,me,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));B||u(ht.firstFileLocations,a),Q||u(ht.secondFileLocations,n)}else B||Mf(a,T,me,n),Q||Mf(n,T,me,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)jp(_,T)}}function Mf(n,a,c,u){an(n.declarations,_=>{yg(_,a,c,u.declarations)})}function yg(n,a,c,u){let _=(Ib(n,!1)?L9(n):mo(n))||n,g=ZI(_,a,c);for(let T of u||je){let N=(Ib(T,!1)?L9(T):mo(T))||T;if(N===_)continue;g.relatedInformation=g.relatedInformation||[];let O=vr(N,f._0_was_also_declared_here,c),B=vr(N,f.and_here);yn(g.relatedInformation)>=5||ct(g.relatedInformation,Q=>zC(Q,B)===0||zC(Q,O)===0)||fa(g,yn(g.relatedInformation)?B:O)}}function t1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=Vo();return Cm(c,n),Cm(c,a),c}function Cm(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?Pf(g,u,c):Oa(u))})}function JR(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){x.assert(_.symbol.declarations.length>1);return}if(Jm(_))Cm(he,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=Tg(n,n,g,!0);if(!T)return;if(T=$u(T),T.flags&1920)if(ct(Nf,N=>T===N.symbol)){let N=Pf(_.symbol,T,!0);Vd||(Vd=new Map),Vd.set(n.text,N)}else{if((c=T.exports)!=null&&c.get(\"__export\")&&((u=_.symbol.exports)!=null&&u.size)){let N=Dme(T,\"resolvedExports\");for(let[O,B]of bo(_.symbol.exports.entries()))N.has(O)&&!T.exports.has(O)&&Pf(N.get(O),B)}Pf(T,_.symbol)}else we(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function L0(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?an(T.declarations,u(Ii(g),c)):n.set(g,_)});function u(_,g){return T=>La.add(vr(T,g,_))}}function Pi(n){if(n.flags&33554432)return n.links;let a=na(n);return gT[a]??(gT[a]=new Coe)}function Fr(n){let a=Fa(n);return N0[a]||(N0[a]=new k3e)}function $_(n){return n.kind===312&&!sp(n)}function gu(n,a,c){if(c){let u=Oa(n.get(a));if(u&&(x.assert((tl(u)&1)===0,\"Should never get an instantiated symbol here.\"),u.flags&c||u.flags&2097152&&Qc(u)&c))return u}}function TP(n,a){let c=n.parent,u=n.parent.parent,_=gu(c.locals,a,111551),g=gu(Ky(u.symbol),a,111551);return _&&g?[_,g]:x.fail(\"There should exist two symbols, one as property declaration and one as parameter declaration\")}function bg(n,a){let c=Nn(n),u=Nn(a),_=w_(n);if(c!==u){if(W&&(c.externalModuleIndicator||u.externalModuleIndicator)||!ss(F)||OS(a)||n.flags&33554432||T(a,n))return!0;let O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(u)}if(a.flags&16777216||OS(a)||she(a))return!0;if(n.pos<=a.pos&&!(xo(n)&&fL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let O=Db(a,208);return O?Rn(O,Na)!==Rn(n,Na)||n.pos<O.pos:bg(Db(n,260),a)}else{if(n.kind===260)return!g(n,a);if(Kr(n))return!Rn(a,O=>Pa(O)&&O.parent.parent===n);if(xo(n))return!N(n,a,!1);if(wu(n,n.parent))return!(fe&&Oc(n)===Oc(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return fe&&Oc(n)&&(xo(n)||wu(n,n.parent))?!N(n,a,!0):!0;return!1;function g(O,B){switch(O.parent.parent.kind){case 243:case 248:case 250:if(O0(B,O,_))return!0;break}let Q=O.parent.parent;return H1(Q)&&O0(B,Q.expression,_)}function T(O,B){return!!Rn(O,Q=>{if(Q===_)return\"quit\";if(Lo(Q))return!0;if(nl(Q))return B.pos<O.pos;let me=Vr(Q.parent,xo);if(me&&me.initializer===Q){if(zo(Q.parent)){if(B.kind===174)return!0;if(xo(B)&&Oc(O)===Oc(B)){let We=B.name;if(Me(We)||Ci(We)){let at=Yn(dr(B)),ht=Cr(B.parent.members,nl);if(Ddt(We,at,ht,B.parent.pos,Q.pos))return!0}}}else if(!(B.kind===172&&!zo(B))||Oc(O)!==Oc(B))return!0}return!1})}function N(O,B,Q){return B.end>O.end?!1:Rn(B,ue=>{if(ue===O)return\"quit\";switch(ue.kind){case 219:return!0;case 172:return Q&&(xo(O)&&ue.parent===O.parent||wu(O,O.parent)&&ue.parent===O.parent.parent)?\"quit\":!0;case 241:switch(ue.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function AP(n,a,c){let u=Wa(F),_=a;if(ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let N=Fr(_);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=an(_.parameters,g)||!1),!N.declarationRequiresScopeChange}return!1;function g(N){return T(N.name)||!!N.initializer&&T(N.initializer)}function T(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(N.name);case 172:return jl(N)?!fe:T(N.name);default:return jG(N)||yd(N)?u<7:Na(N)&&N.dotDotDotToken&&Rf(N.parent)?u<4:xi(N)?!1:Ao(N,T)||!1}}}function Cy(n){return ES(n)&&Qh(n.type)||gN(n)&&Qh(n.typeExpression)}function Xs(n,a,c,u,_,g,T=!1,N=!0){return pp(n,a,c,u,_,g,T,N,gu)}function pp(n,a,c,u,_,g,T,N,O){var B,Q,me;let ue=n,We,at,ht,qt,Xt,Hn=!1,En=n,Kt,In=!1;e:for(;n;){if(a===\"const\"&&Cy(n))return;if($M(n)&&at&&n.name===at&&(at=n,n=n.parent),L_(n)&&n.locals&&!$_(n)&&(We=O(n.locals,a,c))){let zn=!0;if(Lo(n)&&at&&at!==n.body?(c&We.flags&788968&&at.kind!==327&&(zn=We.flags&262144?at===n.type||at.kind===169||at.kind===348||at.kind===349||at.kind===168:!1),c&We.flags&3&&(AP(We,n,at)?zn=!1:We.flags&1&&(zn=at.kind===169||at===n.type&&!!Rn(We.valueDeclaration,ao)))):n.kind===194&&(zn=at===n.trueType),zn)break e;We=void 0}switch(Hn=Hn||Lf(n,at),n.kind){case 312:if(!sp(n))break;In=!0;case 267:let zn=((B=dr(n))==null?void 0:B.exports)||U;if(n.kind===312||Il(n)&&n.flags&33554432&&!Jm(n)){if(We=zn.get(\"default\")){let co=Ex(We);if(co&&We.flags&c&&co.escapedName===a)break e;We=void 0}let Bn=zn.get(a);if(Bn&&Bn.flags===2097152&&(Vs(Bn,281)||Vs(Bn,280)))break}if(a!==\"default\"&&(We=O(zn,a,c&2623475)))if(Li(n)&&n.commonJsModuleIndicator&&!((Q=We.declarations)!=null&&Q.some(bf)))We=void 0;else break e;break;case 266:if(We=O(((me=dr(n))==null?void 0:me.exports)||U,a,c&8)){u&&xf(F)&&!(n.flags&33554432)&&Nn(n)!==Nn(We.valueDeclaration)&&we(En,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ii(a),Ge,`${Ii(Fp(n).escapedName)}.${Ii(a)}`);break e}break;case 172:if(!zo(n)){let Bn=Ag(n.parent);Bn&&Bn.locals&&O(Bn.locals,a,c&111551)&&(x.assertNode(n,xo),qt=n)}break;case 263:case 231:case 264:if(We=O(dr(n).members||U,a,c&788968)){if(!Eg(We,n)){We=void 0;break}if(at&&zo(at)){u&&we(En,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Dc(n)&&c&32){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 233:if(at===n.expression&&n.parent.token===96){let Bn=n.parent.parent;if(Kr(Bn)&&(We=O(dr(Bn).members,a,c&788968))){u&&we(En,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Kt=n.parent.parent,(Kr(Kt)||Kt.kind===264)&&(We=O(dr(Kt).members,a,c&788968))){u&&we(En,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Wa(F)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a===\"arguments\"){We=Dt;break e}break;case 218:if(c&3&&a===\"arguments\"){We=Dt;break e}if(c&16){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(xc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let Mn=ux(n);Mn&&(n=Mn.parent);break;case 169:at&&(at===n.initializer||at===n.name&&ko(at))&&(Xt||(Xt=n));break;case 208:at&&(at===n.initializer||at===n.name&&ko(at))&&JE(n)&&!Xt&&(Xt=n);break;case 195:if(c&262144){let Bn=n.typeParameter.name;if(Bn&&a===Bn.escapedText){We=n.typeParameter.symbol;break e}}break;case 281:at&&at===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Ny(n)&&(ht=n),at=n,n=Df(n)?NW(n)||n.parent:(Tm(n)||T6(n))&&xb(n)||n.parent}if(g&&We&&(!ht||We!==ht.symbol)&&(We.isReferenced|=c),!We){if(at&&(x.assertNode(at,Li),at.commonJsModuleIndicator&&a===\"exports\"&&c&at.symbol.flags))return at.symbol;T||(We=O(he,a,c))}if(!We&&ue&&Jn(ue)&&ue.parent&&Xd(ue.parent,!1))return st;function Sn(){return qt&&!fe?(we(En,En&&qt.type&&wM(qt.type,En.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,is(qt.name),rm(_)),!0):!1}if(We){if(u&&Sn())return}else{u&&r(()=>{if(!En||En.parent.kind!==331&&!k0(En,a,_)&&!Sn()&&!IT(En)&&!n1(En,a,c)&&!Av(En,a)&&!xT(En,a,c)&&!KR(En,a,c)&&!Wh(En,a,c)){let zn,Mn;if(_&&(Mn=Lat(_),Mn&&we(En,u,rm(_),Mn)),!Mn&&N&&GR<VR&&(zn=Uhe(ue,a,c),zn?.valueDeclaration&&sd(zn.valueDeclaration)&&Jm(zn.valueDeclaration)&&(zn=void 0),zn)){let co=ai(zn),no=Ghe(ue,zn,!1),Eo=c===1920||_&&typeof _!=\"string\"&&xs(_)?f.Cannot_find_namespace_0_Did_you_mean_1:no?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,Yi=ET(En,Eo,rm(_),co);Rm(!no,Yi),zn.valueDeclaration&&fa(Yi,vr(zn.valueDeclaration,f._0_is_declared_here,co))}!zn&&!Mn&&_&&we(En,u,rm(_)),GR++}});return}return u&&r(()=>{var zn;if(En&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Mn=zp(We);(Mn.flags&2||Mn.flags&32||Mn.flags&384)&&Ds(Mn,En)}if(We&&In&&(c&111551)===111551&&!(ue.flags&16777216)){let Mn=Oa(We);yn(Mn.declarations)&&ji(Mn.declarations,Bn=>D2(Bn)||Li(Bn)&&!!Bn.symbol.globalExports)&&jc(!F.allowUmdGlobalAccess,En,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ii(a))}if(We&&Xt&&!Hn&&(c&111551)===111551){let Mn=Oa(L$(We)),Bn=Ym(Xt);Mn===dr(Xt)?we(En,f.Parameter_0_cannot_reference_itself,is(Xt.name)):Mn.valueDeclaration&&Mn.valueDeclaration.pos>Xt.pos&&Bn.parent.locals&&O(Bn.parent.locals,Mn.escapedName,c)===Mn&&we(En,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,is(Xt.name),is(En))}if(We&&En&&c&111551&&We.flags&2097152&&!(We.flags&111551)&&!Pb(En)){let Mn=of(We,111551);if(Mn){let Bn=Mn.kind===281||Mn.kind===278||Mn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,co=Ii(a);Oh(we(En,Bn,co),Mn,co)}}if(F.isolatedModules&&We&&In&&(c&111551)===111551){let Bn=O(he,a,c)===We&&Li(at)&&at.locals&&O(at.locals,a,-111552);if(Bn){let co=(zn=Bn.declarations)==null?void 0:zn.find(no=>no.kind===276||no.kind===273||no.kind===274||no.kind===271);co&&!UM(co)&&we(co,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ii(a))}}}),We}function Oh(n,a,c){return a?fa(n,vr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function Lf(n,a){return n.kind!==219&&n.kind!==218?oI(n)||(hs(n)||n.kind===172&&!zo(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Wr(n,1024)?!0:!RS(n)}function Ny(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function rm(n){return fo(n)?Ii(n):is(n)}function Eg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(Df(c.parent)?PS(c.parent):c.parent)===a)return!(Df(c.parent)&&Dr(c.parent.parent.tags,bf))}return!1}function k0(n,a,c){if(!Me(n)||n.escapedText!==a||j8e(n)||OS(n))return!1;let u=lu(n,!1,!1),_=u;for(;_;){if(Kr(_.parent)){let g=dr(_.parent);if(!g)break;let T=Yn(g);if(Qo(T,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,rm(c),ai(g)),!0;if(_===u&&!zo(_)){let N=Cs(g).thisType;if(Qo(N,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,rm(c)),!0}}_=_.parent}return!1}function IT(n){let a=wh(n);return a&&Es(a,64,!0)?(we(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Vl(a)),!0):!1}function wh(n){switch(n.kind){case 80:case 211:return n.parent?wh(n.parent):void 0;case 233:if(gl(n.expression))return n.expression;default:return}}function n1(n,a,c){let u=1920|(Jn(n)?111551:0);if(c===u){let _=yl(Xs(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if($d(g)){x.assert(g.left===n,\"Should only be resolving left side of qualified name as a namespace\");let T=g.right.escapedText;if(Qo(Cs(_),T))return we(g,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ii(a),Ii(T)),!0}return we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ii(a)),!0}}return!1}function Wh(n,a,c){if(c&788584){let u=yl(Xs(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return we(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ii(a)),!0}return!1}function f_(n){return n===\"any\"||n===\"string\"||n===\"number\"||n===\"boolean\"||n===\"never\"||n===\"unknown\"}function Av(n,a){return f_(a)&&n.parent.kind===281?(we(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function KR(n,a,c){if(c&111551){if(f_(a)){let g=n.parent.parent;if(g&&g.parent&&xp(g)){let T=g.token,N=g.parent.kind;N===264&&T===96?we(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ii(a)):N===263&&T===96?we(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ii(a)):N===263&&T===119&&we(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ii(a))}else we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ii(a));return!0}let u=yl(Xs(n,a,788544,void 0,void 0,!1)),_=u&&Qc(u);if(u&&_!==void 0&&!(_&111551)){let g=Ii(a);return YR(a)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):XR(n,u)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g===\"K\"?\"P\":\"K\"):we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function XR(n,a){let c=Rn(n.parent,u=>Pa(u)||Gu(u)?!1:ju(u)||\"quit\");if(c&&c.members.length===1){let u=Cs(a);return!!(u.flags&1048576)&&N5(u,384,!0)}return!1}function YR(n){switch(n){case\"Promise\":case\"Symbol\":case\"Map\":case\"WeakMap\":case\"Set\":case\"WeakSet\":return!0}return!1}function xT(n,a,c){if(c&111127){if(yl(Xs(n,a,1024,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_value,Ii(a)),!0}else if(c&788544&&yl(Xs(n,a,1536,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_type,Ii(a)),!0;return!1}function Ds(n,a){var c;if(x.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>p9(_)||Kr(_)||_.kind===266);if(u===void 0)return x.fail(\"checkResolvedBlockScopedVariable could not find block-scoped declaration\");if(!(u.flags&33554432)&&!bg(u,a)){let _,g=is(mo(u));n.flags&2?_=we(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=we(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=we(a,f.Enum_0_used_before_its_declaration,g):(x.assert(!!(n.flags&128)),xf(F)&&(_=we(a,f.Enum_0_used_before_its_declaration,g))),_&&fa(_,vr(u,f._0_is_declared_here,g))}}function O0(n,a,c){return!!a&&!!Rn(n,u=>u===a||(u===c||Lo(u)&&(!RS(u)||gc(u)&3)?\"quit\":!1))}function RT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function im(n){return n.declarations&&hA(n.declarations,Py)}function Py(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&px(n)||Zn(n)&&hl(n)===2&&px(n)||us(n)&&Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&$R(n.parent.right)||n.kind===304||n.kind===303&&$R(n.initializer)||n.kind===260&&jE(n)||n.kind===208&&jE(n.parent.parent)}function $R(n){return kL(n)||ps(n)&&T_(n)}function DT(n,a){let c=Ly(n);if(c){let _=Tx(c.expression).arguments[0];return Me(c.name)?yl(Qo(PLe(_),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===283){let _=jd(n,N9(n)||gC(n)),g=$u(_);return Nu(n,_,g,!1),g}let u=i1(n.moduleReference,a);return IP(n,u),u}function IP(n,a){if(Nu(n,void 0,a,!1)&&!n.isTypeOnly){let c=of(dr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?\"*\":Ii(c.name.escapedText);fa(we(n.moduleReference,_),vr(c,g,T))}}function nr(n,a,c,u){let _=n.exports.get(\"export=\"),g=_?Qo(Yn(_),a,!0):n.exports.get(a),T=yl(g,u);return Nu(c,g,T,!1),T}function Mc(n){return dl(n)&&!n.isExportEquals||Wr(n,2048)||Ed(n)||j_(n)}function Oi(n){return Ga(n)?e.getModeForUsageLocation(Nn(n),n):void 0}function Wp(n,a){return n===99&&a===1}function Iv(n){return Oi(n)===99&&Zs(n.text,\".json\")}function m_(n,a,c,u){let _=n&&Oi(u);if(n&&_!==void 0&&100<=W&&W<=199){let g=Wp(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=nr(a,\"default\",void 0,!0);return!(g&&ct(g.declarations,Mc)||nr(a,Hs(\"__esModule\"),void 0,c))}return wd(n)?typeof n.externalModuleIndicator!=\"object\"&&!nr(a,Hs(\"__esModule\"),void 0,c):xv(a)}function Xn(n,a){let c=jd(n,n.parent.moduleSpecifier);if(c)return CT(c,n,a)}function CT(n,a,c){var u;let _;pC(n)?_=n:_=nr(n,\"default\",a,c);let g=(u=n.declarations)==null?void 0:u.find(Li),T=iE(a);if(!T)return _;let N=Iv(T),O=m_(g,n,c,T);if(!_&&!O&&!N)if(xv(n)&&!q){let B=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\",me=n.exports.get(\"export=\").valueDeclaration,ue=we(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,ai(n),B);me&&fa(ue,vr(me,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,B))}else V_(a)?Tc(n,a):NT(n,n,a,RA(a)&&a.propertyName||a.name);else if(O||N){let B=$u(n,c)||yl(n,c);return Nu(a,n,B,!1),B}return Nu(a,_,void 0,!1),_}function iE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return U_(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return x.assertNever(n)}}function Tc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))we(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ai(n),ai(a.symbol));else{let g=we(a.name,f.Module_0_has_no_default_export,ai(n)),T=(u=n.exports)==null?void 0:u.get(\"__export\");if(T){let N=(_=T.declarations)==null?void 0:_.find(O=>{var B,Q;return!!(xl(O)&&O.moduleSpecifier&&((Q=(B=jd(O,O.moduleSpecifier))==null?void 0:B.exports)!=null&&Q.has(\"default\")))});N&&fa(g,vr(N,f.export_Asterisk_does_not_re_export_a_default))}}}function Q_(n,a){let c=n.parent.parent.moduleSpecifier,u=jd(n,c),_=Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function om(n,a){let c=n.parent.moduleSpecifier,u=c&&jd(n,c),_=c&&Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function w0(n,a){if(n===tt&&a===tt)return tt;if(n.flags&790504)return n;let c=Ra(n.flags|a.flags,n.escapedName);return x.assert(n.declarations||a.declarations),c.declarations=NE(ro(n.declarations,a.declarations),Hg),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function W0(n,a,c,u){var _;if(n.flags&1536){let g=Qu(n).get(a.escapedText),T=yl(g,u),N=(_=Pi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return Nu(c,g,T,!1,N,a.escapedText),T}}function My(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return yl(Qo(si(c),a))}}function Sg(n,a,c=!1){var u;let _=N9(n)||n.moduleSpecifier,g=jd(n,_),T=!Er(a)&&a.propertyName||a.name;if(!Me(T))return;let N=T.escapedText===\"default\"&&q,O=Pu(g,_,!1,N);if(O&&T.escapedText){if(pC(g))return g;let B;g&&g.exports&&g.exports.get(\"export=\")?B=Qo(Yn(O),T.escapedText,!0):B=My(O,T.escapedText),B=yl(B,c);let Q=W0(O,T,a,c);if(Q===void 0&&T.escapedText===\"default\"){let ue=(u=g.declarations)==null?void 0:u.find(Li);(Iv(_)||m_(ue,g,c,_))&&(Q=$u(g,c)||yl(g,c))}let me=Q&&B&&Q!==B?w0(B,Q):Q||B;return me||NT(g,O,n,T),me}}function NT(n,a,c,u){var _;let g=mp(n,c),T=is(u),N=jQ(u,a);if(N!==void 0){let O=ai(N),B=we(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,O);N.valueDeclaration&&fa(B,vr(N.valueDeclaration,f._0_is_declared_here,O))}else(_=n.exports)!=null&&_.has(\"default\")?we(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):am(c,u,T,n,g)}function am(n,a,c,u,_){var g,T;let N=(T=(g=Vr(u.valueDeclaration,L_))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),O=u.exports;if(N){let B=O?.get(\"export=\");if(B)Nm(B,N)?oE(n,a,c,_):we(a,f.Module_0_has_no_exported_member_1,_,c);else{let Q=O?Dr(Ume(O),ue=>!!Nm(ue,N)):void 0,me=Q?we(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,ai(Q)):we(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);N.declarations&&fa(me,...nn(N.declarations,(ue,We)=>vr(ue,We===0?f._0_is_declared_here:f.and_here,c)))}}else we(a,f.Module_0_has_no_exported_member_1,_,c)}function oE(n,a,c,u){if(W>=5){let _=z_(F)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else if(Jn(n)){let _=z_(F)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else{let _=z_(F)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c,c,u)}}function Fh(n,a){if(Iu(n)&&ar(n.propertyName||n.name)===\"default\"){let T=iE(n),N=T&&jd(n,T);if(N)return CT(N,n,a)}let c=Na(n)?Ym(n):n.parent.parent.parent,u=Ly(c),_=Sg(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Me(g)?yl(Qo(Yn(_),g.escapedText),a):(Nu(n,void 0,_,!1),_)}function Ly(n){if(yi(n)&&n.initializer&&Er(n.initializer))return n.initializer}function r1(n,a){if(qm(n.parent)){let c=$u(n.parent.symbol,a);return Nu(n,void 0,c,!1),c}}function aE(n,a,c){if(ar(n.propertyName||n.name)===\"default\"){let _=iE(n),g=_&&jd(n,_);if(g)return CT(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?Sg(n.parent.parent,n,c):Es(n.propertyName||n.name,a,!1,c);return Nu(n,void 0,u,!1),u}function QR(n,a){let c=dl(n)?n.expression:n.right,u=F0(c,a);return Nu(n,void 0,u,!1),u}function F0(n,a){if(Dc(n))return Ml(n).symbol;if(!Su(n)&&!gl(n))return;let c=Es(n,901119,!0,a);return c||(Ml(n),Fr(n).resolvedSymbol)}function PT(n,a){if(Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return F0(n.parent.right,a)}function fp(n,a=!1){switch(n.kind){case 271:case 260:return DT(n,a);case 273:return Xn(n,a);case 274:return Q_(n,a);case 280:return om(n,a);case 276:case 208:return Fh(n,a);case 281:return aE(n,901119,a);case 277:case 226:return QR(n,a);case 270:return r1(n,a);case 304:return Es(n.name,901119,!0,a);case 303:return F0(n.initializer,a);case 212:case 211:return PT(n,a);default:return x.fail()}}function MT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function yl(n,a){return!a&&MT(n)?fc(n):n}function fc(n){x.assert((n.flags&2097152)!==0,\"Should only get Alias here.\");let a=Pi(n);if(a.aliasTarget)a.aliasTarget===yt&&(a.aliasTarget=tt);else{a.aliasTarget=yt;let c=im(n);if(!c)return x.fail();let u=fp(c);a.aliasTarget===yt?a.aliasTarget=u||tt:we(c,f.Circular_definition_of_import_alias_0,ai(n))}return a.aliasTarget}function LT(n){if(Pi(n).aliasTarget!==yt)return fc(n)}function Qc(n,a,c){let u=a&&of(n),_=u&&xl(u),g=u&&(_?jd(u.moduleSpecifier,u.moduleSpecifier,!0):fc(u.symbol)),T=_&&g?Z_(g):void 0,N=c?0:n.flags,O;for(;n.flags&2097152;){let B=zp(fc(n));if(!_&&B===g||T?.get(B.escapedName)===B)break;if(B===tt)return-1;if(B===n||O?.has(B))break;B.flags&2097152&&(O?O.add(B):O=new Set([n,B])),N|=B.flags,n=B}return N}function Nu(n,a,c,u,_,g){if(!n||Er(n))return!1;let T=dr(n);if(Sb(n)){let O=Pi(T);return O.typeOnlyDeclaration=n,!0}if(_){let O=Pi(T);return O.typeOnlyDeclaration=_,T.escapedName!==g&&(O.typeOnlyExportStarName=g),!0}let N=Pi(T);return sE(N,a,u)||sE(N,c,u)}function sE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get(\"export=\"))??a,g=_.declarations&&Dr(_.declarations,Sb);n.typeOnlyDeclaration=g??Pi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function of(n,a){if(!(n.flags&2097152))return;let c=Pi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?yl(Z_(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):fc(c.typeOnlyDeclaration.symbol);return Qc(u)&a?c.typeOnlyDeclaration:void 0}}function ky(n){if(!ot)return;let a=dr(n),c=fc(a);c&&(c===tt||Qc(a,!0)&111551&&!Bw(c))&&Oy(a)}function Oy(n){x.assert(ot);let a=Pi(n);if(!a.referenced){a.referenced=!0;let c=im(n);if(!c)return x.fail();ox(c)&&Qc(yl(n))&111551&&Ml(c.moduleReference)}}function Lc(n){let a=Pi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function i1(n,a){return n.kind===80&&LC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Es(n,1920,!1,a):(x.assert(n.parent.kind===271),Es(n,901119,!1,a))}function mp(n,a){return n.parent?mp(n.parent,a)+\".\"+ai(n):ai(n,a,void 0,36)}function kT(n){for(;$d(n.parent);)n=n.parent;return n}function OT(n){let a=dp(n),c=Xs(a,a.escapedText,111551,void 0,a,!0);if(c){for(;$d(a.parent);){let u=Yn(c);if(c=Qo(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Es(n,a,c,u,_){if(_l(n))return;let g=1920|(Jn(n)?a&111551:0),T;if(n.kind===80){let N=a===g||xs(n)?f.Cannot_find_namespace_0:Ake(dp(n)),O=Jn(n)&&!xs(n)?ZR(n,a):void 0;if(T=Oa(Xs(_||n,n.escapedText,a,c||O?void 0:N,n,!0,!1)),!T)return Oa(O)}else if(n.kind===166||n.kind===211){let N=n.kind===166?n.left:n.expression,O=n.kind===166?n.right:n.name,B=Es(N,g,c,!1,_);if(!B||_l(O))return;if(B===tt)return B;if(B.valueDeclaration&&Jn(B.valueDeclaration)&&zd(F)!==100&&yi(B.valueDeclaration)&&B.valueDeclaration.initializer&&lwe(B.valueDeclaration.initializer)){let Q=B.valueDeclaration.initializer.arguments[0],me=jd(Q,Q);if(me){let ue=$u(me);ue&&(B=ue)}}if(T=Oa(gu(Qu(B),O.escapedText,a)),!T&&B.flags&2097152&&(T=Oa(gu(Qu(fc(B)),O.escapedText,a))),!T){if(!c){let Q=mp(B),me=is(O),ue=jQ(O,B);if(ue){we(O,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,me,ai(ue));return}let We=$d(n)&&kT(n);if(Se&&a&788968&&We&&!Wx(We.parent)&&OT(We)){we(We,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Wu(We));return}if(a&1920&&$d(n.parent)){let ht=Oa(gu(Qu(B),O.escapedText,788968));if(ht){we(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ai(ht),Ii(n.parent.right.escapedText));return}}we(O,f.Namespace_0_has_no_exported_member_1,Q,me)}return}}else x.assertNever(n,\"Unknown entity name kind.\");return x.assert((tl(T)&1)===0,\"Should never get an instantiated symbol here.\"),!xs(n)&&Su(n)&&(T.flags&2097152||n.parent.kind===277)&&Nu(V9(n),T,void 0,!0),T.flags&a||u?T:fc(T)}function ZR(n,a){if(U$(n.parent)){let c=lE(n.parent);if(c)return Xs(c,n.escapedText,a,void 0,n,!0)}}function lE(n){if(Rn(n,_=>q1(_)||_.flags&16777216?bf(_):\"quit\"))return;let c=PS(n);if(c&&Cc(c)&&AL(c.expression)){let _=dr(c.expression.left);if(_)return z0(_)}if(c&&ps(c)&&AL(c.parent)&&Cc(c.parent.parent)){let _=dr(c.parent.left);if(_)return z0(_)}if(c&&(qf(c)||Hl(c))&&Zn(c.parent.parent)&&hl(c.parent.parent)===6){let _=dr(c.parent.parent.left);if(_)return z0(_)}let u=Rb(n);if(u&&Lo(u)){let _=dr(u);return _&&_.valueDeclaration}}function z0(n){let a=n.parent.valueDeclaration;return a?(vC(a)?LA(a):SS(a)?yL(a):void 0)||a:void 0}function xP(n){let a=n.valueDeclaration;if(!a||!Jn(a)||n.flags&524288||Ib(a,!1))return;let c=yi(a)?yL(a):LA(a);if(c){let u=Fp(c);if(u)return Zhe(u,n)}}function jd(n,a,c){let _=zd(F)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return Tg(n,a,c?void 0:_)}function Tg(n,a,c,u=!1){return Ga(a)?__(n,a.text,c,a,u):void 0}function __(n,a,c,u,_=!1){var g,T,N,O,B,Q,me,ue,We,at,ht;if(Ui(a,\"@types/\")){let Bn=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,co=jD(a,\"@types/\");we(u,Bn,co,a)}let qt=w$(a,!0);if(qt)return qt;let Xt=Nn(n),Hn=Ga(n)?n:((g=Il(n)?n:n.parent&&Il(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=ey(n)?n:void 0)==null?void 0:T.argument.literal)||(yi(n)&&n.initializer&&Xd(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((N=Rn(n,lp))==null?void 0:N.arguments[0])||((O=Rn(n,cc))==null?void 0:O.moduleSpecifier)||((B=Rn(n,Ab))==null?void 0:B.moduleReference.expression)||((Q=Rn(n,xl))==null?void 0:Q.moduleSpecifier),En=Hn&&Ga(Hn)?e.getModeForUsageLocation(Xt,Hn):Xt.impliedNodeFormat,Kt=zd(F),In=(me=e.getResolvedModule(Xt,a,En))==null?void 0:me.resolvedModule,Sn=In&&FH(F,In,Xt),zn=In&&(!Sn||Sn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(In.resolvedFileName);if(zn){if(Sn&&we(u,Sn,a,In.resolvedFileName),In.resolvedUsingTsExtension&&Yc(a)){let Bn=((ue=Rn(n,cc))==null?void 0:ue.importClause)||Rn(n,hm(Nc,xl));(Bn&&!Bn.isTypeOnly||Rn(n,lp))&&we(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Mn(x.checkDefined(JW(a))))}else if(In.resolvedUsingTsExtension&&!nR(F,Xt.fileName)){let Bn=((We=Rn(n,cc))==null?void 0:We.importClause)||Rn(n,hm(Nc,xl));if(!(Bn?.isTypeOnly||Rn(n,Dh))){let co=x.checkDefined(JW(a));we(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,co)}}if(zn.symbol){if(In.isExternalLibraryImport&&!VC(In.extension)&&o1(!1,u,Xt,En,In,a),Kt===3||Kt===99){let Bn=Xt.impliedNodeFormat===1&&!Rn(n,lp)||!!Rn(n,Nc),co=Rn(n,no=>Dh(no)||xl(no)||cc(no));if(Bn&&zn.impliedNodeFormat===99&&!hre(co))if(Rn(n,Nc))we(u,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let no,Eo=og(Xt.fileName);if(Eo===\".ts\"||Eo===\".js\"||Eo===\".tsx\"||Eo===\".jsx\"){let Yi=Xt.packageJsonScope,ic=Eo===\".ts\"?\".mts\":Eo===\".js\"?\".mjs\":void 0;Yi&&!Yi.contents.packageJsonContent.type?ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,ic,wr(Yi.packageDirectory,\"package.json\")):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,wr(Yi.packageDirectory,\"package.json\")):ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,ic):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}La.add(eg(Nn(u),u,So(no,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return Oa(zn.symbol)}c&&we(u,f.File_0_is_not_a_module,zn.fileName);return}if(Nf){let Bn=pB(Nf,co=>co.pattern,a);if(Bn){let co=Vd&&Vd.get(a);return Oa(co||Bn.symbol)}}if(In&&!VC(In.extension)&&Sn===void 0||Sn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let Bn=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;we(u,Bn,a,In.resolvedFileName)}else o1(ce&&!!c,u,Xt,En,In,a);return}if(c){if(In){let Bn=e.getProjectReferenceRedirect(In.resolvedFileName);if(Bn){we(u,f.Output_file_0_has_not_been_built_from_source_file_1,Bn,In.resolvedFileName);return}}if(Sn)we(u,Sn,a,In.resolvedFileName);else{let Bn=op(a)&&!TA(a),co=Kt===3||Kt===99;if(!Mb(F)&&el(a,\".json\")&&Kt!==1&&rF(F))we(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(En===99&&co&&Bn){let no=Qi(a,Ur(Xt.path)),Eo=(at=qR.find(([Yi,ic])=>e.fileExists(no+Yi)))==null?void 0:at[1];Eo?we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Eo):we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((ht=e.getResolvedModule(Xt,a,En))!=null&&ht.alternateResult){let no=Q8(Xt,e,a,En,a);jc(!0,u,So(no,c,a))}else we(u,c,a)}}return;function Mn(Bn){let co=QL(a,Bn);if(nF(W)||En===99){let no=Yc(a)&&nR(F);return co+(Bn===\".mts\"||Bn===\".d.mts\"?no?\".mts\":\".mjs\":Bn===\".cts\"||Bn===\".d.mts\"?no?\".cts\":\".cjs\":no?\".ts\":\".js\")}return co}}function o1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let N;!Ic(T)&&_&&(N=Q8(c,e,T,u,_.name)),jc(n,a,So(N,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function $u(n,a){if(n?.exports){let c=yl(n.exports.get(\"export=\"),a),u=a1(Oa(c),Oa(n));return Oa(u)||n}}function a1(n,a){if(!n||n===tt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=Pi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:AT(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=Vo()),a.exports.forEach((_,g)=>{g!==\"export=\"&&u.exports.set(g,u.exports.has(g)?Pf(u.exports.get(g),_):_)}),u===n&&(Pi(u).resolvedExports=void 0,Pi(u).resolvedMembers=void 0),Pi(u).cjsExportMerged=u,c.cjsExportMerged=u}function Pu(n,a,c,u){var _;let g=$u(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!Vs(g,312)){let N=W>=5?\"allowSyntheticDefaultImports\":\"esModuleInterop\";return we(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),g}let T=a.parent;if(cc(T)&&cx(T)||lp(T)){let N=lp(T)?T.arguments[0]:T.moduleSpecifier,O=Yn(g),B=awe(O,g,n,N);if(B)return s1(g,B,T);let Q=(_=n?.declarations)==null?void 0:_.find(Li),me=Q&&Wp(Oi(N),Q.impliedNodeFormat);if(z_(F)||me){let ue=k7(O,0);if((!ue||!ue.length)&&(ue=k7(O,1)),ue&&ue.length||Qo(O,\"default\",!0)||me){let We=O.flags&3670016?swe(O,g,n,N):ege(g,g.parent);return s1(g,We,T)}}}}return g}function s1(n,a,c){let u=Ra(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=Om(a);return u.links.type=cs(u,_.members,je,je,_.indexInfos),u}function xv(n){return n.exports.get(\"export=\")!==void 0}function wT(n){return Ume(Z_(n))}function eD(n){let a=wT(n),c=$u(n);if(c!==n){let u=Yn(c);wy(u)&&Pr(a,Xa(u))}return a}function tD(n,a){Z_(n).forEach((_,g)=>{V0(g)||a(_,g)});let u=$u(n);if(u!==n){let _=Yn(u);wy(_)&&ntt(_,(g,T)=>{a(g,T)})}}function WT(n,a){let c=Z_(a);if(c)return c.get(n)}function nD(n,a){let c=WT(n,a);if(c)return c;let u=$u(a);if(u===a)return;let _=Yn(u);return wy(_)?Qo(_,n):void 0}function wy(n){return!(n.flags&402784252||br(n)&1||ff(n)||ga(n))}function Qu(n){return n.flags&6256?Dme(n,\"resolvedExports\"):n.flags&1536?Z_(n):n.exports||U}function Z_(n){let a=Pi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=FT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function rD(n,a,c,u){a&&a.forEach((_,g)=>{if(g===\"default\")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:Vl(u.moduleSpecifier)});else if(c&&u&&T&&yl(T)!==yl(_)){let N=c.get(g);N.exportsWithDuplicate?N.exportsWithDuplicate.push(u):N.exportsWithDuplicate=[u]}})}function FT(n){let a=[],c,u=new Set;n=$u(n);let _=g(n)||U;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,N,O){if(!O&&T?.exports&&T.exports.forEach((me,ue)=>u.add(ue)),!(T&&T.exports&&jp(a,T)))return;let B=new Map(T.exports),Q=T.exports.get(\"__export\");if(Q){let me=Vo(),ue=new Map;if(Q.declarations)for(let We of Q.declarations){let at=jd(We,We.moduleSpecifier),ht=g(at,We,O||We.isTypeOnly);rD(me,ht,ue,We)}ue.forEach(({exportsWithDuplicate:We},at)=>{if(!(at===\"export=\"||!(We&&We.length)||B.has(at)))for(let ht of We)La.add(vr(ht,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ue.get(at).specifierText,Ii(at)))}),rD(B,me)}return N?.isTypeOnly&&(c??(c=new Map),B.forEach((me,ue)=>c.set(ue,N))),B}}function Oa(n){let a;return n&&n.mergeId&&(a=jR[n.mergeId])?a:n}function dr(n){return Oa(n.symbol&&L$(n.symbol))}function Fp(n){return qm(n)?dr(n):void 0}function nu(n){return Oa(n.parent&&L$(n.parent))}function B0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&Fp(n.valueDeclaration.parent)||n}function iD(n,a){let c=Nn(a),u=Fa(c),_=Pi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let N of c.imports){if(xs(N))continue;let O=jd(a,N,!0);!O||!zh(O,n)||(g=pn(g,O))}if(yn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let N of T){if(!wl(N))continue;let O=dr(N);zh(O,n)&&(g=pn(g,O))}return _.extendedContainers=g||je}function cE(n,a,c){let u=nu(n);if(u&&!(n.flags&262144))return O(u);let _=Fi(n.declarations,Q=>{if(!sd(Q)&&Q.parent){if(Rd(Q.parent))return dr(Q.parent);if(n_(Q.parent)&&Q.parent.parent&&$u(dr(Q.parent.parent))===n)return dr(Q.parent.parent)}if(Dc(Q)&&Zn(Q.parent)&&Q.parent.operatorToken.kind===64&&us(Q.parent.left)&&gl(Q.parent.left.expression))return Eh(Q.parent.left)||DS(Q.parent.left.expression)?dr(Nn(Q)):(Ml(Q.parent.left.expression),Fr(Q.parent.left.expression).resolvedSymbol)});if(!yn(_))return;let g=Fi(_,Q=>zh(Q,n)?Q:void 0),T=[],N=[];for(let Q of g){let[me,...ue]=O(Q);T=pn(T,me),N=Pr(N,ue)}return ro(T,N);function O(Q){let me=Fi(Q.declarations,B),ue=a&&iD(n,a),We=G0(Q,c);if(a&&Q.flags&Ig(c)&&Wy(Q,a,1920,!1))return pn(ro(ro([Q],me),ue),We);let at=!(Q.flags&Ig(c))&&Q.flags&788968&&Cs(Q).flags&524288&&c===111551?U0(a,qt=>hc(qt,Xt=>{if(Xt.flags&Ig(c)&&Yn(Xt)===Cs(Q))return Xt})):void 0,ht=at?[at,...me,Q]:[...me,Q];return ht=pn(ht,We),ht=Pr(ht,ue),ht}function B(Q){return u&&zT(Q,u)}}function G0(n,a){let c=!!yn(n.declarations)&&Ta(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(ma(c)&&c===c.parent.initializer||ju(c)&&c===c.parent.type))return dr(c.parent)}function zT(n,a){let c=wi(n),u=c&&c.exports&&c.exports.get(\"export=\");return u&&Nm(u,a)?c:void 0}function zh(n,a){if(n===nu(a))return a;let c=n.exports&&n.exports.get(\"export=\");if(c&&Nm(c,a))return n;let u=Qu(n),_=u.get(a.escapedName);return _&&Nm(_,a)?_:hc(u,g=>{if(Nm(g,a))return g})}function Nm(n,a){if(Oa(yl(Oa(n)))===Oa(yl(Oa(a))))return n}function zp(n){return Oa(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function sm(n,a){return!!(n.flags&111551||n.flags&2097152&&Qc(n,!a)&111551)}function Ag(n){let a=n.members;for(let c of a)if(c.kind===176&&gf(c.body))return c}function Bh(n){var a;let c=new p(zt,n);return m++,c.id=m,(a=qn)==null||a.recordType(c),c}function Gh(n,a){let c=Bh(n);return c.symbol=a,c}function l1(n){return new p(zt,n)}function Fl(n,a,c=0,u){oD(a,u);let _=Bh(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function oD(n,a){let c=`${n},${a??\"\"}`;et.has(c)&&x.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:\"\"}; you may need to pass a name to createIntrinsicType.`),et.add(c)}function af(n,a){let c=Gh(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function eh(){return Br(bo(GU.keys(),yu))}function Bp(n){return Gh(262144,n)}function V0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function dE(n){let a;return n.forEach((c,u)=>{c1(c,u)&&(a||(a=[])).push(c)}),a||je}function c1(n,a){return!V0(a)&&sm(n)}function BT(n){let a=dE(n),c=z$(n);return c?ro(a,[c]):a}function Gp(n,a,c,u,_){let g=n;return g.members=a,g.properties=je,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==U&&(g.properties=dE(a)),g}function cs(n,a,c,u,_){return Gp(af(16,n),a,c,u,_)}function j0(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Cr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=cs(n.symbol,n.members,n.callSignatures,ct(a)?a:je,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function U0(n,a){let c;for(let u=n;u;u=u.parent){if(L_(u)&&u.locals&&!$_(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!sp(u))break;case 267:let _=dr(u);if(c=a(_?.exports||U,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((dr(u).members||U).forEach((T,N)=>{T.flags&788968&&(g||(g=Vo())).set(N,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(he,void 0,!0)}function Ig(n){return n===111551?111551:1920}function Wy(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=Pi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),N=U0(a,(Xt,Hn,En,Kt)=>Kt),O=`${u?0:1}|${N&&Fa(N)}|${c}`;if(T.has(O))return T.get(O);let B=na(n),Q=_.get(B);Q||_.set(B,Q=[]);let me=U0(a,ue);return T.set(O,me),me;function ue(Xt,Hn,En){if(!jp(Q,Xt))return;let Kt=ht(Xt,Hn,En);return Q.pop(),Kt}function We(Xt,Hn){return!uE(Xt,a,Hn)||!!Wy(Xt.parent,a,Ig(Hn),u,_)}function at(Xt,Hn,En){return(n===(Hn||Xt)||Oa(n)===Oa(Hn||Xt))&&!ct(Xt.declarations,Rd)&&(En||We(Oa(Xt),c))}function ht(Xt,Hn,En){return at(Xt.get(n.escapedName),void 0,Hn)?[n]:hc(Xt,In=>{if(In.flags&2097152&&In.escapedName!==\"export=\"&&In.escapedName!==\"default\"&&!(QW(In)&&a&&wl(Nn(a)))&&(!u||ct(In.declarations,Ab))&&(!En||!ct(In.declarations,Jte))&&(Hn||!Vs(In,281))){let Sn=fc(In),zn=qt(In,Sn,Hn);if(zn)return zn}if(In.escapedName===n.escapedName&&In.exportSymbol&&at(Oa(In.exportSymbol),void 0,Hn))return[n]})||(Xt===he?qt(Ke,Ke,Hn):void 0)}function qt(Xt,Hn,En){if(at(Xt,Hn,En))return[Xt];let Kt=Qu(Hn),In=Kt&&ue(Kt,!0);if(In&&We(Xt,Ig(c)))return[Xt].concat(In)}}function uE(n,a,c){let u=!1;return U0(a,_=>{let g=Oa(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!Vs(g,281);return g=T?fc(g):g,(T?Qc(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ne(n,a){return ri(n,a,788968,!1,!0).accessibility===0}function rt(n,a){return ri(n,a,111551,!1,!0).accessibility===0}function Ht(n,a,c){return ri(n,a,c,!1,!1).accessibility===0}function yr(n,a,c,u,_,g){if(!yn(n))return;let T,N=!1;for(let O of n){let B=Wy(O,a,u,!1);if(B){T=O;let ue=ru(B[0],_);if(ue)return ue}if(g&&ct(O.declarations,Rd)){if(_){N=!0;continue}return{accessibility:0}}let Q=cE(O,a,u),me=yr(Q,a,c,c===O?Ig(u):u,_,g);if(me)return me}if(N)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ai(c,a,u),errorModuleName:T!==c?ai(T,a,1920):void 0}}function vi(n,a,c,u){return ri(n,a,c,u,!0)}function ri(n,a,c,u,_){if(n&&a){let g=yr([n],a,n,c,u,_);if(g)return g;let T=an(n.declarations,wi);if(T){let N=wi(a);if(T!==N)return{accessibility:2,errorSymbolName:ai(n,a,c),errorModuleName:ai(T),errorNode:Jn(a)?a:void 0}}return{accessibility:1,errorSymbolName:ai(n,a,c)}}return{accessibility:0}}function wi(n){let a=Rn(n,$o);return a&&dr(a)}function $o(n){return sd(n)||n.kind===312&&sp(n)}function Rd(n){return iW(n)||n.kind===312&&sp(n)}function ru(n,a){let c;if(!ji(Cr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,N;if(!Pm(g)){let O=RT(g);if(O&&!Wr(O,32)&&Pm(O.parent))return _(g,O);if(yi(g)&&cl(g.parent.parent)&&!Wr(g.parent.parent,32)&&Pm(g.parent.parent.parent))return _(g,g.parent.parent);if(oW(g)&&!Wr(g,32)&&Pm(g.parent))return _(g,g);if(Na(g)){if(n.flags&2097152&&Jn(g)&&((T=g.parent)!=null&&T.parent)&&yi(g.parent.parent)&&((N=g.parent.parent.parent)!=null&&N.parent)&&cl(g.parent.parent.parent.parent)&&!Wr(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&Pm(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let B=Rn(g,cl);return Wr(B,32)?!0:Pm(B.parent)?_(g,B):!1}}return!1}return!0}function _(g,T){return a&&(Fr(g).isVisible=!0,c=Kh(c,T)),!0}}function sf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!yh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Fy(n,a){let c=sf(n),u=dp(n),_=Xs(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&YE(u)&&vi(dr(lu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&ru(_,!0)||{accessibility:1,errorSymbolName:Vl(u),errorNode:u}}function ai(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?ft.symbolToNode:ft.symbolToEntityName;return _?N(_).getText():dC(N);function N(O){let B=T(n,c,a,g),Q=a?.kind===312?hH():y0(),me=a&&Nn(a);return Q.writeNode(4,B,me,O),O}}function th(n,a,c=0,u,_){return _?g(_).getText():dC(g);function g(T){let N;c&262144?N=u===1?185:184:N=u===1?180:179;let O=ft.signatureToSignatureDeclaration(n,N,a,GT(c)|70221824|512),B=hk(),Q=a&&Nn(a);return B.writeNode(4,O,Q,nV(T)),T}}function Pn(n,a,c=1064960,u=GL(\"\")){let _=F.noErrorTruncation||c&1,g=ft.typeToTypeNode(n,a,GT(c)|70221824|(_?1:0));if(g===void 0)return x.fail(\"should always get typenode\");let T=n!==Ct?y0():_H(),N=a&&Nn(a);T.writeNode(4,g,N,u);let O=u.getText(),B=_?AF*2:i2*2;return B&&O&&O.length>=B?O.substr(0,B-3)+\"...\":O}function d1(n,a){let c=By(n.symbol)?Pn(n,n.symbol.valueDeclaration):Pn(n),u=By(a.symbol)?Pn(a,a.symbol.valueDeclaration):Pn(a);return c===u&&(c=zy(n),u=zy(a)),[c,u]}function zy(n){return Pn(n,void 0,64)}function By(n){return n&&!!n.valueDeclaration&&lt(n.valueDeclaration)&&!uf(n.valueDeclaration)}function GT(n=0){return n&848330095}function H0(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===cf(n.symbol)||!!(n.flags&524288)&&!!(br(n)&16777216))}function h_(){return{typeToTypeNode:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>u(Qe,Xr)),indexInfoToIndexSignatureDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>Q(Qe,Xr,void 0)),signatureToSignatureDeclaration:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>me(Qe,ve,li)),symbolToEntityName:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>Yi(Qe,li,ve,!1)),symbolToExpression:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>ic(Qe,li,ve)),symbolToTypeParameterDeclarations:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>In(Qe,Xr)),symbolToParameterDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>qt(Qe,Xr)),typeParameterToDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>at(Qe,Xr)),symbolTableToDeclarationStatements:(Qe,ve,vn,_r,Xr)=>a(ve,vn,_r,li=>Ys(Qe,li,Xr)),symbolToNode:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>n(Qe,li,ve))};function n(Qe,ve,vn){if(ve.flags&1073741824){if(Qe.valueDeclaration){let Xr=mo(Qe.valueDeclaration);if(Xr&&Pa(Xr))return Xr}let _r=Pi(Qe).nameType;if(_r&&_r.flags&9216)return ve.enclosingDeclaration=_r.symbol.valueDeclaration,P.createComputedPropertyName(ic(_r.symbol,ve,vn))}return ic(Qe,ve,vn)}function a(Qe,ve,vn,_r){x.assert(Qe===void 0||(Qe.flags&16)===0);let Xr=vn?.trackSymbol?vn.moduleResolverHost:ve&134217728?w3e(e):void 0,li={enclosingDeclaration:Qe,flags:ve||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};li.tracker=new VU(li,vn,Xr);let ci=_r(li);return li.truncating&&li.flags&1&&li.tracker.reportTruncationError(),li.encounteredError?void 0:ci}function c(Qe){return Qe.truncating?Qe.truncating:Qe.truncating=Qe.approximateLength>(Qe.flags&1?AF:i2)}function u(Qe,ve){let vn=ve.flags,_r=_(Qe,ve);return ve.flags=vn,_r}function _(Qe,ve){var vn,_r;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xr=ve.flags&8388608;if(ve.flags&=-8388609,!Qe){if(!(ve.flags&262144)){ve.encounteredError=!0;return}return ve.approximateLength+=3,P.createKeywordTypeNode(133)}if(ve.flags&536870912||(Qe=wm(Qe)),Qe.flags&1)return Qe.aliasSymbol?P.createTypeReferenceNode(Bn(Qe.aliasSymbol),O(Qe.aliasTypeArguments,ve)):Qe===Ct?iN(P.createKeywordTypeNode(133),3,\"unresolved\"):(ve.approximateLength+=3,P.createKeywordTypeNode(Qe===Qt?141:133));if(Qe.flags&2)return P.createKeywordTypeNode(159);if(Qe.flags&4)return ve.approximateLength+=6,P.createKeywordTypeNode(154);if(Qe.flags&8)return ve.approximateLength+=6,P.createKeywordTypeNode(150);if(Qe.flags&64)return ve.approximateLength+=6,P.createKeywordTypeNode(163);if(Qe.flags&16&&!Qe.aliasSymbol)return ve.approximateLength+=7,P.createKeywordTypeNode(136);if(Qe.flags&1056){if(Qe.symbol.flags&8){let fn=nu(Qe.symbol),zr=co(fn,ve,788968);if(Cs(fn)===Qe)return zr;let Ai=$s(Qe.symbol);return Tp(Ai,0)?ii(zr,P.createTypeReferenceNode(Ai,void 0)):Dh(zr)?(zr.isTypeOf=!0,P.createIndexedAccessTypeNode(zr,P.createLiteralTypeNode(P.createStringLiteral(Ai)))):Yp(zr)?P.createIndexedAccessTypeNode(P.createTypeQueryNode(zr.typeName),P.createLiteralTypeNode(P.createStringLiteral(Ai))):x.fail(\"Unhandled type node kind returned from `symbolToTypeNode`.\")}return co(Qe.symbol,ve,788968)}if(Qe.flags&128)return ve.approximateLength+=Qe.value.length+2,P.createLiteralTypeNode($n(P.createStringLiteral(Qe.value,!!(ve.flags&268435456)),16777216));if(Qe.flags&256){let fn=Qe.value;return ve.approximateLength+=(\"\"+fn).length,P.createLiteralTypeNode(fn<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-fn)):P.createNumericLiteral(fn))}if(Qe.flags&2048)return ve.approximateLength+=ZE(Qe.value).length+1,P.createLiteralTypeNode(P.createBigIntLiteral(Qe.value));if(Qe.flags&512)return ve.approximateLength+=Qe.intrinsicName.length,P.createLiteralTypeNode(Qe.intrinsicName===\"true\"?P.createTrue():P.createFalse());if(Qe.flags&8192){if(!(ve.flags&1048576)){if(rt(Qe.symbol,ve.enclosingDeclaration))return ve.approximateLength+=6,co(Qe.symbol,ve,111551);ve.tracker.reportInaccessibleUniqueSymbolError&&ve.tracker.reportInaccessibleUniqueSymbolError()}return ve.approximateLength+=13,P.createTypeOperatorNode(158,P.createKeywordTypeNode(155))}if(Qe.flags&16384)return ve.approximateLength+=4,P.createKeywordTypeNode(116);if(Qe.flags&32768)return ve.approximateLength+=9,P.createKeywordTypeNode(157);if(Qe.flags&65536)return ve.approximateLength+=4,P.createLiteralTypeNode(P.createNull());if(Qe.flags&131072)return ve.approximateLength+=5,P.createKeywordTypeNode(146);if(Qe.flags&4096)return ve.approximateLength+=6,P.createKeywordTypeNode(155);if(Qe.flags&67108864)return ve.approximateLength+=6,P.createKeywordTypeNode(151);if(YC(Qe))return ve.flags&4194304&&(!ve.encounteredError&&!(ve.flags&32768)&&(ve.encounteredError=!0),(_r=(vn=ve.tracker).reportInaccessibleThisError)==null||_r.call(vn)),ve.approximateLength+=4,P.createThisTypeNode();if(!Xr&&Qe.aliasSymbol&&(ve.flags&16384||ne(Qe.aliasSymbol,ve.enclosingDeclaration))){let fn=O(Qe.aliasTypeArguments,ve);return V0(Qe.aliasSymbol.escapedName)&&!(Qe.aliasSymbol.flags&32)?P.createTypeReferenceNode(P.createIdentifier(\"\"),fn):yn(fn)===1&&Qe.aliasSymbol===Po.symbol?P.createArrayTypeNode(fn[0]):co(Qe.aliasSymbol,ve,788968,fn)}let li=br(Qe);if(li&4)return x.assert(!!(Qe.flags&524288)),Qe.node?Ft(Qe,xn):xn(Qe);if(Qe.flags&262144||li&3){if(Qe.flags&262144&&To(ve.inferTypeParameters,Qe)){ve.approximateLength+=$s(Qe.symbol).length+6;let zr,Ai=iu(Qe);if(Ai){let Ji=OLe(Qe,!0);Ji&&kg(Ai,Ji)||(ve.approximateLength+=9,zr=Ai&&u(Ai,ve))}return P.createInferTypeNode(We(Qe,ve,zr))}if(ve.flags&4&&Qe.flags&262144){let zr=Eo(Qe,ve);return ve.approximateLength+=ar(zr).length,P.createTypeReferenceNode(P.createIdentifier(ar(zr)),void 0)}if(Qe.symbol)return co(Qe.symbol,ve,788968);let fn=(Qe===ae||Qe===X)&&L&&L.symbol?(Qe===X?\"sub-\":\"super-\")+$s(L.symbol):\"?\";return P.createTypeReferenceNode(P.createIdentifier(fn),void 0)}if(Qe.flags&1048576&&Qe.origin&&(Qe=Qe.origin),Qe.flags&3145728){let fn=Qe.flags&1048576?aD(Qe.types):Qe.types;if(yn(fn)===1)return u(fn[0],ve);let zr=O(fn,ve,!0);if(zr&&zr.length>0)return Qe.flags&1048576?P.createUnionTypeNode(zr):P.createIntersectionTypeNode(zr);!ve.encounteredError&&!(ve.flags&262144)&&(ve.encounteredError=!0);return}if(li&48)return x.assert(!!(Qe.flags&524288)),Gt(Qe);if(Qe.flags&4194304){let fn=Qe.type;ve.approximateLength+=6;let zr=u(fn,ve);return P.createTypeOperatorNode(143,zr)}if(Qe.flags&134217728){let fn=Qe.texts,zr=Qe.types,Ai=P.createTemplateHead(fn[0]),Ji=P.createNodeArray(nn(zr,(Ho,Yl)=>P.createTemplateLiteralTypeSpan(u(Ho,ve),(Yl<zr.length-1?P.createTemplateMiddle:P.createTemplateTail)(fn[Yl+1]))));return ve.approximateLength+=2,P.createTemplateLiteralType(Ai,Ji)}if(Qe.flags&268435456){let fn=u(Qe.type,ve);return co(Qe.symbol,ve,788968,[fn])}if(Qe.flags&8388608){let fn=u(Qe.objectType,ve),zr=u(Qe.indexType,ve);return ve.approximateLength+=2,P.createIndexedAccessTypeNode(fn,zr)}if(Qe.flags&16777216)return Ft(Qe,fn=>ci(fn));if(Qe.flags&33554432){let fn=u(Qe.baseType,ve),zr=wP(Qe)&&r_e(\"NoInfer\",!1);return zr?co(zr,ve,788968,[fn]):fn}return x.fail(\"Should be unreachable.\");function ci(fn){let zr=u(fn.checkType,ve);if(ve.approximateLength+=15,ve.flags&4&&fn.root.isDistributive&&!(fn.checkType.flags&262144)){let al=Bp(Ra(262144,\"T\")),Ba=Eo(al,ve),oc=P.createTypeReferenceNode(Ba);ve.approximateLength+=37;let As=eA(fn.root.checkType,al,fn.mapper),Gm=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let qe=u(Gi(fn.root.extendsType,As),ve);ve.inferTypeParameters=Gm;let ut=xr(Gi(si(fn.root.node.trueType),As)),Bt=xr(Gi(si(fn.root.node.falseType),As));return P.createConditionalTypeNode(zr,P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(oc.typeName))),P.createConditionalTypeNode(P.createTypeReferenceNode(P.cloneNode(Ba)),u(fn.checkType,ve),P.createConditionalTypeNode(oc,qe,ut,Bt),P.createKeywordTypeNode(146)),P.createKeywordTypeNode(146))}let Ai=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let Ji=u(fn.extendsType,ve);ve.inferTypeParameters=Ai;let Ho=xr(EE(fn)),Yl=xr(SE(fn));return P.createConditionalTypeNode(zr,Ji,Ho,Yl)}function xr(fn){var zr,Ai,Ji;return fn.flags&1048576?(zr=ve.visitedTypes)!=null&&zr.has(Hd(fn))?(ve.flags&131072||(ve.encounteredError=!0,(Ji=(Ai=ve.tracker)==null?void 0:Ai.reportCyclicStructureError)==null||Ji.call(Ai)),g(ve)):Ft(fn,Ho=>u(Ho,ve)):u(fn,ve)}function ur(fn){return!!fw(fn)}function $e(fn){return!!fn.target&&ur(fn.target)&&!ur(fn)}function It(fn){var zr;x.assert(!!(fn.flags&524288));let Ai=fn.declaration.readonlyToken?P.createToken(fn.declaration.readonlyToken.kind):void 0,Ji=fn.declaration.questionToken?P.createToken(fn.declaration.questionToken.kind):void 0,Ho,Yl,al=!fD(fn)&&!(HT(fn).flags&2)&&ve.flags&4&&!(Vp(fn).flags&262144&&((zr=iu(Vp(fn)))==null?void 0:zr.flags)&4194304);if(fD(fn)){if($e(fn)&&ve.flags&4){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt)}Ho=P.createTypeOperatorNode(143,Yl||u(HT(fn),ve))}else if(al){let ut=Bp(Ra(262144,\"T\")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt),Ho=Yl}else Ho=u(Vp(fn),ve);let Ba=We(km(fn),ve,Ho),oc=fn.declaration.nameType?u(Dv(fn),ve):void 0,As=u(ob(Ng(fn),!!(oh(fn)&4)),ve),Gm=P.createMappedTypeNode(Ai,Ba,oc,Ji,As,void 0);ve.approximateLength+=10;let qe=$n(Gm,1);if($e(fn)&&ve.flags&4){let ut=Gi(iu(si(fn.declaration.typeParameter.constraint.type))||Zt,fn.mapper);return P.createConditionalTypeNode(u(HT(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),ut.flags&2?void 0:u(ut,ve))),qe,P.createKeywordTypeNode(146))}else if(al)return P.createConditionalTypeNode(u(Vp(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),P.createTypeOperatorNode(143,u(HT(fn),ve)))),qe,P.createKeywordTypeNode(146));return qe}function Gt(fn){var zr,Ai;let Ji=fn.id,Ho=fn.symbol;if(Ho){if(!!(br(fn)&8388608)){let As=fn.node;if(oI(As)&&si(As)===fn){let Gm=fl(ve,As);if(Gm)return Gm}return(zr=ve.visitedTypes)!=null&&zr.has(Ji)?g(ve):Ft(fn,Yt)}let Ba=H0(fn)?788968:111551;if(T_(Ho.valueDeclaration))return co(Ho,ve,Ba);if(Ho.flags&32&&!D$(Ho)&&!(Ho.valueDeclaration&&Kr(Ho.valueDeclaration)&&ve.flags&2048&&(!Zl(Ho.valueDeclaration)||vi(Ho,ve.enclosingDeclaration,Ba,!1).accessibility!==0))||Ho.flags&896||Yl())return co(Ho,ve,Ba);if((Ai=ve.visitedTypes)!=null&&Ai.has(Ji)){let oc=S7(fn);return oc?co(oc,ve,788968):g(ve)}else return Ft(fn,Yt)}else return Yt(fn);function Yl(){var al;let Ba=!!(Ho.flags&8192)&&ct(Ho.declarations,As=>zo(As)),oc=!!(Ho.flags&16)&&(Ho.parent||an(Ho.declarations,As=>As.parent.kind===312||As.parent.kind===268));if(Ba||oc)return(!!(ve.flags&4096)||((al=ve.visitedTypes)==null?void 0:al.has(Ji)))&&(!(ve.flags&8)||rt(Ho,ve.enclosingDeclaration))}}function Ft(fn,zr){var Ai,Ji,Ho;let Yl=fn.id,al=br(fn)&16&&fn.symbol&&fn.symbol.flags&32,Ba=br(fn)&4&&fn.node?\"N\"+Fa(fn.node):fn.flags&16777216?\"N\"+Fa(fn.root.node):fn.symbol?(al?\"+\":\"\")+na(fn.symbol):void 0;ve.visitedTypes||(ve.visitedTypes=new Set),Ba&&!ve.symbolDepth&&(ve.symbolDepth=new Map);let oc=ve.enclosingDeclaration&&Fr(ve.enclosingDeclaration),As=`${Hd(fn)}|${ve.flags}`;oc&&(oc.serializedTypes||(oc.serializedTypes=new Map));let Gm=(Ai=oc?.serializedTypes)==null?void 0:Ai.get(As);if(Gm)return(Ji=Gm.trackedSymbols)==null||Ji.forEach(([Rr,Si,yo])=>ve.tracker.trackSymbol(Rr,Si,yo)),Gm.truncating&&(ve.truncating=!0),ve.approximateLength+=Gm.addedLength,cn(Gm.node);let qe;if(Ba){if(qe=ve.symbolDepth.get(Ba)||0,qe>10)return g(ve);ve.symbolDepth.set(Ba,qe+1)}ve.visitedTypes.add(Yl);let ut=ve.trackedSymbols;ve.trackedSymbols=void 0;let Bt=ve.approximateLength,kn=zr(fn),pr=ve.approximateLength-Bt;return!ve.reportedDiagnostic&&!ve.encounteredError&&((Ho=oc?.serializedTypes)==null||Ho.set(As,{node:kn,truncating:ve.truncating,addedLength:pr,trackedSymbols:ve.trackedSymbols})),ve.visitedTypes.delete(Yl),Ba&&ve.symbolDepth.set(Ba,qe),ve.trackedSymbols=ut,kn;function cn(Rr){return!xs(Rr)&&uo(Rr)===Rr?Rr:Ze(P.cloneNode(un(Rr,cn,void 0,rr)),Rr)}function rr(Rr,Si,yo,Ko,Xo){return Rr&&Rr.length===0?Ze(P.createNodeArray(void 0,Rr.hasTrailingComma),Rr):Dn(Rr,Si,yo,Ko,Xo)}}function Yt(fn){if(vu(fn)||fn.containsError)return It(fn);let zr=Om(fn);if(!zr.properties.length&&!zr.indexInfos.length){if(!zr.callSignatures.length&&!zr.constructSignatures.length)return ve.approximateLength+=2,$n(P.createTypeLiteralNode(void 0),1);if(zr.callSignatures.length===1&&!zr.constructSignatures.length){let al=zr.callSignatures[0];return me(al,184,ve)}if(zr.constructSignatures.length===1&&!zr.callSignatures.length){let al=zr.constructSignatures[0];return me(al,185,ve)}}let Ai=Cr(zr.constructSignatures,al=>!!(al.flags&4));if(ct(Ai)){let al=nn(Ai,XT);return zr.callSignatures.length+(zr.constructSignatures.length-Ai.length)+zr.indexInfos.length+(ve.flags&2048?Wv(zr.properties,oc=>!(oc.flags&4194304)):yn(zr.properties))&&al.push(j0(zr)),u(Zo(al),ve)}let Ji=ve.flags;ve.flags|=4194304;let Ho=qi(zr);ve.flags=Ji;let Yl=P.createTypeLiteralNode(Ho);return ve.approximateLength+=2,$n(Yl,ve.flags&1024?0:1),Yl}function xn(fn){let zr=Ts(fn);if(fn.target===Po||fn.target===Oo){if(ve.flags&2){let Ho=u(zr[0],ve);return P.createTypeReferenceNode(fn.target===Po?\"Array\":\"ReadonlyArray\",[Ho])}let Ai=u(zr[0],ve),Ji=P.createArrayTypeNode(Ai);return fn.target===Po?Ji:P.createTypeOperatorNode(148,Ji)}else if(fn.target.objectFlags&8){if(zr=sc(zr,(Ai,Ji)=>ob(Ai,!!(fn.target.elementFlags[Ji]&2))),zr.length>0){let Ai=Nv(fn),Ji=O(zr.slice(0,Ai),ve);if(Ji){let{labeledElementDeclarations:Ho}=fn.target;for(let al=0;al<Ji.length;al++){let Ba=fn.target.elementFlags[al],oc=Ho?.[al];oc?Ji[al]=P.createNamedTupleMember(Ba&12?P.createToken(26):void 0,P.createIdentifier(Ii(ige(oc))),Ba&2?P.createToken(58):void 0,Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ji[al]=Ba&12?P.createRestTypeNode(Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ba&2?P.createOptionalTypeNode(Ji[al]):Ji[al]}let Yl=$n(P.createTupleTypeNode(Ji),1);return fn.target.readonly?P.createTypeOperatorNode(148,Yl):Yl}}if(ve.encounteredError||ve.flags&524288){let Ai=$n(P.createTupleTypeNode([]),1);return fn.target.readonly?P.createTypeOperatorNode(148,Ai):Ai}ve.encounteredError=!0;return}else{if(ve.flags&2048&&fn.symbol.valueDeclaration&&Kr(fn.symbol.valueDeclaration)&&!rt(fn.symbol,ve.enclosingDeclaration))return Gt(fn);{let Ai=fn.target.outerTypeParameters,Ji=0,Ho;if(Ai){let oc=Ai.length;for(;Ji<oc;){let As=Ji,Gm=wLe(Ai[Ji]);do Ji++;while(Ji<oc&&wLe(Ai[Ji])===Gm);if(!nB(Ai,zr,As,Ji)){let qe=O(zr.slice(As,Ji),ve),ut=ve.flags;ve.flags|=16;let Bt=co(Gm,ve,788968,qe);ve.flags=ut,Ho=Ho?ii(Ho,Bt):Bt}}}let Yl;if(zr.length>0){let oc=(fn.target.typeParameters||je).length;Yl=O(zr.slice(Ji,oc),ve)}let al=ve.flags;ve.flags|=16;let Ba=co(fn.symbol,ve,788968,Yl);return ve.flags=al,Ho?ii(Ho,Ba):Ba}}}function ii(fn,zr){if(Dh(fn)){let Ai=fn.typeArguments,Ji=fn.qualifier;Ji&&(Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai)))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=Ji?P.createQualifiedName(Ji,Yl):Yl;return P.updateImportTypeNode(fn,fn.argument,fn.attributes,Ji,Ai,fn.isTypeOf)}else{let Ai=fn.typeArguments,Ji=fn.typeName;Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=P.createQualifiedName(Ji,Yl);return P.updateTypeReferenceNode(fn,Ji,Ai)}}function Yr(fn){let zr=fn.typeName,Ai=[];for(;!Me(zr);)Ai.unshift(zr.right),zr=zr.left;return Ai.unshift(zr),Ai}function qi(fn){if(c(ve))return[P.createPropertySignature(void 0,\"...\",void 0,void 0)];let zr=[];for(let Ho of fn.callSignatures)zr.push(me(Ho,179,ve));for(let Ho of fn.constructSignatures)Ho.flags&4||zr.push(me(Ho,180,ve));for(let Ho of fn.indexInfos)zr.push(Q(Ho,ve,fn.objectFlags&1024?g(ve):void 0));let Ai=fn.properties;if(!Ai)return zr;let Ji=0;for(let Ho of Ai){if(Ji++,ve.flags&2048){if(Ho.flags&4194304)continue;Kp(Ho)&6&&ve.tracker.reportPrivateInBaseOfClassExpression&&ve.tracker.reportPrivateInBaseOfClassExpression(Ii(Ho.escapedName))}if(c(ve)&&Ji+2<Ai.length-1){zr.push(P.createPropertySignature(void 0,`... ${Ai.length-Ji} more ...`,void 0,void 0)),N(Ai[Ai.length-1],ve,zr);break}N(Ho,ve,zr)}return zr.length?zr:void 0}}function g(Qe){return Qe.approximateLength+=3,Qe.flags&1?P.createKeywordTypeNode(133):P.createTypeReferenceNode(P.createIdentifier(\"...\"),void 0)}function T(Qe,ve){var vn;return!!(tl(Qe)&8192)&&(To(ve.reverseMappedStack,Qe)||((vn=ve.reverseMappedStack)==null?void 0:vn[0])&&!(br(Da(ve.reverseMappedStack).links.propertyType)&16))}function N(Qe,ve,vn){var _r;let Xr=!!(tl(Qe)&8192),li=T(Qe,ve)?z:qy(Qe),ci=ve.enclosingDeclaration;if(ve.enclosingDeclaration=void 0,ve.tracker.canTrackSymbol&&nw(Qe.escapedName))if(Qe.declarations){let Yt=Ta(Qe.declarations);if(D7(Yt))if(Zn(Yt)){let xn=mo(Yt);xn&&Rs(xn)&&UL(xn.argumentExpression)&&Hn(xn.argumentExpression,ci,ve)}else Hn(Yt.name.expression,ci,ve)}else ve.tracker.reportNonSerializableProperty(ai(Qe));ve.enclosingDeclaration=Qe.valueDeclaration||((_r=Qe.declarations)==null?void 0:_r[0])||ci;let xr=bn(Qe,ve);if(ve.enclosingDeclaration=ci,ve.approximateLength+=$s(Qe).length+1,Qe.flags&98304){let Yt=q0(Qe);if(li!==Yt&&!Lt(li)&&!Lt(Yt)){let xn=Vs(Qe,177),ii=kf(xn);vn.push(Ol(me(ii,177,ve,{name:xr}),xn));let Yr=Vs(Qe,178),qi=kf(Yr);vn.push(Ol(me(qi,178,ve,{name:xr}),Yr));return}}let ur=Qe.flags&16777216?P.createToken(58):void 0;if(Qe.flags&8208&&!Xy(li).length&&!Bm(Qe)){let Yt=Co(Bl(li,xn=>!(xn.flags&32768)),0);for(let xn of Yt){let ii=me(xn,173,ve,{name:xr,questionToken:ur});vn.push(Ft(ii))}if(Yt.length||!ur)return}let $e;T(Qe,ve)?$e=g(ve):(Xr&&(ve.reverseMappedStack||(ve.reverseMappedStack=[]),ve.reverseMappedStack.push(Qe)),$e=li?es(ve,li,Qe,ci):P.createKeywordTypeNode(133),Xr&&ve.reverseMappedStack.pop());let It=Bm(Qe)?[P.createToken(148)]:void 0;It&&(ve.approximateLength+=9);let Gt=P.createPropertySignature(It,xr,ur,$e);vn.push(Ft(Gt));function Ft(Yt){var xn;let ii=(xn=Qe.declarations)==null?void 0:xn.find(Yr=>Yr.kind===355);if(ii){let Yr=VM(ii.comment);Yr&&Lb(Yt,[{kind:3,text:`*","vulnerability":{}},{"path":"dify-agent-runtime/internal/server/config.go","start_line":31,"end_line":31,"snippet":"\tDefaultAuthTokenEnv                  = \"SHELLCTL_AUTH_TOKEN\"","vulnerability":{"severity":"HIGH"}},{"path":"api/clients/agent_backend/factory.py","start_line":44,"end_line":51,"snippet":"    return DifyAgentBackendRunClient(\n        create_agent_backend_client(\n            base_url=base_url,\n            api_token=api_token,\n            stream_timeout=stream_read_timeout_seconds,\n        ),\n        stream_max_reconnects=stream_max_reconnects,\n    )","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":32,"end_line":32,"snippet":"        valid_password(new_password)","vulnerability":{"severity":"WARNING"}},{"path":"api/commands/account.py","start_line":37,"end_line":37,"snippet":"    application_services().accounts.lifecycle.reset_password(account.id, new_password, email=normalized_email)","vulnerability":{"severity":"WARNING"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0003","rule_version":"1.3.0","rule_name":"Runtime Command Injection via Process Execution","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"medium","rationale":"The dify-agent / dify-agent-runtime component's declared purpose is to run arbitrary user-submitted shell scripts/commands as a sandboxed agent tool (shellctl), so argv-based exec is within its declared contract rather than an injection bug. Tracing the sinks: (1) dify-agent-runtime/cmd/runner/main.go uses exec.Command(self, childArgs...) / syscall.Exec(binary, argv, ...) with a fixed, hardcoded self-reexec argv (binary + '--exec' + script_path + cwd) -- the actual user-supplied SCRIPT CONTENT is never concatenated into a shell string for this sink; it is written as file content at scriptPath and only the fixed path string is passed as an argv element, with shebang/`sh <path>` dispatch (buildExecArgv) -- the semgrep LOW-confidence 'non-static command' flags are the exec of the controller's OWN re-exec'd binary, not attacker-constructed shell text. (2) dify-agent-runtime/internal/server/tmux.go wraps user script execution via tmux using shellJoin/shellQuote helpers that quote each argument before composing the wrapper script, and the user's script itself runs inside a Landlock-restricted (default SHELLCTL_ENABLE_PATH_ISOLATION=true, envvar.go:34-40) sandboxed process tree that confines filesystem access -- i.e. arbitrary command execution is the TOOL'S DECLARED JOB, with sandboxing as the mitigating control, not a hidden injection flaw. api/libs/helper.py:127-128 run(script) (subprocess.getstatusoutput('source /root/.bashrc && '+script), a real shell-injection-shaped sink) has NO callers anywhere in the api/ runtime tree (grep confirms only this definition, zero call sites) -- dead code, not reachable from any HTTP/tool-call path, so it does not establish execution_reachability for a VULNERABLE verdict.","vulnerability_details":null,"fix_guidance":"Remove the unreferenced api/libs/helper.py:run() dead code to eliminate future-reachability risk; keep SHELLCTL_ENABLE_PATH_ISOLATION defaulted to true and do not allow it to be disabled in multi-tenant deployments.","why_this_matters":"Unsanitized command construction in shipped runtime code can give a remote attacker arbitrary code execution with the application's privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":108,"end_line":117,"snippet":"\tself, _ := os.Executable()\n\tchildArgs := []string{\"--exec\", scriptPath, cwd}\n\tif enableIsolation {\n\t\tchildArgs = append([]string{\"--exec\", \"--landlock\"}, childArgs[1:]...)\n\t}\n\n\tcmd := exec.Command(self, childArgs...)\n\tcmd.Env = env\n\tcmd.Dir = cwd"},{"path":"dify-agent-runtime/internal/envvar/envvar.go","start_line":33,"end_line":40,"snippet":"// PathIsolationEnabled returns whether Landlock filesystem isolation is active.\nfunc PathIsolationEnabled() bool {\n\tv, ok := os.LookupEnv(EnvEnablePathIsolation)\n\tif !ok {\n\t\treturn true\n\t}\n\treturn v == \"true\"\n}"},{"path":"api/libs/helper.py","start_line":127,"end_line":128,"snippet":"def run(script):\n    return subprocess.getstatusoutput(\"source /root/.bashrc && \" + script)"},{"path":"dify-agent-runtime/internal/server/tmux.go","start_line":246,"end_line":246,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":320,"end_line":320,"snippet":null,"vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":115,"end_line":115,"snippet":null,"vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0004","rule_version":"1.2.0","rule_name":"DoS Protections: Timeouts, Concurrency, Streaming Limits","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The codebase implements layered DoS protections: (1) a generic rate-limit decorator/library (api/libs/rate_limit.py) with per-IP/session/account/email/token sliding-window limits applied to auth-sensitive endpoints (device code, SSO initiate, bearer token validation, etc.); (2) the outbound SSRF-protected HTTP client enforces connect/read/write/total timeouts by default (SSRF_DEFAULT_TIME_OUT family) and a bounded buffer_response() that raises ResponseTooLargeError once decoded bytes exceed a configured cap, preventing unbounded streaming responses from exhausting memory; (3) upload size limits are enforced per content type (UPLOAD_FILE_SIZE_LIMIT, UPLOAD_IMAGE_FILE_SIZE_LIMIT, UPLOAD_VIDEO_FILE_SIZE_LIMIT, UPLOAD_AUDIO_FILE_SIZE_LIMIT, UPLOAD_SKILL_FILE_SIZE_LIMIT) in api/configs/feature/__init__.py and enforced in FileService.is_file_size_within_limit before any save() call.","vulnerability_details":null,"fix_guidance":"Continue to audit newly added external-facing endpoints to ensure they are decorated with an appropriate RateLimit spec; consider a global default body-size limit at the WSGI/reverse-proxy layer as defense in depth.","why_this_matters":"Resource exhaustion can crash or stall MCP.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/helper/ssrf_proxy.py","start_line":287,"end_line":300,"snippet":"def buffer_response(response: httpx.Response, *, max_response_bytes: int) -> httpx.Response:\n    \"\"\"Consume one open identity response under a decoded byte limit and close its stream.\"\"\"\n    if max_response_bytes <= 0:\n        raise ValueError(\"max_response_bytes must be positive\")\n    try:\n        content_encoding = response.headers.get(\"content-encoding\", \"identity\").strip().lower()\n        if content_encoding not in {\"\", \"identity\"}:\n            raise UnsupportedResponseEncodingError(...)\n        content = bytearray()\n        for chunk in response.iter_bytes():\n            if len(content) + len(chunk) > max_response_bytes:\n                raise ResponseTooLargeError(f\"response exceeded {max_response_bytes} bytes\")\n            content.extend(chunk)"},{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_DEVICE_FLOW_APPROVE = RateLimit(...)\nLIMIT_LOOKUP_PUBLIC = RateLimit(60, timedelta(minutes=5), (RateLimitScope.IP,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/configs/feature/__init__.py","start_line":458,"end_line":488,"snippet":"    UPLOAD_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    KNOWLEDGE_UPLOAD_FILE_SIZE_LIMIT_FOR_PAID_PLAN: NonNegativeInt = Field(...)\n    UPLOAD_IMAGE_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_VIDEO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_AUDIO_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)\n    UPLOAD_SKILL_FILE_SIZE_LIMIT: NonNegativeInt = Field(...)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0005","rule_version":"1.2.0","rule_name":"Logging Hygiene (No Secrets/PII/Tokens) & Audit Trail","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"api/libs/helper.py's TokenManager.get_token_data() logs the FULL raw token value at WARNING level (enabled by default under LOG_LEVEL=INFO) whenever a lookup misses. TokenManager mints these tokens for password-reset and other auth flows, so a reset-password token lands in application logs verbatim, with no central redaction filter in place.","vulnerability_details":"api/libs/helper.py line 549: `logger.warning(\"%s token %s not found with key %s\", token_type, token, key)` logs the raw `token` argument (a UUID minted by TokenManager.generate_token for sensitive flows including password reset, api/services/account/login_adapters.py:328) at WARNING level, enabled under the default LOG_LEVEL=INFO. Anyone with read access to application logs (log-aggregation/SIEM access, a separate log-exposure bug, or an insider) can harvest live password-reset tokens straight from this log line and use them to take over the corresponding account before the token's TTL expires -- turning a routine 'token not found' debug log into an account-takeover credential leak.","fix_guidance":"Change helper.py:549 to log only a hash/prefix of the token (e.g. token[:8]+'...') or omit it entirely and log the Redis key alone; add a logging filter/formatter that redacts known credential-shaped fields project-wide as defense in depth.","why_this_matters":"Prevents sensitive data leakage; enables forensics.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0005 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The adjudication reported mitigation_present but the scan did not; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"api/libs/helper.py","start_line":544,"end_line":551,"snippet":"    @classmethod\n    def get_token_data(cls, token: str, token_type: str) -> dict[str, Any] | None:\n        key = cls._get_token_key(token, token_type)\n        token_data_json = redis_client.get(key)\n        if token_data_json is None:\n            logger.warning(\"%s token %s not found with key %s\", token_type, token, key)\n            return None\n        return dict(_token_data_adapter.validate_json(token_data_json))"},{"path":"api/services/account/login_adapters.py","start_line":325,"end_line":330,"snippet":"            token = TokenManager.generate_token(\n                account_id=account_id,\n                email=email,"},{"path":"api/configs/feature/__init__.py","start_line":804,"end_line":807,"snippet":"    LOG_LEVEL: str = Field(\n        description=\"Logging level, default to INFO. Set to ERROR for production environments.\",\n        default=\"INFO\",\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0006","rule_version":"1.2.0","rule_name":"Container/Runtime Hardening","finding":"VULNERABLE","severity":"MEDIUM","realized_severity":"MEDIUM","confidence":"medium","rationale":"Trivy config scan identifies concrete hardening gaps: docker/couchbase-server/Dockerfile uses the floating ':latest' tag (DS-0001) and never sets a non-root USER (DS-0002, HIGH) -- confirmed by manual read, no USER directive exists so the container runs as root by inheritance from the base image. .devcontainer/Dockerfile also runs as root (DS-0002) and misses --no-install-recommends on apt-get install (DS-0029, HIGH). All Dockerfiles lack HEALTHCHECK (DS-0026, LOW). The two internet-facing production images (api/Dockerfile, web/Dockerfile) DO create and switch to a non-root 'dify' user, so the primary attack surface is hardened; the finding is scoped to the auxiliary Couchbase and dev-container images.","vulnerability_details":"docker/couchbase-server/Dockerfile runs its vector-DB backing service container as root (no USER directive) with an unpinned FROM couchbase/server:latest base. If an attacker achieves any code-execution foothold inside that container (e.g. via a future Couchbase CVE pulled in silently by the floating tag, or a vulnerability in init-cbserver.sh), running as root removes the standard UID-separation barrier, giving the attacker root-equivalent privileges inside the container and a larger blast radius for container-breakout primitives (e.g. abusing any mounted docker.sock, writable host paths, or kernel-level capabilities available to root but not to an unprivileged UID). The floating :latest tag means a rebuild can silently pull a newer and differently-vulnerable image without the change being reviewed.","fix_guidance":"Pin docker/couchbase-server/Dockerfile to a specific Couchbase version tag (not :latest) and add a non-root USER switch after setup; add USER directives to .devcontainer/Dockerfile and use --no-install-recommends there; add HEALTHCHECK instructions to all shipped Dockerfiles.","why_this_matters":"Reduces blast radius of exploits.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0006 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals MEDIUM.","within_declared_contract":false,"transport_gated":false,"mitigation_present":false,"evidence":[{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM couchbase/server:latest AS stage_base\n# FROM couchbase:latest AS stage_base\nCOPY init-cbserver.sh /opt/couchbase/init/\nRUN chmod +x /opt/couchbase/init/init-cbserver.sh"},{"path":".devcontainer/Dockerfile","start_line":1,"end_line":4,"snippet":"FROM mcr.microsoft.com/devcontainers/python:3.13-bookworm\n\nRUN apt-get update && export DEBIAN_FRONTEND=noninteractive \\\n     && apt-get -y install libgmp-dev libmpfr-dev libmpc-dev"},{"path":"api/Dockerfile","start_line":125,"end_line":125,"snippet":"USER dify"},{"path":"docker/couchbase-server/Dockerfile","start_line":1,"end_line":1,"snippet":"FROM couchbase/server:latest AS stage_base"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0007","rule_version":"1.2.0","rule_name":"Dependency Risk & Supply Chain","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"high","rationale":"Trivy's scan of the committed lockfiles (api/uv.lock, dify-agent/uv.lock, pnpm-lock.yaml, dify-agent-runtime/go.mod) found 23 known CVEs in pinned, locked dependency versions, including chromadb==0.5.20 (pinned in api/uv.lock as the Chroma vector-store provider's declared runtime dependency) mapped to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH), and CVE-2026-45831 (HIGH) with no fixed version yet published, alongside other HIGH/MEDIUM findings (e.g. pydantic-ai-slim, golang.org/x/mod, socket.io-parser) that do have published fixed versions the project has not yet adopted. The presence of these scanner-confirmed, unpatched CVEs in exact pinned dependency versions constitutes a supply-chain risk on its own; this finding does not assert a specific demonstrated remote-exploit path through the Chroma vector-store API, only that the vulnerable versions are locked and declared as runtime dependencies.","vulnerability_details":"api/uv.lock pins chromadb to exact version 0.5.20, which Trivy's vulnerability database maps to CVE-2026-45833 (CRITICAL), CVE-2026-45830 (HIGH) and CVE-2026-45831 (HIGH) with no fixed version yet published. chromadb is Dify's vector-database client, used by the RAG/knowledge-base subsystem that ingests and queries attacker-influenceable document content; a deployment that enables the Chroma vector-store provider runs this vulnerable client code against untrusted document/query content, exposing whatever remote-code-execution/data-exposure primitive CVE-2026-45833 represents to any user who can trigger a knowledge-base query or ingest a document into a Chroma-backed dataset.","fix_guidance":"Upgrade or replace chromadb beyond 0.5.20 once a patched release addressing CVE-2026-45833/45830/45831 is available (or pin to a patched fork / disable the Chroma vector-store provider until then); separately upgrade pydantic-ai-slim to >=2.53.0, bump the vulnerable golang.org/x/mod dependency, and update socket.io-parser to a fixed release; add a scheduled dependency CVE scan to CI to catch newly disclosed CVEs in already-pinned packages.","why_this_matters":"Prevents typosquat and malicious update compromise.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] [readers_disagree:mitigation_present] within_declared_contract is ineligible for relief on ATR-C0007 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. The scan reported mitigation_present but the independent adjudication did not corroborate it; relief (-40%) requires both readers, so none is applied for that signal. No context relief applies; realized severity equals HIGH.","within_declared_contract":false,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/uv.lock","start_line":880,"end_line":883,"snippet":"name = \"chromadb\"\nversion = \"0.5.20\"\nsource = { registry = \"https://pypi.org/simple\" }\ndependencies = ["},{"path":"Makefile","start_line":170,"end_line":1,"snippet":"(go.mod pins golang.org/x/mod to a version affected by CVE-2026-56864 HIGH / CVE-2026-56865 HIGH, per trivy-fs.json Results[] for Target=='dify-agent-runtime/go.mod')"},{"path":"web/package.json","start_line":29,"end_line":29,"snippet":"\"preinstall\": \"npx only-allow pnpm\","},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45833","pkg_name":"chromadb","severity":"CRITICAL","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45830","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-45831","pkg_name":"chromadb","severity":"HIGH","installed_version":"0.5.20"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107286","pkg_name":"pydantic-ai-slim","severity":"HIGH","installed_version":"2.31.0","fixed_version":"2.53.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-69185","pkg_name":"socket.io-parser","severity":"HIGH","installed_version":"4.2.6","fixed_version":"4.2.7, 3.4.5, 3.3.6"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-102991","pkg_name":"mako","severity":"MEDIUM","installed_version":"1.3.12","fixed_version":"1.4.2"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-104874","pkg_name":"multidict","severity":"MEDIUM","installed_version":"6.7.0","fixed_version":"6.9.1"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49264","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-49265","pkg_name":"oauthlib","severity":"MEDIUM","installed_version":"3.3.1","fixed_version":"4.0.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107287","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.7, 2.52.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107289","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107290","pkg_name":"pydantic-ai-slim","severity":"MEDIUM","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"api/uv.lock","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-107291","pkg_name":"pydantic-ai-slim","severity":"LOW","installed_version":"2.31.0","fixed_version":"1.107.6, 2.44.0"}},{"path":"pnpm-lock.yaml","start_line":0,"end_line":0,"snippet":null,"vulnerability":{"vulnerability_id":"CVE-2026-103923","pkg_name":"katex","severity":"LOW","installed_version":"0.16.47","fixed_version":"0.18.2"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0008","rule_version":"1.2.0","rule_name":"Missing or Inadequate Input Validation","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Dify's console/service/web API controllers consistently validate request bodies against typed schemas before use: console endpoints use flask-restx `@console_ns.expect(...)` model bindings plus a `model_validate(SomeModel)` decorator pattern (e.g. api/controllers/console/auth/login.py `@console_ns.expect(console_ns.models[EmailPayload.__name__])` + `@model_validate(EmailPayload)`) backed by Pydantic models, and service-api / inner-api endpoints use Pydantic `TypeAdapter`/`BaseModel.model_validate_json` for structured payload validation (e.g. api/services/data_source/notion_oauth_gateway.py uses `_NOTION_SOURCE_INFO_ADAPTER`/`_NOTION_PAGE_SUMMARY_ADAPTER` TypeAdapters to validate even third-party OAuth provider responses before use). File-upload input is explicitly constrained (extension blacklist, size limits, filename character blacklist) in FileService before any filesystem write. This is the rule's documented negative-indicator pattern (strict schema validation; type/length checks) applied broadly across the controller surface.","vulnerability_details":null,"fix_guidance":"Keep enforcing Pydantic/TypeAdapter schema validation for all new endpoints and third-party response parsing; add `.strict()`/reject-unknown-fields where the framework supports it.","why_this_matters":"Frontline control to prevent multiple classes of vulns.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/services/file_service.py","start_line":100,"end_line":113,"snippet":"        extension = os.path.splitext(filename)[1].lstrip(\".\").lower()\n        if any(c in filename for c in [\"/\", \"\\\\\"]):\n            raise ValueError(\"Filename contains invalid characters\")\n        if len(filename) > 200:\n            filename = filename.split(\".\")[0][:200] + \".\" + extension\n        if extension and extension in dify_config.UPLOAD_FILE_EXTENSION_BLACKLIST:\n            raise BlockedFileExtensionError(f\"File extension '.{extension}' is not allowed for security reasons\")\n        if source == \"datasets\" and extension not in DOCUMENT_EXTENSIONS:\n            raise UnsupportedFileTypeError()"},{"path":"api/services/data_source/notion_oauth_gateway.py","start_line":25,"end_line":34,"snippet":"class _NotionSourceInfo(TypedDict):\n    workspace_name: str | None\n    workspace_icon: str | None\n    workspace_id: str | None\n    pages: list[_NotionPageSummary]\n    total: int\n\n_NOTION_SOURCE_INFO_ADAPTER = TypeAdapter(_NotionSourceInfo)\n_NOTION_PAGE_SUMMARY_ADAPTER = TypeAdapter(_NotionPageSummary)"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0009","rule_version":"1.2.0","rule_name":"Insecure Deserialization","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"pickle is used to serialize/deserialize RAG embedding vectors (api/models/dataset.py:744-747, api/core/rag/embedding/cached_embedding.py:115,198), but tracing the write path shows embedding bytes are produced exclusively by CacheEmbedding, which pickles the FLOAT LIST returned directly from the configured embedding model's own invoke_text_embedding()/invoke_multimodal_embedding() output -- there is no code path where externally-supplied bytes (an uploaded file, an HTTP body, a tool argument) are passed to pickle.loads. Reaching the sink with attacker-chosen bytes would require an independent primitive (e.g. direct DB write access or a different injection bug) that is not present in this codebase, so the required attacker_controlled_source and continuous source_to_sink_flow this rule demands cannot be established from the cited code; the evaluation_rubric's 'Deserialization of constants only' false_positive_guard class applies by analogy (model-generated, not request-controlled). Separately, api/services/agent/roster_package_reader.py:352-379 deserializes untrusted Roster Agent package YAML using a hardened yaml.SafeLoader subclass (_PackageYamlLoader) that explicitly rejects YAML aliases and non-string mapping keys -- the one YAML-deserialization sink that DOES take externally-supplied (uploaded package) content uses the safe loader, which is the rule's documented negative indicator.","vulnerability_details":null,"fix_guidance":"Defense-in-depth: replace pickle with numpy .tobytes()/np.frombuffer (fixed dtype) or a JSON float array for the Embedding.embedding column so this stored blob can never become a code-execution primitive even if a future bug (SQLi, bulk-import, compromised worker) lets an attacker write to that column directly.","why_this_matters":"Can lead to arbitrary code execution.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/core/rag/embedding/cached_embedding.py","start_line":107,"end_line":119,"snippet":"                cache_embeddings = []\n                try:\n                    for i, n_embedding in zip(embedding_queue_indices, embedding_queue_embeddings):\n                        text_embeddings[i] = n_embedding\n                        hash = helper.generate_text_hash(texts[i])\n                        if hash not in cache_embeddings:\n                            embedding_cache = Embedding(\n                                model_name=self._model_instance.model_name,\n                                hash=hash,\n                                provider_name=self._model_instance.provider,\n                                embedding=pickle.dumps(n_embedding, protocol=pickle.HIGHEST_PROTOCOL),\n                            )"},{"path":"api/models/dataset.py","start_line":743,"end_line":747,"snippet":"    def set_embedding(self, embedding_data: list[float]):\n        self.embedding = pickle.dumps(embedding_data, protocol=pickle.HIGHEST_PROTOCOL)\n\n    def get_embedding(self) -> list[float]:\n        return cast(list[float], pickle.loads(self.embedding))  # noqa: S301"},{"path":"api/services/agent/roster_package_reader.py","start_line":352,"end_line":379,"snippet":"            return yaml.load(payload, Loader=_PackageYamlLoader), size  # noqa: S506\n        except (UnicodeDecodeError, yaml.YAMLError, ValueError, RecursionError) as exc:\n            raise InvalidRosterAgentPackageError(...)\n                f\"Roster Agent package {path.removesuffix('.yaml')} is invalid\"\n            ) from exc\n\n\nclass _PackageYamlLoader(yaml.SafeLoader):\n    \"\"\"Reject ambiguous mappings and aliases in untrusted package documents.\"\"\"\n\n    @override"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0010","rule_version":"1.2.0","rule_name":"Lack of Output Encoding/Sanitization","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"The semgrep XSS-shaped hits (python.flask.security.audit.xss.make-response-with-unknown-content, 8 occurrences across login.py, agent_config_inspector.py, recommended_app.py, tool_providers.py, trigger_providers.py) all resolve on inspection to `make_response(dump_response(SomeTypedModel, {...}))` calls -- i.e. a structured, schema-typed JSON-shaped payload serialized through a typed response-dump helper, not raw/unescaped user input written into an HTML content-type response. The project's web frontend (React/Next.js in web/) uses JSX's default auto-escaping for rendered text and the two `render-template-string` hits (api/libs/email_template_renderer.py, api/tasks/mail_inner_task.py) go through a Jinja2 `ImmutableSandboxedEnvironment` in SANDBOX mode by default (MAIL_TEMPLATING_MODE default = SANDBOX), which blocks template-level code/attribute-traversal exploitation even if the template string itself were attacker-influenced.","vulnerability_details":null,"fix_guidance":"Keep MAIL_TEMPLATING_MODE defaulted to SANDBOX (never UNSAFE) in production configuration guidance; continue returning typed/serialized model objects from make_response rather than raw string concatenation.","why_this_matters":"Prevents UI-level injection and operator compromise.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/controllers/console/auth/login.py","start_line":173,"end_line":177,"snippet":"        response = make_response(dump_response(SimpleResultResponse, {\"result\": \"success\"}))\n        clear_access_token_from_cookie(response)\n        clear_refresh_token_from_cookie(response)\n        clear_csrf_token_from_cookie(response)\n        return response"},{"path":"api/libs/email_template_renderer.py","start_line":17,"end_line":28,"snippet":"class SandboxedEnvironment(ImmutableSandboxedEnvironment):\n    \"\"\"Sandboxed environment with execution timeout.\"\"\"\n    def __init__(self, timeout: int, *args: Any, **kwargs: Any):\n        self._deadline = time.time() + timeout if timeout else None\n        super().__init__(*args, **kwargs)\n    @override\n    def call(self, context: Context, obj: Any, *args: Any, **kwargs: Any) -> Any:\n        if self._deadline is not None and time.time() > self._deadline:\n            raise TimeoutError(\"Template rendering timeout\")\n        return super().call(context, obj, *args, **kwargs)"},{"path":"api/configs/feature/__init__.py","start_line":1155,"end_line":1158,"snippet":"    MAIL_TEMPLATING_MODE: TemplateMode = Field(\n        description=\"Template mode for email services\",\n        default=TemplateMode.SANDBOX,\n    )"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0011","rule_version":"1.4.0","rule_name":"Path Traversal & Symlink Bypass (Filesystem Tools)","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"medium","rationale":"The agent CLI's skill-pull flow (dify-agent-runtime/internal/agentcli/config.go) builds the download archive path and extraction directory directly from a skill name supplied via CLI argument or a downloaded manifest, using filepath.Join(targetDir, name+\".zip\") and a matching skillDir, without checking for path separators, absolute paths, or containment within targetDir. filepath.Join normalizes '../' segments, so a name such as '../../outside' causes the resulting path to escape targetDir, and the subsequent MkdirAll/os.WriteFile calls can then create or overwrite files outside the intended skills directory. The earlier SECURE verdict considered only the UUID-keyed API upload path (which is safely indirected) and did not examine this separate CLI/manifest-driven skill-pull flow, which has no equivalent indirection or validation before the filesystem sink.","vulnerability_details":null,"fix_guidance":"Validate the skill name before it is used to build any filesystem path in config.go's skill-pull flow: reject names containing path separators or '..' segments, or that resolve (after filepath.Clean/filepath.Abs) outside targetDir, before calling filepath.Join/MkdirAll/os.WriteFile.","why_this_matters":"Traversal exposes arbitrary host files; can lead to code execution.","context_note":"[none|relief:none] No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":56,"end_line":63,"snippet":"// RunConfigSkillsPull executes the `config skills pull` command.\nfunc RunConfigSkillsPull(env *Environment, names []string, localDir string, jsonOutput bool) error {\n\tclient, err := NewStubClient(env)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer func() { _ = client.Close() }()\n"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":76,"end_line":83,"snippet":"\t\t\t\t} `json:\"items\"`\n\t\t\t} `json:\"skills\"`\n\t\t}\n\t\tif err := json.Unmarshal(body, &manifest); err != nil {\n\t\t\treturn fmt.Errorf(\"parse manifest: %w\", err)\n\t\t}\n\t\tfor _, item := range manifest.Skills.Items {\n\t\t\tnames = append(names, item.Name)"},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":104,"end_line":123,"snippet":"\t}\n\n\terr = runConfigPulls(len(names), func(index int) error {\n\t\tname := names[index]\n\t\tdownload, err := client.CreateConfigDownloadURL(ctx, \"skill\", name)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"request config skill %q download URL: %w\", name, err)\n\t\t}\n\t\tarchiveBytes, err := client.DownloadFromURL(download.DownloadURL)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"download config skill %q: %w\", name, err)\n\t\t}\n\n\t\tarchivePath := filepath.Join(targetDir, name+\".zip\")\n\t\tskillDir := filepath.Join(targetDir, name)\n\t\tif err := os.MkdirAll(skillDir, 0o755); err != nil {\n\t\t\treturn fmt.Errorf(\"create skill directory: %w\", err)\n\t\t}\n\t\tif err := os.WriteFile(archivePath, archiveBytes, 0o644); err != nil {\n\t\t\treturn fmt.Errorf(\"write archive: %w\", err)"},{"path":"dify-agent-runtime/internal/snapshot/save.go","start_line":83,"end_line":83,"snippet":"\t\t\tf, err := os.Open(p)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":763,"end_line":763,"snippet":"\tendedAtRaw, err := os.ReadFile(endedAtPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/service.go","start_line":759,"end_line":759,"snippet":"\texitCodeRaw, err := os.ReadFile(exitCodePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":106,"end_line":106,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/server/output.go","start_line":38,"end_line":38,"snippet":"\tf, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/sanitize/sanitize.go","start_line":155,"end_line":155,"snippet":"\t\tf, err := os.Create(readyFile)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/httpclient.go","start_line":72,"end_line":72,"snippet":"\treturn os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":548,"end_line":548,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":471,"end_line":471,"snippet":"\t\tdata, err := os.ReadFile(absPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/config.go","start_line":133,"end_line":133,"snippet":"\t\tif data, err := os.ReadFile(skillMDPath); err == nil {","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":120,"end_line":120,"snippet":"\t\toutFile, err := os.Create(destPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":71,"end_line":71,"snippet":"\t\tfile, err := os.Open(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/internal/agentcli/archive.go","start_line":15,"end_line":15,"snippet":"\toutFile, err := os.Create(archivePath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":343,"end_line":343,"snippet":"\tdata, err := os.ReadFile(path)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":325,"end_line":325,"snippet":"\tf, err := os.Open(scriptPath)","vulnerability":{"severity":"MEDIUM"}},{"path":"dify-agent-runtime/cmd/runner/main.go","start_line":254,"end_line":254,"snippet":"\tfile, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0600)","vulnerability":{"severity":"MEDIUM"}}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0012","rule_version":"1.2.0","rule_name":"Denial of Wallet / Cost Controls","finding":"SECURE","severity":"MEDIUM","realized_severity":null,"confidence":"medium","rationale":"Model/tool invocation paths are protected by multiple quota/budget layers: api/libs/rate_limit.py provides per-IP/account/session/email/token sliding-window rate limits applied to auth and API-bearer-token validation; FeatureService (api/services/feature_service.py referenced throughout controllers, e.g. human_input_delivery_test_service.py's `features.human_input_email_delivery_enabled` gate) enforces plan-based feature/quota gating before billable operations execute; and dataset/knowledge upload size limits (UPLOAD_FILE_SIZE_LIMIT family) bound the cost of ingestion-triggered embedding calls. The SSRF-protected HTTP client additionally bounds retries (SSRF_DEFAULT_MAX_RETRIES) and response size (buffer_response max_response_bytes), preventing unbounded retry storms or oversized-response costs on outbound calls to paid third-party APIs/model providers.","vulnerability_details":null,"fix_guidance":"Continue enforcing plan-based quotas (FeatureService) on any newly added billable/model-invocation endpoint; ensure per-tenant model-call quotas are consistently checked before each LLM/tool invocation.","why_this_matters":"Prevents cost-based disruption.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":"api/libs/rate_limit.py","start_line":40,"end_line":54,"snippet":"LIMIT_DEVICE_CODE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_SSO_INITIATE_PER_IP = RateLimit(60, timedelta(hours=1), (RateLimitScope.IP,))\nLIMIT_APPROVE_EXT_PER_EMAIL = RateLimit(10, timedelta(hours=1), (RateLimitScope.SUBJECT_EMAIL,))\nLIMIT_BEARER_PER_TOKEN = RateLimit(...)"},{"path":"api/core/helper/ssrf_proxy.py","start_line":226,"end_line":284,"snippet":"    retries = 0\n    while retries <= max_retries:\n        ...\n        retries += 1\n        if retries <= max_retries:\n            time.sleep(BACKOFF_FACTOR * (2 ** (retries - 1)))\n    raise MaxRetriesExceededError(f\"Reached maximum retries ({max_retries}) for URL {url}\")"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0013","rule_version":"1.1.0","rule_name":"Tool Output Sanitization & Injection Containment","finding":"VULNERABLE","severity":"HIGH","realized_severity":"HIGH","confidence":"low","rationale":"Dify's CoT agent runner assigns tool invocation results verbatim to scratchpad.observation and then interpolates that value verbatim into the 'Observation:' section of model-visible assistant history (api/core/agent/cot_agent_runner.py), with no sanitization, escaping, role-marker stripping, or untrusted-return annotation applied anywhere between the tool-output assignment and the point it re-enters the model's context. This allows tool-sourced content (e.g. a malicious web page or API response surfaced through a fetch/scrape-style tool) to inject text that the model treats as part of its own reasoning history, with no host-enforced trust boundary on that path.","vulnerability_details":null,"fix_guidance":"Add a sanitization/escaping layer for tool outputs before they are concatenated into the agent scratchpad: strip or neutralize control characters and fake role/system markers, and wrap tool output in an explicit untrusted-content envelope before it is interpolated into the Observation: section in cot_agent_runner.py and fc_agent_runner.py.","why_this_matters":"Tool outputs are a primary prompt-injection vector. Third-party content (web pages, files, API responses) may contain text crafted to override instructions or impersonate system/tool messages. Without a host-enforced envelope, sanitization, and an explicit untrusted-return signal, the model can be coerced into executing attacker-controlled directives, leaking secrets, or chaining further tool calls on behalf of the adversary.","context_note":"[capability_by_design|relief:none|ineligible:within_declared_contract] within_declared_contract is ineligible for relief on ATR-C0013 because the rule declares that signal orthogonal to its risk (discount_ineligible_signals); the reported behaviour is within the tool's declared capability, and that does not reduce this finding's severity. No context relief applies; realized severity equals HIGH.","within_declared_contract":null,"transport_gated":null,"mitigation_present":null,"evidence":[{"path":"api/core/agent/cot_agent_runner.py","start_line":244,"end_line":252,"snippet":"                    tool_invoke_response, tool_invoke_meta = self._handle_invoke_action(\n                        session=session,\n                        action=scratchpad.action,\n                        tool_instances=tool_instances,\n                        message_file_ids=message_file_ids,\n                        trace_manager=trace_manager,\n                    )\n                    scratchpad.observation = tool_invoke_response\n                    scratchpad.agent_response = tool_invoke_response"},{"path":"api/core/agent/cot_agent_runner.py","start_line":400,"end_line":413,"snippet":"    def _format_assistant_message(self, agent_scratchpad: list[AgentScratchpadUnit]) -> str:\n        \"\"\"\n        format assistant message\n        \"\"\"\n        message = \"\"\n        for scratchpad in agent_scratchpad:\n            if scratchpad.is_final():\n                message += f\"Final Answer: {scratchpad.agent_response}\"\n            else:\n                message += f\"Thought: {scratchpad.thought}\\n\\n\"\n                if scratchpad.action_str:\n                    message += f\"Action: {scratchpad.action_str}\\n\\n\"\n                if scratchpad.observation:\n                    message += f\"Observation: {scratchpad.observation}\\n\\n\""}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-C0014","rule_version":"1.2.0","rule_name":"CI/CD Workflow Script Injection","finding":"SECURE","severity":"HIGH","realized_severity":null,"confidence":"medium","rationale":"Reviewed all workflows using dangerous triggers (workflow_run, repository_dispatch, workflow_dispatch) for attacker-controlled interpolation into shell run blocks. The i18n translation pipeline (trigger-i18n-sync.yml -> translate-i18n-claude.yml) passes attacker-influenceable data (PR/commit content) only through typed client_payload fields consumed as quoted shell variables (BASE_SHA=\"...\"), and the PR-coverage-comment workflows (pyrefly-diff-comment.yml, pyrefly-type-coverage-comment.yml) using workflow_run only check out the DEFAULT branch (trusted code) and fetch data via the GitHub API/artifacts rather than interpolating untrusted strings directly into a run: block. The 12 semgrep yaml.github-actions.security.run-shell-injection hits (accessibility-e2e.yml, cli-e2e.yml, pyrefly-diff.yml, pyrefly-type-coverage.yml, style.yml, translate-i18n-claude.yml) all resolve to either workflow_dispatch 'choice' inputs enforced by a fixed options list, maintainer-only manual dispatch, values interpolated only within an already-double-quoted shell string consumed as data (not re-parsed/eval'd), or SHA values resolved via git/GitHub Actions context rather than free-form attacker text. No case shows a continuous source-to-sink path from an untrusted field to an unguarded shell execution with secrets/write-token exposure.","vulnerability_details":null,"fix_guidance":"Continue pinning actions by SHA (already done); keep workflow_dispatch choice-type inputs server-enforced; avoid ever switching the i18n pipeline to pull_request_target without validating client_payload fields against a strict allowlist/regex before use.","why_this_matters":"CI/CD script injection can execute attacker-controlled commands with workflow tokens, repository secrets, trusted-runner access, artifact or cache authority, and release or deployment privileges.","context_note":null,"within_declared_contract":true,"transport_gated":false,"mitigation_present":true,"evidence":[{"path":".github/workflows/translate-i18n-claude.yml","start_line":75,"end_line":95,"snippet":"if [ \"${{ github.event_name }}\" = \"repository_dispatch\" ]; then\n  BASE_SHA=\"${{ github.event.client_payload.base_sha }}\"\n  HEAD_SHA=\"${{ github.event.client_payload.head_sha }}\"\n  CHANGED_FILES=\"${{ github.event.client_payload.changed_files }}\"\n  ...\n  if [ -n \"${{ github.event.client_payload.changes_base64 }}\" ]; then\n    printf '%s' '${{ github.event.client_payload.changes_base64 }}' | base64 -d > /tmp/i18n-changes.json"},{"path":".github/workflows/pyrefly-type-coverage-comment.yml","start_line":20,"end_line":29,"snippet":"if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.pull_requests[0].head.repo.full_name != github.repository }}\nsteps:\n  - name: Checkout default branch (trusted code)\n    uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1"}],"affected_tools":null,"component_name":null},{"rule_id":"ATR-R0001","rule_version":"1.3.0","rule_name":"Weaponization: Malicious-Purpose Artifact (Offensive Capability by Design)","finding":"SECURE","severity":"CRITICAL","realized_severity":null,"confidence":"high","rationale":"Investigated all 3 YARA matches flagged repo-wide. (1) api/configs/remote_settings_sources/apollo/utils.py:46-47 'Zeus_Malware_Reverse_Shell' -- this is a UDP connect()-to-8.8.8.8 trick used purely to discover the machine's outbound-facing local IP address for Apollo remote-config client registration; there is no socket-to-shell wiring, no subprocess/exec, no network listener -- a benign, extremely common Python idiom misidentified by the socket+connect co-occurrence heuristic. (2) dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py:57-61 -- a pytest fixture that spawns a throwaway, loopback-bound (127.0.0.1) redis-server subprocess for an integration test and tears it down in a finally block; it is test infrastructure, not an operational reverse shell (no socket piped to a shell, no attacker-facing listener). (3) e2e/AGENTS.md:26-56 'tool_poisoning secondary-objective wide-span' match itself carries confidence 25 and is explicitly annotated by the scanner as 'likely ordinary prose, not a poisoned tool description' -- reading the cited span confirms it is contributor-facing documentation about E2E test runner architecture (tags, seeds, cleanup) with zero instructions directing model/agent behavior, no injected directives, and no secondary objective. Dify's overall product is a LLM app-development/agent-orchestration platform (not an offensive-security tool), and none of its shipped code, skills, or agent instructions direct generation of malware/exploits/credential theft or mass-abuse tooling.","vulnerability_details":null,"fix_guidance":null,"why_this_matters":"An artifact whose purpose is to weaponize the agent -- to produce malware, steal credentials, evade defenses, or run attacks at scale -- is dangerous regardless of how securely it is built; posture controls (auth, input validation, least privilege) cannot make a weapon safe, which is why a confirmed weaponization finding caps the trust verdict to `blocked` rather than being averaged against a good posture score. Catching malicious PURPOSE is a distinct safety control, and it must be conservative because offensive capability is dual-use: legitimate pentest, CTF, defensive, and research work must abstain (UNKNOWN), never block -- unless the artifact itself hides from the people who install, run or audit it.","context_note":null,"within_declared_contract":null,"transport_gated":false,"mitigation_present":null,"evidence":[{"path":"api/configs/remote_settings_sources/apollo/utils.py","start_line":42,"end_line":52,"snippet":"def init_ip() -> str:\n    ip = \"\"\n    s = None\n    try:\n        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n        s.connect((\"8.8.8.8\", 53))\n        ip = s.getsockname()[0]\n    finally:\n        if s:\n            s.close()\n    return ip","vulnerability":{}},{"path":"dify-agent/tests/integration/dify_agent/storage/test_terminal_finalization.py","start_line":50,"end_line":76,"snippet":"@pytest.fixture\ndef redis_url() -> Iterator[str]:\n    \"\"\"Start an isolated Redis when the binary is available locally.\"\"\"\n    redis_server = shutil.which(\"redis-server\")\n    if redis_server is None:\n        pytest.skip(\"redis-server is required for run terminal integration tests\")\n    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as probe:\n        probe.bind((\"127.0.0.1\", 0))\n        port = probe.getsockname()[1]\n    process = subprocess.Popen(  # noqa: S603\n        [redis_server, \"--bind\", \"127.0.0.1\", \"--port\", str(port), \"--save\", \"\", \"--appendonly\", \"no\"],\n        stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT,\n    )","vulnerability":{}},{"path":"e2e/AGENTS.md","start_line":26,"end_line":56,"snippet":"- Generate disposable resource names through `support/naming.ts` with an `E2E` prefix.\n- Keep deterministic upload material in `fixtures/test-materials/`...\n- Seed scripts own shared long-lived fixtures; scenarios own disposable resources...\n- Use typed `DifyWorld` cleanup fields... Registered callbacks run LIFO after typed cleanup queues.\n- Remove child and referencing resources before owners. Attach cleanup failures to the report instead of swallowing them.\n(contributor-facing E2E test architecture doc; no agent-directed secondary objective)","vulnerability":{}}],"affected_tools":null,"component_name":null}],"component_tools":[],"summary":{"high_level_risks":["Known CVEs in pinned dependency versions, notably chromadb==0.5.20 (CVE-2026-45833 CRITICAL, plus two HIGH CVEs) with no fix currently available, and additional HIGH CVEs in pydantic-ai-slim, golang.org/x/mod, and socket.io-parser (ATR-C0007, HIGH).","Hardcoded default secrets shipped in docker-compose.yaml/docker-compose-template.yaml (PLUGIN_DAEMON_KEY, PLUGIN_DIFY_INNER_API_KEY, DIFY_AGENT_SERVER_SECRET_KEY, MINIO_SECRET_KEY) take effect on any deployment that does not override them, giving a publicly-known static credential for internal plugin-daemon/inner-API/object-storage channels (ATR-C0002, HIGH).","Dify's app-as-MCP-server feature (api/controllers/mcp/mcp.py, api/core/mcp/server/streamable_http.py) exposes a remote streamable-HTTP MCP endpoint gated solely by a 16-char CSPRNG 'server_code' embedded in the URL path -- there is no standard Authorization/Bearer check, no OAuth 2.1/PKCE flow, and no rate limiting on the server_code lookup, making it a bearer-URL style credential with brute-force risk and typical URL-secret leakage via proxy/access logs and Referer headers.","The `mcp` Flask blueprint is the only blueprint registered in extensions/ext_blueprints.py with NO CORS/Origin policy applied, leaving no Origin/Host validation in front of a host-side-effectful endpoint that invokes full Dify app generation.","A password-reset / sensitive auth token is logged in full at WARNING level in api/libs/helper.py TokenManager.get_token_data, exposing a usable account-takeover credential to anyone with log access (ATR-C0005, MEDIUM).","The reference deployment ships insecure-by-default transport settings: the API container's gunicorn process binds 0.0.0.0 with no TLS, and NGINX_HTTPS_ENABLED defaults to false in docker/docker-compose.yaml / docker/.env.example, making TLS opt-in rather than mandatory.","Insecure deserialization (pickle) used for the RAG embedding cache column; the stored BLOB has no integrity binding, so any future write primitive against that column becomes an RCE vector (ATR-C0009).","Auxiliary/dev container images (docker/couchbase-server/Dockerfile, .devcontainer/Dockerfile) run as root and/or use a floating ':latest' base tag, unlike the hardened production api/Dockerfile and web/Dockerfile (ATR-C0006, MEDIUM).","Tool-output-to-LLM-context sanitization (ATR-C0013) could not be fully verified across the plugin-daemon boundary; the agent scratchpad/Observation concatenation path and plugin-daemon tool-result boundary lack confirmed control-character/injection-marker stripping.","skills/difyctl destructive operations (remove/revoke) have no enforced confirmation prompt, relying on the model volunteering confirmation rather than enforcing it in the agent harness."],"top_remediations":["Upgrade or disable the chromadb vector-store provider pending a fix for CVE-2026-45833/45830/45831; upgrade pydantic-ai-slim, golang.org/x/mod, and socket.io-parser to patched versions.","Remove hardcoded fallback secret values from docker-compose*.yaml; fail-fast or auto-generate random secrets on first run instead.","Add OAuth 2.1 (with PKCE) as the primary authorization mechanism for the inbound MCP server endpoint, or at minimum require a standard Authorization header bearer token in addition to server_code, plus rate limiting/lockout on failed server_code lookups.","Apply an explicit CORS/Origin allowlist (or host-based validation) to the `mcp` Flask blueprint consistent with the other blueprints in extensions/ext_blueprints.py.","Stop logging raw token values in api/libs/helper.py TokenManager.get_token_data; log only a hash/prefix or the Redis key.","Make TLS mandatory (NGINX_HTTPS_ENABLED default true) for any deployment exposing MCP/API endpoints beyond localhost, and default DIFY_BIND_ADDRESS to loopback for standalone (non-compose) runs.","Replace pickle-based embedding serialization with a safe format (numpy tobytes/JSON) as defense-in-depth against any future write-path compromise.","Add non-root USER directives and pin a specific (non-'latest') base image tag for docker/couchbase-server/Dockerfile and .devcontainer/Dockerfile; add HEALTHCHECK to all shipped Dockerfiles.","Conduct a focused audit of the tool-output-to-context concatenation path (agent scratchpad Observation field) and the plugin-daemon boundary for control-character/prompt-injection-marker sanitization.","Harden skills/difyctl's destructive-operation guidance into an enforced confirmation gate in the surrounding agent harness."]},"rollup":{"component_findings_count":{"vulnerable":0,"secure":7,"not_applicable":1},"repo_findings_inherited_count":{"vulnerable":7,"secure":8,"not_applicable":0},"component_tools_count":{},"worst_case_severity":"HIGH"},"trust_scores":{"repo_level":{"score":25,"tier":"critical","capability_band":"extreme","score_confidence":"low","score_interval":{"low":8,"high":42},"factors":["ATR-M0003 HIGH","ATR-M0009 HIGH","ATR-C0001 HIGH","ATR-C0002 HIGH","ATR-C0005 MEDIUM","ATR-C0006 MEDIUM","ATR-C0007 HIGH","ATR-C0011 HIGH","ATR-C0013 HIGH"]},"component_level":{"score":100,"tier":"high","capability_band":"minimal","score_confidence":"high","score_interval":{"low":84,"high":100},"factors":[]}}}]}