diff --git a/.github/header-checker-lint.yml b/.github/header-checker-lint.yml index 81e48a25f0..e89c00a25c 100644 --- a/.github/header-checker-lint.yml +++ b/.github/header-checker-lint.yml @@ -1,3 +1,16 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. allowedCopyrightHolders: - 'Google LLC' allowedLicenses: diff --git a/.github/workflows/analyze-releases-for-adk-docs-updates.yml b/.github/workflows/analyze-releases-for-adk-docs-updates.yml index af7a48ffaa..57cea19143 100644 --- a/.github/workflows/analyze-releases-for-adk-docs-updates.yml +++ b/.github/workflows/analyze-releases-for-adk-docs-updates.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Analyze New Release for ADK Docs Updates on: diff --git a/.github/workflows/check-file-contents.yml b/.github/workflows/check-file-contents.yml index 42d820ab47..c6fd1629b7 100644 --- a/.github/workflows/check-file-contents.yml +++ b/.github/workflows/check-file-contents.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: "Check file contents" on: diff --git a/.github/workflows/copybara-pr-handler.yml b/.github/workflows/copybara-pr-handler.yml index 7c86daead4..e1b86de35c 100644 --- a/.github/workflows/copybara-pr-handler.yml +++ b/.github/workflows/copybara-pr-handler.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Copybara PR Handler on: diff --git a/.github/workflows/discussion_answering.yml b/.github/workflows/discussion_answering.yml index c5e2209137..2729eb240e 100644 --- a/.github/workflows/discussion_answering.yml +++ b/.github/workflows/discussion_answering.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: ADK Answering Agent for Discussions on: diff --git a/.github/workflows/mypy-new-errors.yml b/.github/workflows/mypy-new-errors.yml index 2d3c8aebc2..696cee8339 100644 --- a/.github/workflows/mypy-new-errors.yml +++ b/.github/workflows/mypy-new-errors.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Mypy New Error Check on: diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index bfa2cc16b2..1cf4b91a75 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Mypy Type Check on: diff --git a/.github/workflows/pr-triage.yml b/.github/workflows/pr-triage.yml index a24d01a050..993fa4ed26 100644 --- a/.github/workflows/pr-triage.yml +++ b/.github/workflows/pr-triage.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: ADK Pull Request Triaging Agent on: diff --git a/.github/workflows/python-unit-tests.yml b/.github/workflows/python-unit-tests.yml index d60e305b45..501c039eef 100644 --- a/.github/workflows/python-unit-tests.yml +++ b/.github/workflows/python-unit-tests.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Python Unit Tests on: diff --git a/.github/workflows/release-cherry-pick.yml b/.github/workflows/release-cherry-pick.yml index 469b9c8063..e61f6d41a4 100644 --- a/.github/workflows/release-cherry-pick.yml +++ b/.github/workflows/release-cherry-pick.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Step 3 (optional): Cherry-picks a commit from main to the release/candidate branch. # Use between step 1 and step 4 to include bug fixes in an in-progress release. # Note: Does NOT auto-trigger release-please to preserve manual changelog edits. diff --git a/.github/workflows/release-cut.yml b/.github/workflows/release-cut.yml index ca54fa698b..78781ff0fe 100644 --- a/.github/workflows/release-cut.yml +++ b/.github/workflows/release-cut.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Step 1: Starts the release process by creating a release/candidate branch. # Generates a changelog PR for review (step 2). name: "Release: Cut" diff --git a/.github/workflows/release-finalize.yml b/.github/workflows/release-finalize.yml index a9256d9a75..84dd773d5e 100644 --- a/.github/workflows/release-finalize.yml +++ b/.github/workflows/release-finalize.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Step 4: Triggers when the changelog PR is merged to release/candidate. # Records last-release-sha and renames release/candidate to release/v{version}. name: "Release: Finalize" diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index cc5a98a228..87d8dae1d1 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Runs release-please to create/update a PR with version bump and changelog. # Triggered only by workflow_dispatch (from release-cut.yml). # Does NOT auto-run on push to preserve manual changelog edits after cherry-picks. diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 8a7cf9fddf..d727fda94a 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Step 6: Builds and publishes the package to PyPI from a release/v{version} branch. # Creates a merge-back PR (step 7) to sync release changes to main. name: "Release: Publish to PyPi" diff --git a/.github/workflows/release-update-adk-web.yaml b/.github/workflows/release-update-adk-web.yaml index 156c586012..33241e5506 100644 --- a/.github/workflows/release-update-adk-web.yaml +++ b/.github/workflows/release-update-adk-web.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: "Release: Update ADk Web" on: diff --git a/.github/workflows/release-v1-cherry-pick.yml b/.github/workflows/release-v1-cherry-pick.yml index 91e858590b..0b1b42398a 100644 --- a/.github/workflows/release-v1-cherry-pick.yml +++ b/.github/workflows/release-v1-cherry-pick.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Step 3 (v1, optional): Cherry-picks a commit from v1 to the release/v1-candidate branch. # Use between step 1 and step 4 to include bug fixes in an in-progress release. # Note: Does NOT auto-trigger release-please to preserve manual changelog edits. diff --git a/.github/workflows/release-v1-cut.yml b/.github/workflows/release-v1-cut.yml index 7a35b6a120..afe6388316 100644 --- a/.github/workflows/release-v1-cut.yml +++ b/.github/workflows/release-v1-cut.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Step 1 (v1): Starts the v1 release process by creating a release/v1-candidate branch. # Generates a changelog PR for review (step 2). name: "Release v1: Cut" diff --git a/.github/workflows/release-v1-finalize.yml b/.github/workflows/release-v1-finalize.yml index df6e3477e7..7f5503f1ed 100644 --- a/.github/workflows/release-v1-finalize.yml +++ b/.github/workflows/release-v1-finalize.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Step 4 (v1): Triggers when the changelog PR is merged to release/v1-candidate. # Records last-release-sha and renames release/v1-candidate to release/v{version}. name: "Release v1: Finalize" diff --git a/.github/workflows/release-v1-please.yml b/.github/workflows/release-v1-please.yml index 9f1344dd31..d46a0d664a 100644 --- a/.github/workflows/release-v1-please.yml +++ b/.github/workflows/release-v1-please.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Runs release-please to create/update a PR with version bump and changelog for v1. # Triggered only by workflow_dispatch (from release-v1-cut.yml). # Does NOT auto-run on push to preserve manual changelog edits after cherry-picks. diff --git a/.github/workflows/release-v1-publish.yml b/.github/workflows/release-v1-publish.yml index 9706c20fea..72b268e420 100644 --- a/.github/workflows/release-v1-publish.yml +++ b/.github/workflows/release-v1-publish.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Step 6 (v1): Builds and publishes the v1 package to PyPI from a release/v{version} branch. # Reads version from .release-please-manifest-v1.json, converts to PEP 440, # updates version.py, then builds and publishes. diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index 5653dd9eee..bb4d6600f7 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: ADK Stale Issue Auditor on: diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index 396d1647bd..ed0f851497 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: ADK Issue Triaging Agent on: diff --git a/.github/workflows/upload-adk-docs-to-vertex-ai-search.yml b/.github/workflows/upload-adk-docs-to-vertex-ai-search.yml index b3b069341b..af9f130a52 100644 --- a/.github/workflows/upload-adk-docs-to-vertex-ai-search.yml +++ b/.github/workflows/upload-adk-docs-to-vertex-ai-search.yml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Upload ADK Docs to Vertex AI Search on: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c22b8638f2..4dad3d9bf5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + exclude: ^(src/google/adk/cli/browser/|src/google/adk/v1/|v1_tests/) repos: - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/contributing/samples/config/core_basic_config/root_agent.yaml b/contributing/samples/config/core_basic_config/root_agent.yaml index 0ef21f2919..453cf9f2c8 100644 --- a/contributing/samples/config/core_basic_config/root_agent.yaml +++ b/contributing/samples/config/core_basic_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: assistant_agent model: gemini-2.5-flash diff --git a/contributing/samples/config/core_callback_config/root_agent.yaml b/contributing/samples/config/core_callback_config/root_agent.yaml index 9921bb7719..4f93276b0e 100644 --- a/contributing/samples/config/core_callback_config/root_agent.yaml +++ b/contributing/samples/config/core_callback_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: hello_world_agent model: gemini-2.5-flash diff --git a/contributing/samples/config/core_custom_agent_config/root_agent.yaml b/contributing/samples/config/core_custom_agent_config/root_agent.yaml index 0bb7c50511..f5ba26884a 100644 --- a/contributing/samples/config/core_custom_agent_config/root_agent.yaml +++ b/contributing/samples/config/core_custom_agent_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: working_agent agent_class: core_custom_agent_config.my_agents.MyCustomAgent diff --git a/contributing/samples/config/core_generate_content_config_config/root_agent.yaml b/contributing/samples/config/core_generate_content_config_config/root_agent.yaml index c5ae3a2124..8101252025 100644 --- a/contributing/samples/config/core_generate_content_config_config/root_agent.yaml +++ b/contributing/samples/config/core_generate_content_config_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: search_agent model: gemini-2.5-flash diff --git a/contributing/samples/context_management/postgres_session_service/compose.yml b/contributing/samples/context_management/postgres_session_service/compose.yml index 7f152630de..2ca31ccbc6 100644 --- a/contributing/samples/context_management/postgres_session_service/compose.yml +++ b/contributing/samples/context_management/postgres_session_service/compose.yml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Docker Compose configuration for the postgres_session_service sample. # # This file defines a PostgreSQL service used to demonstrate ADK's diff --git a/contributing/samples/hitl/tool_human_in_the_loop_config/root_agent.yaml b/contributing/samples/hitl/tool_human_in_the_loop_config/root_agent.yaml index 935439a3ec..9639e94c77 100644 --- a/contributing/samples/hitl/tool_human_in_the_loop_config/root_agent.yaml +++ b/contributing/samples/hitl/tool_human_in_the_loop_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: reimbursement_agent model: gemini-2.5-flash diff --git a/contributing/samples/integrations/authn-adk-all-in-one/adk_agents/agent_openapi_tools/openapi.yaml b/contributing/samples/integrations/authn-adk-all-in-one/adk_agents/agent_openapi_tools/openapi.yaml index ef15d3f306..2a4f29cfda 100644 --- a/contributing/samples/integrations/authn-adk-all-in-one/adk_agents/agent_openapi_tools/openapi.yaml +++ b/contributing/samples/integrations/authn-adk-all-in-one/adk_agents/agent_openapi_tools/openapi.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + openapi: 3.0.0 info: title: Hotel Booker API diff --git a/contributing/samples/integrations/authn-adk-all-in-one/hotel_booker_app/openapi.yaml b/contributing/samples/integrations/authn-adk-all-in-one/hotel_booker_app/openapi.yaml index ef15d3f306..2a4f29cfda 100644 --- a/contributing/samples/integrations/authn-adk-all-in-one/hotel_booker_app/openapi.yaml +++ b/contributing/samples/integrations/authn-adk-all-in-one/hotel_booker_app/openapi.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + openapi: 3.0.0 info: title: Hotel Booker API diff --git a/contributing/samples/integrations/gcp_auth/client/static/script.js b/contributing/samples/integrations/gcp_auth/client/static/script.js index 29bdcf1583..90ed597903 100644 --- a/contributing/samples/integrations/gcp_auth/client/static/script.js +++ b/contributing/samples/integrations/gcp_auth/client/static/script.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + $(function() { const $messagesContainer = $('#messages-container'); const $userInput = $('#user-input'); diff --git a/contributing/samples/integrations/gke_agent_sandbox/deployment_rbac.yaml b/contributing/samples/integrations/gke_agent_sandbox/deployment_rbac.yaml index 16572276d1..56dc0ff0a0 100644 --- a/contributing/samples/integrations/gke_agent_sandbox/deployment_rbac.yaml +++ b/contributing/samples/integrations/gke_agent_sandbox/deployment_rbac.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Namespace metadata: diff --git a/contributing/samples/mcp/tool_mcp_stdio_notion_config/root_agent.yaml b/contributing/samples/mcp/tool_mcp_stdio_notion_config/root_agent.yaml index 7cb9e1cea3..a1f7730ee0 100644 --- a/contributing/samples/mcp/tool_mcp_stdio_notion_config/root_agent.yaml +++ b/contributing/samples/mcp/tool_mcp_stdio_notion_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: notion_agent model: gemini-2.5-flash diff --git a/contributing/samples/multi_agent/multi_agent_basic_config/code_tutor_agent.yaml b/contributing/samples/multi_agent/multi_agent_basic_config/code_tutor_agent.yaml index ce519a4614..0aea9f0cf5 100644 --- a/contributing/samples/multi_agent/multi_agent_basic_config/code_tutor_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_basic_config/code_tutor_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent name: code_tutor_agent diff --git a/contributing/samples/multi_agent/multi_agent_basic_config/math_tutor_agent.yaml b/contributing/samples/multi_agent/multi_agent_basic_config/math_tutor_agent.yaml index b6817bb2c6..6ad2f1625a 100644 --- a/contributing/samples/multi_agent/multi_agent_basic_config/math_tutor_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_basic_config/math_tutor_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent name: math_tutor_agent diff --git a/contributing/samples/multi_agent/multi_agent_basic_config/root_agent.yaml b/contributing/samples/multi_agent/multi_agent_basic_config/root_agent.yaml index 721ab207ac..b58ba2af63 100644 --- a/contributing/samples/multi_agent/multi_agent_basic_config/root_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_basic_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent model: gemini-2.5-flash diff --git a/contributing/samples/multi_agent/multi_agent_llm_config/prime_agent.yaml b/contributing/samples/multi_agent/multi_agent_llm_config/prime_agent.yaml index 4412f45526..c899b0e0e1 100644 --- a/contributing/samples/multi_agent/multi_agent_llm_config/prime_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_llm_config/prime_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent model: gemini-2.5-flash diff --git a/contributing/samples/multi_agent/multi_agent_llm_config/roll_agent.yaml b/contributing/samples/multi_agent/multi_agent_llm_config/roll_agent.yaml index 769d09560f..92ba30eaf7 100644 --- a/contributing/samples/multi_agent/multi_agent_llm_config/roll_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_llm_config/roll_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent model: gemini-2.5-flash diff --git a/contributing/samples/multi_agent/multi_agent_llm_config/root_agent.yaml b/contributing/samples/multi_agent/multi_agent_llm_config/root_agent.yaml index 8002f0021c..458c6416c6 100644 --- a/contributing/samples/multi_agent/multi_agent_llm_config/root_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_llm_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent model: gemini-2.5-flash diff --git a/contributing/samples/multi_agent/multi_agent_loop_config/loop_agent.yaml b/contributing/samples/multi_agent/multi_agent_loop_config/loop_agent.yaml index 944b6a07e2..3d27c2ea76 100644 --- a/contributing/samples/multi_agent/multi_agent_loop_config/loop_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_loop_config/loop_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LoopAgent name: RefinementLoop diff --git a/contributing/samples/multi_agent/multi_agent_loop_config/root_agent.yaml b/contributing/samples/multi_agent/multi_agent_loop_config/root_agent.yaml index 92c7d0c9c1..2cf8766b8d 100644 --- a/contributing/samples/multi_agent/multi_agent_loop_config/root_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_loop_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: SequentialAgent name: IterativeWritingPipeline diff --git a/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/critic_agent.yaml b/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/critic_agent.yaml index a8594ecceb..3e081e11ba 100644 --- a/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/critic_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/critic_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent name: CriticAgent diff --git a/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/initial_writer_agent.yaml b/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/initial_writer_agent.yaml index 04ddd518b1..1107ac08bf 100644 --- a/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/initial_writer_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/initial_writer_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent name: InitialWriterAgent diff --git a/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/refiner_agent.yaml b/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/refiner_agent.yaml index 634a52cbcd..afc49e0b75 100644 --- a/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/refiner_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_loop_config/writer_agents/refiner_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent name: RefinerAgent diff --git a/contributing/samples/multi_agent/multi_agent_seq_config/root_agent.yaml b/contributing/samples/multi_agent/multi_agent_seq_config/root_agent.yaml index 9324b098ec..0e87a43896 100644 --- a/contributing/samples/multi_agent/multi_agent_seq_config/root_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_seq_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: SequentialAgent name: CodePipelineAgent diff --git a/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_refactorer_agent.yaml b/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_refactorer_agent.yaml index eed4e3f7b7..c2b2bdd18a 100644 --- a/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_refactorer_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_refactorer_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent name: CodeRefactorerAgent diff --git a/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_reviewer_agent.yaml b/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_reviewer_agent.yaml index 267db6d575..359cc5b558 100644 --- a/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_reviewer_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_reviewer_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent name: CodeReviewerAgent diff --git a/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_writer_agent.yaml b/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_writer_agent.yaml index 3fdf666203..9c25ceb769 100644 --- a/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_writer_agent.yaml +++ b/contributing/samples/multi_agent/multi_agent_seq_config/sub_agents/code_writer_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json agent_class: LlmAgent name: CodeWriterAgent diff --git a/contributing/samples/multi_agent/sub_agents_config/root_agent.yaml b/contributing/samples/multi_agent/sub_agents_config/root_agent.yaml index b36ae50dab..3409c37ea0 100644 --- a/contributing/samples/multi_agent/sub_agents_config/root_agent.yaml +++ b/contributing/samples/multi_agent/sub_agents_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: root_agent model: gemini-2.5-flash diff --git a/contributing/samples/multi_agent/sub_agents_config/work_agent.yaml b/contributing/samples/multi_agent/sub_agents_config/work_agent.yaml index f2faf8cea9..25fadacfe4 100644 --- a/contributing/samples/multi_agent/sub_agents_config/work_agent.yaml +++ b/contributing/samples/multi_agent/sub_agents_config/work_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: work_agent description: Work agent diff --git a/contributing/samples/services.yaml b/contributing/samples/services.yaml index bbba006657..c7344a4d8c 100644 --- a/contributing/samples/services.yaml +++ b/contributing/samples/services.yaml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Example of YAML-based service registration. # The BarMemoryService is registered here with scheme "bar". # To use this memory service, set --memory_service_uri=bar:// in the ADK CLI. diff --git a/contributing/samples/tools/tool_agent_tool_config/root_agent.yaml b/contributing/samples/tools/tool_agent_tool_config/root_agent.yaml index 63f33db93a..a00739cc38 100644 --- a/contributing/samples/tools/tool_agent_tool_config/root_agent.yaml +++ b/contributing/samples/tools/tool_agent_tool_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: research_assistant_agent model: gemini-2.5-flash diff --git a/contributing/samples/tools/tool_agent_tool_config/summarizer_agent.yaml b/contributing/samples/tools/tool_agent_tool_config/summarizer_agent.yaml index a856b8dd40..dcdfab9a48 100644 --- a/contributing/samples/tools/tool_agent_tool_config/summarizer_agent.yaml +++ b/contributing/samples/tools/tool_agent_tool_config/summarizer_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: summarizer_agent model: gemini-2.5-flash diff --git a/contributing/samples/tools/tool_agent_tool_config/web_search_agent.yaml b/contributing/samples/tools/tool_agent_tool_config/web_search_agent.yaml index b602d6522d..27373ffb02 100644 --- a/contributing/samples/tools/tool_agent_tool_config/web_search_agent.yaml +++ b/contributing/samples/tools/tool_agent_tool_config/web_search_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: web_search_agent model: gemini-2.5-flash diff --git a/contributing/samples/tools/tool_builtin_config/root_agent.yaml b/contributing/samples/tools/tool_builtin_config/root_agent.yaml index a37bc02ccb..f4403d57c1 100644 --- a/contributing/samples/tools/tool_builtin_config/root_agent.yaml +++ b/contributing/samples/tools/tool_builtin_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: search_agent model: gemini-2.5-flash diff --git a/contributing/samples/tools/tool_functions_config/root_agent.yaml b/contributing/samples/tools/tool_functions_config/root_agent.yaml index bcb296edf4..364bb8c0d0 100644 --- a/contributing/samples/tools/tool_functions_config/root_agent.yaml +++ b/contributing/samples/tools/tool_functions_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json name: hello_world_agent model: gemini-2.5-flash diff --git a/contributing/samples/workflows/loop_config/evaluate_headline.yaml b/contributing/samples/workflows/loop_config/evaluate_headline.yaml index e45ef95d2a..3481ecad7b 100644 --- a/contributing/samples/workflows/loop_config/evaluate_headline.yaml +++ b/contributing/samples/workflows/loop_config/evaluate_headline.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + agent_class: LlmAgent name: evaluate_headline instruction: | diff --git a/contributing/samples/workflows/loop_config/generate_headline.yaml b/contributing/samples/workflows/loop_config/generate_headline.yaml index 9d62519de5..f0c003d68e 100644 --- a/contributing/samples/workflows/loop_config/generate_headline.yaml +++ b/contributing/samples/workflows/loop_config/generate_headline.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + agent_class: LlmAgent name: generate_headline instruction: | diff --git a/contributing/samples/workflows/loop_config/root_agent.yaml b/contributing/samples/workflows/loop_config/root_agent.yaml index 4b1a1f5bd7..9312274cda 100644 --- a/contributing/samples/workflows/loop_config/root_agent.yaml +++ b/contributing/samples/workflows/loop_config/root_agent.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + agent_class: Workflow name: loop_workflow edges: diff --git a/scripts/check_new_py_files.sh b/scripts/check_new_py_files.sh index 45cbda55f5..2af31256f3 100755 --- a/scripts/check_new_py_files.sh +++ b/scripts/check_new_py_files.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + exit_code=0 @@ -20,4 +34,4 @@ while read -r file; do fi done < <(git diff --cached --name-only --diff-filter=A) -exit $exit_code +exit $exit_code \ No newline at end of file diff --git a/src/google/adk/cli/browser/chunk-257HQBMN.js b/src/google/adk/cli/browser/chunk-257HQBMN.js index 8ca8bd8847..7acc66b0c5 100644 --- a/src/google/adk/cli/browser/chunk-257HQBMN.js +++ b/src/google/adk/cli/browser/chunk-257HQBMN.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as qt}from"./chunk-XMBKBASC.js";import{a as Jt}from"./chunk-B2DSW4QB.js";import{a as et,d as jt}from"./chunk-JHZIBEJC.js";import{a as Zt,b as Gt}from"./chunk-DRBE27N3.js";import{f as ht}from"./chunk-WXI2IBAH.js";import{d as Vt,m as rt,o as Lt}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{A as tt,E as F,G as kt,H as Wt,M as Yt,N as Ht,R as Kt,Y as O,a as Ft,b as Pt}from"./chunk-QFMJV7VH.js";import{M as Ut,Q as Xt,a as D,g,i as L}from"./chunk-JRNAXTJ7.js";import{e as Mt}from"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import{a as at,b as st,j as _}from"./chunk-RMXJBC7V.js";var vt=(function(){var e=g(function(B,m,d,b){for(d=d||{},b=B.length;b--;d[B[b]]=m);return d},"o"),t=[1,15],a=[1,7],i=[1,13],l=[1,14],s=[1,19],r=[1,16],n=[1,17],c=[1,18],x=[8,30],o=[8,10,21,28,29,30,31,39,43,46],u=[1,23],y=[1,24],f=[8,10,15,16,21,28,29,30,31,39,43,46],w=[8,10,15,16,21,27,28,29,30,31,39,43,46],v=[1,49],k={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:g(function(m,d,b,S,E,h,Y){var p=h.length-1;switch(E){case 4:S.getLogger().debug("Rule: separator (NL) ");break;case 5:S.getLogger().debug("Rule: separator (Space) ");break;case 6:S.getLogger().debug("Rule: separator (EOF) ");break;case 7:S.getLogger().debug("Rule: hierarchy: ",h[p-1]),S.setHierarchy(h[p-1]);break;case 8:S.getLogger().debug("Stop NL ");break;case 9:S.getLogger().debug("Stop EOF ");break;case 10:S.getLogger().debug("Stop NL2 ");break;case 11:S.getLogger().debug("Stop EOF2 ");break;case 12:S.getLogger().debug("Rule: statement: ",h[p]),typeof h[p].length=="number"?this.$=h[p]:this.$=[h[p]];break;case 13:S.getLogger().debug("Rule: statement #2: ",h[p-1]),this.$=[h[p-1]].concat(h[p]);break;case 14:S.getLogger().debug("Rule: link: ",h[p],m),this.$={edgeTypeStr:h[p],label:""};break;case 15:S.getLogger().debug("Rule: LABEL link: ",h[p-3],h[p-1],h[p]),this.$={edgeTypeStr:h[p],label:h[p-1]};break;case 18:let z=parseInt(h[p]),q=S.generateId();this.$={id:q,type:"space",label:"",width:z,children:[]};break;case 23:S.getLogger().debug("Rule: (nodeStatement link node) ",h[p-2],h[p-1],h[p]," typestr: ",h[p-1].edgeTypeStr);let Z=S.edgeStrToEdgeData(h[p-1].edgeTypeStr);this.$=[{id:h[p-2].id,label:h[p-2].label,type:h[p-2].type,directions:h[p-2].directions},{id:h[p-2].id+"-"+h[p].id,start:h[p-2].id,end:h[p].id,label:h[p-1].label,type:"edge",directions:h[p].directions,arrowTypeEnd:Z,arrowTypeStart:"arrow_open"},{id:h[p].id,label:h[p].label,type:S.typeStr2Type(h[p].typeStr),directions:h[p].directions}];break;case 24:S.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[p-1],h[p]),this.$={id:h[p-1].id,label:h[p-1].label,type:S.typeStr2Type(h[p-1].typeStr),directions:h[p-1].directions,widthInColumns:parseInt(h[p],10)};break;case 25:S.getLogger().debug("Rule: nodeStatement (node) ",h[p]),this.$={id:h[p].id,label:h[p].label,type:S.typeStr2Type(h[p].typeStr),directions:h[p].directions,widthInColumns:1};break;case 26:S.getLogger().debug("APA123",this?this:"na"),S.getLogger().debug("COLUMNS: ",h[p]),this.$={type:"column-setting",columns:h[p]==="auto"?-1:parseInt(h[p])};break;case 27:S.getLogger().debug("Rule: id-block statement : ",h[p-2],h[p-1]);let Rt=S.generateId();this.$=st(at({},h[p-2]),{type:"composite",children:h[p-1]});break;case 28:S.getLogger().debug("Rule: blockStatement : ",h[p-2],h[p-1],h[p]);let lt=S.generateId();this.$={id:lt,type:"composite",label:"",children:h[p-1]};break;case 29:S.getLogger().debug("Rule: node (NODE_ID separator): ",h[p]),this.$={id:h[p]};break;case 30:S.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[p-1],h[p]),this.$={id:h[p-1],label:h[p].label,typeStr:h[p].typeStr,directions:h[p].directions};break;case 31:S.getLogger().debug("Rule: dirList: ",h[p]),this.$=[h[p]];break;case 32:S.getLogger().debug("Rule: dirList: ",h[p-1],h[p]),this.$=[h[p-1]].concat(h[p]);break;case 33:S.getLogger().debug("Rule: nodeShapeNLabel: ",h[p-2],h[p-1],h[p]),this.$={typeStr:h[p-2]+h[p],label:h[p-1]};break;case 34:S.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[p-3],h[p-2]," #3:",h[p-1],h[p]),this.$={typeStr:h[p-3]+h[p],label:h[p-2],directions:h[p-1]};break;case 35:case 36:this.$={type:"classDef",id:h[p-1].trim(),css:h[p].trim()};break;case 37:this.$={type:"applyClass",id:h[p-1].trim(),styleClass:h[p].trim()};break;case 38:this.$={type:"applyStyles",id:h[p-1].trim(),stylesStr:h[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{8:[1,20]},e(x,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:i,29:l,31:s,39:r,43:n,46:c}),e(o,[2,16],{14:22,15:u,16:y}),e(o,[2,17]),e(o,[2,18]),e(o,[2,19]),e(o,[2,20]),e(o,[2,21]),e(o,[2,22]),e(f,[2,25],{27:[1,25]}),e(o,[2,26]),{19:26,26:12,31:s},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(w,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(x,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},e(f,[2,24]),{10:t,11:37,13:4,14:22,15:u,16:y,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(w,[2,30]),{18:[1,43]},{18:[1,44]},e(f,[2,23]),{18:[1,45]},{30:[1,46]},e(o,[2,28]),e(o,[2,35]),e(o,[2,36]),e(o,[2,37]),e(o,[2,38]),{36:[1,47]},{33:48,34:v},{15:[1,50]},e(o,[2,27]),e(w,[2,33]),{38:[1,51]},{33:52,34:v,38:[2,31]},{31:[2,15]},e(w,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:g(function(m,d){if(d.recoverable)this.trace(m);else{var b=new Error(m);throw b.hash=d,b}},"parseError"),parse:g(function(m){var d=this,b=[0],S=[],E=[null],h=[],Y=this.table,p="",z=0,q=0,Z=0,Rt=2,lt=1,Ee=h.slice.call(arguments,1),A=Object.create(this.lexer),J={yy:{}};for(var xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xt)&&(J.yy[xt]=this.yy[xt]);A.setInput(m,J.yy),J.yy.lexer=A,J.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var bt=A.yylloc;h.push(bt);var _e=A.options&&A.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(H){b.length=b.length-2*H,E.length=E.length-H,h.length=h.length-H}g(De,"popStack");function zt(){var H;return H=S.pop()||A.lex()||lt,typeof H!="number"&&(H instanceof Array&&(S=H,H=S.pop()),H=d.symbols_[H]||H),H}g(zt,"lex");for(var W,yt,Q,U,Qr,mt,$={},ct,G,At,ot;;){if(Q=b[b.length-1],this.defaultActions[Q]?U=this.defaultActions[Q]:((W===null||typeof W>"u")&&(W=zt()),U=Y[Q]&&Y[Q][W]),typeof U>"u"||!U.length||!U[0]){var wt="";ot=[];for(ct in Y[Q])this.terminals_[ct]&&ct>Rt&&ot.push("'"+this.terminals_[ct]+"'");A.showPosition?wt="Parse error on line "+(z+1)+`: `+A.showPosition()+` Expecting `+ot.join(", ")+", got '"+(this.terminals_[W]||W)+"'":wt="Parse error on line "+(z+1)+": Unexpected "+(W==lt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(wt,{text:A.match,token:this.terminals_[W]||W,line:A.yylineno,loc:bt,expected:ot})}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+W);switch(U[0]){case 1:b.push(W),E.push(A.yytext),h.push(A.yylloc),b.push(U[1]),W=null,yt?(W=yt,yt=null):(q=A.yyleng,p=A.yytext,z=A.yylineno,bt=A.yylloc,Z>0&&Z--);break;case 2:if(G=this.productions_[U[1]][1],$.$=E[E.length-G],$._$={first_line:h[h.length-(G||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(G||1)].first_column,last_column:h[h.length-1].last_column},_e&&($._$.range=[h[h.length-(G||1)].range[0],h[h.length-1].range[1]]),mt=this.performAction.apply($,[p,q,z,J.yy,U[1],E,h].concat(Ee)),typeof mt<"u")return mt;G&&(b=b.slice(0,-1*G*2),E=E.slice(0,-1*G),h=h.slice(0,-1*G)),b.push(this.productions_[U[1]][0]),E.push($.$),h.push($._$),At=Y[b[b.length-2]][b[b.length-1]],b.push(At);break;case 3:return!0}}return!0},"parse")},T=(function(){var B={EOF:1,parseError:g(function(d,b){if(this.yy.parser)this.yy.parser.parseError(d,b);else throw new Error(d)},"parseError"),setInput:g(function(m,d){return this.yy=d||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var d=m.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:g(function(m){var d=m.length,b=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var S=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===S.length?this.yylloc.first_column:0)+S[S.length-b.length].length-b[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-27SWUPRL.js b/src/google/adk/cli/browser/chunk-27SWUPRL.js index 470236667f..1ef8b05e38 100644 --- a/src/google/adk/cli/browser/chunk-27SWUPRL.js +++ b/src/google/adk/cli/browser/chunk-27SWUPRL.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import"./chunk-RMXJBC7V.js";var z=class r extends Error{constructor(e,t){var a="KaTeX parse error: "+e,n,l,u=t&&t.loc;if(u&&u.start<=u.end){var h=u.lexer.input;n=u.start,l=u.end,n===h.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var c=h.slice(n,l).replace(/[^]/g,"$&\u0332"),v;n>15?v="\u2026"+h.slice(n-15,n):v=h.slice(0,n);var g;l+15r.replace(H1,"-$1").toLowerCase(),N1={"&":"&",">":">","<":"<",'"':""","'":"'"},O1=/[&><"']/g,n0=r=>String(r).replace(O1,e=>N1[e]),Ee=r=>r.type==="ordgroup"||r.type==="color"?r.body.length===1?Ee(r.body[0]):r:r.type==="font"?Ee(r.body):r,F1=new Set(["mathord","textord","atom"]),q0=r=>F1.has(Ee(r).type),L1=r=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(r);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},vt={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand ",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function P1(r){if("default"in r)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var me=class{constructor(e){e===void 0&&(e={}),e=e||{};for(var t of Object.keys(vt)){var a=vt[t],n=e[t];this[t]=n!==void 0?a.processor?a.processor(n):n:P1(a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n=="function"&&(n=n(e,t,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new z("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch(l){n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=L1(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}},w0=class{constructor(e,t,a){this.id=e,this.size=t,this.cramped=a}sup(){return k0[G1[this.id]]}sub(){return k0[U1[this.id]]}fracNum(){return k0[V1[this.id]]}fracDen(){return k0[X1[this.id]]}cramp(){return k0[Y1[this.id]]}text(){return k0[W1[this.id]]}isTight(){return this.size>=2}},Rt=0,He=1,_0=2,C0=3,ce=4,p0=5,ee=6,s0=7,k0=[new w0(Rt,0,!1),new w0(He,0,!0),new w0(_0,1,!1),new w0(C0,1,!0),new w0(ce,2,!1),new w0(p0,2,!0),new w0(ee,3,!1),new w0(s0,3,!0)],G1=[ce,p0,ce,p0,ee,s0,ee,s0],U1=[p0,p0,p0,p0,s0,s0,s0,s0],V1=[_0,C0,ce,p0,ee,s0,ee,s0],X1=[C0,C0,p0,p0,s0,s0,s0,s0],Y1=[He,He,C0,C0,p0,p0,s0,s0],W1=[Rt,He,_0,C0,_0,C0,_0,C0],H={DISPLAY:k0[Rt],TEXT:k0[_0],SCRIPT:k0[ce],SCRIPTSCRIPT:k0[ee]},pt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function $1(r){for(var e=0;e=n[0]&&r<=n[1])return t.name}return null}var Ie=[];pt.forEach(r=>r.blocks.forEach(e=>Ie.push(...e)));function Rr(r){for(var e=0;e=Ie[e]&&r<=Ie[e+1])return!0;return!1}var Q0=80,j1=function(e,t){return"M95,"+(622+e+t)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 diff --git a/src/google/adk/cli/browser/chunk-2DLZXFEQ.js b/src/google/adk/cli/browser/chunk-2DLZXFEQ.js index d133e1e057..981a97704b 100644 --- a/src/google/adk/cli/browser/chunk-2DLZXFEQ.js +++ b/src/google/adk/cli/browser/chunk-2DLZXFEQ.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as i,b as o,c as t,d as n,e as c,f as e,g as u,i as d,p as G,q as l}from"./chunk-NALL4A3P.js";var p=class extends l{static{e(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},m={parser:{TokenBuilder:e(()=>new p,"TokenBuilder"),ValueConverter:e(()=>new G,"ValueConverter")}};function h(s=n){let r=t(o(s),u),a=t(i({shared:r}),d,m);return r.ServiceRegistry.register(a),{shared:r,GitGraph:a}}e(h,"createGitGraphServices");export{m as a,h as b}; diff --git a/src/google/adk/cli/browser/chunk-2LZ42ZOW.js b/src/google/adk/cli/browser/chunk-2LZ42ZOW.js index 5e2e957a6a..5f9afcb0fb 100644 --- a/src/google/adk/cli/browser/chunk-2LZ42ZOW.js +++ b/src/google/adk/cli/browser/chunk-2LZ42ZOW.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as _,c as N,d as F}from"./chunk-LI24J5PW.js";import{a as U}from"./chunk-JDPVSVO4.js";import{a as C}from"./chunk-XMBKBASC.js";import"./chunk-APNCZOFE.js";import"./chunk-ST54LLJ3.js";import"./chunk-F57TI45K.js";import"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import{m as P}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{H as A,M as z,N as R,Y as t}from"./chunk-QFMJV7VH.js";import{M as W,Q as G,a as T,g as u,i as S}from"./chunk-JRNAXTJ7.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";var D=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),Y=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),I=u((e,i)=>{let s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),g=s.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",g.width+2*t().state.padding).attr("height",g.height+2*t().state.padding).attr("rx",t().state.radius),s},"drawSimpleState"),$=u((e,i)=>{let s=u(function(c,m,w){let E=c.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),h=n.height,x=e.append("text").attr("x",t().state.padding).attr("y",h+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description"),a=!0,d=!0;i.descriptions.forEach(function(c){a||(s(x,c,d),d=!1),a=!1});let y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+h+t().state.dividerMargin/2).attr("y2",t().state.padding+h+t().state.dividerMargin/2).attr("class","descr-divider"),p=x.node().getBBox(),o=Math.max(p.width,n.width);return y.attr("x2",o+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o+2*t().state.padding).attr("height",p.height+h+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),q=u((e,i,s)=>{let g=t().state.padding,n=2*t().state.padding,h=e.node().getBBox(),x=h.width,a=h.x,d=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),p=d.node().getBBox().width+n,o=Math.max(p,x);o===x&&(o=o+n);let c,m=e.node().getBBox();i.doc,c=a-g,p>x&&(c=(x-o)/2+g),Math.abs(a-m.x)x&&(c=a-(p-x)/2);let w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",c).attr("y",w).attr("class",s?"alt-composit":"composit").attr("width",o).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),d.attr("x",c+g),p<=x&&d.attr("x",a+(o-n)/2-p/2+g),e.insert("rect",":first-child").attr("x",c).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",c).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),Z=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),j=u((e,i)=>{let s=t().state.forkWidth,g=t().state.forkHeight;if(i.parentId){let n=s;s=g,g=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",s).attr("height",g).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),K=u((e,i,s,g)=>{let n=0,h=g.append("text");h.style("text-anchor","start"),h.attr("class","noteText");let x=e.replace(/\r\n/g,"
");x=x.replace(/\n/g,"
");let a=x.split(z.lineBreakRegex),d=1.25*t().state.noteMargin;for(let y of a){let p=y.trim();if(p.length>0){let o=h.append("tspan");if(o.text(p),d===0){let c=o.node().getBBox();d+=c.height}n+=d,o.attr("x",i+t().state.noteMargin),o.attr("y",s+n+1.25*t().state.noteMargin)}}return{textWidth:h.node().getBBox().width,textHeight:n}},"_drawLongText"),Q=u((e,i)=>{i.attr("class","state-note");let s=i.append("rect").attr("x",0).attr("y",t().state.padding),g=i.append("g"),{textWidth:n,textHeight:h}=K(e,0,0,g);return s.attr("height",h+2*t().state.noteMargin),s.attr("width",n+t().state.noteMargin*2),s},"drawNote"),O=u(function(e,i){let s=i.id,g={id:s,label:i.id,width:0,height:0},n=e.append("g").attr("id",s).attr("class","stateGroup");i.type==="start"&&D(n),i.type==="end"&&Z(n),(i.type==="fork"||i.type==="join")&&j(n,i),i.type==="note"&&Q(i.note.text,n),i.type==="divider"&&Y(n),i.type==="default"&&i.descriptions.length===0&&I(n,i),i.type==="default"&&i.descriptions.length>0&&$(n,i);let h=n.node().getBBox();return g.width=h.width+2*t().state.padding,g.height=h.height+2*t().state.padding,g},"drawState"),J=0,V=u(function(e,i,s){let g=u(function(d){switch(d){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(d=>!Number.isNaN(d.y));let n=i.points,h=W().x(function(d){return d.x}).y(function(d){return d.y}).curve(G),x=e.append("path").attr("d",h(n)).attr("id","edge"+J).attr("class","transition"),a="";if(t().state.arrowMarkerAbsolute&&(a=A(!0)),x.attr("marker-end","url("+a+"#"+g(N.relationType.DEPENDENCY)+"End)"),s.title!==void 0){let d=e.append("g").attr("class","stateLabel"),{x:y,y:p}=P.calcLabelPosition(i.points),o=z.getRows(s.title),c=0,m=[],w=0,E=0;for(let r=0;r<=o.length;r++){let f=d.append("text").attr("text-anchor","middle").text(o[r]).attr("x",y).attr("y",p+c),l=f.node().getBBox();w=Math.max(w,l.width),E=Math.min(E,l.x),S.info(l.x,y,p+c),c===0&&(c=f.node().getBBox().height,S.info("Title height",c,p)),m.push(f)}let k=c*o.length;if(o.length>1){let r=(o.length-1)*c*.5;m.forEach((f,l)=>f.attr("y",p+l*c-r)),k=c*o.length}let M=d.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",p-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),S.info(M)}J++},"drawEdge"),b,L={},tt=u(function(){},"setConf"),et=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),at=u(function(e,i,s,g){b=t().state;let n=t().securityLevel,h;n==="sandbox"&&(h=T("#i"+i));let x=n==="sandbox"?T(h.nodes()[0].contentDocument.body):T("body"),a=n==="sandbox"?h.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);let d=x.select(`[id='${i}']`);et(d);let y=g.db.getRootDoc();X(y,d,void 0,!1,x,a,g);let p=b.padding,o=d.node().getBBox(),c=o.width+p*2,m=o.height+p*2,w=c*1.75;R(d,m,w,b.useMaxWidth),d.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+c+" "+m)},"draw"),it=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),X=u((e,i,s,g,n,h,x)=>{let a=new C({compound:!0,multigraph:!0}),d,y=!0;for(d=0;d{let B=l.parentElement,v=0,H=0;B&&(B.parentElement&&(v=B.parentElement.getBBox().width),H=parseInt(B.getAttribute("data-x-shift"),10),Number.isNaN(H)&&(H=0)),l.setAttribute("x1",0-H+8),l.setAttribute("x2",v-H-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=E.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),V(i,a.edge(r),a.edge(r).relation))}),k=E.getBBox();let M={id:s||"root",label:s||"root",width:0,height:0};return M.width=k.width+2*b.padding,M.height=k.height+2*b.padding,S.debug("Doc rendered",M,a),M},"renderDoc"),rt={setConf:tt,draw:at},St={parser:_,get db(){return new N(1)},renderer:rt,styles:F,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{St as diagram}; diff --git a/src/google/adk/cli/browser/chunk-2SRK2U7X.js b/src/google/adk/cli/browser/chunk-2SRK2U7X.js index d7b6f04014..8c588457f4 100644 --- a/src/google/adk/cli/browser/chunk-2SRK2U7X.js +++ b/src/google/adk/cli/browser/chunk-2SRK2U7X.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as M,b as P,f as xr,j as vt}from"./chunk-RMXJBC7V.js";var De=null,ts=!1,lc=1,JD=null,se=Symbol("SIGNAL");function I(e){let t=De;return De=e,t}function ns(){return De}var an={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function cn(e){if(ts)throw new Error("");if(De===null)return;De.consumerOnSignalRead(e);let t=De.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=De.recomputing;if(r&&(n=t!==void 0?t.nextProducer:De.producers,n!==void 0&&n.producer===e)){De.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===De&&(!r||eE(o,De)))return;let i=Sr(De),s={producer:e,consumer:De,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};De.producersTail=s,t!==void 0?t.nextProducer=s:De.producers=s,i&&c0(e,s)}function s0(){lc++}function Ln(e){if(!(Sr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===lc)){if(!e.producerMustRecompute(e)&&!Tr(e)){Ir(e);return}e.producerRecomputeValue(e),Ir(e)}}function dc(e){if(e.consumers===void 0)return;let t=ts;ts=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||XD(r)}}finally{ts=t}}function fc(){return De?.consumerAllowSignalWrites!==!1}function XD(e){e.dirty=!0,dc(e),e.consumerMarkedDirty?.(e)}function Ir(e){e.dirty=!1,e.lastCleanEpoch=lc}function Lt(e){return e&&u0(e),I(e)}function u0(e){e.producersTail=void 0,e.recomputing=!0}function ln(e,t){I(t),e&&a0(e)}function a0(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Sr(e))do n=pc(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function Tr(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Ln(n),r!==n.version))return!0}return!1}function dn(e){if(Sr(e)){let t=e.producers;for(;t!==void 0;)t=pc(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function c0(e,t){let n=e.consumersTail,r=Sr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)c0(o.producer,o)}function pc(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Sr(t)){let i=t.producers;for(;i!==void 0;)i=pc(i)}return n}function Sr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function ko(e){JD?.(e)}function eE(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Ro(e,t){return Object.is(e,t)}function Fo(e,t){let n=Object.create(tE);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ln(n),cn(n),n.value===Dt)throw n.error;return n.value};return r[se]=n,ko(n),r}var un=Symbol("UNSET"),Pn=Symbol("COMPUTING"),Dt=Symbol("ERRORED"),tE=P(M({},an),{value:un,dirty:!0,error:null,equal:Ro,kind:"computed",producerMustRecompute(e){return e.value===un||e.value===Pn},producerRecomputeValue(e){if(e.value===Pn)throw new Error("");let t=e.value;e.value=Pn;let n=Lt(e),r,o=!1;try{r=e.computation(),I(null),o=t!==un&&t!==Dt&&r!==Dt&&e.equal(t,r)}catch(i){r=Dt,e.error=i}finally{ln(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function nE(){throw new Error}var l0=nE;function d0(e){l0(e)}function hc(e){l0=e}var rE=null;function gc(e,t){let n=Object.create(Oo);n.value=e,t!==void 0&&(n.equal=t);let r=()=>f0(n);return r[se]=n,ko(n),[r,s=>jn(n,s),s=>rs(n,s)]}function f0(e){return cn(e),e.value}function jn(e,t){fc()||d0(e),e.equal(e.value,t)||(e.value=t,oE(e))}function rs(e,t){fc()||d0(e),jn(e,t(e.value))}var Oo=P(M({},an),{equal:Ro,value:void 0,kind:"signal"});function oE(e){e.version++,s0(),dc(e),rE?.(e)}var mc=P(M({},an),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function yc(e){if(e.dirty=!1,e.version>0&&!Tr(e))return;e.version++;let t=Lt(e);try{e.cleanup(),e.fn()}finally{ln(e,t)}}function R(e){return typeof e=="function"}function Mr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var os=Mr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Bn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ne=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(R(r))try{r()}catch(i){t=i instanceof os?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{p0(i)}catch(s){t=t??[],s instanceof os?t=[...t,...s.errors]:t.push(s)}}if(t)throw new os(t)}}add(t){var n;if(t&&t!==this)if(this.closed)p0(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Bn(n,t)}remove(t){let{_finalizers:n}=this;n&&Bn(n,t),t instanceof e&&t._removeParent(this)}};ne.EMPTY=(()=>{let e=new ne;return e.closed=!0,e})();var bc=ne.EMPTY;function is(e){return e instanceof ne||e&&"closed"in e&&R(e.remove)&&R(e.add)&&R(e.unsubscribe)}function p0(e){R(e)?e():e.unsubscribe()}var et={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ar={setTimeout(e,t,...n){let{delegate:r}=Ar;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ar;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ss(e){Ar.setTimeout(()=>{let{onUnhandledError:t}=et;if(t)t(e);else throw e})}function jt(){}var h0=vc("C",void 0,void 0);function g0(e){return vc("E",void 0,e)}function m0(e){return vc("N",e,void 0)}function vc(e,t,n){return{kind:e,value:t,error:n}}var Vn=null;function Nr(e){if(et.useDeprecatedSynchronousErrorHandling){let t=!Vn;if(t&&(Vn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Vn;if(Vn=null,n)throw r}}else e()}function y0(e){et.useDeprecatedSynchronousErrorHandling&&Vn&&(Vn.errorThrown=!0,Vn.error=e)}var Hn=class extends ne{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,is(t)&&t.add(this)):this.destination=uE}static create(t,n,r){return new tt(t,n,r)}next(t){this.isStopped?Ec(m0(t),this):this._next(t)}error(t){this.isStopped?Ec(g0(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ec(h0,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},iE=Function.prototype.bind;function Dc(e,t){return iE.call(e,t)}var Cc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){us(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){us(r)}else us(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){us(n)}}},tt=class extends Hn{constructor(t,n,r){super();let o;if(R(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&et.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Dc(t.next,i),error:t.error&&Dc(t.error,i),complete:t.complete&&Dc(t.complete,i)}):o=t}this.destination=new Cc(o)}};function us(e){et.useDeprecatedSynchronousErrorHandling?y0(e):ss(e)}function sE(e){throw e}function Ec(e,t){let{onStoppedNotification:n}=et;n&&Ar.setTimeout(()=>n(e,t))}var uE={closed:!0,next:jt,error:sE,complete:jt};var kr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Te(e){return e}function aE(...e){return _c(e)}function _c(e){return e.length===0?Te:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var B=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=lE(n)?n:new tt(n,r,o);return Nr(()=>{let{operator:s,source:u}=this;i.add(s?s.call(i,u):u?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=b0(r),new r((o,i)=>{let s=new tt({next:u=>{try{n(u)}catch(a){i(a),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[kr](){return this}pipe(...n){return _c(n)(this)}toPromise(n){return n=b0(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function b0(e){var t;return(t=e??et.Promise)!==null&&t!==void 0?t:Promise}function cE(e){return e&&R(e.next)&&R(e.error)&&R(e.complete)}function lE(e){return e&&e instanceof Hn||cE(e)&&is(e)}function wc(e){return R(e?.lift)}function j(e){return t=>{if(wc(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function F(e,t,n,r,o){return new xc(e,t,n,r,o)}var xc=class extends Hn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(u){try{n(u)}catch(a){t.error(a)}}:super._next,this._error=o?function(u){try{o(u)}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function v0(){return j((e,t)=>{let n=null;e._refCount++;let r=F(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Ic=class extends B{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,wc(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new ne;let n=this.getSubject();t.add(this.source.subscribe(F(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=ne.EMPTY)}return t}refCount(){return v0()(this)}};var Rr={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Rr;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new ne(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=Rr;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=Rr;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var D0=Mr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var he=(()=>{class e extends B{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new as(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new D0}next(n){Nr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Nr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Nr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?bc:(this.currentObservers=null,i.push(n),new ne(()=>{this.currentObservers=null,Bn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new B;return n.source=this,n}}return e.create=(t,n)=>new as(t,n),e})(),as=class extends he{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:bc}};var Po=class extends he{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Lo={now(){return(Lo.delegate||Date).now()},delegate:void 0};var jo=class extends he{constructor(t=1/0,n=1/0,r=Lo){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;sE0(t)&&e()),t},clearImmediate(e){E0(e)}};var{setImmediate:fE,clearImmediate:pE}=C0,Vo={setImmediate(...e){let{delegate:t}=Vo;return(t?.setImmediate||fE)(...e)},clearImmediate(e){let{delegate:t}=Vo;return(t?.clearImmediate||pE)(e)},delegate:void 0};var ls=class extends fn{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Vo.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Vo.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var Fr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Fr.now=Lo.now;var pn=class extends Fr{constructor(t,n=Fr.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var ds=class extends pn{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var hE=new ds(ls);var Or=new pn(fn),Mc=Or;var fs=class extends fn{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Rr.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Rr.cancelAnimationFrame(n),t._scheduled=void 0)}};var ps=class extends pn{flush(t){this._active=!0;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var gE=new ps(fs);var Bt=new B(e=>e.complete());function hs(e){return e&&R(e.schedule)}function Ac(e){return e[e.length-1]}function hn(e){return R(Ac(e))?e.pop():void 0}function Et(e){return hs(Ac(e))?e.pop():void 0}function _0(e,t){return typeof Ac(e)=="number"?e.pop():t}function E3(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(s=e[u])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function x0(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function u(l){try{c(r.next(l))}catch(d){s(d)}}function a(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(u,a)}c((r=r.apply(e,t||[])).next())})}function w0(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $n(e){return this instanceof $n?(this.v=e,this):new $n(e)}function I0(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function u(f,p){r[f]&&(o[f]=function(m){return new Promise(function(g,y){i.push([f,m,g,y])>1||a(f,m)})},p&&(o[f]=p(o[f])))}function a(f,p){try{c(r[f](p))}catch(m){h(i[0][3],m)}}function c(f){f.value instanceof $n?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){a("next",f)}function d(f){a("throw",f)}function h(f,p){f(p),i.shift(),i.length&&a(i[0][0],i[0][1])}}function T0(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof w0=="function"?w0(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(u,a){s=e[i](s),o(u,a,s.done,s.value)})}}function o(i,s,u,a){Promise.resolve(a).then(function(c){i({value:c,done:u})},s)}}var Pr=e=>e&&typeof e.length=="number"&&typeof e!="function";function gs(e){return R(e?.then)}function ms(e){return R(e[kr])}function ys(e){return Symbol.asyncIterator&&R(e?.[Symbol.asyncIterator])}function bs(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function mE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var vs=mE();function Ds(e){return R(e?.[vs])}function Es(e){return I0(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield $n(n.read());if(o)return yield $n(void 0);yield yield $n(r)}}finally{n.releaseLock()}})}function Cs(e){return R(e?.getReader)}function z(e){if(e instanceof B)return e;if(e!=null){if(ms(e))return yE(e);if(Pr(e))return bE(e);if(gs(e))return vE(e);if(ys(e))return S0(e);if(Ds(e))return DE(e);if(Cs(e))return EE(e)}throw bs(e)}function yE(e){return new B(t=>{let n=e[kr]();if(R(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bE(e){return new B(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ss)})}function DE(e){return new B(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function S0(e){return new B(t=>{CE(e,t).catch(n=>t.error(n))})}function EE(e){return S0(Es(e))}function CE(e,t){var n,r,o,i;return x0(this,void 0,void 0,function*(){try{for(n=T0(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Fe(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ho(e,t=0){return j((n,r)=>{n.subscribe(F(r,o=>Fe(r,e,()=>r.next(o),t),()=>Fe(r,e,()=>r.complete(),t),o=>Fe(r,e,()=>r.error(o),t)))})}function _s(e,t=0){return j((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function M0(e,t){return z(e).pipe(_s(t),Ho(t))}function A0(e,t){return z(e).pipe(_s(t),Ho(t))}function N0(e,t){return new B(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function k0(e,t){return new B(n=>{let r;return Fe(n,t,()=>{r=e[vs](),Fe(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>R(r?.return)&&r.return()})}function ws(e,t){if(!e)throw new Error("Iterable cannot be null");return new B(n=>{Fe(n,t,()=>{let r=e[Symbol.asyncIterator]();Fe(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function R0(e,t){return ws(Es(e),t)}function F0(e,t){if(e!=null){if(ms(e))return M0(e,t);if(Pr(e))return N0(e,t);if(gs(e))return A0(e,t);if(ys(e))return ws(e,t);if(Ds(e))return k0(e,t);if(Cs(e))return R0(e,t)}throw bs(e)}function Ct(e,t){return t?F0(e,t):z(e)}function xs(...e){let t=Et(e);return Ct(e,t)}function _E(e,t){let n=R(e)?e:()=>e,r=o=>o.error(n());return new B(t?o=>t.schedule(r,0,o):r)}function wE(e){return!!e&&(e instanceof B||R(e.lift)&&R(e.subscribe))}var Un=Mr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Nc(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new tt({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Un)}});e.subscribe(i)})}function O0(e){return e instanceof Date&&!isNaN(e)}function Se(e,t){return j((n,r)=>{let o=0;n.subscribe(F(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:xE}=Array;function IE(e,t){return xE(t)?e(...t):e(t)}function Lr(e){return Se(t=>IE(e,t))}var{isArray:TE}=Array,{getPrototypeOf:SE,prototype:ME,keys:AE}=Object;function Is(e){if(e.length===1){let t=e[0];if(TE(t))return{args:t,keys:null};if(NE(t)){let n=AE(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function NE(e){return e&&typeof e=="object"&&SE(e)===ME}function Ts(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function kE(...e){let t=Et(e),n=hn(e),{args:r,keys:o}=Is(e);if(r.length===0)return Ct([],t);let i=new B(RE(r,t,o?s=>Ts(o,s):Te));return n?i.pipe(Lr(n)):i}function RE(e,t,n=Te){return r=>{P0(t,()=>{let{length:o}=e,i=new Array(o),s=o,u=o;for(let a=0;a{let c=Ct(e[a],t),l=!1;c.subscribe(F(r,d=>{i[a]=d,l||(l=!0,u--),u||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function P0(e,t,n){e?Fe(n,e,t):t()}function L0(e,t,n,r,o,i,s,u){let a=[],c=0,l=0,d=!1,h=()=>{d&&!a.length&&!c&&t.complete()},f=m=>c{i&&t.next(m),c++;let g=!1;z(n(m,l++)).subscribe(F(t,y=>{o?.(y),i?f(y):t.next(y)},()=>{g=!0},void 0,()=>{if(g)try{for(c--;a.length&&cp(y)):p(y)}h()}catch(y){t.error(y)}}))};return e.subscribe(F(t,f,()=>{d=!0,h()})),()=>{u?.()}}function Vt(e,t,n=1/0){return R(t)?Vt((r,o)=>Se((i,s)=>t(r,i,o,s))(z(e(r,o))),n):(typeof t=="number"&&(n=t),j((r,o)=>L0(r,o,e,n)))}function $o(e=1/0){return Vt(Te,e)}function j0(){return $o(1)}function Ss(...e){return j0()(Ct(e,Et(e)))}function FE(e){return new B(t=>{z(e()).subscribe(t)})}function OE(...e){let t=hn(e),{args:n,keys:r}=Is(e),o=new B(i=>{let{length:s}=n;if(!s){i.complete();return}let u=new Array(s),a=s,c=s;for(let l=0;l{d||(d=!0,c--),u[l]=h},()=>a--,void 0,()=>{(!a||!d)&&(c||i.next(r?Ts(r,u):u),i.complete())}))}});return t?o.pipe(Lr(t)):o}var PE=["addListener","removeListener"],LE=["addEventListener","removeEventListener"],jE=["on","off"];function kc(e,t,n,r){if(R(n)&&(r=n,n=void 0),r)return kc(e,t,n).pipe(Lr(r));let[o,i]=HE(e)?LE.map(s=>u=>e[s](t,u,n)):BE(e)?PE.map(B0(e,t)):VE(e)?jE.map(B0(e,t)):[];if(!o&&Pr(e))return Vt(s=>kc(s,t,n))(z(e));if(!o)throw new TypeError("Invalid event target");return new B(s=>{let u=(...a)=>s.next(1i(u)})}function B0(e,t){return n=>r=>e[n](t,r)}function BE(e){return R(e.addListener)&&R(e.removeListener)}function VE(e){return R(e.on)&&R(e.off)}function HE(e){return R(e.addEventListener)&&R(e.removeEventListener)}function Rc(e=0,t,n=Mc){let r=-1;return t!=null&&(hs(t)?n=t:r=t),new B(o=>{let i=O0(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function $E(...e){let t=Et(e),n=_0(e,1/0),r=e;return r.length?r.length===1?z(r[0]):$o(n)(Ct(r,t)):Bt}var UE=new B(jt);var{isArray:zE}=Array;function V0(e){return e.length===1&&zE(e[0])?e[0]:e}function gn(e,t){return j((n,r)=>{let o=0;n.subscribe(F(r,i=>e.call(t,i,o++)&&r.next(i)))})}function qE(...e){let t=hn(e),n=V0(e);return n.length?new B(r=>{let o=n.map(()=>[]),i=n.map(()=>!1);r.add(()=>{o=i=null});for(let s=0;!r.closed&&s{if(o[s].push(u),o.every(a=>a.length)){let a=o.map(c=>c.shift());r.next(t?t(...a):a),o.some((c,l)=>!c.length&&i[l])&&r.complete()}},()=>{i[s]=!0,!o[s].length&&r.complete()}));return()=>{o=i=null}}):Bt}function H0(e){return j((t,n)=>{let r=!1,o=null,i=null,s=!1,u=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let c=o;o=null,n.next(c)}s&&n.complete()},a=()=>{i=null,s&&n.complete()};t.subscribe(F(n,c=>{r=!0,o=c,i||z(e(c)).subscribe(i=F(n,u,a))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function GE(e,t=Or){return H0(()=>Rc(e,t))}function Fc(e){return j((t,n)=>{let r=null,o=!1,i;r=t.subscribe(F(n,void 0,void 0,s=>{i=z(e(s,Fc(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Oc(e,t){return R(t)?Vt(e,t,1):Vt(e,1)}function $0(e,t=Or){return j((n,r)=>{let o=null,i=null,s=null,u=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function a(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(a,e),r.add(o))},()=>{u(),r.complete()},void 0,()=>{i=o=null}))})}function U0(e){return j((t,n)=>{let r=!1;t.subscribe(F(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Pc(e){return e<=0?()=>Bt:j((t,n)=>{let r=0;t.subscribe(F(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function WE(e){return Se(()=>e)}function z0(e,t=Te){return e=e??ZE,j((n,r)=>{let o,i=!0;n.subscribe(F(r,s=>{let u=t(s);(i||!e(o,u))&&(i=!1,o=u,r.next(s))}))})}function ZE(e,t){return e===t}function q0(e=YE){return j((t,n)=>{let r=!1;t.subscribe(F(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function YE(){return new Un}function Ms(e){return j((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function QE(e,t){let n=arguments.length>=2;return r=>r.pipe(e?gn((o,i)=>e(o,i,r)):Te,Pc(1),n?U0(t):q0(()=>new Un))}function KE(e){return e<=0?()=>Bt:j((t,n)=>{let r=[];t.subscribe(F(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function G0(){return j((e,t)=>{let n,r=!1;e.subscribe(F(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function As(e={}){let{connector:t=()=>new he,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,u,a,c=0,l=!1,d=!1,h=()=>{u?.unsubscribe(),u=void 0},f=()=>{h(),s=a=void 0,l=d=!1},p=()=>{let m=s;f(),m?.unsubscribe()};return j((m,g)=>{c++,!d&&!l&&h();let y=a=a??t();g.add(()=>{c--,c===0&&!d&&!l&&(u=Lc(p,o))}),y.subscribe(g),!s&&c>0&&(s=new tt({next:v=>y.next(v),error:v=>{d=!0,h(),u=Lc(f,n,v),y.error(v)},complete:()=>{l=!0,h(),u=Lc(f,r),y.complete()}}),z(m).subscribe(s))})(i)}}function Lc(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new tt({next:()=>{r.unsubscribe(),e()}});return z(t(...n)).subscribe(r)}function W0(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,As({connector:()=>new jo(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Z0(e){return gn((t,n)=>e<=n)}function Y0(...e){let t=Et(e);return j((n,r)=>{(t?Ss(e,n,t):Ss(e,n)).subscribe(r)})}function Ns(e,t){return j((n,r)=>{let o=null,i=0,s=!1,u=()=>s&&!o&&r.complete();n.subscribe(F(r,a=>{o?.unsubscribe();let c=0,l=i++;z(e(a,l)).subscribe(o=F(r,d=>r.next(t?t(a,d,l,c++):d),()=>{o=null,u()}))},()=>{s=!0,u()}))})}function JE(e){return j((t,n)=>{z(e).subscribe(F(n,()=>n.complete(),jt)),!n.closed&&t.subscribe(n)})}function XE(e,t=!1){return j((n,r)=>{let o=0;n.subscribe(F(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function Q0(e,t,n){let r=R(e)||t||n?{next:e,error:t,complete:n}:e;return r?j((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let u=!0;o.subscribe(F(i,a=>{var c;(c=r.next)===null||c===void 0||c.call(r,a),i.next(a)},()=>{var a;u=!1,(a=r.complete)===null||a===void 0||a.call(r),i.complete()},a=>{var c;u=!1,(c=r.error)===null||c===void 0||c.call(r,a),i.error(a)},()=>{var a,c;u&&((a=r.unsubscribe)===null||a===void 0||a.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Te}function eC(...e){let t=hn(e);return j((n,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),u=!1;for(let a=0;a{i[a]=c,!u&&!s[a]&&(s[a]=!0,(u=s.every(Te))&&(s=null))},jt));n.subscribe(F(r,a=>{if(u){let c=[a,...i];r.next(t?t(...c):c)}}))})}var jc;function ks(){return jc}function _t(e){let t=jc;return jc=e,t}var K0=Symbol("NotFound");function jr(e){return e===K0||e?.name==="\u0275NotFound"}function Bc(e,t,n){let r=Object.create(tC);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(Ln(r),cn(r),r.value===Dt)throw r.error;return r.value};return i[se]=r,ko(r),i}function J0(e,t){Ln(e),jn(e,t),Ir(e)}function X0(e,t){if(Ln(e),e.value===Dt)throw e.error;rs(e,t),Ir(e)}var tC=P(M({},an),{value:un,dirty:!0,error:null,equal:Ro,kind:"linkedSignal",producerMustRecompute(e){return e.value===un||e.value===Pn},producerRecomputeValue(e){if(e.value===Pn)throw new Error("");let t=e.value;e.value=Pn;let n=Lt(e),r;try{let o=e.source(),i=t===un||t===Dt?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o}catch(o){r=Dt,e.error=o}finally{ln(e,n)}if(t!==un&&r!==Dt&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function eg(e){let t=I(null);try{return e()}finally{I(t)}}var Bs="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",D=class extends Error{code;constructor(t,n){super(xt(t,n)),this.code=t}};function nC(e){return`NG0${Math.abs(e)}`}function xt(e,t){return`${nC(e)}${t?": "+t:""}`}var fe=globalThis;function W(e){for(let t in e)if(e[t]===W)return t;throw Error("")}function ig(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Yo(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Yo).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(` diff --git a/src/google/adk/cli/browser/chunk-3BJ4SYVH.js b/src/google/adk/cli/browser/chunk-3BJ4SYVH.js index 64560a5914..64b7fb18ac 100644 --- a/src/google/adk/cli/browser/chunk-3BJ4SYVH.js +++ b/src/google/adk/cli/browser/chunk-3BJ4SYVH.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as l,Bb as c,Ca as r,Cb as u,Cc as M,Db as m,Ib as p,Lb as v,Pa as n,Yb as f,Zb as y,eb as d,fc as g,gc as h,hc as x,pd as _,qb as a,sb as s,wc as C}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";function D(e,P){if(e&1&&(c(0,"section"),m(1,"audio",1),u()),e&2){let t=v(),o=x(0);f(t.theme.additionalStyles==null?null:t.theme.additionalStyles.AudioPlayer),y(t.theme.components.AudioPlayer),n(),p("src",o)}}var w=(()=>{class e extends _{url=M.required();resolvedUrl=C(()=>this.resolvePrimitive(this.url()));static \u0275fac=(()=>{let t;return function(i){return(t||(t=r(e)))(i||e)}})();static \u0275cmp=l({type:e,selectors:[["a2ui-audio"]],inputs:{url:[1,"url"]},features:[d],decls:2,vars:2,consts:[[3,"class","style"],["controls","",3,"src"]],template:function(o,i){if(o&1&&(g(0),a(1,D,2,5,"section",0)),o&2){let b=h(i.resolvedUrl());n(),s(b?1:-1)}},styles:["[_nghost-%COMP%]{display:block;flex:var(--weight);min-height:0;overflow:auto}audio[_ngcontent-%COMP%]{display:block;width:100%;box-sizing:border-box}"]})}return e})();export{w as Audio}; diff --git a/src/google/adk/cli/browser/chunk-3NJNOY56.js b/src/google/adk/cli/browser/chunk-3NJNOY56.js index 60df62ef40..fd19c24e1f 100644 --- a/src/google/adk/cli/browser/chunk-3NJNOY56.js +++ b/src/google/adk/cli/browser/chunk-3NJNOY56.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as t,b as a,c as o,d as i,e as f,f as e,g as u,j as d,p as s,q as l}from"./chunk-NALL4A3P.js";var m=class extends l{static{e(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},v={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new s,"ValueConverter")}};function I(c=i){let r=o(a(c),u),n=o(t({shared:r}),d,v);return r.ServiceRegistry.register(n),{shared:r,Info:n}}e(I,"createInfoServices");export{v as a,I as b}; diff --git a/src/google/adk/cli/browser/chunk-3YZ77ADE.js b/src/google/adk/cli/browser/chunk-3YZ77ADE.js index 08b10f4c24..40d8da3021 100644 --- a/src/google/adk/cli/browser/chunk-3YZ77ADE.js +++ b/src/google/adk/cli/browser/chunk-3YZ77ADE.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as Ke}from"./chunk-DMWOYWYQ.js";import{a as je}from"./chunk-T3Q3QCCV.js";import"./chunk-NQKWI5EB.js";import"./chunk-WR6HISGZ.js";import"./chunk-I4UDKKN5.js";import"./chunk-2DLZXFEQ.js";import"./chunk-JNY2YWG7.js";import"./chunk-XULIXUQL.js";import{a as Ne}from"./chunk-YVVLWU7S.js";import"./chunk-3NJNOY56.js";import"./chunk-NALL4A3P.js";import{a as ke}from"./chunk-TPDTRWWV.js";import{b as Qe,c as Je,d as ce,f as ge}from"./chunk-WXI2IBAH.js";import{l as Ze,p as qe}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{A as Ge,G as Ue,O as Ye,R as Xe,S as He,T as We,U as Ve,V as ze,W as Be,X as $e,Y as fe,r as Pe}from"./chunk-QFMJV7VH.js";import{a as be,g as ct,i as Te}from"./chunk-JRNAXTJ7.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import{a as ee,b as le,e as me,h as pr,j as Zt}from"./chunk-RMXJBC7V.js";var Ce=me((ne,Le)=>{"use strict";(function(w,N){typeof ne=="object"&&typeof Le=="object"?Le.exports=N():typeof define=="function"&&define.amd?define([],N):typeof ne=="object"?ne.layoutBase=N():w.layoutBase=N()})(ne,function(){return(function(E){var w={};function N(u){if(w[u])return w[u].exports;var o=w[u]={i:u,l:!1,exports:{}};return E[u].call(o.exports,o,o.exports,N),o.l=!0,o.exports}return N.m=E,N.c=w,N.i=function(u){return u},N.d=function(u,o,a){N.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:a})},N.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return N.d(o,"a",o),o},N.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},N.p="",N(N.s=28)})([(function(E,w,N){"use strict";function u(){}u.QUALITY=1,u.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,u.DEFAULT_INCREMENTAL=!1,u.DEFAULT_ANIMATION_ON_LAYOUT=!0,u.DEFAULT_ANIMATION_DURING_LAYOUT=!1,u.DEFAULT_ANIMATION_PERIOD=50,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,u.DEFAULT_GRAPH_MARGIN=15,u.NODE_DIMENSIONS_INCLUDE_LABELS=!1,u.SIMPLE_NODE_SIZE=40,u.SIMPLE_NODE_HALF_SIZE=u.SIMPLE_NODE_SIZE/2,u.EMPTY_COMPOUND_NODE_SIZE=40,u.MIN_EDGE_LENGTH=1,u.WORLD_BOUNDARY=1e6,u.INITIAL_WORLD_BOUNDARY=u.WORLD_BOUNDARY/1e3,u.WORLD_CENTER_X=1200,u.WORLD_CENTER_Y=900,E.exports=u}),(function(E,w,N){"use strict";var u=N(2),o=N(8),a=N(9);function e(c,t,g){u.call(this,g),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=g,this.bendpoints=[],this.source=c,this.target=t}e.prototype=Object.create(u.prototype);for(var n in u)e[n]=u[n];e.prototype.getSource=function(){return this.source},e.prototype.getTarget=function(){return this.target},e.prototype.isInterGraph=function(){return this.isInterGraph},e.prototype.getLength=function(){return this.length},e.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},e.prototype.getBendpoints=function(){return this.bendpoints},e.prototype.getLca=function(){return this.lca},e.prototype.getSourceInLca=function(){return this.sourceInLca},e.prototype.getTargetInLca=function(){return this.targetInLca},e.prototype.getOtherEnd=function(c){if(this.source===c)return this.target;if(this.target===c)return this.source;throw"Node is not incident with this edge"},e.prototype.getOtherEndInGraph=function(c,t){for(var g=this.getOtherEnd(c),i=t.getGraphManager().getRoot();;){if(g.getOwner()==t)return g;if(g.getOwner()==i)break;g=g.getOwner().getParent()}return null},e.prototype.updateLength=function(){var c=new Array(4);this.isOverlapingSourceAndTarget=o.getIntersection(this.target.getRect(),this.source.getRect(),c),this.isOverlapingSourceAndTarget||(this.lengthX=c[0]-c[2],this.lengthY=c[1]-c[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},e.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},E.exports=e}),(function(E,w,N){"use strict";function u(o){this.vGraphObject=o}E.exports=u}),(function(E,w,N){"use strict";var u=N(2),o=N(10),a=N(13),e=N(0),n=N(16),c=N(5);function t(i,r,h,f){h==null&&f==null&&(f=r),u.call(this,f),i.graphManager!=null&&(i=i.graphManager),this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=f,this.edges=[],this.graphManager=i,h!=null&&r!=null?this.rect=new a(r.x,r.y,h.width,h.height):this.rect=new a}t.prototype=Object.create(u.prototype);for(var g in u)t[g]=u[g];t.prototype.getEdges=function(){return this.edges},t.prototype.getChild=function(){return this.child},t.prototype.getOwner=function(){return this.owner},t.prototype.getWidth=function(){return this.rect.width},t.prototype.setWidth=function(i){this.rect.width=i},t.prototype.getHeight=function(){return this.rect.height},t.prototype.setHeight=function(i){this.rect.height=i},t.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},t.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},t.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},t.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},t.prototype.getRect=function(){return this.rect},t.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},t.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},t.prototype.setRect=function(i,r){this.rect.x=i.x,this.rect.y=i.y,this.rect.width=r.width,this.rect.height=r.height},t.prototype.setCenter=function(i,r){this.rect.x=i-this.rect.width/2,this.rect.y=r-this.rect.height/2},t.prototype.setLocation=function(i,r){this.rect.x=i,this.rect.y=r},t.prototype.moveBy=function(i,r){this.rect.x+=i,this.rect.y+=r},t.prototype.getEdgeListToNode=function(i){var r=[],h,f=this;return f.edges.forEach(function(l){if(l.target==i){if(l.source!=f)throw"Incorrect edge source!";r.push(l)}}),r},t.prototype.getEdgesBetween=function(i){var r=[],h,f=this;return f.edges.forEach(function(l){if(!(l.source==f||l.target==f))throw"Incorrect edge source and/or target";(l.target==i||l.source==i)&&r.push(l)}),r},t.prototype.getNeighborsList=function(){var i=new Set,r=this;return r.edges.forEach(function(h){if(h.source==r)i.add(h.target);else{if(h.target!=r)throw"Incorrect incidency!";i.add(h.source)}}),i},t.prototype.withChildren=function(){var i=new Set,r,h;if(i.add(this),this.child!=null)for(var f=this.child.getNodes(),l=0;lr?(this.rect.x-=(this.labelWidth-r)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(r+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(h+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>h?(this.rect.y-=(this.labelHeight-h)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(h+this.labelHeight))}}},t.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},t.prototype.transform=function(i){var r=this.rect.x;r>e.WORLD_BOUNDARY?r=e.WORLD_BOUNDARY:r<-e.WORLD_BOUNDARY&&(r=-e.WORLD_BOUNDARY);var h=this.rect.y;h>e.WORLD_BOUNDARY?h=e.WORLD_BOUNDARY:h<-e.WORLD_BOUNDARY&&(h=-e.WORLD_BOUNDARY);var f=new c(r,h),l=i.inverseTransformPoint(f);this.setLocation(l.x,l.y)},t.prototype.getLeft=function(){return this.rect.x},t.prototype.getRight=function(){return this.rect.x+this.rect.width},t.prototype.getTop=function(){return this.rect.y},t.prototype.getBottom=function(){return this.rect.y+this.rect.height},t.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},E.exports=t}),(function(E,w,N){"use strict";var u=N(0);function o(){}for(var a in u)o[a]=u[a];o.MAX_ITERATIONS=2500,o.DEFAULT_EDGE_LENGTH=50,o.DEFAULT_SPRING_STRENGTH=.45,o.DEFAULT_REPULSION_STRENGTH=4500,o.DEFAULT_GRAVITY_STRENGTH=.4,o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,o.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,o.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,o.COOLING_ADAPTATION_FACTOR=.33,o.ADAPTATION_LOWER_NODE_LIMIT=1e3,o.ADAPTATION_UPPER_NODE_LIMIT=5e3,o.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,o.MAX_NODE_DISPLACEMENT=o.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,o.MIN_REPULSION_DIST=o.DEFAULT_EDGE_LENGTH/10,o.CONVERGENCE_CHECK_PERIOD=100,o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,o.MIN_EDGE_LENGTH=1,o.GRID_CALCULATION_CHECK_PERIOD=10,E.exports=o}),(function(E,w,N){"use strict";function u(o,a){o==null&&a==null?(this.x=0,this.y=0):(this.x=o,this.y=a)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(o){this.x=o},u.prototype.setY=function(o){this.y=o},u.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},E.exports=u}),(function(E,w,N){"use strict";var u=N(2),o=N(10),a=N(0),e=N(7),n=N(3),c=N(1),t=N(13),g=N(12),i=N(11);function r(f,l,L){u.call(this,L),this.estimatedSize=o.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=f,l!=null&&l instanceof e?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}r.prototype=Object.create(u.prototype);for(var h in u)r[h]=u[h];r.prototype.getNodes=function(){return this.nodes},r.prototype.getEdges=function(){return this.edges},r.prototype.getGraphManager=function(){return this.graphManager},r.prototype.getParent=function(){return this.parent},r.prototype.getLeft=function(){return this.left},r.prototype.getRight=function(){return this.right},r.prototype.getTop=function(){return this.top},r.prototype.getBottom=function(){return this.bottom},r.prototype.isConnected=function(){return this.isConnected},r.prototype.add=function(f,l,L){if(l==null&&L==null){var y=f;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(y)>-1)throw"Node already in graph!";return y.owner=this,this.getNodes().push(y),y}else{var p=f;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(L)>-1))throw"Source or target not in graph!";if(!(l.owner==L.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=L.owner?null:(p.source=l,p.target=L,p.isInterGraph=!1,this.getEdges().push(p),l.edges.push(p),L!=l&&L.edges.push(p),p)}},r.prototype.remove=function(f){var l=f;if(f instanceof n){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var L=l.edges.slice(),y,p=L.length,C=0;C-1&&S>-1))throw"Source and/or target doesn't know this edge!";y.source.edges.splice(A,1),y.target!=y.source&&y.target.edges.splice(S,1);var R=y.source.owner.getEdges().indexOf(y);if(R==-1)throw"Not in owner's edge list!";y.source.owner.getEdges().splice(R,1)}},r.prototype.updateLeftTop=function(){for(var f=o.MAX_VALUE,l=o.MAX_VALUE,L,y,p,C=this.getNodes(),R=C.length,A=0;AL&&(f=L),l>y&&(l=y)}return f==o.MAX_VALUE?null:(C[0].getParent().paddingLeft!=null?p=C[0].getParent().paddingLeft:p=this.margin,this.left=l-p,this.top=f-p,new g(this.left,this.top))},r.prototype.updateBounds=function(f){for(var l=o.MAX_VALUE,L=-o.MAX_VALUE,y=o.MAX_VALUE,p=-o.MAX_VALUE,C,R,A,S,B,Y=this.nodes,tt=Y.length,x=0;xC&&(l=C),LA&&(y=A),pC&&(l=C),LA&&(y=A),p=this.nodes.length){var tt=0;L.forEach(function(x){x.owner==f&&tt++}),tt==this.nodes.length&&(this.isConnected=!0)}},E.exports=r}),(function(E,w,N){"use strict";var u,o=N(1);function a(e){u=N(6),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),n=this.layout.newNode(null),c=this.add(e,n);return this.setRootGraph(c),this.rootGraph},a.prototype.add=function(e,n,c,t,g){if(c==null&&t==null&&g==null){if(e==null)throw"Graph is null!";if(n==null)throw"Parent node is null!";if(this.graphs.indexOf(e)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(e),e.parent!=null)throw"Already has a parent!";if(n.child!=null)throw"Already has a child!";return e.parent=n,n.child=e,e}else{g=c,t=n,c=e;var i=t.getOwner(),r=g.getOwner();if(!(i!=null&&i.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(r!=null&&r.getGraphManager()==this))throw"Target not in this graph mgr!";if(i==r)return c.isInterGraph=!1,i.add(c,t,g);if(c.isInterGraph=!0,c.source=t,c.target=g,this.edges.indexOf(c)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(c),!(c.source!=null&&c.target!=null))throw"Edge source and/or target is null!";if(!(c.source.edges.indexOf(c)==-1&&c.target.edges.indexOf(c)==-1))throw"Edge already in source and/or target incidency list!";return c.source.edges.push(c),c.target.edges.push(c),c}},a.prototype.remove=function(e){if(e instanceof u){var n=e;if(n.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(n==this.rootGraph||n.parent!=null&&n.parent.graphManager==this))throw"Invalid parent node!";var c=[];c=c.concat(n.getEdges());for(var t,g=c.length,i=0;i=e.getRight()?n[0]+=Math.min(e.getX()-a.getX(),a.getRight()-e.getRight()):e.getX()<=a.getX()&&e.getRight()>=a.getRight()&&(n[0]+=Math.min(a.getX()-e.getX(),e.getRight()-a.getRight())),a.getY()<=e.getY()&&a.getBottom()>=e.getBottom()?n[1]+=Math.min(e.getY()-a.getY(),a.getBottom()-e.getBottom()):e.getY()<=a.getY()&&e.getBottom()>=a.getBottom()&&(n[1]+=Math.min(a.getY()-e.getY(),e.getBottom()-a.getBottom()));var g=Math.abs((e.getCenterY()-a.getCenterY())/(e.getCenterX()-a.getCenterX()));e.getCenterY()===a.getCenterY()&&e.getCenterX()===a.getCenterX()&&(g=1);var i=g*n[0],r=n[1]/g;n[0]i)return n[0]=c,n[1]=h,n[2]=g,n[3]=Y,!1;if(tg)return n[0]=r,n[1]=t,n[2]=S,n[3]=i,!1;if(cg?(n[0]=l,n[1]=L,s=!0):(n[0]=f,n[1]=h,s=!0):v===d&&(c>g?(n[0]=r,n[1]=h,s=!0):(n[0]=y,n[1]=L,s=!0)),-T===d?g>c?(n[2]=B,n[3]=Y,m=!0):(n[2]=S,n[3]=A,m=!0):T===d&&(g>c?(n[2]=R,n[3]=A,m=!0):(n[2]=tt,n[3]=Y,m=!0)),s&&m)return!1;if(c>g?t>i?(D=this.getCardinalDirection(v,d,4),O=this.getCardinalDirection(T,d,2)):(D=this.getCardinalDirection(-v,d,3),O=this.getCardinalDirection(-T,d,1)):t>i?(D=this.getCardinalDirection(-v,d,1),O=this.getCardinalDirection(-T,d,3)):(D=this.getCardinalDirection(v,d,2),O=this.getCardinalDirection(T,d,4)),!s)switch(D){case 1:F=h,P=c+-C/d,n[0]=P,n[1]=F;break;case 2:P=y,F=t+p*d,n[0]=P,n[1]=F;break;case 3:F=L,P=c+C/d,n[0]=P,n[1]=F;break;case 4:P=l,F=t+-p*d,n[0]=P,n[1]=F;break}if(!m)switch(O){case 1:k=A,I=g+-Z/d,n[2]=I,n[3]=k;break;case 2:I=tt,k=i+x*d,n[2]=I,n[3]=k;break;case 3:k=Y,I=g+Z/d,n[2]=I,n[3]=k;break;case 4:I=B,k=i+-x*d,n[2]=I,n[3]=k;break}}return!1},o.getCardinalDirection=function(a,e,n){return a>e?n:1+n%4},o.getIntersection=function(a,e,n,c){if(c==null)return this.getIntersection2(a,e,n);var t=a.x,g=a.y,i=e.x,r=e.y,h=n.x,f=n.y,l=c.x,L=c.y,y=void 0,p=void 0,C=void 0,R=void 0,A=void 0,S=void 0,B=void 0,Y=void 0,tt=void 0;return C=r-g,A=t-i,B=i*g-t*r,R=L-f,S=h-l,Y=l*f-h*L,tt=C*S-R*A,tt===0?null:(y=(A*Y-S*B)/tt,p=(R*B-C*Y)/tt,new u(y,p))},o.angleOfVector=function(a,e,n,c){var t=void 0;return a!==n?(t=Math.atan((c-e)/(n-a)),n=0){var L=(-h+Math.sqrt(h*h-4*r*f))/(2*r),y=(-h-Math.sqrt(h*h-4*r*f))/(2*r),p=null;return L>=0&&L<=1?[L]:y>=0&&y<=1?[y]:p}else return null},o.HALF_PI=.5*Math.PI,o.ONE_AND_HALF_PI=1.5*Math.PI,o.TWO_PI=2*Math.PI,o.THREE_PI=3*Math.PI,E.exports=o}),(function(E,w,N){"use strict";function u(){}u.sign=function(o){return o>0?1:o<0?-1:0},u.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},u.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},E.exports=u}),(function(E,w,N){"use strict";function u(){}u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,E.exports=u}),(function(E,w,N){"use strict";var u=(function(){function t(g,i){for(var r=0;r"u"?"undefined":u(a);return a==null||e!="object"&&e!="function"},E.exports=o}),(function(E,w,N){"use strict";function u(h){if(Array.isArray(h)){for(var f=0,l=Array(h.length);f0&&f;){for(C.push(A[0]);C.length>0&&f;){var S=C[0];C.splice(0,1),p.add(S);for(var B=S.getEdges(),y=0;y-1&&A.splice(Z,1)}p=new Set,R=new Map}}return h},r.prototype.createDummyNodesForBendpoints=function(h){for(var f=[],l=h.source,L=this.graphManager.calcLowestCommonAncestor(h.source,h.target),y=0;y0){for(var L=this.edgeToDummyNodes.get(l),y=0;y=0&&f.splice(Y,1);var tt=R.getNeighborsList();tt.forEach(function(s){if(l.indexOf(s)<0){var m=L.get(s),v=m-1;v==1&&S.push(s),L.set(s,v)}})}l=l.concat(S),(f.length==1||f.length==2)&&(y=!0,p=f[0])}return p},r.prototype.setGraphManager=function(h){this.graphManager=h},E.exports=r}),(function(E,w,N){"use strict";function u(){}u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},E.exports=u}),(function(E,w,N){"use strict";var u=N(5);function o(a,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(a){this.lworldExtX=a},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(a){this.lworldExtY=a},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},o.prototype.transformX=function(a){var e=0,n=this.lworldExtX;return n!=0&&(e=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/n),e},o.prototype.transformY=function(a){var e=0,n=this.lworldExtY;return n!=0&&(e=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/n),e},o.prototype.inverseTransformX=function(a){var e=0,n=this.ldeviceExtX;return n!=0&&(e=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/n),e},o.prototype.inverseTransformY=function(a){var e=0,n=this.ldeviceExtY;return n!=0&&(e=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/n),e},o.prototype.inverseTransformPoint=function(a){var e=new u(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return e},E.exports=o}),(function(E,w,N){"use strict";function u(i){if(Array.isArray(i)){for(var r=0,h=Array(i.length);ra.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(i-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(i>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(i-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},t.prototype.calcSpringForces=function(){for(var i=this.getAllEdges(),r,h=0;h0&&arguments[0]!==void 0?arguments[0]:!0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h,f,l,L,y=this.getAllNodes(),p;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&i&&this.updateGrid(),p=new Set,h=0;hC||p>C)&&(i.gravitationForceX=-this.gravityConstant*l,i.gravitationForceY=-this.gravityConstant*L)):(C=r.getEstimatedSize()*this.compoundGravityRangeFactor,(y>C||p>C)&&(i.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,i.gravitationForceY=-this.gravityConstant*L*this.compoundGravityConstant))},t.prototype.isConverged=function(){var i,r=!1;return this.totalIterations>this.maxIterations/3&&(r=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),i=this.totalDisplacement=y.length||C>=y[0].length)){for(var R=0;Rt}}]),n})();E.exports=e}),(function(E,w,N){"use strict";function u(){}u.svd=function(o){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=o.length,this.n=o[0].length;var a=Math.min(this.m,this.n);this.s=(function(Dt){for(var Nt=[];Dt-- >0;)Nt.push(0);return Nt})(Math.min(this.m+1,this.n)),this.U=(function(Dt){var Nt=function $t(Rt){if(Rt.length==0)return 0;for(var Xt=[],zt=0;zt0;)Nt.push(0);return Nt})(this.n),n=(function(Dt){for(var Nt=[];Dt-- >0;)Nt.push(0);return Nt})(this.m),c=!0,t=!0,g=Math.min(this.m-1,this.n),i=Math.max(0,Math.min(this.n-2,this.m)),r=0;r=0;d--)if(this.s[d]!==0){for(var D=d+1;D=0;b--){if((function(Dt,Nt){return Dt&&Nt})(b0;){var Q=void 0,Ut=void 0;for(Q=m-2;Q>=-1&&Q!==-1;Q--)if(Math.abs(e[Q])<=St+Lt*(Math.abs(this.s[Q])+Math.abs(this.s[Q+1]))){e[Q]=0;break}if(Q===m-2)Ut=4;else{var Mt=void 0;for(Mt=m-1;Mt>=Q&&Mt!==Q;Mt--){var at=(Mt!==m?Math.abs(e[Mt]):0)+(Mt!==Q+1?Math.abs(e[Mt-1]):0);if(Math.abs(this.s[Mt])<=St+Lt*at){this.s[Mt]=0;break}}Mt===Q?Ut=3:Mt===m-1?Ut=1:(Ut=2,Q=Mt)}switch(Q++,Ut){case 1:{var et=e[m-2];e[m-2]=0;for(var pt=m-2;pt>=Q;pt--){var Et=u.hypot(this.s[pt],et),Ct=this.s[pt]/Et,mt=et/Et;if(this.s[pt]=Et,pt!==Q&&(et=-mt*e[pt-1],e[pt-1]=Ct*e[pt-1]),t)for(var Tt=0;Tt=this.s[Q+1]);){var lt=this.s[Q];if(this.s[Q]=this.s[Q+1],this.s[Q+1]=lt,t&&QMath.abs(a)?(e=a/o,e=Math.abs(o)*Math.sqrt(1+e*e)):a!=0?(e=o/a,e=Math.abs(a)*Math.sqrt(1+e*e)):e=0,e},E.exports=u}),(function(E,w,N){"use strict";var u=(function(){function e(n,c){for(var t=0;t2&&arguments[2]!==void 0?arguments[2]:1,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,e),this.sequence1=n,this.sequence2=c,this.match_score=t,this.mismatch_penalty=g,this.gap_penalty=i,this.iMax=n.length+1,this.jMax=c.length+1,this.grid=new Array(this.iMax);for(var r=0;r=0;n--){var c=this.listeners[n];c.event===a&&c.callback===e&&this.listeners.splice(n,1)}},o.emit=function(a,e){for(var n=0;n{"use strict";(function(w,N){typeof ae=="object"&&typeof Ae=="object"?Ae.exports=N(Ce()):typeof define=="function"&&define.amd?define(["layout-base"],N):typeof ae=="object"?ae.coseBase=N(Ce()):w.coseBase=N(w.layoutBase)})(ae,function(E){return(()=>{"use strict";var w={45:((a,e,n)=>{var c={};c.layoutBase=n(551),c.CoSEConstants=n(806),c.CoSEEdge=n(767),c.CoSEGraph=n(880),c.CoSEGraphManager=n(578),c.CoSELayout=n(765),c.CoSENode=n(991),c.ConstraintHandler=n(902),a.exports=c}),806:((a,e,n)=>{var c=n(551).FDLayoutConstants;function t(){}for(var g in c)t[g]=c[g];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,t.ENFORCE_CONSTRAINTS=!0,t.APPLY_LAYOUT=!0,t.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,t.TREE_REDUCTION_ON_INCREMENTAL=!0,t.PURE_INCREMENTAL=t.DEFAULT_INCREMENTAL,a.exports=t}),767:((a,e,n)=>{var c=n(551).FDLayoutEdge;function t(i,r,h){c.call(this,i,r,h)}t.prototype=Object.create(c.prototype);for(var g in c)t[g]=c[g];a.exports=t}),880:((a,e,n)=>{var c=n(551).LGraph;function t(i,r,h){c.call(this,i,r,h)}t.prototype=Object.create(c.prototype);for(var g in c)t[g]=c[g];a.exports=t}),578:((a,e,n)=>{var c=n(551).LGraphManager;function t(i){c.call(this,i)}t.prototype=Object.create(c.prototype);for(var g in c)t[g]=c[g];a.exports=t}),765:((a,e,n)=>{var c=n(551).FDLayout,t=n(578),g=n(880),i=n(991),r=n(767),h=n(806),f=n(902),l=n(551).FDLayoutConstants,L=n(551).LayoutConstants,y=n(551).Point,p=n(551).PointD,C=n(551).DimensionD,R=n(551).Layout,A=n(551).Integer,S=n(551).IGeometry,B=n(551).LGraph,Y=n(551).Transform,tt=n(551).LinkedList;function x(){c.call(this),this.toBeTiled={},this.constraints={}}x.prototype=Object.create(c.prototype);for(var Z in c)x[Z]=c[Z];x.prototype.newGraphManager=function(){var s=new t(this);return this.graphManager=s,s},x.prototype.newGraph=function(s){return new g(null,this.graphManager,s)},x.prototype.newNode=function(s){return new i(this.graphManager,s)},x.prototype.newEdge=function(s){return new r(null,null,s)},x.prototype.initParameters=function(){c.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},x.prototype.initSpringEmbedder=function(){c.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},x.prototype.layout=function(){var s=L.DEFAULT_CREATE_BENDS_AS_NEEDED;return s&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},x.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(h.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(D){return m.has(D)});this.graphManager.setAllNodesToApplyGravitation(v)}}else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(T){return m.has(T)});this.graphManager.setAllNodesToApplyGravitation(v),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(f.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),h.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},x.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(d){return s.has(d)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),h.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),h.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var v=!this.isTreeGrowing&&!this.isGrowthFinished,T=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(v,T),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},x.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),m={},v=0;v0&&this.updateDisplacements();for(var v=0;v0&&(T.fixedNodeWeight=D)}}if(this.constraints.relativePlacementConstraint){var O=new Map,P=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(M){s.fixedNodesOnHorizontal.add(M),s.fixedNodesOnVertical.add(M)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var F=this.constraints.alignmentConstraint.vertical,v=0;v=2*M.length/3;J--)U=Math.floor(Math.random()*(J+1)),X=M[J],M[J]=M[U],M[U]=X;return M},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(M){if(M.left){var U=O.has(M.left)?O.get(M.left):M.left,X=O.has(M.right)?O.get(M.right):M.right;s.nodesInRelativeHorizontal.includes(U)||(s.nodesInRelativeHorizontal.push(U),s.nodeToRelativeConstraintMapHorizontal.set(U,[]),s.dummyToNodeForVerticalAlignment.has(U)?s.nodeToTempPositionMapHorizontal.set(U,s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(U)[0]).getCenterX()):s.nodeToTempPositionMapHorizontal.set(U,s.idToNodeMap.get(U).getCenterX())),s.nodesInRelativeHorizontal.includes(X)||(s.nodesInRelativeHorizontal.push(X),s.nodeToRelativeConstraintMapHorizontal.set(X,[]),s.dummyToNodeForVerticalAlignment.has(X)?s.nodeToTempPositionMapHorizontal.set(X,s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(X)[0]).getCenterX()):s.nodeToTempPositionMapHorizontal.set(X,s.idToNodeMap.get(X).getCenterX())),s.nodeToRelativeConstraintMapHorizontal.get(U).push({right:X,gap:M.gap}),s.nodeToRelativeConstraintMapHorizontal.get(X).push({left:U,gap:M.gap})}else{var J=P.has(M.top)?P.get(M.top):M.top,st=P.has(M.bottom)?P.get(M.bottom):M.bottom;s.nodesInRelativeVertical.includes(J)||(s.nodesInRelativeVertical.push(J),s.nodeToRelativeConstraintMapVertical.set(J,[]),s.dummyToNodeForHorizontalAlignment.has(J)?s.nodeToTempPositionMapVertical.set(J,s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(J)[0]).getCenterY()):s.nodeToTempPositionMapVertical.set(J,s.idToNodeMap.get(J).getCenterY())),s.nodesInRelativeVertical.includes(st)||(s.nodesInRelativeVertical.push(st),s.nodeToRelativeConstraintMapVertical.set(st,[]),s.dummyToNodeForHorizontalAlignment.has(st)?s.nodeToTempPositionMapVertical.set(st,s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(st)[0]).getCenterY()):s.nodeToTempPositionMapVertical.set(st,s.idToNodeMap.get(st).getCenterY())),s.nodeToRelativeConstraintMapVertical.get(J).push({bottom:st,gap:M.gap}),s.nodeToRelativeConstraintMapVertical.get(st).push({top:J,gap:M.gap})}});else{var k=new Map,_=new Map;this.constraints.relativePlacementConstraint.forEach(function(M){if(M.left){var U=O.has(M.left)?O.get(M.left):M.left,X=O.has(M.right)?O.get(M.right):M.right;k.has(U)?k.get(U).push(X):k.set(U,[X]),k.has(X)?k.get(X).push(U):k.set(X,[U])}else{var J=P.has(M.top)?P.get(M.top):M.top,st=P.has(M.bottom)?P.get(M.bottom):M.bottom;_.has(J)?_.get(J).push(st):_.set(J,[st]),_.has(st)?_.get(st).push(J):_.set(st,[J])}});var b=function(U,X){var J=[],st=[],Lt=new tt,St=new Set,Q=0;return U.forEach(function(Ut,Mt){if(!St.has(Mt)){J[Q]=[],st[Q]=!1;var at=Mt;for(Lt.push(at),St.add(at),J[Q].push(at);Lt.length!=0;){at=Lt.shift(),X.has(at)&&(st[Q]=!0);var et=U.get(at);et.forEach(function(pt){St.has(pt)||(Lt.push(pt),St.add(pt),J[Q].push(pt))})}Q++}}),{components:J,isFixed:st}},j=b(k,s.fixedNodesOnHorizontal);this.componentsOnHorizontal=j.components,this.fixedComponentsOnHorizontal=j.isFixed;var V=b(_,s.fixedNodesOnVertical);this.componentsOnVertical=V.components,this.fixedComponentsOnVertical=V.isFixed}}},x.prototype.updateDisplacements=function(){var s=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(V){var M=s.idToNodeMap.get(V.nodeId);M.displacementX=0,M.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,v=0;v1){var P;for(P=0;PT&&(T=Math.floor(O.y)),D=Math.floor(O.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(L.WORLD_CENTER_X-O.x/2,L.WORLD_CENTER_Y-O.y/2))},x.radialLayout=function(s,m,v){var T=Math.max(this.maxDiagonalInTree(s),h.DEFAULT_RADIAL_SEPARATION);x.branchRadialLayout(m,null,0,359,0,T);var d=B.calculateBounds(s),D=new Y;D.setDeviceOrgX(d.getMinX()),D.setDeviceOrgY(d.getMinY()),D.setWorldOrgX(v.x),D.setWorldOrgY(v.y);for(var O=0;O1;){var J=X[0];X.splice(0,1);var st=b.indexOf(J);st>=0&&b.splice(st,1),M--,j--}m!=null?U=(b.indexOf(X[0])+1)%M:U=0;for(var Lt=Math.abs(T-v)/j,St=U;V!=j;St=++St%M){var Q=b[St].getOtherEnd(s);if(Q!=m){var Ut=(v+V*Lt)%360,Mt=(Ut+Lt)%360;x.branchRadialLayout(Q,s,Ut,Mt,d+D,D),V++}}},x.maxDiagonalInTree=function(s){for(var m=A.MIN_VALUE,v=0;vm&&(m=d)}return m},x.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},x.prototype.groupZeroDegreeMembers=function(){var s=this,m={};this.memberGroups={},this.idToDummyNode={};for(var v=[],T=this.graphManager.getAllNodes(),d=0;d"u"&&(m[P]=[]),m[P]=m[P].concat(D)}Object.keys(m).forEach(function(F){if(m[F].length>1){var I="DummyCompound_"+F;s.memberGroups[I]=m[F];var k=m[F][0].getParent(),_=new i(s.graphManager);_.id=I,_.paddingLeft=k.paddingLeft||0,_.paddingRight=k.paddingRight||0,_.paddingBottom=k.paddingBottom||0,_.paddingTop=k.paddingTop||0,s.idToDummyNode[I]=_;var b=s.getGraphManager().add(s.newGraph(),_),j=k.getChild();j.add(_);for(var V=0;Vd?(T.rect.x-=(T.labelWidth-d)/2,T.setWidth(T.labelWidth),T.labelMarginLeft=(T.labelWidth-d)/2):T.labelPosHorizontal=="right"&&T.setWidth(d+T.labelWidth)),T.labelHeight&&(T.labelPosVertical=="top"?(T.rect.y-=T.labelHeight,T.setHeight(D+T.labelHeight),T.labelMarginTop=T.labelHeight):T.labelPosVertical=="center"&&T.labelHeight>D?(T.rect.y-=(T.labelHeight-D)/2,T.setHeight(T.labelHeight),T.labelMarginTop=(T.labelHeight-D)/2):T.labelPosVertical=="bottom"&&T.setHeight(D+T.labelHeight))}})},x.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var m=this.compoundOrder[s],v=m.id,T=m.paddingLeft,d=m.paddingTop,D=m.labelMarginLeft,O=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[v],m.rect.x,m.rect.y,T,d,D,O)}},x.prototype.repopulateZeroDegreeMembers=function(){var s=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(v){var T=s.idToDummyNode[v],d=T.paddingLeft,D=T.paddingTop,O=T.labelMarginLeft,P=T.labelMarginTop;s.adjustLocations(m[v],T.rect.x,T.rect.y,d,D,O,P)})},x.prototype.getToBeTiled=function(s){var m=s.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var v=s.getChild();if(v==null)return this.toBeTiled[m]=!1,!1;for(var T=v.getNodes(),d=0;d0)return this.toBeTiled[m]=!1,!1;if(D.getChild()==null){this.toBeTiled[D.id]=!1;continue}if(!this.getToBeTiled(D))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},x.prototype.getNodeDegree=function(s){for(var m=s.id,v=s.getEdges(),T=0,d=0;dk&&(k=b.rect.height)}v+=k+s.verticalPadding}},x.prototype.tileCompoundMembers=function(s,m){var v=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(T){var d=m[T];if(v.tiledMemberPack[T]=v.tileNodes(s[T],d.paddingLeft+d.paddingRight),d.rect.width=v.tiledMemberPack[T].width,d.rect.height=v.tiledMemberPack[T].height,d.setCenter(v.tiledMemberPack[T].centerX,v.tiledMemberPack[T].centerY),d.labelMarginLeft=0,d.labelMarginTop=0,h.NODE_DIMENSIONS_INCLUDE_LABELS){var D=d.rect.width,O=d.rect.height;d.labelWidth&&(d.labelPosHorizontal=="left"?(d.rect.x-=d.labelWidth,d.setWidth(D+d.labelWidth),d.labelMarginLeft=d.labelWidth):d.labelPosHorizontal=="center"&&d.labelWidth>D?(d.rect.x-=(d.labelWidth-D)/2,d.setWidth(d.labelWidth),d.labelMarginLeft=(d.labelWidth-D)/2):d.labelPosHorizontal=="right"&&d.setWidth(D+d.labelWidth)),d.labelHeight&&(d.labelPosVertical=="top"?(d.rect.y-=d.labelHeight,d.setHeight(O+d.labelHeight),d.labelMarginTop=d.labelHeight):d.labelPosVertical=="center"&&d.labelHeight>O?(d.rect.y-=(d.labelHeight-O)/2,d.setHeight(d.labelHeight),d.labelMarginTop=(d.labelHeight-O)/2):d.labelPosVertical=="bottom"&&d.setHeight(O+d.labelHeight))}})},x.prototype.tileNodes=function(s,m){var v=this.tileNodesByFavoringDim(s,m,!0),T=this.tileNodesByFavoringDim(s,m,!1),d=this.getOrgRatio(v),D=this.getOrgRatio(T),O;return DP&&(P=V.getWidth())});var F=D/d,I=O/d,k=Math.pow(v-T,2)+4*(F+T)*(I+v)*d,_=(T-v+Math.sqrt(k))/(2*(F+T)),b;m?(b=Math.ceil(_),b==_&&b++):b=Math.floor(_);var j=b*(F+T)-T;return P>j&&(j=P),j+=T*2,j},x.prototype.tileNodesByFavoringDim=function(s,m,v){var T=h.TILING_PADDING_VERTICAL,d=h.TILING_PADDING_HORIZONTAL,D=h.TILING_COMPARE_BY,O={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:T,horizontalPadding:d,centerX:0,centerY:0};D&&(O.idealRowWidth=this.calcIdealRowWidth(s,v));var P=function(M){return M.rect.width*M.rect.height},F=function(M,U){return P(U)-P(M)};s.sort(function(V,M){var U=F;return O.idealRowWidth?(U=D,U(V.id,M.id)):U(V,M)});for(var I=0,k=0,_=0;_0&&(O+=s.horizontalPadding),s.rowWidth[v]=O,s.width0&&(P+=s.verticalPadding);var F=0;P>s.rowHeight[v]&&(F=s.rowHeight[v],s.rowHeight[v]=P,F=s.rowHeight[v]-F),s.height+=F,s.rows[v].push(m)},x.prototype.getShortestRowIndex=function(s){for(var m=-1,v=Number.MAX_VALUE,T=0;Tv&&(m=T,v=s.rowWidth[T]);return m},x.prototype.canAddHorizontal=function(s,m,v){if(s.idealRowWidth){var T=s.rows.length-1,d=s.rowWidth[T];return d+m+s.horizontalPadding<=s.idealRowWidth}var D=this.getShortestRowIndex(s);if(D<0)return!0;var O=s.rowWidth[D];if(O+s.horizontalPadding+m<=s.width)return!0;var P=0;s.rowHeight[D]0&&(P=v+s.verticalPadding-s.rowHeight[D]);var F;s.width-O>=m+s.horizontalPadding?F=(s.height+P)/(O+m+s.horizontalPadding):F=(s.height+P)/s.width,P=v+s.verticalPadding;var I;return s.widthD&&m!=v){T.splice(-1,1),s.rows[v].push(d),s.rowWidth[m]=s.rowWidth[m]-D,s.rowWidth[v]=s.rowWidth[v]+D,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var O=Number.MIN_VALUE,P=0;PO&&(O=T[P].height);m>0&&(O+=s.verticalPadding);var F=s.rowHeight[m]+s.rowHeight[v];s.rowHeight[m]=O,s.rowHeight[v]0)for(var j=d;j<=D;j++)b[0]+=this.grid[j][O-1].length+this.grid[j][O].length-1;if(D0)for(var j=O;j<=P;j++)b[3]+=this.grid[d-1][j].length+this.grid[d][j].length-1;for(var V=A.MAX_VALUE,M,U,X=0;X{var c=n(551).FDLayoutNode,t=n(551).IMath;function g(r,h,f,l){c.call(this,r,h,f,l)}g.prototype=Object.create(c.prototype);for(var i in c)g[i]=c[i];g.prototype.calculateDisplacement=function(){var r=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=r.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=r.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=r.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=r.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>r.coolingFactor*r.maxNodeDisplacement&&(this.displacementX=r.coolingFactor*r.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>r.coolingFactor*r.maxNodeDisplacement&&(this.displacementY=r.coolingFactor*r.maxNodeDisplacement*t.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},g.prototype.propogateDisplacementToChildren=function(r,h){for(var f=this.getChild().getNodes(),l,L=0;L{function c(f){if(Array.isArray(f)){for(var l=0,L=Array(f.length);l0){var dt=0;it.forEach(function(lt){W=="horizontal"?(q.set(lt,y.has(lt)?p[y.get(lt)]:$.get(lt)),dt+=q.get(lt)):(q.set(lt,y.has(lt)?C[y.get(lt)]:$.get(lt)),dt+=q.get(lt))}),dt=dt/it.length,ot.forEach(function(lt){z.has(lt)||q.set(lt,dt)})}else{var nt=0;ot.forEach(function(lt){W=="horizontal"?nt+=y.has(lt)?p[y.get(lt)]:$.get(lt):nt+=y.has(lt)?C[y.get(lt)]:$.get(lt)}),nt=nt/ot.length,ot.forEach(function(lt){q.set(lt,nt)})}});for(var rt=function(){var it=gt.shift(),dt=H.get(it);dt.forEach(function(nt){if(q.get(nt.id)lt&&(lt=Xt),ztFt&&(Ft=zt)}}catch(te){Vt=!0,Dt=te}finally{try{!xt&&Nt.return&&Nt.return()}finally{if(Vt)throw Dt}}var de=(dt+lt)/2-(nt+Ft)/2,Qt=!0,Kt=!1,jt=void 0;try{for(var Jt=ot[Symbol.iterator](),he;!(Qt=(he=Jt.next()).done);Qt=!0){var _t=he.value;q.set(_t,q.get(_t)+de)}}catch(te){Kt=!0,jt=te}finally{try{!Qt&&Jt.return&&Jt.return()}finally{if(Kt)throw jt}}})}return q},Z=function(H){var W=0,z=0,$=0,K=0;if(H.forEach(function(ht){ht.left?p[y.get(ht.left)]-p[y.get(ht.right)]>=0?W++:z++:C[y.get(ht.top)]-C[y.get(ht.bottom)]>=0?$++:K++}),W>z&&$>K)for(var ut=0;utz)for(var ft=0;ftK)for(var q=0;q1)l.fixedNodeConstraint.forEach(function(G,H){T[H]=[G.position.x,G.position.y],d[H]=[p[y.get(G.nodeId)],C[y.get(G.nodeId)]]}),D=!0;else if(l.alignmentConstraint)(function(){var G=0;if(l.alignmentConstraint.vertical){for(var H=l.alignmentConstraint.vertical,W=function(q){var ht=new Set;H[q].forEach(function(vt){ht.add(vt)});var gt=new Set([].concat(c(ht)).filter(function(vt){return P.has(vt)})),rt=void 0;gt.size>0?rt=p[y.get(gt.values().next().value)]:rt=tt(ht).x,H[q].forEach(function(vt){T[G]=[rt,C[y.get(vt)]],d[G]=[p[y.get(vt)],C[y.get(vt)]],G++})},z=0;z0?rt=p[y.get(gt.values().next().value)]:rt=tt(ht).y,$[q].forEach(function(vt){T[G]=[p[y.get(vt)],rt],d[G]=[p[y.get(vt)],C[y.get(vt)]],G++})},ut=0;ut<$.length;ut++)K(ut);D=!0}l.relativePlacementConstraint&&(O=!0)})();else if(l.relativePlacementConstraint){for(var _=0,b=0,j=0;j_&&(_=k[j].length,b=j);if(_0){var Ct={x:0,y:0};l.fixedNodeConstraint.forEach(function(G,H){var W={x:p[y.get(G.nodeId)],y:C[y.get(G.nodeId)]},z=G.position,$=Y(z,W);Ct.x+=$.x,Ct.y+=$.y}),Ct.x/=l.fixedNodeConstraint.length,Ct.y/=l.fixedNodeConstraint.length,p.forEach(function(G,H){p[H]+=Ct.x}),C.forEach(function(G,H){C[H]+=Ct.y}),l.fixedNodeConstraint.forEach(function(G){p[y.get(G.nodeId)]=G.position.x,C[y.get(G.nodeId)]=G.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var mt=l.alignmentConstraint.vertical,Tt=function(H){var W=new Set;mt[H].forEach(function(K){W.add(K)});var z=new Set([].concat(c(W)).filter(function(K){return P.has(K)})),$=void 0;z.size>0?$=p[y.get(z.values().next().value)]:$=tt(W).x,W.forEach(function(K){P.has(K)||(p[y.get(K)]=$)})},Ot=0;Ot0?$=C[y.get(z.values().next().value)]:$=tt(W).y,W.forEach(function(K){P.has(K)||(C[y.get(K)]=$)})},Pt=0;Pt{a.exports=E})},N={};function u(a){var e=N[a];if(e!==void 0)return e.exports;var n=N[a]={exports:{}};return w[a](n,n.exports,u),n.exports}var o=u(45);return o})()})});var _e=me((oe,Me)=>{"use strict";(function(w,N){typeof oe=="object"&&typeof Me=="object"?Me.exports=N(we()):typeof define=="function"&&define.amd?define(["cose-base"],N):typeof oe=="object"?oe.cytoscapeFcose=N(we()):w.cytoscapeFcose=N(w.coseBase)})(oe,function(E){return(()=>{"use strict";var w={658:(a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(e){for(var n=arguments.length,c=Array(n>1?n-1:0),t=1;t{var c=(function(){function i(r,h){var f=[],l=!0,L=!1,y=void 0;try{for(var p=r[Symbol.iterator](),C;!(l=(C=p.next()).done)&&(f.push(C.value),!(h&&f.length===h));l=!0);}catch(R){L=!0,y=R}finally{try{!l&&p.return&&p.return()}finally{if(L)throw y}}return f}return function(r,h){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return i(r,h);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),t=n(140).layoutBase.LinkedList,g={};g.getTopMostNodes=function(i){for(var r={},h=0;h0&&D.merge(I)});for(var O=0;O1){C=y[0],R=C.connectedEdges().length,y.forEach(function(d){d.connectedEdges().length0&&f.set("dummy"+(f.size+1),B),Y},g.relocateComponent=function(i,r,h){if(!h.fixedNodeConstraint){var f=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,L=Number.POSITIVE_INFINITY,y=Number.NEGATIVE_INFINITY;if(h.quality=="draft"){var p=!0,C=!1,R=void 0;try{for(var A=r.nodeIndexes[Symbol.iterator](),S;!(p=(S=A.next()).done);p=!0){var B=S.value,Y=c(B,2),tt=Y[0],x=Y[1],Z=h.cy.getElementById(tt);if(Z){var s=Z.boundingBox(),m=r.xCoords[x]-s.w/2,v=r.xCoords[x]+s.w/2,T=r.yCoords[x]-s.h/2,d=r.yCoords[x]+s.h/2;ml&&(l=v),Ty&&(y=d)}}}catch(I){C=!0,R=I}finally{try{!p&&A.return&&A.return()}finally{if(C)throw R}}var D=i.x-(l+f)/2,O=i.y-(y+L)/2;r.xCoords=r.xCoords.map(function(I){return I+D}),r.yCoords=r.yCoords.map(function(I){return I+O})}else{Object.keys(r).forEach(function(I){var k=r[I],_=k.getRect().x,b=k.getRect().x+k.getRect().width,j=k.getRect().y,V=k.getRect().y+k.getRect().height;_l&&(l=b),jy&&(y=V)});var P=i.x-(l+f)/2,F=i.y-(y+L)/2;Object.keys(r).forEach(function(I){var k=r[I];k.setCenter(k.getCenterX()+P,k.getCenterY()+F)})}}},g.calcBoundingBox=function(i,r,h,f){for(var l=Number.MAX_SAFE_INTEGER,L=Number.MIN_SAFE_INTEGER,y=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER,C=void 0,R=void 0,A=void 0,S=void 0,B=i.descendants().not(":parent"),Y=B.length,tt=0;ttC&&(l=C),LA&&(y=A),p{var c=n(548),t=n(140).CoSELayout,g=n(140).CoSENode,i=n(140).layoutBase.PointD,r=n(140).layoutBase.DimensionD,h=n(140).layoutBase.LayoutConstants,f=n(140).layoutBase.FDLayoutConstants,l=n(140).CoSEConstants,L=function(p,C){var R=p.cy,A=p.eles,S=A.nodes(),B=A.edges(),Y=void 0,tt=void 0,x=void 0,Z={};p.randomize&&(Y=C.nodeIndexes,tt=C.xCoords,x=C.yCoords);var s=function(I){return typeof I=="function"},m=function(I,k){return s(I)?I(k):I},v=c.calcParentsWithoutChildren(R,A),T=function F(I,k,_,b){for(var j=k.length,V=0;V0){var Lt=void 0;Lt=_.getGraphManager().add(_.newGraph(),X),F(Lt,U,_,b)}}},d=function(I,k,_){for(var b=0,j=0,V=0;V<_.length;V++){var M=_[V],U=Z[M.data("source")],X=Z[M.data("target")];if(U&&X&&U!==X&&U.getEdgesBetween(X).length==0){var J=k.add(I.newEdge(),U,X);J.id=M.id(),J.idealLength=m(p.idealEdgeLength,M),J.edgeElasticity=m(p.edgeElasticity,M),b+=J.idealLength,j++}}p.idealEdgeLength!=null&&(j>0?l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=b/j:s(p.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=p.idealEdgeLength,l.MIN_REPULSION_DIST=f.MIN_REPULSION_DIST=f.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH)},D=function(I,k){k.fixedNodeConstraint&&(I.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(I.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(I.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};p.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=f.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=p.nestingFactor),p.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=f.DEFAULT_GRAVITY_STRENGTH=p.gravity),p.numIter!=null&&(l.MAX_ITERATIONS=f.MAX_ITERATIONS=p.numIter),p.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=f.DEFAULT_GRAVITY_RANGE_FACTOR=p.gravityRange),p.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=f.DEFAULT_COMPOUND_GRAVITY_STRENGTH=p.gravityCompound),p.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=p.gravityRangeCompound),p.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=f.DEFAULT_COOLING_FACTOR_INCREMENTAL=p.initialEnergyOnIncremental),p.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=p.tilingCompareBy),p.quality=="proof"?h.QUALITY=2:h.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=f.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=p.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!p.randomize,l.ANIMATE=f.ANIMATE=h.ANIMATE=p.animate,l.TILE=p.tile,l.TILING_PADDING_VERTICAL=typeof p.tilingPaddingVertical=="function"?p.tilingPaddingVertical.call():p.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof p.tilingPaddingHorizontal=="function"?p.tilingPaddingHorizontal.call():p.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!p.randomize,h.DEFAULT_UNIFORM_LEAF_NODE_SIZES=p.uniformNodeDimensions,p.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),p.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),p.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),p.step=="all"&&(p.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),p.fixedNodeConstraint||p.alignmentConstraint||p.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var O=new t,P=O.newGraphManager();return T(P.addRoot(),c.getTopMostNodes(S),O,p),d(O,P,B),D(O,p),O.runLayout(),Z};a.exports={coseLayout:L}}),212:((a,e,n)=>{var c=(function(){function p(C,R){for(var A=0;A0)if(d){var P=i.getTopMostNodes(A.eles.nodes());if(s=i.connectComponents(S,A.eles,P),s.forEach(function(at){var et=at.boundingBox();m.push({x:et.x1+et.w/2,y:et.y1+et.h/2})}),A.randomize&&s.forEach(function(at){A.eles=at,Y.push(h(A))}),A.quality=="default"||A.quality=="proof"){var F=S.collection();if(A.tile){var I=new Map,k=[],_=[],b=0,j={nodeIndexes:I,xCoords:k,yCoords:_},V=[];if(s.forEach(function(at,et){at.edges().length==0&&(at.nodes().forEach(function(pt,Et){F.merge(at.nodes()[Et]),pt.isParent()||(j.nodeIndexes.set(at.nodes()[Et].id(),b++),j.xCoords.push(at.nodes()[0].position().x),j.yCoords.push(at.nodes()[0].position().y))}),V.push(et))}),F.length>1){var M=F.boundingBox();m.push({x:M.x1+M.w/2,y:M.y1+M.h/2}),s.push(F),Y.push(j);for(var U=V.length-1;U>=0;U--)s.splice(V[U],1),Y.splice(V[U],1),m.splice(V[U],1)}}s.forEach(function(at,et){A.eles=at,Z.push(l(A,Y[et])),i.relocateComponent(m[et],Z[et],A)})}else s.forEach(function(at,et){i.relocateComponent(m[et],Y[et],A)});var X=new Set;if(s.length>1){var J=[],st=B.filter(function(at){return at.css("display")=="none"});s.forEach(function(at,et){var pt=void 0;if(A.quality=="draft"&&(pt=Y[et].nodeIndexes),at.nodes().not(st).length>0){var Et={};Et.edges=[],Et.nodes=[];var Ct=void 0;at.nodes().not(st).forEach(function(mt){if(A.quality=="draft")if(!mt.isParent())Ct=pt.get(mt.id()),Et.nodes.push({x:Y[et].xCoords[Ct]-mt.boundingbox().w/2,y:Y[et].yCoords[Ct]-mt.boundingbox().h/2,width:mt.boundingbox().w,height:mt.boundingbox().h});else{var Tt=i.calcBoundingBox(mt,Y[et].xCoords,Y[et].yCoords,pt);Et.nodes.push({x:Tt.topLeftX,y:Tt.topLeftY,width:Tt.width,height:Tt.height})}else Z[et][mt.id()]&&Et.nodes.push({x:Z[et][mt.id()].getLeft(),y:Z[et][mt.id()].getTop(),width:Z[et][mt.id()].getWidth(),height:Z[et][mt.id()].getHeight()})}),at.edges().forEach(function(mt){var Tt=mt.source(),Ot=mt.target();if(Tt.css("display")!="none"&&Ot.css("display")!="none")if(A.quality=="draft"){var It=pt.get(Tt.id()),Wt=pt.get(Ot.id()),Pt=[],Yt=[];if(Tt.isParent()){var bt=i.calcBoundingBox(Tt,Y[et].xCoords,Y[et].yCoords,pt);Pt.push(bt.topLeftX+bt.width/2),Pt.push(bt.topLeftY+bt.height/2)}else Pt.push(Y[et].xCoords[It]),Pt.push(Y[et].yCoords[It]);if(Ot.isParent()){var G=i.calcBoundingBox(Ot,Y[et].xCoords,Y[et].yCoords,pt);Yt.push(G.topLeftX+G.width/2),Yt.push(G.topLeftY+G.height/2)}else Yt.push(Y[et].xCoords[Wt]),Yt.push(Y[et].yCoords[Wt]);Et.edges.push({startX:Pt[0],startY:Pt[1],endX:Yt[0],endY:Yt[1]})}else Z[et][Tt.id()]&&Z[et][Ot.id()]&&Et.edges.push({startX:Z[et][Tt.id()].getCenterX(),startY:Z[et][Tt.id()].getCenterY(),endX:Z[et][Ot.id()].getCenterX(),endY:Z[et][Ot.id()].getCenterY()})}),Et.nodes.length>0&&(J.push(Et),X.add(et))}});var Lt=T.packComponents(J,A.randomize).shifts;if(A.quality=="draft")Y.forEach(function(at,et){var pt=at.xCoords.map(function(Ct){return Ct+Lt[et].dx}),Et=at.yCoords.map(function(Ct){return Ct+Lt[et].dy});at.xCoords=pt,at.yCoords=Et});else{var St=0;X.forEach(function(at){Object.keys(Z[at]).forEach(function(et){var pt=Z[at][et];pt.setCenter(pt.getCenterX()+Lt[St].dx,pt.getCenterY()+Lt[St].dy)}),St++})}}}else{var D=A.eles.boundingBox();if(m.push({x:D.x1+D.w/2,y:D.y1+D.h/2}),A.randomize){var O=h(A);Y.push(O)}A.quality=="default"||A.quality=="proof"?(Z.push(l(A,Y[0])),i.relocateComponent(m[0],Z[0],A)):i.relocateComponent(m[0],Y[0],A)}var Q=function(et,pt){if(A.quality=="default"||A.quality=="proof"){typeof et=="number"&&(et=pt);var Et=void 0,Ct=void 0,mt=et.data("id");return Z.forEach(function(Ot){mt in Ot&&(Et={x:Ot[mt].getRect().getCenterX(),y:Ot[mt].getRect().getCenterY()},Ct=Ot[mt])}),A.nodeDimensionsIncludeLabels&&(Ct.labelWidth&&(Ct.labelPosHorizontal=="left"?Et.x+=Ct.labelWidth/2:Ct.labelPosHorizontal=="right"&&(Et.x-=Ct.labelWidth/2)),Ct.labelHeight&&(Ct.labelPosVertical=="top"?Et.y+=Ct.labelHeight/2:Ct.labelPosVertical=="bottom"&&(Et.y-=Ct.labelHeight/2))),Et==null&&(Et={x:et.position("x"),y:et.position("y")}),{x:Et.x,y:Et.y}}else{var Tt=void 0;return Y.forEach(function(Ot){var It=Ot.nodeIndexes.get(et.id());It!=null&&(Tt={x:Ot.xCoords[It],y:Ot.yCoords[It]})}),Tt==null&&(Tt={x:et.position("x"),y:et.position("y")}),{x:Tt.x,y:Tt.y}}};if(A.quality=="default"||A.quality=="proof"||A.randomize){var Ut=i.calcParentsWithoutChildren(S,B),Mt=B.filter(function(at){return at.css("display")=="none"});A.eles=B.not(Mt),B.nodes().not(":parent").not(Mt).layoutPositions(R,A,Q),Ut.length>0&&Ut.forEach(function(at){at.position(Q(at))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),p})();a.exports=y}),657:((a,e,n)=>{var c=n(548),t=n(140).layoutBase.Matrix,g=n(140).layoutBase.SVD,i=function(h){var f=h.cy,l=h.eles,L=l.nodes(),y=l.nodes(":parent"),p=new Map,C=new Map,R=new Map,A=[],S=[],B=[],Y=[],tt=[],x=[],Z=[],s=[],m=void 0,v=void 0,T=1e8,d=1e-9,D=h.piTol,O=h.samplingType,P=h.nodeSeparation,F=void 0,I=function(){for(var W=0,z=0,$=!1;z=ut;){q=K[ut++];for(var ot=A[q],it=0;itrt&&(rt=tt[nt],vt=nt)}return vt},_=function(W){var z=void 0;if(W){z=Math.floor(Math.random()*v),m=z;for(var K=0;K=1)break;rt=gt}for(var ot=0;ot=1)break;rt=gt}for(var dt=0;dt0&&(z.isParent()?A[W].push(R.get(z.id())):A[W].push(z.id()))})});var Ut=function(W){var z=C.get(W),$=void 0;p.get(W).forEach(function(K){f.getElementById(K).isParent()?$=R.get(K):$=K,A[z].push($),A[C.get($)].push(W)})},Mt=!0,at=!1,et=void 0;try{for(var pt=p.keys()[Symbol.iterator](),Et;!(Mt=(Et=pt.next()).done);Mt=!0){var Ct=Et.value;Ut(Ct)}}catch(H){at=!0,et=H}finally{try{!Mt&&pt.return&&pt.return()}finally{if(at)throw et}}v=C.size;var mt=void 0;if(v>2){F=v{var c=n(212),t=function(i){i&&i("layout","fcose",c)};typeof cytoscape<"u"&&t(cytoscape),a.exports=t}),140:(a=>{a.exports=E})},N={};function u(a){var e=N[a];if(e!==void 0)return e.exports;var n=N[a]={exports:{}};return w[a](n,n.exports,u),n.exports}var o=u(579);return o})()})});var or=pr(_e(),1);var tr={L:"left",R:"right",T:"top",B:"bottom"},er={L:ct(E=>`${E},${E/2} 0,${E} 0,0`,"L"),R:ct(E=>`0,${E/2} ${E},0 ${E},${E}`,"R"),T:ct(E=>`0,0 ${E},0 ${E/2},${E}`,"T"),B:ct(E=>`${E/2},0 ${E},${E} 0,${E}`,"B")},ue={L:ct((E,w)=>E-w+2,"L"),R:ct((E,w)=>E-2,"R"),T:ct((E,w)=>E-w+2,"T"),B:ct((E,w)=>E-2,"B")},yr=ct(function(E){return Ht(E)?E==="L"?"R":"L":E==="T"?"B":"T"},"getOppositeArchitectureDirection"),rr=ct(function(E){let w=E;return w==="L"||w==="R"||w==="T"||w==="B"},"isArchitectureDirection"),Ht=ct(function(E){let w=E;return w==="L"||w==="R"},"isArchitectureDirectionX"),qt=ct(function(E){let w=E;return w==="T"||w==="B"},"isArchitectureDirectionY"),De=ct(function(E,w){let N=Ht(E)&&qt(w),u=qt(E)&&Ht(w);return N||u},"isArchitectureDirectionXY"),Er=ct(function(E){let w=E[0],N=E[1],u=Ht(w)&&qt(N),o=qt(w)&&Ht(N);return u||o},"isArchitecturePairXY"),mr=ct(function(E){return E!=="LL"&&E!=="RR"&&E!=="TT"&&E!=="BB"},"isValidArchitectureDirectionPair"),Oe=ct(function(E,w){let N=`${E}${w}`;return mr(N)?N:void 0},"getArchitectureDirectionPair"),Tr=ct(function([E,w],N){let u=N[0],o=N[1];return Ht(u)?qt(o)?[E+(u==="L"?-1:1),w+(o==="T"?1:-1)]:[E+(u==="L"?-1:1),w]:Ht(o)?[E+(o==="L"?1:-1),w+(u==="T"?1:-1)]:[E,w+(u==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Nr=ct(function(E){return E==="LT"||E==="TL"?[1,1]:E==="BL"||E==="LB"?[1,-1]:E==="BR"||E==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Lr=ct(function(E,w){return De(E,w)?"bend":Ht(E)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Cr=ct(function(E){return E.type==="service"},"isArchitectureService"),Ar=ct(function(E){return E.type==="junction"},"isArchitectureJunction"),ir=ct(E=>E.data(),"edgeData"),ie=ct(E=>E.data(),"nodeData"),wr=Pe.architecture,nr=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.setAccTitle=He,this.getAccTitle=We,this.setDiagramTitle=Be,this.getDiagramTitle=$e,this.getAccDescription=ze,this.setAccDescription=Ve,this.clear()}static{ct(this,"ArchitectureDB")}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},Xe()}addService({id:E,icon:w,in:N,title:u,iconText:o}){if(this.registeredIds[E]!==void 0)throw new Error(`The service id [${E}] is already in use by another ${this.registeredIds[E]}`);if(N!==void 0){if(E===N)throw new Error(`The service [${E}] cannot be placed within itself`);if(this.registeredIds[N]===void 0)throw new Error(`The service [${E}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[N]==="node")throw new Error(`The service [${E}]'s parent is not a group`)}this.registeredIds[E]="node",this.nodes[E]={id:E,type:"service",icon:w,iconText:o,title:u,edges:[],in:N}}getServices(){return Object.values(this.nodes).filter(Cr)}addJunction({id:E,in:w}){if(this.registeredIds[E]!==void 0)throw new Error(`The junction id [${E}] is already in use by another ${this.registeredIds[E]}`);if(w!==void 0){if(E===w)throw new Error(`The junction [${E}] cannot be placed within itself`);if(this.registeredIds[w]===void 0)throw new Error(`The junction [${E}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[w]==="node")throw new Error(`The junction [${E}]'s parent is not a group`)}this.registeredIds[E]="node",this.nodes[E]={id:E,type:"junction",edges:[],in:w}}getJunctions(){return Object.values(this.nodes).filter(Ar)}getNodes(){return Object.values(this.nodes)}getNode(E){return this.nodes[E]??null}addGroup({id:E,icon:w,in:N,title:u}){if(this.registeredIds?.[E]!==void 0)throw new Error(`The group id [${E}] is already in use by another ${this.registeredIds[E]}`);if(N!==void 0){if(E===N)throw new Error(`The group [${E}] cannot be placed within itself`);if(this.registeredIds?.[N]===void 0)throw new Error(`The group [${E}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[N]==="node")throw new Error(`The group [${E}]'s parent is not a group`)}this.registeredIds[E]="group",this.groups[E]={id:E,icon:w,title:u,in:N}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:E,rhsId:w,lhsDir:N,rhsDir:u,lhsInto:o,rhsInto:a,lhsGroup:e,rhsGroup:n,title:c}){if(!rr(N))throw new Error(`Invalid direction given for left hand side of edge ${E}--${w}. Expected (L,R,T,B) got ${String(N)}`);if(!rr(u))throw new Error(`Invalid direction given for right hand side of edge ${E}--${w}. Expected (L,R,T,B) got ${String(u)}`);if(this.nodes[E]===void 0&&this.groups[E]===void 0)throw new Error(`The left-hand id [${E}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[w]===void 0&&this.groups[w]===void 0)throw new Error(`The right-hand id [${w}] does not yet exist. Please create the service/group before declaring an edge to it.`);let t=this.nodes[E].in,g=this.nodes[w].in;if(e&&t&&g&&t==g)throw new Error(`The left-hand id [${E}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(n&&t&&g&&t==g)throw new Error(`The right-hand id [${w}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let i={lhsId:E,lhsDir:N,lhsInto:o,lhsGroup:e,rhsId:w,rhsDir:u,rhsInto:a,rhsGroup:n,title:c};this.edges.push(i),this.nodes[E]&&this.nodes[w]&&(this.nodes[E].edges.push(this.edges[this.edges.length-1]),this.nodes[w].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){let E={},w=Object.entries(this.nodes).reduce((n,[c,t])=>(n[c]=t.edges.reduce((g,i)=>{let r=this.getNode(i.lhsId)?.in,h=this.getNode(i.rhsId)?.in;if(r&&h&&r!==h){let f=Lr(i.lhsDir,i.rhsDir);f!=="bend"&&(E[r]??={},E[r][h]=f,E[h]??={},E[h][r]=f)}if(i.lhsId===c){let f=Oe(i.lhsDir,i.rhsDir);f&&(g[f]=i.rhsId)}else{let f=Oe(i.rhsDir,i.lhsDir);f&&(g[f]=i.lhsId)}return g},{}),n),{}),N=Object.keys(w)[0],u={[N]:1},o=Object.keys(w).reduce((n,c)=>c===N?n:le(ee({},n),{[c]:1}),{}),a=ct(n=>{let c={[n]:[0,0]},t=[n];for(;t.length>0;){let g=t.shift();if(g){u[g]=1,delete o[g];let i=w[g],[r,h]=c[g];Object.entries(i).forEach(([f,l])=>{u[l]||(c[l]=Tr([r,h],f),t.push(l))})}}return c},"BFS"),e=[a(N)];for(;Object.keys(o).length>0;)e.push(a(Object.keys(o)[0]));this.dataStructures={adjList:w,spatialMaps:e,groupAlignments:E}}return this.dataStructures}setElementForId(E,w){this.elements[E]=w}getElementById(E){return this.elements[E]}getConfig(){return Ze(ee(ee({},wr),Ge().architecture))}getConfigField(E){return this.getConfig()[E]}},Mr=ct((E,w)=>{Ke(E,w),E.groups.map(N=>w.addGroup(N)),E.services.map(N=>w.addService(le(ee({},N),{type:"service"}))),E.junctions.map(N=>w.addJunction(le(ee({},N),{type:"junction"}))),E.edges.map(N=>w.addEdge(N))},"populateDb"),ar={parser:{yy:void 0},parse:ct(E=>Zt(null,null,function*(){let w=yield je("architecture",E);Te.debug(w);let N=ar.parser?.yy;if(!(N instanceof nr))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Mr(w,N)}),"parse")},Or=ct(E=>` .edge { stroke-width: ${E.archEdgeWidth}; diff --git a/src/google/adk/cli/browser/chunk-46YSBSFN.js b/src/google/adk/cli/browser/chunk-46YSBSFN.js index 38b07a71e3..67cacbe184 100644 --- a/src/google/adk/cli/browser/chunk-46YSBSFN.js +++ b/src/google/adk/cli/browser/chunk-46YSBSFN.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as i,b as e,c as o,d as a}from"./chunk-TIJO3EOA.js";import"./chunk-B2DSW4QB.js";import"./chunk-NMKTPNXE.js";import"./chunk-APNCZOFE.js";import"./chunk-ST54LLJ3.js";import"./chunk-F57TI45K.js";import"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import"./chunk-QFMJV7VH.js";import{g as t}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";var y={parser:i,get db(){return new e},renderer:a,styles:o,init:t(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{y as diagram}; diff --git a/src/google/adk/cli/browser/chunk-4LH47YYI.js b/src/google/adk/cli/browser/chunk-4LH47YYI.js index 9f39a1e542..2cc9b201e6 100644 --- a/src/google/adk/cli/browser/chunk-4LH47YYI.js +++ b/src/google/adk/cli/browser/chunk-4LH47YYI.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as s,$b as y,Bb as m,Ca as a,Cb as d,Cc as I,Lb as p,Pa as i,Yb as u,Zb as v,_b as f,eb as r,fc as g,gc as h,hc as x,pd as M,qb as c,sb as l,wc as C}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";function _(e,D){if(e&1&&(m(0,"section")(1,"span",1),f(2),d()()),e&2){let t=p(),n=x(0);u(t.theme.additionalStyles==null?null:t.theme.additionalStyles.Icon),v(t.theme.components.Icon),i(2),y(n)}}var S=(()=>{class e extends M{name=I.required();resolvedName=C(()=>this.resolvePrimitive(this.name()));static \u0275fac=(()=>{let t;return function(o){return(t||(t=a(e)))(o||e)}})();static \u0275cmp=s({type:e,selectors:[["a2ui-icon"]],inputs:{name:[1,"name"]},features:[r],decls:2,vars:2,consts:[[3,"class","style"],[1,"g-icon"]],template:function(n,o){if(n&1&&(g(0),c(1,_,3,5,"section",0)),n&2){let N=h(o.resolvedName());i(),l(N?1:-1)}},styles:["[_nghost-%COMP%]{display:block;flex:var(--weight);min-height:0;overflow:auto}"]})}return e})();export{S as Icon}; diff --git a/src/google/adk/cli/browser/chunk-4R6SYGKS.js b/src/google/adk/cli/browser/chunk-4R6SYGKS.js index b1f4852fce..aa5d9b6d3e 100644 --- a/src/google/adk/cli/browser/chunk-4R6SYGKS.js +++ b/src/google/adk/cli/browser/chunk-4R6SYGKS.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{g as t}from"./chunk-JRNAXTJ7.js";var s=class{constructor(i){this.init=i,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};export{s as a}; diff --git a/src/google/adk/cli/browser/chunk-4VDZU6IO.js b/src/google/adk/cli/browser/chunk-4VDZU6IO.js index a2fe4c7f9c..4b6c79de8f 100644 --- a/src/google/adk/cli/browser/chunk-4VDZU6IO.js +++ b/src/google/adk/cli/browser/chunk-4VDZU6IO.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as f,Ca as _,Cc as w,Gb as I,Hb as g,Jb as T,Lb as c,Nc as E,Pa as a,Yb as C,Zb as r,_b as M,ac as D,eb as h,fc as F,gc as k,hc as S,na as p,oa as u,pd as L,qd as N,ub as x,vb as v,wb as y,wc as $,xb as d,yb as l,za as b,zb as o}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";function B(n,m){if(n&1){let t=g();l(0,"button",2),T("click",function(){let e=p(t).$index,i=c();return u(i.selectedIndex.set(e))}),M(1),o()}if(n&2){let t=m.$implicit,s=m.$index,e=c(),i=S(0);r(e.buttonClasses()[i]),d("disabled",i===s),a(),D(" ",e.resolvePrimitive(t.title)," ")}}var z=(()=>{class n extends L{selectedIndex=b(0);tabs=w.required();buttonClasses=$(()=>{let t=this.selectedIndex();return this.tabs().map((s,e)=>e===t?E.merge(this.theme.components.Tabs.controls.all,this.theme.components.Tabs.controls.selected):this.theme.components.Tabs.controls.all)});static \u0275fac=(()=>{let t;return function(e){return(t||(t=_(n)))(e||n)}})();static \u0275cmp=f({type:n,selectors:[["a2ui-tabs"]],inputs:{tabs:[1,"tabs"]},features:[h],decls:6,vars:9,consts:[[3,"disabled","class"],["a2ui-renderer","",3,"surfaceId","component"],[3,"click","disabled"]],template:function(s,e){if(s&1&&(F(0),l(1,"section")(2,"div"),v(3,B,2,4,"button",0,x),o(),I(5,1),o()),s&2){let i=e.tabs(),V=k(e.selectedIndex());a(),C(e.theme.additionalStyles==null?null:e.theme.additionalStyles.Tabs),r(e.theme.components.Tabs.container),a(),r(e.theme.components.Tabs.element),a(),y(i),a(2),d("surfaceId",e.surfaceId())("component",i[V].child)}},dependencies:[N],styles:["[_nghost-%COMP%]{display:block;flex:var(--weight)}"]})}return n})();export{z as Tabs}; diff --git a/src/google/adk/cli/browser/chunk-5PR7OWPD.js b/src/google/adk/cli/browser/chunk-5PR7OWPD.js index 22e4ffa1d8..01f30bf43b 100644 --- a/src/google/adk/cli/browser/chunk-5PR7OWPD.js +++ b/src/google/adk/cli/browser/chunk-5PR7OWPD.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as D}from"./chunk-DMWOYWYQ.js";import{a as z}from"./chunk-T3Q3QCCV.js";import"./chunk-NQKWI5EB.js";import"./chunk-WR6HISGZ.js";import"./chunk-I4UDKKN5.js";import"./chunk-2DLZXFEQ.js";import"./chunk-JNY2YWG7.js";import"./chunk-XULIXUQL.js";import"./chunk-3NJNOY56.js";import"./chunk-NALL4A3P.js";import{a as _}from"./chunk-TPDTRWWV.js";import{l as y}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{A as w,N as T,R as S,S as O,T as k,U as R,V as I,W as E,X as F,p as A,r as L}from"./chunk-QFMJV7VH.js";import{g as o,i as M}from"./chunk-JRNAXTJ7.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import{a as C,j as b}from"./chunk-RMXJBC7V.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},G={axes:[],curves:[],options:x},g=structuredClone(G),U=L.radar,X=o(()=>y(C(C({},U),w().radar)),"getConfig"),P=o(()=>g.axes,"getAxes"),Y=o(()=>g.curves,"getCurves"),Z=o(()=>g.options,"getOptions"),q=o(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),J=o(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:K(t.entries)}))},"setCurves"),K=o(a=>{if(a[0].axis==null)return a.map(e=>e.value);let t=P();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{let r=a.find(n=>n.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Q=o(a=>{let t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule}},"setOptions"),tt=o(()=>{S(),g=structuredClone(G)},"clear"),$={getAxes:P,getCurves:Y,getOptions:Z,setAxes:q,setCurves:J,setOptions:Q,getConfig:X,clear:tt,setAccTitle:O,getAccTitle:k,setDiagramTitle:E,getDiagramTitle:F,getAccDescription:I,setAccDescription:R},et=o(a=>{D(a,$);let{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),at={parse:o(a=>b(null,null,function*(){let t=yield z("radar",a);M.debug(t),et(t)}),"parse")},rt=o((a,t,e,r)=>{let n=r.db,i=n.getAxes(),l=n.getCurves(),s=n.getOptions(),c=n.getConfig(),d=n.getDiagramTitle(),p=_(t),u=nt(p,c),m=s.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=s.min,v=Math.min(c.width,c.height)/2;st(u,i,v,s.ticks,s.graticule),ot(u,i,v,c),W(u,i,l,h,m,s.graticule,c),H(u,l,s.showLegend,c),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),nt=o((a,t)=>{let e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,n={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return T(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`),a.append("g").attr("transform",`translate(${n.x}, ${n.y})`)},"drawFrame"),st=o((a,t,e,r,n)=>{if(n==="circle")for(let i=0;i{let u=2*p*Math.PI/i-Math.PI/2,m=s*Math.cos(u),h=s*Math.sin(u);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),ot=o((a,t,e,r)=>{let n=t.length;for(let i=0;i{if(d.entries.length!==s)return;let u=d.entries.map((m,h)=>{let v=2*Math.PI*h/s-Math.PI/2,f=B(m,r,n,c),j=f*Math.cos(v),N=f*Math.sin(v);return{x:j,y:N}});i==="circle"?a.append("path").attr("d",V(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}o(W,"drawCurves");function B(a,t,e,r){let n=Math.min(Math.max(a,t),e);return r*(n-t)/(e-t)}o(B,"relativeRadius");function V(a,t){let e=a.length,r=`M${a[0].x},${a[0].y}`;for(let n=0;n{let d=a.append("g").attr("transform",`translate(${n}, ${i+c*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(s.label)})}o(H,"drawLegend");var it={draw:rt},lt=o((a,t)=>{let e="";for(let r=0;r{class i extends N{value=l.required();enableDate=l.required();enableTime=l.required();inputId=super.getUniqueId("a2ui-datetime-input");inputType=o(()=>{let t=this.enableDate(),n=this.enableTime();return t&&n?"datetime-local":t?"date":n?"time":"datetime-local"});label=o(()=>{let t=this.inputType();return t==="date"?"Date":t==="time"?"Time":"Date & Time"});inputValue=o(()=>{let t=this.inputType(),n=super.resolvePrimitive(this.value())||"",e=n?new Date(n):null;if(!e||isNaN(e.getTime()))return"";let p=this.padNumber(e.getFullYear()),a=this.padNumber(e.getMonth()),c=this.padNumber(e.getDate()),b=this.padNumber(e.getHours()),h=this.padNumber(e.getMinutes());return t==="date"?`${p}-${a}-${c}`:t==="time"?`${b}:${h}`:`${p}-${a}-${c}T${b}:${h}`});handleInput(t){let n=this.value()?.path;!(t.target instanceof HTMLInputElement)||!n||this.processor.setData(this.component(),n,t.target.value,this.surfaceId())}padNumber(t){return t.toString().padStart(2,"0")}static \u0275fac=(()=>{let t;return function(e){return(t||(t=g(i)))(e||i)}})();static \u0275cmp=f({type:i,selectors:[["a2ui-datetime-input"]],inputs:{value:[1,"value"],enableDate:[1,"enableDate"],enableTime:[1,"enableTime"]},features:[D],decls:4,vars:13,consts:[[3,"for"],["autocomplete","off",3,"input","id","value"]],template:function(n,e){n&1&&(s(0,"section")(1,"label",0),I(2),m(),s(3,"input",1),y("input",function(a){return e.handleInput(a)}),m()()),n&2&&(r(e.theme.components.DateTimeInput.container),u(),r(e.theme.components.DateTimeInput.label),d("htmlFor",e.inputId),u(),M(e.label()),u(),T(e.theme.additionalStyles==null?null:e.theme.additionalStyles.DateTimeInput),r(e.theme.components.DateTimeInput.element),d("id",e.inputId)("value",e.inputValue()),v("type",e.inputType()))},styles:["[_nghost-%COMP%]{display:block;flex:var(--weight);min-height:0;overflow:auto}input[_ngcontent-%COMP%]{display:block;width:100%;box-sizing:border-box}"]})}return i})();export{S as DatetimeInput}; diff --git a/src/google/adk/cli/browser/chunk-6UL33SIT.js b/src/google/adk/cli/browser/chunk-6UL33SIT.js index 21d3afb53d..f8aee406dc 100644 --- a/src/google/adk/cli/browser/chunk-6UL33SIT.js +++ b/src/google/adk/cli/browser/chunk-6UL33SIT.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as _e}from"./chunk-B2DSW4QB.js";import{a as fe}from"./chunk-TPDTRWWV.js";import{a as be,b as ye}from"./chunk-ZMOC4H7T.js";import{d as ke,g as me,j as Ee}from"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{G as B,O as pe,Y as M,c as de,d as te,e as ne,r as W}from"./chunk-QFMJV7VH.js";import{g as o,i as Y}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import{j as ge}from"./chunk-RMXJBC7V.js";var ie=(function(){var e=o(function(O,i,n,s){for(n=n||{},s=O.length;s--;n[O[s]]=i);return n},"o"),u=[1,4],p=[1,13],r=[1,12],d=[1,15],_=[1,16],y=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],m=[6,7,11],U=[1,31],N=[6,7,11,24],j=[1,6,13,16,17,20,23],k=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(i,n,s,a,h,t,R){var c=t.length-1;switch(h){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:_,18:17,19:18,20:y,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:_,18:17,19:18,20:y,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:_,18:17,19:18,20:y,23:l},{6:I,7:g,10:23,11:w},e(m,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:y,23:l}),e(m,[2,19]),e(m,[2,21],{15:30,24:U}),e(m,[2,22]),e(m,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:_,18:17,19:18,20:y,23:l},e(j,[2,14],{7:k,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(m,[2,16],{15:37,24:U}),e(m,[2,17]),e(m,[2,18]),e(m,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(j,[2,13],{7:k,11:A}),e(L,[2,11]),e(L,[2,12]),e(m,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var s=new Error(i);throw s.hash=n,s}},"parseError"),parse:o(function(i){var n=this,s=[0],a=[],h=[null],t=[],R=this.table,c="",z=0,oe=0,ce=0,Ne=2,le=1,xe=t.slice.call(arguments,1),b=Object.create(this.lexer),P={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(P.yy[q]=this.yy[q]);b.setInput(i,P.yy),P.yy.lexer=b,P.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Q=b.yylloc;t.push(Q);var ve=b.options&&b.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(S){s.length=s.length-2*S,h.length=h.length-S,t.length=t.length-S}o(De,"popStack");function he(){var S;return S=a.pop()||b.lex()||le,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(he,"lex");for(var E,Z,V,x,ze,$,G={},X,C,ue,K;;){if(V=s[s.length-1],this.defaultActions[V]?x=this.defaultActions[V]:((E===null||typeof E>"u")&&(E=he()),x=R[V]&&R[V][E]),typeof x>"u"||!x.length||!x[0]){var ee="";K=[];for(X in R[V])this.terminals_[X]&&X>Ne&&K.push("'"+this.terminals_[X]+"'");b.showPosition?ee="Parse error on line "+(z+1)+`: `+b.showPosition()+` Expecting `+K.join(", ")+", got '"+(this.terminals_[E]||E)+"'":ee="Parse error on line "+(z+1)+": Unexpected "+(E==le?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(ee,{text:b.match,token:this.terminals_[E]||E,line:b.yylineno,loc:Q,expected:K})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+E);switch(x[0]){case 1:s.push(E),h.push(b.yytext),t.push(b.yylloc),s.push(x[1]),E=null,Z?(E=Z,Z=null):(oe=b.yyleng,c=b.yytext,z=b.yylineno,Q=b.yylloc,ce>0&&ce--);break;case 2:if(C=this.productions_[x[1]][1],G.$=h[h.length-C],G._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},ve&&(G._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),$=this.performAction.apply(G,[c,oe,z,P.yy,x[1],h,t].concat(xe)),typeof $<"u")return $;C&&(s=s.slice(0,-1*C*2),h=h.slice(0,-1*C),t=t.slice(0,-1*C)),s.push(this.productions_[x[1]][0]),h.push(G.$),t.push(G._$),ue=R[s[s.length-2]][s[s.length-1]],s.push(ue);break;case 3:return!0}}return!0},"parse")},J=(function(){var O={EOF:1,parseError:o(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw new Error(n)},"parseError"),setInput:o(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===a.length?this.yylloc.first_column:0)+a[a.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-75WMU75S.js b/src/google/adk/cli/browser/chunk-75WMU75S.js index 38b07a71e3..67cacbe184 100644 --- a/src/google/adk/cli/browser/chunk-75WMU75S.js +++ b/src/google/adk/cli/browser/chunk-75WMU75S.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as i,b as e,c as o,d as a}from"./chunk-TIJO3EOA.js";import"./chunk-B2DSW4QB.js";import"./chunk-NMKTPNXE.js";import"./chunk-APNCZOFE.js";import"./chunk-ST54LLJ3.js";import"./chunk-F57TI45K.js";import"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import"./chunk-QFMJV7VH.js";import{g as t}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";var y={parser:i,get db(){return new e},renderer:a,styles:o,init:t(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{y as diagram}; diff --git a/src/google/adk/cli/browser/chunk-7UW26RYS.js b/src/google/adk/cli/browser/chunk-7UW26RYS.js index b1e248b6c7..f8276599c1 100644 --- a/src/google/adk/cli/browser/chunk-7UW26RYS.js +++ b/src/google/adk/cli/browser/chunk-7UW26RYS.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as e,b as r}from"./chunk-XULIXUQL.js";import"./chunk-NALL4A3P.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";export{e as TreemapModule,r as createTreemapServices}; diff --git a/src/google/adk/cli/browser/chunk-APNCZOFE.js b/src/google/adk/cli/browser/chunk-APNCZOFE.js index 442fbb8e79..0339cdf039 100644 --- a/src/google/adk/cli/browser/chunk-APNCZOFE.js +++ b/src/google/adk/cli/browser/chunk-APNCZOFE.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as o,g as m}from"./chunk-JRNAXTJ7.js";var g=m((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g as a}; diff --git a/src/google/adk/cli/browser/chunk-AQDQIDAM.js b/src/google/adk/cli/browser/chunk-AQDQIDAM.js index 2a91ec3e30..01709edbfc 100644 --- a/src/google/adk/cli/browser/chunk-AQDQIDAM.js +++ b/src/google/adk/cli/browser/chunk-AQDQIDAM.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as C,Aa as f,Dc as k,Gb as m,Hb as p,Jb as d,Lb as o,Pa as r,Tb as w,Ub as v,Yb as y,Zb as u,_b as D,eb as M,na as a,oa as c,pd as b,qb as x,qd as P,sb as h,xb as g,yb as l,za as _,zb as s}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";var V=["dialog"];function S(t,E){if(t&1){let e=p();l(0,"dialog",2,0),d("click",function(i){a(e);let O=o();return c(O.handleDialogClick(i))}),l(2,"section")(3,"div",3)(4,"button",2),d("click",function(){a(e);let i=o();return c(i.closeDialog())}),l(5,"span",4),D(6,"close"),s()()(),m(7,5),s()()}if(t&2){let e=o();u(e.theme.components.Modal.backdrop),r(2),y(e.theme.additionalStyles==null?null:e.theme.additionalStyles.Modal),u(e.theme.components.Modal.element),r(5),g("surfaceId",e.surfaceId())("component",e.component().properties.contentChild)}}function T(t,E){if(t&1){let e=p();l(0,"section",2),d("click",function(){a(e);let i=o();return c(i.showDialog.set(!0))}),m(1,5),s()}if(t&2){let e=o();r(),g("surfaceId",e.surfaceId())("component",e.component().properties.entryPointChild)}}var j=(()=>{class t extends b{showDialog=_(!1);dialog=k("dialog");constructor(){super(),f(()=>{let e=this.dialog();e&&!e.nativeElement.open&&e.nativeElement.showModal()})}handleDialogClick(e){e.target instanceof HTMLDialogElement&&this.closeDialog()}closeDialog(){let e=this.dialog();e&&(e.nativeElement.open||e.nativeElement.close(),this.showDialog.set(!1))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["a2ui-modal"]],viewQuery:function(n,i){n&1&&w(i.dialog,V,5),n&2&&v()},features:[M],decls:2,vars:1,consts:[["dialog",""],[3,"class"],[3,"click"],[1,"controls"],[1,"g-icon"],["a2ui-renderer","",3,"surfaceId","component"]],template:function(n,i){n&1&&x(0,S,8,8,"dialog",1)(1,T,2,2,"section"),n&2&&h(i.showDialog()?0:1)},dependencies:[P],styles:["dialog[_ngcontent-%COMP%]{padding:0;border:none;background:none}dialog[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%]{display:flex;justify-content:end;margin-bottom:4px}dialog[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0;background:none;width:20px;height:20px;pointer:cursor;border:none;cursor:pointer}"]})}return t})();export{j as Modal}; diff --git a/src/google/adk/cli/browser/chunk-ASJUXEUE.js b/src/google/adk/cli/browser/chunk-ASJUXEUE.js index 72d655ef2f..7817ec2f2d 100644 --- a/src/google/adk/cli/browser/chunk-ASJUXEUE.js +++ b/src/google/adk/cli/browser/chunk-ASJUXEUE.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{A as fr,B as rr,C as D,D as q,E as Lr,F as wt,G as Et,H as W,I as Cr,J as Pt,K as Rt,L as Mt,M as $,N as Lt,O as ut,P as _r,Q as Ct,R as _t,S as Ft,T as Fr,U as Or,a as B,b as M,c as K,d as w,e as p,f as E,g as C,i as V,j as k,k as At,m as vt,n as Pr,o as Rr,p as Mr,q as Z,r as N,s as Ot,t as z,u as Tt,v as T,w as _,x as St,y as or,z as It}from"./chunk-EGBSMT36.js";function _o(r,t){for(var e=-1,o=r==null?0:r.length;++e2?t[2]:void 0;for(f&&_(t[0],t[1],f)&&(o=1);++ei))return!1;var u=a.get(r),s=a.get(t);if(u&&s)return u==t&&s==r;var l=-1,d=!0,A=e&Na?new sr:void 0;for(a.set(r,t),a.set(t,r);++lt}var Be=ni;function ii(r){return r&&r.length?cr(r,C,Be):void 0}var mi=ii;function ui(r,t,e,o){if(!E(r))return r;t=J(t,r);for(var f=-1,a=t.length,n=a-1,i=r;i!=null&&++f0&&e(i)?t>1?Ue(i,t-1,e,o,f):mr(f,i):o||(f[f.length]=i)}return f}var j=Ue;function di(r){var t=r==null?0:r.length;return t?j(r,1):[]}var xt=di;function xi(r){return vt(Ot(r,void 0,xt),r+"")}var je=xi;var gi=je(function(r,t){return r==null?{}:De(r,t)}),ci=gi;function bi(r,t,e,o){var f=-1,a=r==null?0:r.length;for(o&&a&&(e=r[++f]);++f-1}var at=Ii;function wi(r,t,e){for(var o=-1,f=r==null?0:r.length;++o=Mi){var u=t?null:ke(r);if(u)return dr(u);n=!1,f=lr,m=new sr}else m=t?[]:i;r:for(;++of?0:f+t),e=e>f?f:e,e<0&&(e+=f),f=t>e?0:e-t>>>0,t>>>=0;for(var a=Array(f);++o=t||Y<0||l&&vr>=a}function b(){var h=Ir();if(c(h))return F(h);i=setTimeout(b,O(h))}function F(h){return i=void 0,d&&o?A(h):(o=f=void 0,n)}function Er(){i!==void 0&&clearTimeout(i),u=0,o=m=f=i=void 0}function er(){return i===void 0?n:F(Ir())}function H(){var h=Ir(),Y=c(h);if(o=arguments,f=this,m=h,Y){if(i===void 0)return v(m);if(l)return clearTimeout(i),i=setTimeout(b,t),A(m)}return i===void 0&&(i=setTimeout(b,t)),n}return H.cancel=Er,H.flush=er,H}var Sm=Tm;var Im=200;function wm(r,t,e,o){var f=-1,a=at,n=!0,i=r.length,m=[],u=t.length;if(!i)return m;e&&(t=I(t,D(e))),o?(a=nt,n=!1):t.length>=Im&&(a=lr,n=!1,t=new sr(t));r:for(;++f-1?f[a?t[n]:n]:void 0}}var io=qm;var Hm=Math.max;function Ym(r,t,e){var o=r==null?0:r.length;if(!o)return-1;var f=e==null?0:L(e);return f<0&&(f=Hm(o+f,0)),ft(r,x(t,3),f)}var mo=Ym;var km=io(mo),Zm=km;function zm(r){return r&&r.length?r[0]:void 0}var uo=zm;function $m(r,t){return j(lt(r,t),1)}var Xm=$m;function Jm(r,t){return r==null?r:Fr(r,G(t),W)}var Qm=Jm;function Vm(r,t){return r&&pr(r,G(t))}var ru=Vm;var tu=Object.prototype,eu=tu.hasOwnProperty,ou=it(function(r,t,e){eu.call(r,e)?r[e].push(t):Rr(r,e,[t])}),fu=ou;var au=Object.prototype,nu=au.hasOwnProperty;function iu(r,t){return r!=null&&nu.call(r,t)}var po=iu;function mu(r,t){return r!=null&&Vr(r,t,po)}var uu=mu;var pu="[object String]";function su(r){return typeof r=="string"||!p(r)&&w(r)&&K(r)==pu}var wr=su;var lu=Math.max;function du(r,t,e,o){r=T(r)?r:dt(r),e=e&&!o?L(e):0;var f=r.length;return e<0&&(e=lu(f+e,0)),wr(r)?e<=f&&r.indexOf(t,e)>-1:!!f&&br(r,t,e)>-1}var xu=du;var gu=Math.max;function cu(r,t,e){var o=r==null?0:r.length;if(!o)return-1;var f=e==null?0:L(e);return f<0&&(f=gu(o+f,0)),br(r,t,f)}var bu=cu;function hu(r){var t=r==null?0:r.length;return t?Ar(r,0,-1):[]}var yu=hu;function Au(r,t){return xr(r,t)}var vu=Au;var Ou="[object RegExp]";function Tu(r){return w(r)&&K(r)==Ou}var so=Tu;var lo=q&&q.isRegExp,Su=lo?D(lo):so,Iu=Su;function wu(r,t){return rt||a&&n&&m&&!i&&!u||o&&n&&m||!e&&m||!f)return 1;if(!o&&!a&&!u&&r=i)return m;var u=e[o];return m*(u=="desc"?-1:1)}}return r.index-t.index}var bo=Du;function Wu(r,t,e){t.length?t=I(t,function(a){return p(a)?function(n){return Q(n,a.length===1?a[0]:a)}:a}):t=[C];var o=-1;t=I(t,D(x));var f=et(r,function(a,n,i){var m=I(t,function(u){return u(a)});return{criteria:m,index:++o,value:a}});return go(f,function(a,n){return bo(a,n,e)})}var ho=Wu;var Gu=tt("length"),yo=Gu;var vo="\\ud800-\\udfff",Uu="\\u0300-\\u036f",ju="\\ufe20-\\ufe2f",Ku="\\u20d0-\\u20ff",qu=Uu+ju+Ku,Hu="\\ufe0e\\ufe0f",Yu="["+vo+"]",ct="["+qu+"]",bt="\\ud83c[\\udffb-\\udfff]",ku="(?:"+ct+"|"+bt+")",Oo="[^"+vo+"]",To="(?:\\ud83c[\\udde6-\\uddff]){2}",So="[\\ud800-\\udbff][\\udc00-\\udfff]",Zu="\\u200d",Io=ku+"?",wo="["+Hu+"]?",zu="(?:"+Zu+"(?:"+[Oo,To,So].join("|")+")"+wo+Io+")*",$u=wo+Io+zu,Xu="(?:"+[Oo+ct+"?",ct,To,So,Yu].join("|")+")",Ao=RegExp(bt+"(?="+bt+")|"+Xu+$u,"g");function Ju(r){for(var t=Ao.lastIndex=0;Ao.test(r);)++t;return t}var Eo=Ju;function Qu(r){return Je(r)?Eo(r):yo(r)}var Po=Qu;var Vu=it(function(r,t,e){r[e?0:1].push(t)},function(){return[[],[]]}),rp=Vu;var tp=Math.ceil,ep=Math.max;function op(r,t,e,o){for(var f=-1,a=ep(tp((t-r)/(e||1)),0),n=Array(a);a--;)n[o?a:++f]=r,r+=e;return n}var Ro=op;function fp(r){return function(t,e,o){return o&&typeof o!="number"&&_(t,e,o)&&(e=o=void 0),t=yr(t),e===void 0?(e=t,t=0):e=yr(e),o=o===void 0?t1&&_(r,t[0],t[1])?t=[]:e>2&&_(t[0],t[1],t[2])&&(t=[t[0]]),ho(r,j(t,1),[])}),bp=cp;var hp=9007199254740991,ht=4294967295,yp=Math.min;function Ap(r,t){if(r=L(r),r<1||r>hp)return[];var e=ht,o=yp(r,ht);t=G(t),r-=ht;for(var f=It(o,t);++e` /* Font Awesome icon styling - consolidated */ .label-icon { diff --git a/src/google/adk/cli/browser/chunk-BDIW4D5I.js b/src/google/adk/cli/browser/chunk-BDIW4D5I.js index 0dbe5bd4a3..f9b33399b4 100644 --- a/src/google/adk/cli/browser/chunk-BDIW4D5I.js +++ b/src/google/adk/cli/browser/chunk-BDIW4D5I.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as re}from"./chunk-DMWOYWYQ.js";import{a as se}from"./chunk-T3Q3QCCV.js";import{a as ae}from"./chunk-4R6SYGKS.js";import"./chunk-NQKWI5EB.js";import"./chunk-WR6HISGZ.js";import"./chunk-I4UDKKN5.js";import"./chunk-2DLZXFEQ.js";import"./chunk-JNY2YWG7.js";import"./chunk-XULIXUQL.js";import"./chunk-3NJNOY56.js";import"./chunk-NALL4A3P.js";import{f as Q,l as ee,m as te}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{A as j,M as C,R as F,S as K,T as Y,U as Z,V as U,W as V,X as J,aa as X,r as z}from"./chunk-QFMJV7VH.js";import{a as S,g as l,i as u}from"./chunk-JRNAXTJ7.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import{a as I,b as _,j as N}from"./chunk-RMXJBC7V.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},me=z.gitGraph,M=l(()=>ee(I(I({},me),j().gitGraph)),"getConfig"),n=new ae(()=>{let r=M(),e=r.mainBranchName,a=r.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:a}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function A(){return Q({length:7})}l(A,"getID");function ce(r,e){let a=Object.create(null);return r.reduce((o,t)=>{let s=e(t);return a[s]||(a[s]=!0,o.push(t)),o},[])}l(ce,"uniqBy");var pe=l(function(r){n.records.direction=r},"setDirection"),ge=l(function(r){u.debug("options str",r),r=r?.trim(),r=r||"{}";try{n.records.options=JSON.parse(r)}catch(e){u.error("error while parsing gitGraph options",e.message)}},"setOptions"),fe=l(function(){return n.records.options},"getOptions"),ye=l(function(r){let e=r.msg,a=r.id,o=r.type,t=r.tags;u.info("commit",e,a,o,t),u.debug("Entering commit:",e,a,o,t);let s=M();a=C.sanitizeText(a,s),e=C.sanitizeText(e,s),t=t?.map(d=>C.sanitizeText(d,s));let h={id:a||n.records.seq+"-"+A(),message:e,seq:n.records.seq++,type:o??x.NORMAL,tags:t??[],parents:n.records.head==null?[]:[n.records.head.id],branch:n.records.currBranch};n.records.head=h,u.info("main branch",s.mainBranchName),n.records.commits.has(h.id)&&u.warn(`Commit ID ${h.id} already exists`),n.records.commits.set(h.id,h),n.records.branches.set(n.records.currBranch,h.id),u.debug("in pushCommit "+h.id)},"commit"),$e=l(function(r){let e=r.name,a=r.order;if(e=C.sanitizeText(e,M()),n.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);n.records.branches.set(e,n.records.head!=null?n.records.head.id:null),n.records.branchConfig.set(e,{name:e,order:a}),ne(e),u.debug("in createBranch")},"branch"),xe=l(r=>{let e=r.branch,a=r.id,o=r.type,t=r.tags,s=M();e=C.sanitizeText(e,s),a&&(a=C.sanitizeText(a,s));let h=n.records.branches.get(n.records.currBranch),d=n.records.branches.get(e),c=h?n.records.commits.get(h):void 0,m=d?n.records.commits.get(d):void 0;if(c&&m&&c.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(n.records.currBranch===e){let i=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},i}if(c===void 0||!c){let i=new Error(`Incorrect usage of "merge". Current branch (${n.records.currBranch})has no commits`);throw i.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},i}if(!n.records.branches.has(e)){let i=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw i.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},i}if(m===void 0||!m){let i=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw i.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},i}if(c===m){let i=new Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},i}if(a&&n.records.commits.has(a)){let i=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw i.hash={text:`merge ${e} ${a} ${o} ${t?.join(" ")}`,token:`merge ${e} ${a} ${o} ${t?.join(" ")}`,expected:[`merge ${e} ${a}_UNIQUE ${o} ${t?.join(" ")}`]},i}let p=d||"",f={id:a||`${n.records.seq}-${A()}`,message:`merged branch ${e} into ${n.records.currBranch}`,seq:n.records.seq++,parents:n.records.head==null?[]:[n.records.head.id,p],branch:n.records.currBranch,type:x.MERGE,customType:o,customId:!!a,tags:t??[]};n.records.head=f,n.records.commits.set(f.id,f),n.records.branches.set(n.records.currBranch,f.id),u.debug(n.records.branches),u.debug("in mergeBranch")},"merge"),ue=l(function(r){let e=r.id,a=r.targetId,o=r.tags,t=r.parent;u.debug("Entering cherryPick:",e,a,o);let s=M();if(e=C.sanitizeText(e,s),a=C.sanitizeText(a,s),o=o?.map(c=>C.sanitizeText(c,s)),t=C.sanitizeText(t,s),!e||!n.records.commits.has(e)){let c=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw c.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},c}let h=n.records.commits.get(e);if(h===void 0||!h)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(t&&!(Array.isArray(h.parents)&&h.parents.includes(t)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let d=h.branch;if(h.type===x.MERGE&&!t)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!n.records.commits.has(a)){if(d===n.records.currBranch){let f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},f}let c=n.records.branches.get(n.records.currBranch);if(c===void 0||!c){let f=new Error(`Incorrect usage of "cherry-pick". Current branch (${n.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},f}let m=n.records.commits.get(c);if(m===void 0||!m){let f=new Error(`Incorrect usage of "cherry-pick". Current branch (${n.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${e} ${a}`,token:`cherryPick ${e} ${a}`,expected:["cherry-pick abc"]},f}let p={id:n.records.seq+"-"+A(),message:`cherry-picked ${h?.message} into ${n.records.currBranch}`,seq:n.records.seq++,parents:n.records.head==null?[]:[n.records.head.id,h.id],branch:n.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${h.id}${h.type===x.MERGE?`|parent:${t}`:""}`]};n.records.head=p,n.records.commits.set(p.id,p),n.records.branches.set(n.records.currBranch,p.id),u.debug(n.records.branches),u.debug("in cherryPick")}},"cherryPick"),ne=l(function(r){if(r=C.sanitizeText(r,M()),n.records.branches.has(r)){n.records.currBranch=r;let e=n.records.branches.get(n.records.currBranch);e===void 0||!e?n.records.head=null:n.records.head=n.records.commits.get(e)??null}else{let e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`);throw e.hash={text:`checkout ${r}`,token:`checkout ${r}`,expected:[`branch ${r}`]},e}},"checkout");function W(r,e,a){let o=r.indexOf(e);o===-1?r.push(a):r.splice(o,1,a)}l(W,"upsert");function H(r){let e=r.reduce((t,s)=>t.seq>s.seq?t:s,r[0]),a="";r.forEach(function(t){t===e?a+=" *":a+=" |"});let o=[a,e.id,e.seq];for(let t in n.records.branches)n.records.branches.get(t)===e.id&&o.push(t);if(u.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){let t=n.records.commits.get(e.parents[0]);W(r,e,t),e.parents[1]&&r.push(n.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){let t=n.records.commits.get(e.parents[0]);W(r,e,t)}}r=ce(r,t=>t.id),H(r)}l(H,"prettyPrintCommitHistory");var be=l(function(){u.debug(n.records.commits);let r=ie()[0];H([r])},"prettyPrint"),we=l(function(){n.reset(),F()},"clear"),Ce=l(function(){return[...n.records.branchConfig.values()].map((e,a)=>e.order!==null&&e.order!==void 0?e:_(I({},e),{order:parseFloat(`0.${a}`)})).sort((e,a)=>(e.order??0)-(a.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),Be=l(function(){return n.records.branches},"getBranches"),ve=l(function(){return n.records.commits},"getCommits"),ie=l(function(){let r=[...n.records.commits.values()];return r.forEach(function(e){u.debug(e.id)}),r.sort((e,a)=>e.seq-a.seq),r},"getCommitsArray"),ke=l(function(){return n.records.currBranch},"getCurrentBranch"),Te=l(function(){return n.records.direction},"getDirection"),Ee=l(function(){return n.records.head},"getHead"),de={commitType:x,getConfig:M,setDirection:pe,setOptions:ge,getOptions:fe,commit:ye,branch:$e,merge:xe,cherryPick:ue,checkout:ne,prettyPrint:be,clear:we,getBranchesAsObjArray:Ce,getBranches:Be,getCommits:ve,getCommitsArray:ie,getCurrentBranch:ke,getDirection:Te,getHead:Ee,setAccTitle:K,getAccTitle:Y,getAccDescription:U,setAccDescription:Z,setDiagramTitle:V,getDiagramTitle:J},Le=l((r,e)=>{re(r,e),r.dir&&e.setDirection(r.dir);for(let a of r.statements)Me(a,e)},"populate"),Me=l((r,e)=>{let o={Commit:l(t=>e.commit(Pe(t)),"Commit"),Branch:l(t=>e.branch(Re(t)),"Branch"),Merge:l(t=>e.merge(Oe(t)),"Merge"),Checkout:l(t=>e.checkout(Ie(t)),"Checkout"),CherryPicking:l(t=>e.cherryPick(qe(t)),"CherryPicking")}[r.$type];o?o(r):u.error(`Unknown statement type: ${r.$type}`)},"parseStatement"),Pe=l(r=>({id:r.id,msg:r.message??"",type:r.type!==void 0?x[r.type]:x.NORMAL,tags:r.tags??void 0}),"parseCommit"),Re=l(r=>({name:r.name,order:r.order??0}),"parseBranch"),Oe=l(r=>({branch:r.branch,id:r.id??"",type:r.type!==void 0?x[r.type]:void 0,tags:r.tags??void 0}),"parseMerge"),Ie=l(r=>r.branch,"parseCheckout"),qe=l(r=>({id:r.id,targetId:"",tags:r.tags?.length===0?void 0:r.tags,parent:r.parent}),"parseCherryPicking"),Ge={parse:l(r=>N(null,null,function*(){let e=yield se("gitGraph",r);u.debug(e),Le(e,de)}),"parse")},T=10,E=40,B=4,v=2,L=8,b=new Map,w=new Map,q=30,P=new Map,G=[],k=0,$="LR",Ae=l(()=>{b.clear(),w.clear(),P.clear(),k=0,G=[],$="LR"},"clear"),he=l(r=>{let e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof r=="string"?r.split(/\\n|\n|/gi):r).forEach(o=>{let t=document.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.setAttribute("dy","1em"),t.setAttribute("x","0"),t.setAttribute("class","row"),t.textContent=o.trim(),e.appendChild(t)}),e},"drawText"),le=l(r=>{let e,a,o;return $==="BT"?(a=l((t,s)=>t<=s,"comparisonFunc"),o=1/0):(a=l((t,s)=>t>=s,"comparisonFunc"),o=0),r.forEach(t=>{let s=$==="TB"||$=="BT"?w.get(t)?.y:w.get(t)?.x;s!==void 0&&a(s,o)&&(e=t,o=s)}),e},"findClosestParent"),De=l(r=>{let e="",a=1/0;return r.forEach(o=>{let t=w.get(o).y;t<=a&&(e=o,a=t)}),e||void 0},"findClosestParentBT"),We=l((r,e,a)=>{let o=a,t=a,s=[];r.forEach(h=>{let d=e.get(h);if(!d)throw new Error(`Commit not found for key ${h}`);d.parents.length?(o=_e(d),t=Math.max(o,t)):s.push(d),Ne(d,o)}),o=t,s.forEach(h=>{Se(h,o,a)}),r.forEach(h=>{let d=e.get(h);if(d?.parents.length){let c=De(d.parents);o=w.get(c).y-E,o<=t&&(t=o);let m=b.get(d.branch).pos,p=o-T;w.set(d.id,{x:m,y:p})}})},"setParallelBTPos"),He=l(r=>{let e=le(r.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${r.id}`);let a=w.get(e)?.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${r.id}`);return a},"findClosestParentPos"),_e=l(r=>He(r)+E,"calculateCommitPosition"),Ne=l((r,e)=>{let a=b.get(r.branch);if(!a)throw new Error(`Branch not found for commit ${r.id}`);let o=a.pos,t=e+T;return w.set(r.id,{x:o,y:t}),{x:o,y:t}},"setCommitPosition"),Se=l((r,e,a)=>{let o=b.get(r.branch);if(!o)throw new Error(`Branch not found for commit ${r.id}`);let t=e+a,s=o.pos;w.set(r.id,{x:s,y:t})},"setRootPosition"),ze=l((r,e,a,o,t,s)=>{if(s===x.HIGHLIGHT)r.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${t%L} ${o}-outer`),r.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${t%L} ${o}-inner`);else if(s===x.CHERRY_PICK)r.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),r.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),r.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),r.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),r.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{let h=r.append("circle");if(h.attr("cx",a.x),h.attr("cy",a.y),h.attr("r",e.type===x.MERGE?9:10),h.attr("class",`commit ${e.id} commit${t%L}`),s===x.MERGE){let d=r.append("circle");d.attr("cx",a.x),d.attr("cy",a.y),d.attr("r",6),d.attr("class",`commit ${o} ${e.id} commit${t%L}`)}s===x.REVERSE&&r.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${o} ${e.id} commit${t%L}`)}},"drawCommitBullet"),je=l((r,e,a,o,t)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&t.showCommitLabel){let s=r.append("g"),h=s.insert("rect").attr("class","commit-label-bkg"),d=s.append("text").attr("x",o).attr("y",a.y+25).attr("class","commit-label").text(e.id),c=d.node()?.getBBox();if(c&&(h.attr("x",a.posWithOffset-c.width/2-v).attr("y",a.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),$==="TB"||$==="BT"?(h.attr("x",a.x-(c.width+4*B+5)).attr("y",a.y-12),d.attr("x",a.x-(c.width+4*B)).attr("y",a.y+c.height-12)):d.attr("x",a.posWithOffset-c.width/2),t.rotateCommitLabel))if($==="TB"||$==="BT")d.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),h.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let m=-7.5-(c.width+10)/25*9.5,p=10+c.width/25*8.5;s.attr("transform","translate("+m+", "+p+") rotate(-45, "+o+", "+a.y+")")}}},"drawCommitLabel"),Fe=l((r,e,a,o)=>{if(e.tags.length>0){let t=0,s=0,h=0,d=[];for(let c of e.tags.reverse()){let m=r.insert("polygon"),p=r.append("circle"),f=r.append("text").attr("y",a.y-16-t).attr("class","tag-label").text(c),i=f.node()?.getBBox();if(!i)throw new Error("Tag bbox not found");s=Math.max(s,i.width),h=Math.max(h,i.height),f.attr("x",a.posWithOffset-i.width/2),d.push({tag:f,hole:p,rect:m,yOffset:t}),t+=20}for(let{tag:c,hole:m,rect:p,yOffset:f}of d){let i=h/2,y=a.y-19.2-f;if(p.attr("class","tag-label-bkg").attr("points",` ${o-s/2-B/2},${y+v} ${o-s/2-B/2},${y-v} diff --git a/src/google/adk/cli/browser/chunk-BPUQWVAT.js b/src/google/adk/cli/browser/chunk-BPUQWVAT.js index cdcd953203..4a751dbcd3 100644 --- a/src/google/adk/cli/browser/chunk-BPUQWVAT.js +++ b/src/google/adk/cli/browser/chunk-BPUQWVAT.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as h,$b as u,Bb as l,Ca as m,Cb as a,Cc as c,Ib as r,Kb as M,Lb as C,Pa as n,Yb as y,Zb as s,_b as d,eb as v,pd as b,vb as g,wb as f,wc as _}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";var D=(i,p)=>p.value;function P(i,p){if(i&1&&(l(0,"option",2),d(1),a()),i&2){let t=p.$implicit,o=C();r("value",t.value),n(),u(o.resolvePrimitive(t.label))}}var x=(()=>{class i extends b{options=c.required();value=c.required();description=c.required();selectId=super.getUniqueId("a2ui-multiple-choice");selectValue=_(()=>super.resolvePrimitive(this.value()));handleChange(t){let o=this.value()?.path;!(t.target instanceof HTMLSelectElement)||!t.target.value||!o||this.processor.setData(this.component(),this.processor.resolvePath(o,this.component().dataContextPath),t.target.value)}static \u0275fac=(()=>{let t;return function(e){return(t||(t=m(i)))(e||i)}})();static \u0275cmp=h({type:i,selectors:[["a2ui-multiple-choice"]],inputs:{options:[1,"options"],value:[1,"value"],description:[1,"description"]},features:[v],decls:6,vars:12,consts:[[3,"for"],[3,"change","id","value"],[3,"value"]],template:function(o,e){o&1&&(l(0,"section")(1,"label",0),d(2),a(),l(3,"select",1),M("change",function(E){return e.handleChange(E)}),g(4,P,2,2,"option",2,D),a()()),o&2&&(s(e.theme.components.MultipleChoice.container),n(),s(e.theme.components.MultipleChoice.label),r("htmlFor",e.selectId),n(),u(e.description()),n(),y(e.theme.additionalStyles==null?null:e.theme.additionalStyles.MultipleChoice),s(e.theme.components.MultipleChoice.element),r("id",e.selectId)("value",e.selectValue()),n(),f(e.options()))},styles:["[_nghost-%COMP%]{display:block;flex:var(--weight);min-height:0;overflow:auto}select[_ngcontent-%COMP%]{width:100%;box-sizing:border-box}"]})}return i})();export{x as MultipleChoice}; diff --git a/src/google/adk/cli/browser/chunk-DIR2LWLP.js b/src/google/adk/cli/browser/chunk-DIR2LWLP.js index 9529d256b9..bc9cf420e7 100644 --- a/src/google/adk/cli/browser/chunk-DIR2LWLP.js +++ b/src/google/adk/cli/browser/chunk-DIR2LWLP.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as o,b as e}from"./chunk-3NJNOY56.js";import"./chunk-NALL4A3P.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";export{o as InfoModule,e as createInfoServices}; diff --git a/src/google/adk/cli/browser/chunk-DM36II44.js b/src/google/adk/cli/browser/chunk-DM36II44.js index dc3e6651b6..9b5c457612 100644 --- a/src/google/adk/cli/browser/chunk-DM36II44.js +++ b/src/google/adk/cli/browser/chunk-DM36II44.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as r,Ca as o,Db as d,Yb as l,Zb as s,eb as a,pd as m}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";var f=(()=>{class e extends m{static \u0275fac=(()=>{let i;return function(t){return(i||(i=o(e)))(t||e)}})();static \u0275cmp=r({type:e,selectors:[["a2ui-divider"]],features:[a],decls:1,vars:4,template:function(n,t){n&1&&d(0,"hr"),n&2&&(l(t.theme.additionalStyles==null?null:t.theme.additionalStyles.Divider),s(t.theme.components.Divider))},styles:["[_nghost-%COMP%]{display:block;min-height:0;overflow:auto}hr[_ngcontent-%COMP%]{height:1px;background:#ccc;border:none}"]})}return e})();export{f as Divider}; diff --git a/src/google/adk/cli/browser/chunk-DMWOYWYQ.js b/src/google/adk/cli/browser/chunk-DMWOYWYQ.js index ebc3890142..9cce10b22a 100644 --- a/src/google/adk/cli/browser/chunk-DMWOYWYQ.js +++ b/src/google/adk/cli/browser/chunk-DMWOYWYQ.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{g as i}from"./chunk-JRNAXTJ7.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as a}; diff --git a/src/google/adk/cli/browser/chunk-DRBE27N3.js b/src/google/adk/cli/browser/chunk-DRBE27N3.js index 47caf1de8e..8e460e89ed 100644 --- a/src/google/adk/cli/browser/chunk-DRBE27N3.js +++ b/src/google/adk/cli/browser/chunk-DRBE27N3.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{k as m}from"./chunk-WBLSVR3V.js";import{Y as s,r as p}from"./chunk-QFMJV7VH.js";import{g as a}from"./chunk-JRNAXTJ7.js";import{j as g}from"./chunk-RMXJBC7V.js";var S=a(({flowchart:o})=>{let n=o?.subGraphTitleMargin?.top??0,t=o?.subGraphTitleMargin?.bottom??0,r=n+t;return{subGraphTitleTopMargin:n,subGraphTitleBottomMargin:t,subGraphTitleTotalMargin:r}},"getSubGraphTitleMargins");function b(o,n){return g(this,null,function*(){let t=o.getElementsByTagName("img");if(!t||t.length===0)return;let r=n.replace(/]*>/g,"").trim()==="";yield Promise.all([...t].map(e=>new Promise(u=>{function i(){if(e.style.display="flex",e.style.flexDirection="column",r){let f=s().fontSize?s().fontSize:window.getComputedStyle(document.body).fontSize,c=5,[d=p.fontSize]=m(f),l=d*c+"px";e.style.minWidth=l,e.style.maxWidth=l}else e.style.width="100%";u(e)}a(i,"setupImage"),setTimeout(()=>{e.complete&&i()}),e.addEventListener("error",i),e.addEventListener("load",i)})))})}a(b,"configureLabelImages");export{S as a,b}; diff --git a/src/google/adk/cli/browser/chunk-EGBSMT36.js b/src/google/adk/cli/browser/chunk-EGBSMT36.js index d272229d61..8118b7f796 100644 --- a/src/google/adk/cli/browser/chunk-EGBSMT36.js +++ b/src/google/adk/cli/browser/chunk-EGBSMT36.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + var Pr=typeof global=="object"&&global&&global.Object===Object&&global,U=Pr;var Sr=typeof self=="object"&&self&&self.Object===Object&&self,Ir=U||Sr||Function("return this")(),c=Ir;var Mr=c.Symbol,_=Mr;var nt=Object.prototype,Er=nt.hasOwnProperty,Fr=nt.toString,E=_?_.toStringTag:void 0;function Lr(t){var r=Er.call(t,E),e=t[E];try{t[E]=void 0;var o=!0}catch(i){}var a=Fr.call(t);return o&&(r?t[E]=e:delete t[E]),a}var it=Lr;var Dr=Object.prototype,Gr=Dr.toString;function Nr(t){return Gr.call(t)}var ft=Nr;var zr="[object Null]",Ur="[object Undefined]",pt=_?_.toStringTag:void 0;function Rr(t){return t==null?t===void 0?Ur:zr:pt&&pt in Object(t)?it(t):ft(t)}var g=Rr;function Hr(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}var s=Hr;var Br="[object AsyncFunction]",Vr="[object Function]",Kr="[object GeneratorFunction]",qr="[object Proxy]";function $r(t){if(!s(t))return!1;var r=g(t);return r==Vr||r==Kr||r==Br||r==qr}var O=$r;function Xr(t){return function(){return t}}var ut=Xr;var Jr=c["__core-js_shared__"],R=Jr;var st=(function(){var t=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Wr(t){return!!st&&st in t}var mt=Wr;var Yr=Function.prototype,Zr=Yr.toString;function Qr(t){if(t!=null){try{return Zr.call(t)}catch(r){}try{return t+""}catch(r){}}return""}var lt=Qr;var kr=/[\\^$.*+?()[\]{}|]/g,te=/^\[object .+?Constructor\]$/,re=Function.prototype,ee=Object.prototype,oe=re.toString,ae=ee.hasOwnProperty,ne=RegExp("^"+oe.call(ae).replace(kr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ie(t){if(!s(t)||mt(t))return!1;var r=O(t)?ne:te;return r.test(lt(t))}var ct=ie;function fe(t,r){return t?.[r]}var dt=fe;function pe(t,r){var e=dt(t,r);return ct(e)?e:void 0}var T=pe;var ue=T(Object,"create"),h=ue;function se(){this.__data__=h?h(null):{},this.size=0}var ht=se;function me(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}var gt=me;var le="__lodash_hash_undefined__",ce=Object.prototype,de=ce.hasOwnProperty;function he(t){var r=this.__data__;if(h){var e=r[t];return e===le?void 0:e}return de.call(r,t)?r[t]:void 0}var yt=he;var ge=Object.prototype,ye=ge.hasOwnProperty;function be(t){var r=this.__data__;return h?r[t]!==void 0:ye.call(r,t)}var bt=be;var xe="__lodash_hash_undefined__";function ve(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=h&&r===void 0?xe:r,this}var xt=ve;function j(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r-1}var Tt=Pe;function Se(t,r){var e=this.__data__,o=b(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this}var jt=Se;function A(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r-1&&t%1==0&&t<=go}var K=yo;function bo(t){return t!=null&&K(t.length)&&!O(t)}var I=bo;function xo(t){return d(t)&&I(t)}var Qt=xo;function vo(){return!1}var kt=vo;var er=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tr=er&&typeof module=="object"&&module&&!module.nodeType&&module,_o=tr&&tr.exports===er,rr=_o?c.Buffer:void 0,Oo=rr?rr.isBuffer:void 0,To=Oo||kt,q=To;var jo="[object Object]",Ao=Function.prototype,Co=Object.prototype,or=Ao.toString,wo=Co.hasOwnProperty,Po=or.call(Object);function So(t){if(!d(t)||g(t)!=jo)return!1;var r=B(t);if(r===null)return!0;var e=wo.call(r,"constructor")&&r.constructor;return typeof e=="function"&&e instanceof e&&or.call(e)==Po}var ar=So;var Io="[object Arguments]",Mo="[object Array]",Eo="[object Boolean]",Fo="[object Date]",Lo="[object Error]",Do="[object Function]",Go="[object Map]",No="[object Number]",zo="[object Object]",Uo="[object RegExp]",Ro="[object Set]",Ho="[object String]",Bo="[object WeakMap]",Vo="[object ArrayBuffer]",Ko="[object DataView]",qo="[object Float32Array]",$o="[object Float64Array]",Xo="[object Int8Array]",Jo="[object Int16Array]",Wo="[object Int32Array]",Yo="[object Uint8Array]",Zo="[object Uint8ClampedArray]",Qo="[object Uint16Array]",ko="[object Uint32Array]",p={};p[qo]=p[$o]=p[Xo]=p[Jo]=p[Wo]=p[Yo]=p[Zo]=p[Qo]=p[ko]=!0;p[Io]=p[Mo]=p[Vo]=p[Eo]=p[Ko]=p[Fo]=p[Lo]=p[Do]=p[Go]=p[No]=p[zo]=p[Uo]=p[Ro]=p[Ho]=p[Bo]=!1;function ta(t){return d(t)&&K(t.length)&&!!p[g(t)]}var nr=ta;function ra(t){return function(r){return t(r)}}var ir=ra;var fr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,N=fr&&typeof module=="object"&&module&&!module.nodeType&&module,ea=N&&N.exports===fr,et=ea&&U.process,oa=(function(){try{var t=N&&N.require&&N.require("util").types;return t||et&&et.binding&&et.binding("util")}catch(r){}})(),ot=oa;var pr=ot&&ot.isTypedArray,aa=pr?ir(pr):nr,$=aa;function na(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var z=na;var ia=Object.prototype,fa=ia.hasOwnProperty;function pa(t,r,e){var o=t[r];(!(fa.call(t,r)&&y(o,e))||e===void 0&&!(r in t))&&S(t,r,e)}var ur=pa;function ua(t,r,e,o){var a=!e;e||(e={});for(var i=-1,f=r.length;++i-1&&t%1==0&&t0){if(++r>=Pa)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}var Tr=Ma;var Ea=Tr(Or),jr=Ea;function Fa(t,r){return jr(_r(t,r,W),t+"")}var Ar=Fa;function La(t,r,e){if(!s(e))return!1;var o=typeof r;return(o=="number"?I(e)&&X(r,e.length):o=="string"&&r in e)?y(e[r],t):!1}var Cr=La;function Da(t){return Ar(function(r,e){var o=-1,a=e.length,i=a>1?e[a-1]:void 0,f=a>2?e[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,f&&Cr(e[0],e[1],f)&&(i=a<3?void 0:i,a=1),r=Object(r);++o{class a extends b{value=n.required();label=n("");minValue=n.required();maxValue=n.required();inputId=super.getUniqueId("a2ui-slider");resolvedValue=h(()=>super.resolvePrimitive(this.value())??0);handleInput(t){let i=this.value()?.path;!(t.target instanceof HTMLInputElement)||!i||this.processor.setData(this.component(),i,t.target.valueAsNumber,this.surfaceId())}static \u0275fac=(()=>{let t;return function(e){return(t||(t=m(a)))(e||a)}})();static \u0275cmp=s({type:a,selectors:[["","a2ui-slider",""]],inputs:{value:[1,"value"],label:[1,"label"],minValue:[1,"minValue"],maxValue:[1,"maxValue"]},features:[p],attrs:M,decls:4,vars:14,consts:[[3,"for"],["autocomplete","off","type","range",3,"input","value","min","max","id"]],template:function(i,e){i&1&&(r(0,"section")(1,"label",0),g(2),u(),r(3,"input",1),c("input",function(y){return e.handleInput(y)}),u()()),i&2&&(o(e.theme.components.Slider.container),l(),o(e.theme.components.Slider.label),d("htmlFor",e.inputId),l(),f(" ",e.label()," "),l(),v(e.theme.additionalStyles==null?null:e.theme.additionalStyles.Slider),o(e.theme.components.Slider.element),d("value",e.resolvedValue())("min",e.minValue())("max",e.maxValue())("id",e.inputId))},styles:["[_nghost-%COMP%]{display:block;flex:var(--weight)}input[_ngcontent-%COMP%]{display:block;width:100%;box-sizing:border-box}"]})}return a})();export{E as Slider}; diff --git a/src/google/adk/cli/browser/chunk-F57TI45K.js b/src/google/adk/cli/browser/chunk-F57TI45K.js index 7fbe35e94f..cfb676bd83 100644 --- a/src/google/adk/cli/browser/chunk-F57TI45K.js +++ b/src/google/adk/cli/browser/chunk-F57TI45K.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{b as y,c as f,d as p,e as h}from"./chunk-TNJPXCAB.js";import{a as g,d,g as u}from"./chunk-W7PRDKNL.js";import{c as m}from"./chunk-WBLSVR3V.js";import{A as l,M as s}from"./chunk-QFMJV7VH.js";import{g as o,i}from"./chunk-JRNAXTJ7.js";import{j as a}from"./chunk-RMXJBC7V.js";var L={common:s,getConfig:l,insertCluster:d,insertEdge:p,insertEdgeLabel:y,insertMarkers:h,insertNode:u,interpolateToCurve:m,labelHelper:g,log:i,positionEdgeLabel:f},t={},w=o(r=>{for(let e of r)t[e.name]=e},"registerLayoutLoaders"),c=o(()=>{w([{name:"dagre",loader:o(()=>a(null,null,function*(){return yield import("./chunk-TNYN2TVW.js")}),"loader")},{name:"cose-bilkent",loader:o(()=>a(null,null,function*(){return yield import("./chunk-HD4LLD2O.js")}),"loader")}])},"registerDefaultLayoutLoaders");c();var C=o((r,e)=>a(null,null,function*(){if(!(r.layoutAlgorithm in t))throw new Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);let n=t[r.layoutAlgorithm];return(yield n.loader()).render(r,e,L,{algorithm:n.algorithm})}),"render"),D=o((r="",{fallback:e="dagre"}={})=>{if(r in t)return r;if(e in t)return i.warn(`Layout algorithm ${r} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${r} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm");export{w as a,C as b,D as c}; diff --git a/src/google/adk/cli/browser/chunk-FDH623K7.js b/src/google/adk/cli/browser/chunk-FDH623K7.js index 1b0ae81555..cdd93b289c 100644 --- a/src/google/adk/cli/browser/chunk-FDH623K7.js +++ b/src/google/adk/cli/browser/chunk-FDH623K7.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as r,b as e}from"./chunk-JNY2YWG7.js";import"./chunk-NALL4A3P.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";export{r as RadarModule,e as createRadarServices}; diff --git a/src/google/adk/cli/browser/chunk-GP6TCC26.js b/src/google/adk/cli/browser/chunk-GP6TCC26.js index 48526d49ed..537980fc9f 100644 --- a/src/google/adk/cli/browser/chunk-GP6TCC26.js +++ b/src/google/adk/cli/browser/chunk-GP6TCC26.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{e as m}from"./chunk-RMXJBC7V.js";var R=m(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0;e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;e.htmlCtrlEntityRegex=/&(newline|tab);/gi;e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;e.urlSchemeRegex=/^.+(:|:)/gim;e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;e.relativeFirstCharacters=[".","/"];e.BLANK_URL="about:blank"});var v=m(s=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});s.sanitizeUrl=p;var t=R();function d(r){return t.relativeFirstCharacters.indexOf(r[0])>-1}function x(r){var c=r.replace(t.ctrlCharactersRegex,"");return c.replace(t.htmlEntitiesRegex,function(a,i){return String.fromCharCode(i)})}function C(r){return URL.canParse(r)}function g(r){try{return decodeURIComponent(r)}catch(c){return r}}function p(r){if(!r)return t.BLANK_URL;var c,a=g(r.trim());do a=x(a).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),a=g(a),c=a.match(t.ctrlCharactersRegex)||a.match(t.htmlEntitiesRegex)||a.match(t.htmlCtrlEntityRegex)||a.match(t.whitespaceEscapeCharsRegex);while(c&&c.length>0);var i=a;if(!i)return t.BLANK_URL;if(d(i))return i;var h=i.trimStart(),u=h.match(t.urlSchemeRegex);if(!u)return i;var n=u[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(n))return t.BLANK_URL;var o=h.replace(/\\/g,"/");if(n==="mailto:"||n.includes("://"))return o;if(n==="http:"||n==="https:"){if(!C(o))return t.BLANK_URL;var l=new URL(o);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return o}});export{v as a}; diff --git a/src/google/adk/cli/browser/chunk-HD4LLD2O.js b/src/google/adk/cli/browser/chunk-HD4LLD2O.js index f2bef5be3b..49d4b80bc6 100644 --- a/src/google/adk/cli/browser/chunk-HD4LLD2O.js +++ b/src/google/adk/cli/browser/chunk-HD4LLD2O.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as z}from"./chunk-YVVLWU7S.js";import{a as ot,g as W,i as Z}from"./chunk-JRNAXTJ7.js";import{a as B,b as K,e as q,h as yt,j as k}from"./chunk-RMXJBC7V.js";var tt=q((Q,J)=>{"use strict";(function(R,y){typeof Q=="object"&&typeof J=="object"?J.exports=y():typeof define=="function"&&define.amd?define([],y):typeof Q=="object"?Q.layoutBase=y():R.layoutBase=y()})(Q,function(){return(function(N){var R={};function y(n){if(R[n])return R[n].exports;var e=R[n]={i:n,l:!1,exports:{}};return N[n].call(e.exports,e,e.exports,y),e.l=!0,e.exports}return y.m=N,y.c=R,y.i=function(n){return n},y.d=function(n,e,t){y.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:t})},y.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return y.d(e,"a",e),e},y.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},y.p="",y(y.s=26)})([(function(N,R,y){"use strict";function n(){}n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,N.exports=n}),(function(N,R,y){"use strict";var n=y(2),e=y(8),t=y(9);function r(g,s,d){n.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=s}r.prototype=Object.create(n.prototype);for(var a in n)r[a]=n[a];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(g,s){for(var d=this.getOtherEnd(g),i=s.getGraphManager().getRoot();;){if(d.getOwner()==s)return d;if(d.getOwner()==i)break;d=d.getOwner().getParent()}return null},r.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=r}),(function(N,R,y){"use strict";function n(e){this.vGraphObject=e}N.exports=n}),(function(N,R,y){"use strict";var n=y(2),e=y(10),t=y(13),r=y(0),a=y(16),g=y(4);function s(i,h,l,p){l==null&&p==null&&(p=h),n.call(this,p),i.graphManager!=null&&(i=i.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=i,l!=null&&h!=null?this.rect=new t(h.x,h.y,l.width,l.height):this.rect=new t}s.prototype=Object.create(n.prototype);for(var d in n)s[d]=n[d];s.prototype.getEdges=function(){return this.edges},s.prototype.getChild=function(){return this.child},s.prototype.getOwner=function(){return this.owner},s.prototype.getWidth=function(){return this.rect.width},s.prototype.setWidth=function(i){this.rect.width=i},s.prototype.getHeight=function(){return this.rect.height},s.prototype.setHeight=function(i){this.rect.height=i},s.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},s.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},s.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},s.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},s.prototype.getRect=function(){return this.rect},s.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},s.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},s.prototype.setRect=function(i,h){this.rect.x=i.x,this.rect.y=i.y,this.rect.width=h.width,this.rect.height=h.height},s.prototype.setCenter=function(i,h){this.rect.x=i-this.rect.width/2,this.rect.y=h-this.rect.height/2},s.prototype.setLocation=function(i,h){this.rect.x=i,this.rect.y=h},s.prototype.moveBy=function(i,h){this.rect.x+=i,this.rect.y+=h},s.prototype.getEdgeListToNode=function(i){var h=[],l,p=this;return p.edges.forEach(function(v){if(v.target==i){if(v.source!=p)throw"Incorrect edge source!";h.push(v)}}),h},s.prototype.getEdgesBetween=function(i){var h=[],l,p=this;return p.edges.forEach(function(v){if(!(v.source==p||v.target==p))throw"Incorrect edge source and/or target";(v.target==i||v.source==i)&&h.push(v)}),h},s.prototype.getNeighborsList=function(){var i=new Set,h=this;return h.edges.forEach(function(l){if(l.source==h)i.add(l.target);else{if(l.target!=h)throw"Incorrect incidency!";i.add(l.source)}}),i},s.prototype.withChildren=function(){var i=new Set,h,l;if(i.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;vh&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>l&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-l)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-l),this.setHeight(this.labelHeight))}}},s.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},s.prototype.transform=function(i){var h=this.rect.x;h>r.WORLD_BOUNDARY?h=r.WORLD_BOUNDARY:h<-r.WORLD_BOUNDARY&&(h=-r.WORLD_BOUNDARY);var l=this.rect.y;l>r.WORLD_BOUNDARY?l=r.WORLD_BOUNDARY:l<-r.WORLD_BOUNDARY&&(l=-r.WORLD_BOUNDARY);var p=new g(h,l),v=i.inverseTransformPoint(p);this.setLocation(v.x,v.y)},s.prototype.getLeft=function(){return this.rect.x},s.prototype.getRight=function(){return this.rect.x+this.rect.width},s.prototype.getTop=function(){return this.rect.y},s.prototype.getBottom=function(){return this.rect.y+this.rect.height},s.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=s}),(function(N,R,y){"use strict";function n(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(e){this.x=e},n.prototype.setY=function(e){this.y=e},n.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=n}),(function(N,R,y){"use strict";var n=y(2),e=y(10),t=y(0),r=y(6),a=y(3),g=y(1),s=y(13),d=y(12),i=y(11);function h(p,v,L){n.call(this,L),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof r?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(n.prototype);for(var l in n)h[l]=n[l];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,L){if(v==null&&L==null){var c=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(c)>-1)throw"Node already in graph!";return c.owner=this,this.getNodes().push(c),c}else{var A=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(L)>-1))throw"Source or target not in graph!";if(!(v.owner==L.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=L.owner?null:(A.source=v,A.target=L,A.isInterGraph=!1,this.getEdges().push(A),v.edges.push(A),L!=v&&L.edges.push(A),A)}},h.prototype.remove=function(p){var v=p;if(p instanceof a){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var L=v.edges.slice(),c,A=L.length,T=0;T-1&&f>-1))throw"Source and/or target doesn't know this edge!";c.source.edges.splice(o,1),c.target!=c.source&&c.target.edges.splice(f,1);var C=c.source.owner.getEdges().indexOf(c);if(C==-1)throw"Not in owner's edge list!";c.source.owner.getEdges().splice(C,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,L,c,A,T=this.getNodes(),C=T.length,o=0;oL&&(p=L),v>c&&(v=c)}return p==e.MAX_VALUE?null:(T[0].getParent().paddingLeft!=null?A=T[0].getParent().paddingLeft:A=this.margin,this.left=v-A,this.top=p-A,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,L=-e.MAX_VALUE,c=e.MAX_VALUE,A=-e.MAX_VALUE,T,C,o,f,u,E=this.nodes,D=E.length,O=0;OT&&(v=T),Lo&&(c=o),AT&&(v=T),Lo&&(c=o),A=this.nodes.length){var D=0;L.forEach(function(O){O.owner==p&&D++}),D==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,R,y){"use strict";var n,e=y(1);function t(r){n=y(5),this.layout=r,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var r=this.layout.newGraph(),a=this.layout.newNode(null),g=this.add(r,a);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(r,a,g,s,d){if(g==null&&s==null&&d==null){if(r==null)throw"Graph is null!";if(a==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(a.child!=null)throw"Already has a child!";return r.parent=a,a.child=r,r}else{d=g,s=a,g=r;var i=s.getOwner(),h=d.getOwner();if(!(i!=null&&i.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(i==h)return g.isInterGraph=!1,i.add(g,s,d);if(g.isInterGraph=!0,g.source=s,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(r){if(r instanceof n){var a=r;if(a.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(a==this.rootGraph||a.parent!=null&&a.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(a.getEdges());for(var s,d=g.length,i=0;i=r.getRight()?a[0]+=Math.min(r.getX()-t.getX(),t.getRight()-r.getRight()):r.getX()<=t.getX()&&r.getRight()>=t.getRight()&&(a[0]+=Math.min(t.getX()-r.getX(),r.getRight()-t.getRight())),t.getY()<=r.getY()&&t.getBottom()>=r.getBottom()?a[1]+=Math.min(r.getY()-t.getY(),t.getBottom()-r.getBottom()):r.getY()<=t.getY()&&r.getBottom()>=t.getBottom()&&(a[1]+=Math.min(t.getY()-r.getY(),r.getBottom()-t.getBottom()));var d=Math.abs((r.getCenterY()-t.getCenterY())/(r.getCenterX()-t.getCenterX()));r.getCenterY()===t.getCenterY()&&r.getCenterX()===t.getCenterX()&&(d=1);var i=d*a[0],h=a[1]/d;a[0]i)return a[0]=g,a[1]=l,a[2]=d,a[3]=E,!1;if(sd)return a[0]=h,a[1]=s,a[2]=f,a[3]=i,!1;if(gd?(a[0]=v,a[1]=L,I=!0):(a[0]=p,a[1]=l,I=!0):F===x&&(g>d?(a[0]=h,a[1]=l,I=!0):(a[0]=c,a[1]=L,I=!0)),-Y===x?d>g?(a[2]=u,a[3]=E,w=!0):(a[2]=f,a[3]=o,w=!0):Y===x&&(d>g?(a[2]=C,a[3]=o,w=!0):(a[2]=D,a[3]=E,w=!0)),I&&w)return!1;if(g>d?s>i?(M=this.getCardinalDirection(F,x,4),G=this.getCardinalDirection(Y,x,2)):(M=this.getCardinalDirection(-F,x,3),G=this.getCardinalDirection(-Y,x,1)):s>i?(M=this.getCardinalDirection(-F,x,1),G=this.getCardinalDirection(-Y,x,3)):(M=this.getCardinalDirection(F,x,2),G=this.getCardinalDirection(Y,x,4)),!I)switch(M){case 1:P=l,S=g+-T/x,a[0]=S,a[1]=P;break;case 2:S=c,P=s+A*x,a[0]=S,a[1]=P;break;case 3:P=L,S=g+T/x,a[0]=S,a[1]=P;break;case 4:S=v,P=s+-A*x,a[0]=S,a[1]=P;break}if(!w)switch(G){case 1:U=o,_=d+-m/x,a[2]=_,a[3]=U;break;case 2:_=D,U=i+O*x,a[2]=_,a[3]=U;break;case 3:U=E,_=d+m/x,a[2]=_,a[3]=U;break;case 4:_=u,U=i+-O*x,a[2]=_,a[3]=U;break}}return!1},e.getCardinalDirection=function(t,r,a){return t>r?a:1+a%4},e.getIntersection=function(t,r,a,g){if(g==null)return this.getIntersection2(t,r,a);var s=t.x,d=t.y,i=r.x,h=r.y,l=a.x,p=a.y,v=g.x,L=g.y,c=void 0,A=void 0,T=void 0,C=void 0,o=void 0,f=void 0,u=void 0,E=void 0,D=void 0;return T=h-d,o=s-i,u=i*d-s*h,C=L-p,f=l-v,E=v*p-l*L,D=T*f-C*o,D===0?null:(c=(o*E-f*u)/D,A=(C*u-T*E)/D,new n(c,A))},e.angleOfVector=function(t,r,a,g){var s=void 0;return t!==a?(s=Math.atan((g-r)/(a-t)),a0?1:e<0?-1:0},n.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},n.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=n}),(function(N,R,y){"use strict";function n(){}n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,N.exports=n}),(function(N,R,y){"use strict";var n=(function(){function s(d,i){for(var h=0;h"u"?"undefined":n(t);return t==null||r!="object"&&r!="function"},N.exports=e}),(function(N,R,y){"use strict";function n(l){if(Array.isArray(l)){for(var p=0,v=Array(l.length);p0&&p;){for(T.push(o[0]);T.length>0&&p;){var f=T[0];T.splice(0,1),A.add(f);for(var u=f.getEdges(),c=0;c-1&&o.splice(m,1)}A=new Set,C=new Map}}return l},h.prototype.createDummyNodesForBendpoints=function(l){for(var p=[],v=l.source,L=this.graphManager.calcLowestCommonAncestor(l.source,l.target),c=0;c0){for(var L=this.edgeToDummyNodes.get(v),c=0;c=0&&p.splice(E,1);var D=C.getNeighborsList();D.forEach(function(I){if(v.indexOf(I)<0){var w=L.get(I),F=w-1;F==1&&f.push(I),L.set(I,F)}})}v=v.concat(f),(p.length==1||p.length==2)&&(c=!0,A=p[0])}return A},h.prototype.setGraphManager=function(l){this.graphManager=l},N.exports=h}),(function(N,R,y){"use strict";function n(){}n.seed=1,n.x=0,n.nextDouble=function(){return n.x=Math.sin(n.seed++)*1e4,n.x-Math.floor(n.x)},N.exports=n}),(function(N,R,y){"use strict";var n=y(4);function e(t,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var r=0,a=this.lworldExtX;return a!=0&&(r=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/a),r},e.prototype.transformY=function(t){var r=0,a=this.lworldExtY;return a!=0&&(r=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/a),r},e.prototype.inverseTransformX=function(t){var r=0,a=this.ldeviceExtX;return a!=0&&(r=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/a),r},e.prototype.inverseTransformY=function(t){var r=0,a=this.ldeviceExtY;return a!=0&&(r=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/a),r},e.prototype.inverseTransformPoint=function(t){var r=new n(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return r},N.exports=e}),(function(N,R,y){"use strict";function n(i){if(Array.isArray(i)){for(var h=0,l=Array(i.length);ht.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(i-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(i>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(i-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},s.prototype.calcSpringForces=function(){for(var i=this.getAllEdges(),h,l=0;l0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l,p,v,L,c=this.getAllNodes(),A;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&i&&this.updateGrid(),A=new Set,l=0;lT||A>T)&&(i.gravitationForceX=-this.gravityConstant*v,i.gravitationForceY=-this.gravityConstant*L)):(T=h.getEstimatedSize()*this.compoundGravityRangeFactor,(c>T||A>T)&&(i.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,i.gravitationForceY=-this.gravityConstant*L*this.compoundGravityConstant))},s.prototype.isConverged=function(){var i,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),i=this.totalDisplacement=c.length||T>=c[0].length)){for(var C=0;Cs}}]),a})();N.exports=r}),(function(N,R,y){"use strict";var n=(function(){function r(a,g){for(var s=0;s2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,r),this.sequence1=a,this.sequence2=g,this.match_score=s,this.mismatch_penalty=d,this.gap_penalty=i,this.iMax=a.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;a--){var g=this.listeners[a];g.event===t&&g.callback===r&&this.listeners.splice(a,1)}},e.emit=function(t,r){for(var a=0;a{"use strict";(function(R,y){typeof $=="object"&&typeof et=="object"?et.exports=y(tt()):typeof define=="function"&&define.amd?define(["layout-base"],y):typeof $=="object"?$.coseBase=y(tt()):R.coseBase=y(R.layoutBase)})($,function(N){return(function(R){var y={};function n(e){if(y[e])return y[e].exports;var t=y[e]={i:e,l:!1,exports:{}};return R[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=R,n.c=y,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)})([(function(R,y){R.exports=N}),(function(R,y,n){"use strict";var e=n(0).FDLayoutConstants;function t(){}for(var r in e)t[r]=e[r];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,R.exports=t}),(function(R,y,n){"use strict";var e=n(0).FDLayoutEdge;function t(a,g,s){e.call(this,a,g,s)}t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];R.exports=t}),(function(R,y,n){"use strict";var e=n(0).LGraph;function t(a,g,s){e.call(this,a,g,s)}t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];R.exports=t}),(function(R,y,n){"use strict";var e=n(0).LGraphManager;function t(a){e.call(this,a)}t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];R.exports=t}),(function(R,y,n){"use strict";var e=n(0).FDLayoutNode,t=n(0).IMath;function r(g,s,d,i){e.call(this,g,s,d,i)}r.prototype=Object.create(e.prototype);for(var a in e)r[a]=e[a];r.prototype.move=function(){var g=this.graphManager.getLayout();this.displacementX=g.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=g.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},r.prototype.propogateDisplacementToChildren=function(g,s){for(var d=this.getChild().getNodes(),i,h=0;h0)this.positionNodesRadially(o);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),u=this.nodesWithGravity.filter(function(E){return f.has(E)});this.graphManager.setAllNodesToApplyGravitation(u),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},T.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var o=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(D){return o.has(D)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var u=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(u,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},T.prototype.getPositionsData=function(){for(var o=this.graphManager.getAllNodes(),f={},u=0;u1){var I;for(I=0;IE&&(E=Math.floor(m.y)),O=Math.floor(m.x+s.DEFAULT_COMPONENT_SEPERATION)}this.transform(new l(i.WORLD_CENTER_X-m.x/2,i.WORLD_CENTER_Y-m.y/2))},T.radialLayout=function(o,f,u){var E=Math.max(this.maxDiagonalInTree(o),s.DEFAULT_RADIAL_SEPARATION);T.branchRadialLayout(f,null,0,359,0,E);var D=c.calculateBounds(o),O=new A;O.setDeviceOrgX(D.getMinX()),O.setDeviceOrgY(D.getMinY()),O.setWorldOrgX(u.x),O.setWorldOrgY(u.y);for(var m=0;m1;){var X=U[0];U.splice(0,1);var V=M.indexOf(X);V>=0&&M.splice(V,1),P--,G--}f!=null?_=(M.indexOf(U[0])+1)%P:_=0;for(var b=Math.abs(E-u)/G,H=_;S!=G;H=++H%P){var nt=M[H].getOtherEnd(o);if(nt!=f){var st=(u+S*b)%360,vt=(st+b)%360;T.branchRadialLayout(nt,o,st,vt,D+O,O),S++}}},T.maxDiagonalInTree=function(o){for(var f=v.MIN_VALUE,u=0;uf&&(f=D)}return f},T.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},T.prototype.groupZeroDegreeMembers=function(){var o=this,f={};this.memberGroups={},this.idToDummyNode={};for(var u=[],E=this.graphManager.getAllNodes(),D=0;D"u"&&(f[I]=[]),f[I]=f[I].concat(O)}Object.keys(f).forEach(function(w){if(f[w].length>1){var F="DummyCompound_"+w;o.memberGroups[F]=f[w];var Y=f[w][0].getParent(),x=new a(o.graphManager);x.id=F,x.paddingLeft=Y.paddingLeft||0,x.paddingRight=Y.paddingRight||0,x.paddingBottom=Y.paddingBottom||0,x.paddingTop=Y.paddingTop||0,o.idToDummyNode[F]=x;var M=o.getGraphManager().add(o.newGraph(),x),G=Y.getChild();G.add(x);for(var S=0;S=0;o--){var f=this.compoundOrder[o],u=f.id,E=f.paddingLeft,D=f.paddingTop;this.adjustLocations(this.tiledMemberPack[u],f.rect.x,f.rect.y,E,D)}},T.prototype.repopulateZeroDegreeMembers=function(){var o=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(u){var E=o.idToDummyNode[u],D=E.paddingLeft,O=E.paddingTop;o.adjustLocations(f[u],E.rect.x,E.rect.y,D,O)})},T.prototype.getToBeTiled=function(o){var f=o.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var u=o.getChild();if(u==null)return this.toBeTiled[f]=!1,!1;for(var E=u.getNodes(),D=0;D0)return this.toBeTiled[f]=!1,!1;if(O.getChild()==null){this.toBeTiled[O.id]=!1;continue}if(!this.getToBeTiled(O))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},T.prototype.getNodeDegree=function(o){for(var f=o.id,u=o.getEdges(),E=0,D=0;Dw&&(w=Y.rect.height)}u+=w+o.verticalPadding}},T.prototype.tileCompoundMembers=function(o,f){var u=this;this.tiledMemberPack=[],Object.keys(o).forEach(function(E){var D=f[E];u.tiledMemberPack[E]=u.tileNodes(o[E],D.paddingLeft+D.paddingRight),D.rect.width=u.tiledMemberPack[E].width,D.rect.height=u.tiledMemberPack[E].height})},T.prototype.tileNodes=function(o,f){var u=s.TILING_PADDING_VERTICAL,E=s.TILING_PADDING_HORIZONTAL,D={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:u,horizontalPadding:E};o.sort(function(I,w){return I.rect.width*I.rect.height>w.rect.width*w.rect.height?-1:I.rect.width*I.rect.height0&&(m+=o.horizontalPadding),o.rowWidth[u]=m,o.width0&&(I+=o.verticalPadding);var w=0;I>o.rowHeight[u]&&(w=o.rowHeight[u],o.rowHeight[u]=I,w=o.rowHeight[u]-w),o.height+=w,o.rows[u].push(f)},T.prototype.getShortestRowIndex=function(o){for(var f=-1,u=Number.MAX_VALUE,E=0;Eu&&(f=E,u=o.rowWidth[E]);return f},T.prototype.canAddHorizontal=function(o,f,u){var E=this.getShortestRowIndex(o);if(E<0)return!0;var D=o.rowWidth[E];if(D+o.horizontalPadding+f<=o.width)return!0;var O=0;o.rowHeight[E]0&&(O=u+o.verticalPadding-o.rowHeight[E]);var m;o.width-D>=f+o.horizontalPadding?m=(o.height+O)/(D+f+o.horizontalPadding):m=(o.height+O)/o.width,O=u+o.verticalPadding;var I;return o.widthO&&f!=u){E.splice(-1,1),o.rows[u].push(D),o.rowWidth[f]=o.rowWidth[f]-O,o.rowWidth[u]=o.rowWidth[u]+O,o.width=o.rowWidth[instance.getLongestRowIndex(o)];for(var m=Number.MIN_VALUE,I=0;Im&&(m=E[I].height);f>0&&(m+=o.verticalPadding);var w=o.rowHeight[f]+o.rowHeight[u];o.rowHeight[f]=m,o.rowHeight[u]0)for(var G=D;G<=O;G++)M[0]+=this.grid[G][m-1].length+this.grid[G][m].length-1;if(O0)for(var G=m;G<=I;G++)M[3]+=this.grid[D-1][G].length+this.grid[D][G].length-1;for(var S=v.MAX_VALUE,P,_,U=0;U{"use strict";(function(R,y){typeof j=="object"&&typeof it=="object"?it.exports=y(rt()):typeof define=="function"&&define.amd?define(["cose-base"],y):typeof j=="object"?j.cytoscapeCoseBilkent=y(rt()):R.cytoscapeCoseBilkent=y(R.coseBase)})(j,function(N){return(function(R){var y={};function n(e){if(y[e])return y[e].exports;var t=y[e]={i:e,l:!1,exports:{}};return R[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=R,n.c=y,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)})([(function(R,y){R.exports=N}),(function(R,y,n){"use strict";var e=n(0).layoutBase.LayoutConstants,t=n(0).layoutBase.FDLayoutConstants,r=n(0).CoSEConstants,a=n(0).CoSELayout,g=n(0).CoSENode,s=n(0).layoutBase.PointD,d=n(0).layoutBase.DimensionD,i={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function h(L,c){var A={};for(var T in L)A[T]=L[T];for(var T in c)A[T]=c[T];return A}function l(L){this.options=h(i,L),p(this.options)}var p=function(c){c.nodeRepulsion!=null&&(r.DEFAULT_REPULSION_STRENGTH=t.DEFAULT_REPULSION_STRENGTH=c.nodeRepulsion),c.idealEdgeLength!=null&&(r.DEFAULT_EDGE_LENGTH=t.DEFAULT_EDGE_LENGTH=c.idealEdgeLength),c.edgeElasticity!=null&&(r.DEFAULT_SPRING_STRENGTH=t.DEFAULT_SPRING_STRENGTH=c.edgeElasticity),c.nestingFactor!=null&&(r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.nestingFactor),c.gravity!=null&&(r.DEFAULT_GRAVITY_STRENGTH=t.DEFAULT_GRAVITY_STRENGTH=c.gravity),c.numIter!=null&&(r.MAX_ITERATIONS=t.MAX_ITERATIONS=c.numIter),c.gravityRange!=null&&(r.DEFAULT_GRAVITY_RANGE_FACTOR=t.DEFAULT_GRAVITY_RANGE_FACTOR=c.gravityRange),c.gravityCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.gravityCompound),c.gravityRangeCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.gravityRangeCompound),c.initialEnergyOnIncremental!=null&&(r.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.initialEnergyOnIncremental),c.quality=="draft"?e.QUALITY=0:c.quality=="proof"?e.QUALITY=2:e.QUALITY=1,r.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=c.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=!c.randomize,r.ANIMATE=t.ANIMATE=e.ANIMATE=c.animate,r.TILE=c.tile,r.TILING_PADDING_VERTICAL=typeof c.tilingPaddingVertical=="function"?c.tilingPaddingVertical.call():c.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof c.tilingPaddingHorizontal=="function"?c.tilingPaddingHorizontal.call():c.tilingPaddingHorizontal};l.prototype.run=function(){var L,c,A=this.options,T=this.idToLNode={},C=this.layout=new a,o=this;o.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var f=C.newGraphManager();this.gm=f;var u=this.options.eles.nodes(),E=this.options.eles.edges();this.root=f.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(u),C);for(var D=0;D0){var I;I=A.getGraphManager().add(A.newGraph(),u),this.processChildrenList(I,f,A)}}},l.prototype.stop=function(){return this.stopped=!0,this};var v=function(c){c("layout","cose-bilkent",l)};typeof cytoscape<"u"&&v(cytoscape),R.exports=v})])})});var ht=yt(at(),1);z.use(ht.default);function lt(N,R){N.forEach(y=>{let n={id:y.id,labelText:y.label,height:y.height,width:y.width,padding:y.padding??0};Object.keys(y).forEach(e=>{["id","label","height","width","padding","x","y"].includes(e)||(n[e]=y[e])}),R.add({group:"nodes",data:n,position:{x:y.x??0,y:y.y??0}})})}W(lt,"addNodes");function ut(N,R){N.forEach(y=>{let n={id:y.id,source:y.start,target:y.end};Object.keys(y).forEach(e=>{["id","start","end"].includes(e)||(n[e]=y[e])}),R.add({group:"edges",data:n})})}W(ut,"addEdges");function gt(N){return new Promise(R=>{let y=ot("body").append("div").attr("id","cy").attr("style","display:none"),n=z({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});y.remove(),lt(N.nodes,n),ut(N.edges,n),n.nodes().forEach(function(t){t.layoutDimensions=()=>{let r=t.data();return{w:r.width,h:r.height}}});let e={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(e).run(),n.ready(t=>{Z.info("Cytoscape ready",t),R(n)})})}W(gt,"createCytoscapeInstance");function ft(N){return N.nodes().map(R=>{let y=R.data(),n=R.position(),e={id:y.id,x:n.x,y:n.y};return Object.keys(y).forEach(t=>{t!=="id"&&(e[t]=y[t])}),e})}W(ft,"extractPositionedNodes");function ct(N){return N.edges().map(R=>{let y=R.data(),n=R._private.rscratch,e={id:y.id,source:y.source,target:y.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(y).forEach(t=>{["id","source","target"].includes(t)||(e[t]=y[t])}),e})}W(ct,"extractPositionedEdges");function pt(N,R){return k(this,null,function*(){Z.debug("Starting cose-bilkent layout algorithm");try{dt(N);let y=yield gt(N),n=ft(y),e=ct(y);return Z.debug(`Layout completed: ${n.length} nodes, ${e.length} edges`),{nodes:n,edges:e}}catch(y){throw Z.error("Error in cose-bilkent layout algorithm:",y),y}})}W(pt,"executeCoseBilkentLayout");function dt(N){if(!N)throw new Error("Layout data is required");if(!N.config)throw new Error("Configuration is required in layout data");if(!N.rootNode)throw new Error("Root node is required");if(!N.nodes||!Array.isArray(N.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(N.edges))throw new Error("Edges array is required in layout data");return!0}W(dt,"validateLayoutData");var Et=W((d,i,h,l)=>k(null,[d,i,h,l],function*(N,R,{insertCluster:y,insertEdge:n,insertEdgeLabel:e,insertMarkers:t,insertNode:r,log:a,positionEdgeLabel:g},{algorithm:s}){let p={},v={},L=R.select("g");t(L,N.markers,N.type,N.diagramId);let c=L.insert("g").attr("class","subgraphs"),A=L.insert("g").attr("class","edgePaths"),T=L.insert("g").attr("class","edgeLabels"),C=L.insert("g").attr("class","nodes");a.debug("Inserting nodes into DOM for dimension calculation"),yield Promise.all(N.nodes.map(u=>k(null,null,function*(){if(u.isGroup){let E=B({},u);v[u.id]=E,p[u.id]=E,yield y(c,u)}else{let E=B({},u);p[u.id]=E;let D=yield r(C,u,{config:N.config,dir:N.direction||"TB"}),O=D.node().getBBox();E.width=O.width,E.height=O.height,E.domId=D,a.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}}))),a.debug("Running cose-bilkent layout algorithm");let o=K(B({},N),{nodes:N.nodes.map(u=>{let E=p[u.id];return K(B({},u),{width:E.width,height:E.height})})}),f=yield pt(o,N.config);a.debug("Positioning nodes based on layout results"),f.nodes.forEach(u=>{let E=p[u.id];E?.domId&&(E.domId.attr("transform",`translate(${u.x}, ${u.y})`),E.x=u.x,E.y=u.y,a.debug(`Positioned node ${E.id} at center (${u.x}, ${u.y})`))}),f.edges.forEach(u=>{let E=N.edges.find(D=>D.id===u.id);E&&(E.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),a.debug("Inserting and positioning edges"),yield Promise.all(N.edges.map(u=>k(null,null,function*(){let E=yield e(T,u),D=p[u.start??""],O=p[u.end??""];if(D&&O){let m=f.edges.find(I=>I.id===u.id);if(m){a.debug("APA01 positionedEdge",m);let I=B({},u),w=n(A,I,v,N.type,D,O,N.diagramId);g(I,w)}else{let I=K(B({},u),{points:[{x:D.x||0,y:D.y||0},{x:O.x||0,y:O.y||0}]}),w=n(A,I,v,N.type,D,O,N.diagramId);g(I,w)}}}))),a.debug("Cose-bilkent rendering completed")}),"render"),At=Et;export{At as render}; diff --git a/src/google/adk/cli/browser/chunk-HDC4PFPG.js b/src/google/adk/cli/browser/chunk-HDC4PFPG.js index 072b0cc4ff..0718d376d5 100644 --- a/src/google/adk/cli/browser/chunk-HDC4PFPG.js +++ b/src/google/adk/cli/browser/chunk-HDC4PFPG.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as e,b as r}from"./chunk-WR6HISGZ.js";import"./chunk-NALL4A3P.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";export{e as PieModule,r as createPieServices}; diff --git a/src/google/adk/cli/browser/chunk-HTWWQBR6.js b/src/google/adk/cli/browser/chunk-HTWWQBR6.js index 3761e7ee90..01c889333e 100644 --- a/src/google/adk/cli/browser/chunk-HTWWQBR6.js +++ b/src/google/adk/cli/browser/chunk-HTWWQBR6.js @@ -1,2 +1,16 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import"./chunk-RMXJBC7V.js";var O=function(l,i){if(!(l instanceof i))throw new TypeError("Cannot call a class as a function")},R=(function(){function l(i,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:1,e=i>0?l.toFixed(i).replace(/0+$/,"").replace(/\.$/,""):l.toString();return e||"0"}var z=(function(){function l(i,e,t,r){O(this,l);var n=this;function o(a){if(a.startsWith("hsl")){var s=a.match(/([\-\d\.e]+)/g).map(Number),p=y(s,4),u=p[0],f=p[1],d=p[2],b=p[3];b===void 0&&(b=1),u/=360,f/=100,d/=100,n.hsla=[u,f,d,b]}else if(a.startsWith("rgb")){var m=a.match(/([\-\d\.e]+)/g).map(Number),h=y(m,4),v=h[0],g=h[1],S=h[2],k=h[3];k===void 0&&(k=1),n.rgba=[v,g,S,k]}else a.startsWith("#")?n.rgba=l.hexToRgb(a):n.rgba=l.nameToRgb(a)||l.hexToRgb(a)}if(i!==void 0)if(Array.isArray(i))this.rgba=i;else if(t===void 0){var c=i&&""+i;c&&o(c.toLowerCase())}else this.rgba=[i,e,t,r===void 0?1:r]}return R(l,[{key:"printRGB",value:function(e){var t=e?this.rgba:this.rgba.slice(0,3),r=t.map(function(n,o){return A(n,o===3?3:0)});return e?"rgba("+r+")":"rgb("+r+")"}},{key:"printHSL",value:function(e){var t=[360,100,100,1],r=["","%","%",""],n=e?this.hsla:this.hsla.slice(0,3),o=n.map(function(c,a){return A(c*t[a],a===3?3:1)+r[a]});return e?"hsla("+o+")":"hsl("+o+")"}},{key:"printHex",value:function(e){var t=this.hex;return e?t:t.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=l.hslToRgb(this._hsla)},set:function(e){e.length===3&&(e[3]=1),this._rgba=e,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=l.rgbToHsl(this._rgba)},set:function(e){e.length===3&&(e[3]=1),this._hsla=e,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var e=this.rgba,t=e.map(function(r,n){return n<3?r.toString(16):Math.round(r*255).toString(16)});return"#"+t.map(function(r){return r.padStart(2,"0")}).join("")},set:function(e){this.rgba=l.hexToRgb(e)}}],[{key:"hexToRgb",value:function(e){var t=(e.startsWith("#")?e.slice(1):e).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!t.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+e);var r=t.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(n){return parseInt(n,16)});return r[3]=r[3]/255,r}},{key:"nameToRgb",value:function(e){var t=e.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=N[t];return r===void 0?r:l.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(e){var t=y(e,4),r=t[0],n=t[1],o=t[2],c=t[3];r/=255,n/=255,o/=255;var a=Math.max(r,n,o),s=Math.min(r,n,o),p=void 0,u=void 0,f=(a+s)/2;if(a===s)p=u=0;else{var d=a-s;switch(u=f>.5?d/(2-a-s):d/(a+s),a){case r:p=(n-o)/d+(n1&&(g-=1),g<.16666666666666666?h+(v-h)*6*g:g<.5?v:g<.6666666666666666?h+(v-h)*(.6666666666666666-g)*6:h},f=o<.5?o*(1+n):o+n-o*n,d=2*o-f;a=u(d,f,r+1/3),s=u(d,f,r),p=u(d,f,r-1/3)}var b=[a*255,s*255,p*255].map(Math.round);return b[3]=c,b}}]),l})(),F=(function(){function l(){O(this,l),this._events=[]}return R(l,[{key:"add",value:function(e,t,r){e.addEventListener(t,r,!1),this._events.push({target:e,type:t,handler:r})}},{key:"remove",value:function(e,t,r){this._events=this._events.filter(function(n){var o=!0;return e&&e!==n.target&&(o=!1),t&&t!==n.type&&(o=!1),r&&r!==n.handler&&(o=!1),o&&l._doRemove(n.target,n.type,n.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(e){return l._doRemove(e.target,e.type,e.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(e,t,r){e.removeEventListener(t,r,!1)}}]),l})();function U(l){var i=document.createElement("div");return i.innerHTML=l,i.firstElementChild}function T(l,i,e){var t=!1;function r(a,s,p){return Math.max(s,Math.min(a,p))}function n(a,s,p){if(p&&(t=!0),!!t){a.preventDefault();var u=i.getBoundingClientRect(),f=u.width,d=u.height,b=s.clientX,m=s.clientY,h=r(b-u.left,0,f),v=r(m-u.top,0,d);e(h/f,v/d)}}function o(a,s){var p=a.buttons===void 0?a.which:a.buttons;p===1?n(a,a,s):t=!1}function c(a,s){a.touches.length===1?n(a,a.touches[0],s):t=!1}l.add(i,"mousedown",function(a){o(a,!0)}),l.add(i,"touchstart",function(a){c(a,!0)}),l.add(window,"mousemove",o),l.add(i,"touchmove",c),l.add(window,"mouseup",function(a){t=!1}),l.add(i,"touchend",function(a){t=!1}),l.add(i,"touchcancel",function(a){t=!1})}var B=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em, linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,G=360,P="keydown",x="mousedown",H="focusin";function _(l,i){return(i||document).querySelector(l)}function M(l){l.preventDefault(),l.stopPropagation()}function D(l,i,e,t,r){l.add(i,P,function(n){e.indexOf(n.key)>=0&&(r&&M(n),t(n))})}var W=(function(){function l(i){O(this,l),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new F,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(i)}return R(l,[{key:"setOptions",value:function(e){var t=this;if(!e)return;var r=this.settings;function n(s,p,u){for(var f in s)u&&u.indexOf(f)>=0||(p[f]=s[f])}if(e instanceof HTMLElement)r.parent=e;else{r.parent&&e.parent&&r.parent!==e.parent&&(this._events.remove(r.parent),this._popupInited=!1),n(e,r),e.onChange&&(this.onChange=e.onChange),e.onDone&&(this.onDone=e.onDone),e.onOpen&&(this.onOpen=e.onOpen),e.onClose&&(this.onClose=e.onClose);var o=e.color||e.colour;o&&this._setColor(o)}var c=r.parent;if(c&&r.popup&&!this._popupInited){var a=function(p){return t.openHandler(p)};this._events.add(c,"click",a),D(this._events,c,[" ","Spacebar","Enter"],a),this._popupInited=!0}else e.parent&&!r.popup&&this.show()}},{key:"openHandler",value:function(e){if(this.show()){e&&e.preventDefault(),this.settings.parent.style.pointerEvents="none";var t=e&&e.type===P?this._domEdit:this.domElement;setTimeout(function(){return t.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(e){var t=e&&e.type,r=!1;if(!e)r=!0;else if(t===x||t===H){var n=(this.__containedEvent||0)+100;e.timeStamp>n&&(r=!0)}else M(e),r=!0;r&&this.hide()&&(this.settings.parent.style.pointerEvents="",t!==x&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(e,t){this.closeHandler(),this.setOptions(e),t&&this.openHandler()}},{key:"setColor",value:function(e,t){this._setColor(e,{silent:t})}},{key:"_setColor",value:function(e,t){if(typeof e=="string"&&(e=e.trim()),!!e){t=t||{};var r=void 0;try{r=new z(e)}catch(o){if(t.failSilently)return;throw o}if(!this.settings.alpha){var n=r.hsla;n[3]=1,r.hsla=n}this.colour=this.color=r,this._setHSLA(null,null,null,null,t)}}},{key:"setColour",value:function(e,t){this.setColor(e,t)}},{key:"show",value:function(){var e=this.settings.parent;if(!e)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var r=this.settings.template||'
',n=U(r);return this.domElement=n,this._domH=_(".picker_hue",n),this._domSL=_(".picker_sl",n),this._domA=_(".picker_alpha",n),this._domEdit=_(".picker_editor input",n),this._domSample=_(".picker_sample",n),this._domOkay=_(".picker_done button",n),this._domCancel=_(".picker_cancel button",n),n.classList.add("layout_"+this.settings.layout),this.settings.alpha||n.classList.add("no_alpha"),this.settings.editor||n.classList.add("no_editor"),this.settings.cancelButton||n.classList.add("no_cancel"),this._ifPopup(function(){return n.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var e=this,t=this,r=this.domElement,n=this._events;function o(s,p,u){n.add(s,p,u)}o(r,"click",function(s){return s.preventDefault()}),T(n,this._domH,function(s,p){return t._setHSLA(s)}),T(n,this._domSL,function(s,p){return t._setHSLA(null,s,1-p)}),this.settings.alpha&&T(n,this._domA,function(s,p){return t._setHSLA(null,null,null,1-p)});var c=this._domEdit;o(c,"input",function(s){t._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(c,"focus",function(s){var p=this;p.selectionStart===p.selectionEnd&&p.select()}),this._ifPopup(function(){var s=function(f){return e.closeHandler(f)};o(window,x,s),o(window,H,s),D(n,r,["Esc","Escape"],s);var p=function(f){e.__containedEvent=f.timeStamp};o(r,x,p),o(r,H,p),o(e._domCancel,"click",s)});var a=function(p){e._ifPopup(function(){return e.closeHandler(p)}),e.onDone&&e.onDone(e.colour)};o(this._domOkay,"click",a),D(n,r,["Enter"],a)}},{key:"_setPosition",value:function(){var e=this.settings.parent,t=this.domElement;e!==t.parentNode&&e.appendChild(t),this._ifPopup(function(r){getComputedStyle(e).position==="static"&&(e.style.position="relative");var n=r===!0?"popup_right":"popup_"+r;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===n?t.classList.add(o):t.classList.remove(o)}),t.classList.add(n)})}},{key:"_setHSLA",value:function(e,t,r,n,o){o=o||{};var c=this.colour,a=c.hsla;[e,t,r,n].forEach(function(s,p){(s||s===0)&&(a[p]=s)}),c.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(c)}},{key:"_updateUI",value:function(e){if(!this.domElement)return;e=e||{};var t=this.colour,r=t.hsla,n="hsl("+r[0]*G+", 100%, 50%)",o=t.hslString,c=t.hslaString,a=this._domH,s=this._domSL,p=this._domA,u=_(".picker_selector",a),f=_(".picker_selector",s),d=_(".picker_selector",p);function b(I,C,L){C.style.left=L*100+"%"}function m(I,C,L){C.style.top=L*100+"%"}b(a,u,r[0]),this._domSL.style.backgroundColor=this._domH.style.color=n,b(s,f,r[1]),m(s,f,1-r[2]),s.style.color=o,m(p,d,1-r[3]);var h=o,v=h.replace("hsl","hsla").replace(")",", 0)"),g="linear-gradient("+[h,v]+")";if(this._domA.style.background=g+", "+B,!e.fromEditor){var S=this.settings.editorFormat,k=this.settings.alpha,w=void 0;switch(S){case"rgb":w=t.printRGB(k);break;case"hsl":w=t.printHSL(k);break;default:w=t.printHex(k)}this._domEdit.value=w}this._domSample.style.color=c}},{key:"_ifPopup",value:function(e,t){this.settings.parent&&this.settings.popup?e&&e(this.settings.popup):t&&t()}},{key:"_toggleDOM",value:function(e){var t=this.domElement;if(!t)return!1;var r=e?"":"none",n=t.style.display!==r;return n&&(t.style.display=r),n}}]),l})();E=document.createElement("style"),E.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(E),W.StyleElement=E;var E;export{W as default}; diff --git a/src/google/adk/cli/browser/chunk-I4UDKKN5.js b/src/google/adk/cli/browser/chunk-I4UDKKN5.js index 0e6afd3cb4..ea3ddfd653 100644 --- a/src/google/adk/cli/browser/chunk-I4UDKKN5.js +++ b/src/google/adk/cli/browser/chunk-I4UDKKN5.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as s,b as u,c as i,d as n,e as m,f as t,g as o,h as l,o as d,q as h}from"./chunk-NALL4A3P.js";var A=class extends h{static{t(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},C=class extends d{static{t(this,"ArchitectureValueConverter")}runCustomConverter(c,r,a){if(c.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(c.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(c.name==="ARCH_TITLE"){let e=r.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},v={parser:{TokenBuilder:t(()=>new A,"TokenBuilder"),ValueConverter:t(()=>new C,"ValueConverter")}};function f(c=n){let r=i(u(c),o),a=i(s({shared:r}),l,v);return r.ServiceRegistry.register(a),{shared:r,Architecture:a}}t(f,"createArchitectureServices");export{v as a,f as b}; diff --git a/src/google/adk/cli/browser/chunk-ICVZGLGO.js b/src/google/adk/cli/browser/chunk-ICVZGLGO.js index 030253ee3b..f13bdef93a 100644 --- a/src/google/adk/cli/browser/chunk-ICVZGLGO.js +++ b/src/google/adk/cli/browser/chunk-ICVZGLGO.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as pe}from"./chunk-APNCZOFE.js";import{a as fe}from"./chunk-ST54LLJ3.js";import{b as ge,c as ue}from"./chunk-F57TI45K.js";import"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{D as de,G as w,Y as V,c as ce,d as le,e as he,r as R}from"./chunk-QFMJV7VH.js";import{g as c,i as T}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import{j as ae}from"./chunk-RMXJBC7V.js";var y=[];for(let e=0;e<256;++e)y.push((e+256).toString(16).slice(1));function me(e,n=0){return(y[e[n+0]]+y[e[n+1]]+y[e[n+2]]+y[e[n+3]]+"-"+y[e[n+4]]+y[e[n+5]]+"-"+y[e[n+6]]+y[e[n+7]]+"-"+y[e[n+8]]+y[e[n+9]]+"-"+y[e[n+10]]+y[e[n+11]]+y[e[n+12]]+y[e[n+13]]+y[e[n+14]]+y[e[n+15]]).toLowerCase()}var X,Se=new Uint8Array(16);function z(){if(!X){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");X=crypto.getRandomValues.bind(crypto)}return X(Se)}var xe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),W={randomUUID:xe};function De(e,n,i){if(W.randomUUID&&!n&&!e)return W.randomUUID();e=e||{};let l=e.random??e.rng?.()??z();if(l.length<16)throw new Error("Random bytes length must be >= 16");if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,n){if(i=i||0,i<0||i+16>n.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);for(let g=0;g<16;++g)n[i+g]=l[g];return n}return me(l)}var Y=De;var q=(function(){var e=c(function(N,r,t,o){for(t=t||{},o=N.length;o--;t[N[o]]=r);return t},"o"),n=[1,4],i=[1,13],l=[1,12],g=[1,15],h=[1,16],f=[1,20],E=[1,19],p=[6,7,8],J=[1,26],K=[1,24],Q=[1,25],_=[6,7,11],Z=[1,6,13,15,16,19,22],ee=[1,33],te=[1,34],I=[1,6,7,11,13,15,16,19,22],B={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:c(function(r,t,o,a,u,s,C){var d=s.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",s[d].id),a.addNode(s[d-1].length,s[d].id,s[d].descr,s[d].type);break;case 16:a.getLogger().trace("Icon: ",s[d]),a.decorateNode({icon:s[d]});break;case 17:case 21:a.decorateNode({class:s[d]});break;case 18:a.getLogger().trace("SPACELIST");break;case 19:a.getLogger().trace("Node: ",s[d].id),a.addNode(0,s[d].id,s[d].descr,s[d].type);break;case 20:a.decorateNode({icon:s[d]});break;case 25:a.getLogger().trace("node found ..",s[d-2]),this.$={id:s[d-1],descr:s[d-1],type:a.getType(s[d-2],s[d])};break;case 26:this.$={id:s[d],descr:s[d],type:a.nodeType.DEFAULT};break;case 27:a.getLogger().trace("node found ..",s[d-3]),this.$={id:s[d-3],descr:s[d-1],type:a.getType(s[d-2],s[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:i,7:[1,10],9:9,12:11,13:l,14:14,15:g,16:h,17:17,18:18,19:f,22:E},e(p,[2,3]),{1:[2,2]},e(p,[2,4]),e(p,[2,5]),{1:[2,6],6:i,12:21,13:l,14:14,15:g,16:h,17:17,18:18,19:f,22:E},{6:i,9:22,12:11,13:l,14:14,15:g,16:h,17:17,18:18,19:f,22:E},{6:J,7:K,10:23,11:Q},e(_,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:E}),e(_,[2,18]),e(_,[2,19]),e(_,[2,20]),e(_,[2,21]),e(_,[2,23]),e(_,[2,24]),e(_,[2,26],{19:[1,30]}),{20:[1,31]},{6:J,7:K,10:32,11:Q},{1:[2,7],6:i,12:21,13:l,14:14,15:g,16:h,17:17,18:18,19:f,22:E},e(Z,[2,14],{7:ee,11:te}),e(I,[2,8]),e(I,[2,9]),e(I,[2,10]),e(_,[2,15]),e(_,[2,16]),e(_,[2,17]),{20:[1,35]},{21:[1,36]},e(Z,[2,13],{7:ee,11:te}),e(I,[2,11]),e(I,[2,12]),{21:[1,37]},e(_,[2,25]),e(_,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(r,t){if(t.recoverable)this.trace(r);else{var o=new Error(r);throw o.hash=t,o}},"parseError"),parse:c(function(r){var t=this,o=[0],a=[],u=[null],s=[],C=this.table,d="",U=0,ie=0,ne=0,be=2,se=1,Ee=s.slice.call(arguments,1),m=Object.create(this.lexer),v={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(v.yy[F]=this.yy[F]);m.setInput(r,v.yy),v.yy.lexer=m,v.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var j=m.yylloc;s.push(j);var _e=m.options&&m.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(k){o.length=o.length-2*k,u.length=u.length-k,s.length=s.length-k}c(ke,"popStack");function re(){var k;return k=a.pop()||m.lex()||se,typeof k!="number"&&(k instanceof Array&&(a=k,k=a.pop()),k=t.symbols_[k]||k),k}c(re,"lex");for(var b,G,L,S,we,$,O={},P,x,oe,M;;){if(L=o[o.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=re()),S=C[L]&&C[L][b]),typeof S>"u"||!S.length||!S[0]){var H="";M=[];for(P in C[L])this.terminals_[P]&&P>be&&M.push("'"+this.terminals_[P]+"'");m.showPosition?H="Parse error on line "+(U+1)+`: `+m.showPosition()+` Expecting `+M.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(U+1)+": Unexpected "+(b==se?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:m.match,token:this.terminals_[b]||b,line:m.yylineno,loc:j,expected:M})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+b);switch(S[0]){case 1:o.push(b),u.push(m.yytext),s.push(m.yylloc),o.push(S[1]),b=null,G?(b=G,G=null):(ie=m.yyleng,d=m.yytext,U=m.yylineno,j=m.yylloc,ne>0&&ne--);break;case 2:if(x=this.productions_[S[1]][1],O.$=u[u.length-x],O._$={first_line:s[s.length-(x||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(x||1)].first_column,last_column:s[s.length-1].last_column},_e&&(O._$.range=[s[s.length-(x||1)].range[0],s[s.length-1].range[1]]),$=this.performAction.apply(O,[d,ie,U,v.yy,S[1],u,s].concat(Ee)),typeof $<"u")return $;x&&(o=o.slice(0,-1*x*2),u=u.slice(0,-1*x),s=s.slice(0,-1*x)),o.push(this.productions_[S[1]][0]),u.push(O.$),s.push(O._$),oe=C[o[o.length-2]][o[o.length-1]],o.push(oe);break;case 3:return!0}}return!0},"parse")},ye=(function(){var N={EOF:1,parseError:c(function(t,o){if(this.yy.parser)this.yy.parser.parseError(t,o);else throw new Error(t)},"parseError"),setInput:c(function(r,t){return this.yy=t||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var t=r.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:c(function(r){var t=r.length,o=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===a.length?this.yylloc.first_column:0)+a[a.length-o.length].length-o[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-IHY23QJP.js b/src/google/adk/cli/browser/chunk-IHY23QJP.js index 6d72da771b..9db7d83c03 100644 --- a/src/google/adk/cli/browser/chunk-IHY23QJP.js +++ b/src/google/adk/cli/browser/chunk-IHY23QJP.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as e,b as r}from"./chunk-I4UDKKN5.js";import"./chunk-NALL4A3P.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";export{e as ArchitectureModule,r as createArchitectureServices}; diff --git a/src/google/adk/cli/browser/chunk-IT263FCL.js b/src/google/adk/cli/browser/chunk-IT263FCL.js index b6b5935eb3..7503d3419a 100644 --- a/src/google/adk/cli/browser/chunk-IT263FCL.js +++ b/src/google/adk/cli/browser/chunk-IT263FCL.js @@ -1,2 +1,16 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as c,Ca as o,Gb as h,Lb as y,Pa as a,Yb as C,Zb as g,eb as d,nc as v,pd as _,qd as w,ub as s,vb as l,wb as p,xb as m,yb as u,zb as f}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";var D=e=>[e];function M(e,F){if(e&1&&h(0,0),e&2){let i=F.$implicit,n=y();m("surfaceId",n.surfaceId())("component",i)}}var T=(()=>{class e extends _{static \u0275fac=(()=>{let i;return function(t){return(i||(i=o(e)))(t||e)}})();static \u0275cmp=c({type:e,selectors:[["a2ui-card"]],features:[d],decls:3,vars:6,consts:[["a2ui-renderer","",3,"surfaceId","component"]],template:function(n,t){if(n&1&&(u(0,"section"),l(1,M,1,2,"ng-container",0,s),f()),n&2){let r=t.component().properties,I=r.children||v(4,D,r.child);C(t.theme.additionalStyles==null?null:t.theme.additionalStyles.Card),g(t.theme.components.Card),a(),p(I)}},dependencies:[w],styles:[`a2ui-card{display:block;flex:var(--weight);min-height:0;overflow:auto}a2ui-card>section{height:100%;width:100%;min-height:0;overflow:auto}a2ui-card>section>*{height:100%;width:100%} `],encapsulation:2})}return e})();export{T as Card}; diff --git a/src/google/adk/cli/browser/chunk-J4R5U4YL.js b/src/google/adk/cli/browser/chunk-J4R5U4YL.js index b153718475..aade9464ab 100644 --- a/src/google/adk/cli/browser/chunk-J4R5U4YL.js +++ b/src/google/adk/cli/browser/chunk-J4R5U4YL.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as Ht}from"./chunk-TPDTRWWV.js";import{e as Ut}from"./chunk-WXI2IBAH.js";import{l as pt}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{A as st,G as Bt,N as Wt,R as zt,S as Ft,T as Ot,U as Xt,V as Nt,W as Yt,X as gt,p as Vt,r as Mt}from"./chunk-QFMJV7VH.js";import{M as ft,g as a,i as ut,s as xt,t as dt}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";var mt=(function(){var t=a(function(N,o,l,u){for(l=l||{},u=N.length;u--;l[N[u]]=o);return l},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],r=[1,5],p=[1,6],x=[1,7],A=[1,5,10,12,14,16,18,19,21,23,34,35,36],L=[1,25],W=[1,26],V=[1,28],T=[1,29],E=[1,30],z=[1,31],F=[1,32],R=[1,33],M=[1,34],O=[1,35],X=[1,36],f=[1,37],D=[1,43],h=[1,42],B=[1,47],v=[1,50],b=[1,10,12,14,16,18,19,21,23,34,35,36],H=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],c=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],C=[1,64],_={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(o,l,u,g,y,n,Q){var d=n.length-1;switch(y){case 5:g.setOrientation(n[d]);break;case 9:g.setDiagramTitle(n[d].text.trim());break;case 12:g.setLineData({text:"",type:"text"},n[d]);break;case 13:g.setLineData(n[d-1],n[d]);break;case 14:g.setBarData({text:"",type:"text"},n[d]);break;case 15:g.setBarData(n[d-1],n[d]);break;case 16:this.$=n[d].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=n[d].trim(),g.setAccDescription(this.$);break;case 19:this.$=n[d-1];break;case 20:this.$=[Number(n[d-2]),...n[d]];break;case 21:this.$=[Number(n[d])];break;case 22:g.setXAxisTitle(n[d]);break;case 23:g.setXAxisTitle(n[d-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(n[d]);break;case 26:g.setXAxisRangeData(Number(n[d-2]),Number(n[d]));break;case 27:this.$=n[d-1];break;case 28:this.$=[n[d-2],...n[d]];break;case 29:this.$=[n[d]];break;case 30:g.setYAxisTitle(n[d]);break;case 31:g.setYAxisTitle(n[d-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(n[d-2]),Number(n[d]));break;case 37:this.$={text:n[d],type:"text"};break;case 38:this.$={text:n[d],type:"text"};break;case 39:this.$={text:n[d],type:"markdown"};break;case 40:this.$=n[d];break;case 41:this.$=n[d-1]+""+n[d];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:r,35:p,36:x}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:r,35:p,36:x}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:r,35:p,36:x}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:r,35:p,36:x}),{1:[2,3]},t(A,[2,5]),t(i,[2,7],{4:22,34:r,35:p,36:x}),{11:23,37:24,38:L,39:W,40:27,41:V,42:T,43:E,44:z,45:F,46:R,47:M,48:O,49:X,50:f},{11:39,13:38,24:D,27:h,29:40,30:41,37:24,38:L,39:W,40:27,41:V,42:T,43:E,44:z,45:F,46:R,47:M,48:O,49:X,50:f},{11:45,15:44,27:B,33:46,37:24,38:L,39:W,40:27,41:V,42:T,43:E,44:z,45:F,46:R,47:M,48:O,49:X,50:f},{11:49,17:48,24:v,37:24,38:L,39:W,40:27,41:V,42:T,43:E,44:z,45:F,46:R,47:M,48:O,49:X,50:f},{11:52,17:51,24:v,37:24,38:L,39:W,40:27,41:V,42:T,43:E,44:z,45:F,46:R,47:M,48:O,49:X,50:f},{20:[1,53]},{22:[1,54]},t(b,[2,18]),{1:[2,2]},t(b,[2,8]),t(b,[2,9]),t(H,[2,37],{40:55,41:V,42:T,43:E,44:z,45:F,46:R,47:M,48:O,49:X,50:f}),t(H,[2,38]),t(H,[2,39]),t(c,[2,40]),t(c,[2,42]),t(c,[2,43]),t(c,[2,44]),t(c,[2,45]),t(c,[2,46]),t(c,[2,47]),t(c,[2,48]),t(c,[2,49]),t(c,[2,50]),t(c,[2,51]),t(b,[2,10]),t(b,[2,22],{30:41,29:56,24:D,27:h}),t(b,[2,24]),t(b,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:L,39:W,40:27,41:V,42:T,43:E,44:z,45:F,46:R,47:M,48:O,49:X,50:f},t(b,[2,11]),t(b,[2,30],{33:60,27:B}),t(b,[2,32]),{31:[1,61]},t(b,[2,12]),{17:62,24:v},{25:63,27:C},t(b,[2,14]),{17:65,24:v},t(b,[2,16]),t(b,[2,17]),t(c,[2,41]),t(b,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(b,[2,31]),{27:[1,69]},t(b,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(b,[2,15]),t(b,[2,26]),t(b,[2,27]),{11:59,32:72,37:24,38:L,39:W,40:27,41:V,42:T,43:E,44:z,45:F,46:R,47:M,48:O,49:X,50:f},t(b,[2,33]),t(b,[2,19]),{25:73,27:C},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(o,l){if(l.recoverable)this.trace(o);else{var u=new Error(o);throw u.hash=l,u}},"parseError"),parse:a(function(o){var l=this,u=[0],g=[],y=[null],n=[],Q=this.table,d="",tt=0,vt=0,Pt=0,gi=2,Lt=1,xi=n.slice.call(arguments,1),k=Object.create(this.lexer),$={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&($.yy[rt]=this.yy[rt]);k.setInput(o,$.yy),$.yy.lexer=k,$.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var ot=k.yylloc;n.push(ot);var di=k.options&&k.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(P){u.length=u.length-2*P,y.length=y.length-P,n.length=n.length-P}a(fi,"popStack");function Et(){var P;return P=g.pop()||k.lex()||Lt,typeof P!="number"&&(P instanceof Array&&(g=P,P=g.pop()),P=l.symbols_[P]||P),P}a(Et,"lex");for(var S,ht,q,I,vi,lt,G={},it,Y,It,et;;){if(q=u[u.length-1],this.defaultActions[q]?I=this.defaultActions[q]:((S===null||typeof S>"u")&&(S=Et()),I=Q[q]&&Q[q][S]),typeof I>"u"||!I.length||!I[0]){var ct="";et=[];for(it in Q[q])this.terminals_[it]&&it>gi&&et.push("'"+this.terminals_[it]+"'");k.showPosition?ct="Parse error on line "+(tt+1)+`: `+k.showPosition()+` Expecting `+et.join(", ")+", got '"+(this.terminals_[S]||S)+"'":ct="Parse error on line "+(tt+1)+": Unexpected "+(S==Lt?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(ct,{text:k.match,token:this.terminals_[S]||S,line:k.yylineno,loc:ot,expected:et})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+S);switch(I[0]){case 1:u.push(S),y.push(k.yytext),n.push(k.yylloc),u.push(I[1]),S=null,ht?(S=ht,ht=null):(vt=k.yyleng,d=k.yytext,tt=k.yylineno,ot=k.yylloc,Pt>0&&Pt--);break;case 2:if(Y=this.productions_[I[1]][1],G.$=y[y.length-Y],G._$={first_line:n[n.length-(Y||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(Y||1)].first_column,last_column:n[n.length-1].last_column},di&&(G._$.range=[n[n.length-(Y||1)].range[0],n[n.length-1].range[1]]),lt=this.performAction.apply(G,[d,vt,tt,$.yy,I[1],y,n].concat(xi)),typeof lt<"u")return lt;Y&&(u=u.slice(0,-1*Y*2),y=y.slice(0,-1*Y),n=n.slice(0,-1*Y)),u.push(this.productions_[I[1]][0]),y.push(G.$),n.push(G._$),It=Q[u[u.length-2]][u[u.length-1]],u.push(It);break;case 3:return!0}}return!0},"parse")},w=(function(){var N={EOF:1,parseError:a(function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},"parseError"),setInput:a(function(o,l){return this.yy=l||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:a(function(o){var l=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-JDPVSVO4.js b/src/google/adk/cli/browser/chunk-JDPVSVO4.js index ecf7c3c02e..3fd04ec8fc 100644 --- a/src/google/adk/cli/browser/chunk-JDPVSVO4.js +++ b/src/google/adk/cli/browser/chunk-JDPVSVO4.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as b}from"./chunk-XMBKBASC.js";import{$ as B,A as W,C as I,J as E,K as F,L as y,M as P,N as G,Q as V,R as x,S as R,U as Er,W as O,aa as Q,d as g,f as vr,i as K,k as _r,m as T,p as f,s as N,t as D,v,x as wr,y as br}from"./chunk-ASJUXEUE.js";import{V as Y,e as mr,l as M}from"./chunk-EGBSMT36.js";function k(r,e,n,t){var o;do o=B(t);while(r.hasNode(o));return n.dummy=e,r.setNode(o,n),o}function yr(r){var e=new b().setGraph(r.graph());return f(r.nodes(),function(n){e.setNode(n,r.node(n))}),f(r.edges(),function(n){var t=e.edge(n.v,n.w)||{weight:0,minlen:1},o=r.edge(n);e.setEdge(n.v,n.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})}),e}function q(r){var e=new b({multigraph:r.isMultigraph()}).setGraph(r.graph());return f(r.nodes(),function(n){r.children(n).length||e.setNode(n,r.node(n))}),f(r.edges(),function(n){e.setEdge(n,r.edge(n))}),e}function Z(r,e){var n=r.x,t=r.y,o=e.x-n,a=e.y-t,i=r.width/2,s=r.height/2;if(!o&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var u,d;return Math.abs(a)*i>Math.abs(o)*s?(a<0&&(s=-s),u=s*o/a,d=s):(o<0&&(i=-i),u=i,d=i*a/o),{x:n+u,y:t+d}}function L(r){var e=v(x(rr(r)+1),function(){return[]});return f(r.nodes(),function(n){var t=r.node(n),o=t.rank;E(o)||(e[o][t.order]=n)}),e}function xr(r){var e=P(v(r.nodes(),function(n){return r.node(n).rank}));f(r.nodes(),function(n){var t=r.node(n);W(t,"rank")&&(t.rank-=e)})}function kr(r){var e=P(v(r.nodes(),function(a){return r.node(a).rank})),n=[];f(r.nodes(),function(a){var i=r.node(a).rank-e;n[i]||(n[i]=[]),n[i].push(a)});var t=0,o=r.graph().nodeRankFactor;f(n,function(a,i){E(a)&&i%o!==0?--t:t&&f(a,function(s){r.node(s).rank+=t})})}function $(r,e,n,t){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=t),k(r,"border",o,e)}function rr(r){return y(v(r.nodes(),function(e){var n=r.node(e).rank;if(!E(n))return n}))}function gr(r,e){var n={lhs:[],rhs:[]};return f(r,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n}function Nr(r,e){var n=K();try{return e()}finally{console.log(r+" time: "+(K()-n)+"ms")}}function Or(r,e){return e()}function Pr(r){function e(n){var t=r.children(n),o=r.node(n);if(t.length&&f(t,e),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,i=o.maxRank+1;a0;--s)if(i=e[s].dequeue(),i){t=t.concat(tr(r,e,n,i,!0));break}}}return t}function tr(r,e,n,t,o){var a=o?[]:void 0;return f(r.inEdges(t.v),function(i){var s=r.edge(i),u=r.node(i.v);o&&a.push({v:i.v,w:i.w}),u.out-=s,or(e,n,u)}),f(r.outEdges(t.v),function(i){var s=r.edge(i),u=i.w,d=r.node(u);d.in-=s,or(e,n,d)}),r.removeNode(t.v),a}function be(r,e){var n=new b,t=0,o=0;f(r.nodes(),function(s){n.setNode(s,{v:s,in:0,out:0})}),f(r.edges(),function(s){var u=n.edge(s.v,s.w)||0,d=e(s),c=u+d;n.setEdge(s.v,s.w,c),o=Math.max(o,n.node(s.v).out+=d),t=Math.max(t,n.node(s.w).in+=d)});var a=x(o+t+3).map(function(){return new X}),i=t+1;return f(n.nodes(),function(s){or(a,i,n.node(s))}),{graph:n,buckets:a,zeroIdx:i}}function or(r,e,n){n.out?n.in?r[n.out-n.in+e].enqueue(n):r[r.length-1].enqueue(n):r[0].enqueue(n)}function Mr(r){var e=r.graph().acyclicer==="greedy"?Sr(r,n(r)):Ee(r);f(e,function(t){var o=r.edge(t);r.removeEdge(t),o.forwardName=t.name,o.reversed=!0,r.setEdge(t.w,t.v,o,B("rev"))});function n(t){return function(o){return t.edge(o).weight}}}function Ee(r){var e=[],n={},t={};function o(a){Object.prototype.hasOwnProperty.call(t,a)||(t[a]=!0,n[a]=!0,f(r.outEdges(a),function(i){Object.prototype.hasOwnProperty.call(n,i.w)?e.push(i):o(i.w)}),delete n[a])}return f(r.nodes(),o),e}function Fr(r){f(r.edges(),function(e){var n=r.edge(e);if(n.reversed){r.removeEdge(e);var t=n.forwardName;delete n.reversed,delete n.forwardName,r.setEdge(e.w,e.v,n,t)}})}function Vr(r){r.graph().dummyChains=[],f(r.edges(),function(e){ye(r,e)})}function ye(r,e){var n=e.v,t=r.node(n).rank,o=e.w,a=r.node(o).rank,i=e.name,s=r.edge(e),u=s.labelRank;if(a!==t+1){r.removeEdge(e);var d=void 0,c,h;for(h=0,++t;ti.lim&&(s=i,u=!0);var d=N(e.edges(),function(c){return u===Yr(r,r.node(c.v),s)&&u!==Yr(r,r.node(c.w),s)});return G(d,function(c){return S(e,c)})}function Xr(r,e,n,t){var o=n.v,a=n.w;r.removeEdge(o,a),r.setEdge(t.v,t.w,{}),ur(r),fr(r,e),Ce(r,e)}function Ce(r,e){var n=D(r.nodes(),function(o){return!e.node(o).parent}),t=sr(r,n);t=t.slice(1),f(t,function(o){var a=r.node(o).parent,i=e.edge(o,a),s=!1;i||(i=e.edge(a,o),s=!0),e.node(o).rank=e.node(a).rank+(s?i.minlen:-i.minlen)})}function je(r,e,n){return r.hasEdge(e,n)}function Yr(r,e,n){return n.low<=e.lim&&e.lim<=n.lim}function dr(r){switch(r.graph().ranker){case"network-simplex":Hr(r);break;case"tight-tree":Re(r);break;case"longest-path":Te(r);break;default:Hr(r)}}var Te=z;function Re(r){z(r),H(r)}function Hr(r){j(r)}function Jr(r){var e=k(r,"root",{},"_root"),n=Se(r),t=y(I(n))-1,o=2*t+1;r.graph().nestingRoot=e,f(r.edges(),function(i){r.edge(i).minlen*=o});var a=Me(r)+1;f(r.children(),function(i){Kr(r,e,o,a,t,n,i)}),r.graph().nodeRankFactor=o}function Kr(r,e,n,t,o,a,i){var s=r.children(i);if(!s.length){i!==e&&r.setEdge(e,i,{weight:0,minlen:n});return}var u=$(r,"_bt"),d=$(r,"_bb"),c=r.node(i);r.setParent(u,i),c.borderTop=u,r.setParent(d,i),c.borderBottom=d,f(s,function(h){Kr(r,e,n,t,o,a,h);var l=r.node(h),p=l.borderTop?l.borderTop:h,m=l.borderBottom?l.borderBottom:h,w=l.borderTop?t:2*t,A=p!==m?1:o-a[i]+1;r.setEdge(u,p,{weight:w,minlen:A,nestingEdge:!0}),r.setEdge(m,d,{weight:w,minlen:A,nestingEdge:!0})}),r.parent(i)||r.setEdge(e,u,{weight:0,minlen:o+a[i]})}function Se(r){var e={};function n(t,o){var a=r.children(t);a&&a.length&&f(a,function(i){n(i,o+1)}),e[t]=o}return f(r.children(),function(t){n(t,1)}),e}function Me(r){return R(r.edges(),function(e,n){return e+r.edge(n).weight},0)}function Qr(r){var e=r.graph();r.removeNode(e.nestingRoot),delete e.nestingRoot,f(r.edges(),function(n){var t=r.edge(n);t.nestingEdge&&r.removeEdge(n)})}function Zr(r,e,n){var t={},o;f(n,function(a){for(var i=r.parent(a),s,u;i;){if(s=r.parent(i),s?(u=t[s],t[s]=i):(u=o,o=i),u&&u!==i){e.setEdge(u,i);return}i=s}})}function $r(r,e,n){var t=Ge(r),o=new b({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(a){return r.node(a)});return f(r.nodes(),function(a){var i=r.node(a),s=r.parent(a);(i.rank===e||i.minRank<=e&&e<=i.maxRank)&&(o.setNode(a),o.setParent(a,s||t),f(r[n](a),function(u){var d=u.v===a?u.w:u.v,c=o.edge(d,a),h=E(c)?0:c.weight;o.setEdge(d,a,{weight:r.edge(u).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&o.setNode(a,{borderLeft:i.borderLeft[e],borderRight:i.borderRight[e]}))}),o}function Ge(r){for(var e;r.hasNode(e=B("_root")););return e}function re(r,e){for(var n=0,t=1;t0;)c%2&&(h+=s[c+1]),c=c-1>>1,s[c]+=d.weight;u+=d.weight*h})),u}function ee(r){var e={},n=N(r.nodes(),function(s){return!r.children(s).length}),t=y(v(n,function(s){return r.node(s).rank})),o=v(x(t+1),function(){return[]});function a(s){if(!W(e,s)){e[s]=!0;var u=r.node(s);o[u.rank].push(s),f(r.successors(s),a)}}var i=O(n,function(s){return r.node(s).rank});return f(i,a),o}function ne(r,e){return v(e,function(n){var t=r.inEdges(n);if(t.length){var o=R(t,function(a,i){var s=r.edge(i),u=r.node(i.v);return{sum:a.sum+s.weight*u.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:n,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:n}})}function te(r,e){var n={};f(r,function(o,a){var i=n[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:a};E(o.barycenter)||(i.barycenter=o.barycenter,i.weight=o.weight)}),f(e.edges(),function(o){var a=n[o.v],i=n[o.w];!E(a)&&!E(i)&&(i.indegree++,a.out.push(n[o.w]))});var t=N(n,function(o){return!o.indegree});return Be(t)}function Be(r){var e=[];function n(a){return function(i){i.merged||(E(i.barycenter)||E(a.barycenter)||i.barycenter>=a.barycenter)&&Ae(a,i)}}function t(a){return function(i){i.in.push(a),--i.indegree===0&&r.push(i)}}for(;r.length;){var o=r.pop();e.push(o),f(o.in.reverse(),n(o)),f(o.out,t(o))}return v(N(e,function(a){return!a.merged}),function(a){return V(a,["vs","i","barycenter","weight"])})}function Ae(r,e){var n=0,t=0;r.weight&&(n+=r.barycenter*r.weight,t+=r.weight),e.weight&&(n+=e.barycenter*e.weight,t+=e.weight),r.vs=e.vs.concat(r.vs),r.barycenter=n/t,r.weight=t,r.i=Math.min(e.i,r.i),e.merged=!0}function ae(r,e){var n=gr(r,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=n.lhs,o=O(n.rhs,function(c){return-c.i}),a=[],i=0,s=0,u=0;t.sort(De(!!e)),u=oe(a,o,u),f(t,function(c){u+=c.vs.length,a.push(c.vs),i+=c.barycenter*c.weight,s+=c.weight,u=oe(a,o,u)});var d={vs:g(a)};return s&&(d.barycenter=i/s,d.weight=s),d}function oe(r,e,n){for(var t;e.length&&(t=T(e)).i<=n;)e.pop(),r.push(t.vs),n++;return n}function De(r){return function(e,n){return e.barycentern.barycenter?1:r?n.i-e.i:e.i-n.i}}function cr(r,e,n,t){var o=r.children(e),a=r.node(e),i=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,u={};i&&(o=N(o,function(m){return m!==i&&m!==s}));var d=ne(r,o);f(d,function(m){if(r.children(m.v).length){var w=cr(r,m.v,n,t);u[m.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&ze(m,w)}});var c=te(d,n);Ye(c,u);var h=ae(c,t);if(i&&(h.vs=g([i,h.vs,s]),r.predecessors(i).length)){var l=r.node(r.predecessors(i)[0]),p=r.node(r.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+p.order)/(h.weight+2),h.weight+=2}return h}function Ye(r,e){f(r,function(n){n.vs=g(n.vs.map(function(t){return e[t]?e[t].vs:t}))})}function ze(r,e){E(r.barycenter)?(r.barycenter=e.barycenter,r.weight=e.weight):(r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight)}function fe(r){var e=rr(r),n=ie(r,x(1,e+1),"inEdges"),t=ie(r,x(e-1,-1,-1),"outEdges"),o=ee(r);se(r,o);for(var a=Number.POSITIVE_INFINITY,i,s=0,u=0;u<4;++s,++u){Ue(s%2?n:t,s%4>=2),o=L(r);var d=re(r,o);di||s>e[u].lim));for(d=u,u=t;(u=r.parent(u))!==d;)a.push(u);return{path:o.concat(a.reverse()),lca:d}}function qe(r){var e={},n=0;function t(o){var a=n;f(r.children(o),t),e[o]={low:a,lim:n++}}return f(r.children(),t),e}function Xe(r,e){var n={};function t(o,a){var i=0,s=0,u=o.length,d=T(a);return f(a,function(c,h){var l=Je(r,c),p=l?r.node(l).order:u;(l||c===d)&&(f(a.slice(s,h+1),function(m){f(r.predecessors(m),function(w){var A=r.node(w),pr=A.order;(prd)&&de(n,l,c)})})}function o(a,i){var s=-1,u,d=0;return f(i,function(c,h){if(r.node(c).dummy==="border"){var l=r.predecessors(c);l.length&&(u=r.node(l[0]).order,t(i,d,h,s,u),d=h,s=u)}t(i,d,i.length,u,a.length)}),i}return R(e,o),n}function Je(r,e){if(r.node(e).dummy)return D(r.predecessors(e),function(n){return r.node(n).dummy})}function de(r,e,n){if(e>n){var t=e;e=n,n=t}Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=r[e];Object.defineProperty(o,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Ke(r,e,n){if(e>n){var t=e;e=n,n=t}return!!r[e]&&Object.prototype.hasOwnProperty.call(r[e],n)}function Qe(r,e,n,t){var o={},a={},i={};return f(e,function(s){f(s,function(u,d){o[u]=u,a[u]=u,i[u]=d})}),f(e,function(s){var u=-1;f(s,function(d){var c=t(d);if(c.length){c=O(c,function(w){return i[w]});for(var h=(c.length-1)/2,l=Math.floor(h),p=Math.ceil(h);l<=p;++l){var m=c[l];a[d]===d&&u{var t=n(" buildLayoutGraph",()=>wn(r));n(" runLayout",()=>fn(t,n)),n(" updateInputGraph",()=>un(r,t))})}function fn(r,e){e(" makeSpaceForEdgeLabels",()=>bn(r)),e(" removeSelfEdges",()=>Pn(r)),e(" acyclic",()=>Mr(r)),e(" nestingGraph.run",()=>Jr(r)),e(" rank",()=>dr(q(r))),e(" injectEdgeLabelProxies",()=>En(r)),e(" removeEmptyRanks",()=>kr(r)),e(" nestingGraph.cleanup",()=>Qr(r)),e(" normalizeRanks",()=>xr(r)),e(" assignRankMinMax",()=>yn(r)),e(" removeEdgeLabelProxies",()=>xn(r)),e(" normalize.run",()=>Vr(r)),e(" parentDummyChains",()=>ue(r)),e(" addBorderSegments",()=>Pr(r)),e(" order",()=>fe(r)),e(" insertSelfEdges",()=>Ln(r)),e(" adjustCoordinateSystem",()=>Cr(r)),e(" position",()=>he(r)),e(" positionSelfEdges",()=>Cn(r)),e(" removeBorderNodes",()=>In(r)),e(" normalize.undo",()=>Br(r)),e(" fixupEdgeLabelCoords",()=>Nn(r)),e(" undoCoordinateSystem",()=>jr(r)),e(" translateGraph",()=>kn(r)),e(" assignNodeIntersects",()=>gn(r)),e(" reversePoints",()=>On(r)),e(" acyclic.undo",()=>Fr(r))}function un(r,e){f(r.nodes(),function(n){var t=r.node(n),o=e.node(n);t&&(t.x=o.x,t.y=o.y,e.children(n).length&&(t.width=o.width,t.height=o.height))}),f(r.edges(),function(n){var t=r.edge(n),o=e.edge(n);t.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(t.x=o.x,t.y=o.y)}),r.graph().width=e.graph().width,r.graph().height=e.graph().height}var dn=["nodesep","edgesep","ranksep","marginx","marginy"],cn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},hn=["acyclicer","ranker","rankdir","align"],ln=["width","height"],pn={width:0,height:0},mn=["minlen","weight","width","height","labeloffset"],vn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},_n=["labelpos"];function wn(r){var e=new b({multigraph:!0,compound:!0}),n=lr(r.graph());return e.setGraph(Y({},cn,hr(n,dn),V(n,hn))),f(r.nodes(),function(t){var o=lr(r.node(t));e.setNode(t,_r(hr(o,ln),pn)),e.setParent(t,r.parent(t))}),f(r.edges(),function(t){var o=lr(r.edge(t));e.setEdge(t,Y({},vn,hr(o,mn),V(o,_n)))}),e}function bn(r){var e=r.graph();e.ranksep/=2,f(r.edges(),function(n){var t=r.edge(n);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function En(r){f(r.edges(),function(e){var n=r.edge(e);if(n.width&&n.height){var t=r.node(e.v),o=r.node(e.w),a={rank:(o.rank-t.rank)/2+t.rank,e};k(r,"edge-proxy",a,"_ep")}})}function yn(r){var e=0;f(r.nodes(),function(n){var t=r.node(n);t.borderTop&&(t.minRank=r.node(t.borderTop).rank,t.maxRank=r.node(t.borderBottom).rank,e=y(e,t.maxRank))}),r.graph().maxRank=e}function xn(r){f(r.nodes(),function(e){var n=r.node(e);n.dummy==="edge-proxy"&&(r.edge(n.e).labelRank=n.rank,r.removeNode(e))})}function kn(r){var e=Number.POSITIVE_INFINITY,n=0,t=Number.POSITIVE_INFINITY,o=0,a=r.graph(),i=a.marginx||0,s=a.marginy||0;function u(d){var c=d.x,h=d.y,l=d.width,p=d.height;e=Math.min(e,c-l/2),n=Math.max(n,c+l/2),t=Math.min(t,h-p/2),o=Math.max(o,h+p/2)}f(r.nodes(),function(d){u(r.node(d))}),f(r.edges(),function(d){var c=r.edge(d);Object.prototype.hasOwnProperty.call(c,"x")&&u(c)}),e-=i,t-=s,f(r.nodes(),function(d){var c=r.node(d);c.x-=e,c.y-=t}),f(r.edges(),function(d){var c=r.edge(d);f(c.points,function(h){h.x-=e,h.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=e),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),a.width=n-e+i,a.height=o-t+s}function gn(r){f(r.edges(),function(e){var n=r.edge(e),t=r.node(e.v),o=r.node(e.w),a,i;n.points?(a=n.points[0],i=n.points[n.points.length-1]):(n.points=[],a=o,i=t),n.points.unshift(Z(t,a)),n.points.push(Z(o,i))})}function Nn(r){f(r.edges(),function(e){var n=r.edge(e);if(Object.prototype.hasOwnProperty.call(n,"x"))switch((n.labelpos==="l"||n.labelpos==="r")&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}})}function On(r){f(r.edges(),function(e){var n=r.edge(e);n.reversed&&n.points.reverse()})}function In(r){f(r.nodes(),function(e){if(r.children(e).length){var n=r.node(e),t=r.node(n.borderTop),o=r.node(n.borderBottom),a=r.node(T(n.borderLeft)),i=r.node(T(n.borderRight));n.width=Math.abs(i.x-a.x),n.height=Math.abs(o.y-t.y),n.x=a.x+n.width/2,n.y=t.y+n.height/2}}),f(r.nodes(),function(e){r.node(e).dummy==="border"&&r.removeNode(e)})}function Pn(r){f(r.edges(),function(e){if(e.v===e.w){var n=r.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:r.edge(e)}),r.removeEdge(e)}})}function Ln(r){var e=L(r);f(e,function(n){var t=0;f(n,function(o,a){var i=r.node(o);i.order=a+t,f(i.selfEdges,function(s){k(r,"selfedge",{width:s.label.width,height:s.label.height,rank:i.rank,order:a+ ++t,e:s.e,label:s.label},"_se")}),delete i.selfEdges})})}function Cn(r){f(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="selfedge"){var t=r.node(n.e.v),o=t.x+t.width/2,a=t.y,i=n.x-o,s=t.height/2;r.setEdge(n.e,n.label),r.removeNode(e),n.label.points=[{x:o+2*i/3,y:a-s},{x:o+5*i/6,y:a-s},{x:o+i,y:a},{x:o+5*i/6,y:a+s},{x:o+2*i/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function hr(r,e){return F(V(r,e),Number)}function lr(r){var e={};return f(r,function(n,t){e[t.toLowerCase()]=n}),e}export{sn as a}; diff --git a/src/google/adk/cli/browser/chunk-JHZIBEJC.js b/src/google/adk/cli/browser/chunk-JHZIBEJC.js index eb52947847..c3355be80a 100644 --- a/src/google/adk/cli/browser/chunk-JHZIBEJC.js +++ b/src/google/adk/cli/browser/chunk-JHZIBEJC.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{g as y}from"./chunk-JRNAXTJ7.js";var A=y((t,r)=>{if(r)return"translate("+-t.width/2+", "+-t.height/2+")";let s=t.x??0,e=t.y??0;return"translate("+-(s+t.width/2)+", "+-(e+t.height/2)+")"},"computeLabelTransform"),c={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},M={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function w(t,r){if(t===void 0||r===void 0)return{angle:0,deltaX:0,deltaY:0};t=n(t),r=n(r);let[s,e]=[t.x,t.y],[a,i]=[r.x,r.y],o=a-s,x=i-e;return{angle:Math.atan(x/o),deltaX:o,deltaY:x}}y(w,"calculateDeltaAndAngle");var n=y(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),m=y(t=>({x:y(function(r,s,e){let a=0,i=n(e[0]).x=0?1:-1)}else if(s===e.length-1&&Object.hasOwn(c,t.arrowTypeEnd)){let{angle:l,deltaX:g}=w(e[e.length-1],e[e.length-2]);a=c[t.arrowTypeEnd]*Math.cos(l)*(g>=0?1:-1)}let o=Math.abs(n(r).x-n(e[e.length-1]).x),x=Math.abs(n(r).y-n(e[e.length-1]).y),f=Math.abs(n(r).x-n(e[0]).x),d=Math.abs(n(r).y-n(e[0]).y),h=c[t.arrowTypeStart],u=c[t.arrowTypeEnd],p=1;if(o0&&x0&&d=0?1:-1)}else if(s===e.length-1&&Object.hasOwn(c,t.arrowTypeEnd)){let{angle:l,deltaY:g}=w(e[e.length-1],e[e.length-2]);a=c[t.arrowTypeEnd]*Math.abs(Math.sin(l))*(g>=0?1:-1)}let o=Math.abs(n(r).y-n(e[e.length-1]).y),x=Math.abs(n(r).x-n(e[e.length-1]).x),f=Math.abs(n(r).y-n(e[0]).y),d=Math.abs(n(r).x-n(e[0]).x),h=c[t.arrowTypeStart],u=c[t.arrowTypeEnd],p=1;if(o0&&x0&&dnew v,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function M(c=n){let r=a(d(c),i),t=a(o({shared:r}),u,R);return r.ServiceRegistry.register(t),{shared:r,Radar:t}}e(M,"createRadarServices");export{R as a,M as b}; diff --git a/src/google/adk/cli/browser/chunk-JRNAXTJ7.js b/src/google/adk/cli/browser/chunk-JRNAXTJ7.js index 876bde5cc7..7587e8a8ec 100644 --- a/src/google/adk/cli/browser/chunk-JRNAXTJ7.js +++ b/src/google/adk/cli/browser/chunk-JRNAXTJ7.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{e as gu,h as _u}from"./chunk-RMXJBC7V.js";var Xo=gu((Rr,Pr)=>{"use strict";(function(t,e){typeof Rr=="object"&&typeof Pr<"u"?Pr.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Rr,function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",f="week",u="month",c="quarter",p="year",l="date",m="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(b){var _=["th","st","nd","rd"],h=b%100;return"["+b+(_[(h-20)%10]||_[h]||_[0])+"]"}},w=function(b,_,h){var g=String(b);return!g||g.length>=_?b:""+Array(_+1-g.length).join(h)+b},R={s:w,z:function(b){var _=-b.utcOffset(),h=Math.abs(_),g=Math.floor(h/60),d=h%60;return(_<=0?"+":"-")+w(g,2,"0")+":"+w(d,2,"0")},m:function b(_,h){if(_.date()1)return b(M[0])}else{var N=_.name;x[N]=_,d=N}return!g&&d&&(E=d),d||!g&&E},P=function(b,_){if(y(b))return b.clone();var h=typeof _=="object"?_:{};return h.date=b,h.args=arguments,new B(h)},I=R;I.l=O,I.i=y,I.w=function(b,_){return P(b,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var B=(function(){function b(h){this.$L=O(h.locale,null,!0),this.parse(h),this.$x=this.$x||h.x||{},this[$]=!0}var _=b.prototype;return _.parse=function(h){this.$d=(function(g){var d=g.date,v=g.utc;if(d===null)return new Date(NaN);if(I.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var M=d.match(T);if(M){var N=M[2]-1||0,D=(M[7]||"0").substring(0,3);return v?new Date(Date.UTC(M[1],N,M[3]||1,M[4]||0,M[5]||0,M[6]||0,D)):new Date(M[1],N,M[3]||1,M[4]||0,M[5]||0,M[6]||0,D)}}return new Date(d)})(h),this.init()},_.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},_.$utils=function(){return I},_.isValid=function(){return this.$d.toString()!==m},_.isSame=function(h,g){var d=P(h);return this.startOf(g)<=d&&d<=this.endOf(g)},_.isAfter=function(h,g){return P(h)=E&&(E=R+1);!($=A[E])&&++E=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Ii(t){t||(t=Eu);function e(p,l){return p&&l?t(p.__data__,l.__data__):!p-!l}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function Ri(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Pi(){return Array.from(this)}function Yi(){for(var t=this._groups,e=0,n=t.length;e=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),gr.hasOwnProperty(e)?{space:gr[e],local:t}:t}function Ou(t){return function(){this.removeAttribute(t)}}function Iu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ru(t,e){return function(){this.setAttribute(t,e)}}function Pu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Yu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Fu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Li(t,e){var n=Ct(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Iu:Ou:typeof e=="function"?n.local?Fu:Yu:n.local?Pu:Ru)(n,e))}function wn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Uu(t){return function(){this.style.removeProperty(t)}}function zu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Lu(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Bi(t,e,n){return arguments.length>1?this.each((e==null?Uu:typeof e=="function"?Lu:zu)(t,e,n??"")):Rt(this.node(),t)}function Rt(t,e){return t.style.getPropertyValue(e)||wn(t).getComputedStyle(t,null).getPropertyValue(e)}function Bu(t){return function(){delete this[t]}}function Hu(t,e){return function(){this[t]=e}}function qu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Hi(t,e){return arguments.length>1?this.each((e==null?Bu:typeof e=="function"?qu:Hu)(t,e)):this.node()[t]}function qi(t){return t.trim().split(/^|\s+/)}function _r(t){return t.classList||new Wi(t)}function Wi(t){this._node=t,this._names=qi(t.getAttribute("class")||"")}Wi.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Vi(t,e){for(var n=_r(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function cf(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Mn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Mn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=gf.exec(t))?new rt(e[1],e[2],e[3],1):(e=_f.exec(t))?new rt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=yf.exec(t))?Mn(e[1],e[2],e[3],e[4]):(e=vf.exec(t))?Mn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=wf.exec(t))?go(e[1],e[2]/100,e[3]/100,1):(e=bf.exec(t))?go(e[1],e[2]/100,e[3]/100,e[4]):lo.hasOwnProperty(t)?po(lo[t]):t==="transparent"?new rt(NaN,NaN,NaN,0):null}function po(t){return new rt(t>>16&255,t>>8&255,t&255,1)}function Mn(t,e,n,r){return r<=0&&(t=e=n=NaN),new rt(t,e,n,r)}function wr(t){return t instanceof Pt||(t=_t(t)),t?(t=t.rgb(),new rt(t.r,t.g,t.b,t.opacity)):new rt}function xe(t,e,n,r){return arguments.length===1?wr(t):new rt(t,e,n,r??1)}function rt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Gt(rt,xe,me(Pt,{brighter(t){return t=t==null?kn:Math.pow(kn,t),new rt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ze:Math.pow(ze,t),new rt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new rt(Qt(this.r),Qt(this.g),Qt(this.b),Sn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mo,formatHex:mo,formatHex8:kf,formatRgb:xo,toString:xo}));function mo(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}`}function kf(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}${Zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function xo(){let t=Sn(this.opacity);return`${t===1?"rgb(":"rgba("}${Qt(this.r)}, ${Qt(this.g)}, ${Qt(this.b)}${t===1?")":`, ${t})`}`}function Sn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Zt(t){return t=Qt(t),(t<16?"0":"")+t.toString(16)}function go(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new gt(t,e,n,r)}function yo(t){if(t instanceof gt)return new gt(t.h,t.s,t.l,t.opacity);if(t instanceof Pt||(t=_t(t)),!t)return new gt;if(t instanceof gt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,f=(o+i)/2;return s?(e===o?a=(n-r)/s+(n0&&f<1?0:a,new gt(a,s,f,t.opacity)}function vo(t,e,n,r){return arguments.length===1?yo(t):new gt(t,e,n,r??1)}function gt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Gt(gt,vo,me(Pt,{brighter(t){return t=t==null?kn:Math.pow(kn,t),new gt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ze:Math.pow(ze,t),new gt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new rt(vr(t>=240?t-240:t+120,i,r),vr(t,i,r),vr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new gt(_o(this.h),Tn(this.s),Tn(this.l),Sn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Sn(this.opacity);return`${t===1?"hsl(":"hsla("}${_o(this.h)}, ${Tn(this.s)*100}%, ${Tn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function _o(t){return t=(t||0)%360,t<0?t+360:t}function Tn(t){return Math.max(0,Math.min(1,t||0))}function vr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}var wo=Math.PI/180,bo=180/Math.PI;var Cn=18,Mo=.96422,To=1,ko=.82521,So=4/29,ge=6/29,Co=3*ge*ge,Sf=ge*ge*ge;function No(t){if(t instanceof Mt)return new Mt(t.l,t.a,t.b,t.opacity);if(t instanceof Dt)return Do(t);t instanceof rt||(t=wr(t));var e=kr(t.r),n=kr(t.g),r=kr(t.b),i=br((.2225045*e+.7168786*n+.0606169*r)/To),o,a;return e===n&&n===r?o=a=i:(o=br((.4360747*e+.3850649*n+.1430804*r)/Mo),a=br((.0139322*e+.0971045*n+.7141733*r)/ko)),new Mt(116*i-16,500*(o-i),200*(i-a),t.opacity)}function Sr(t,e,n,r){return arguments.length===1?No(t):new Mt(t,e,n,r??1)}function Mt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Gt(Mt,Sr,me(Pt,{brighter(t){return new Mt(this.l+Cn*(t??1),this.a,this.b,this.opacity)},darker(t){return new Mt(this.l-Cn*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Mo*Mr(e),t=To*Mr(t),n=ko*Mr(n),new rt(Tr(3.1338561*e-1.6168667*t-.4906146*n),Tr(-.9787684*e+1.9161415*t+.033454*n),Tr(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function br(t){return t>Sf?Math.pow(t,1/3):t/Co+So}function Mr(t){return t>ge?t*t*t:Co*(t-So)}function Tr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function kr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Cf(t){if(t instanceof Dt)return new Dt(t.h,t.c,t.l,t.opacity);if(t instanceof Mt||(t=No(t)),t.a===0&&t.b===0)return new Dt(NaN,0()=>t;function Ao(t,e){return function(n){return t+n*e}}function Nf(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function $o(t,e){var n=e-t;return n?Ao(t,n>180||n<-180?n-360*Math.round(n/360):n):_e(isNaN(t)?e:t)}function Eo(t){return(t=+t)==1?At:function(e,n){return n-e?Nf(e,n,t):_e(isNaN(e)?n:e)}}function At(t,e){var n=e-t;return n?Ao(t,n):_e(isNaN(t)?e:t)}function Oo(t){return function(e,n){var r=t((e=Be(e)).h,(n=Be(n)).h),i=At(e.c,n.c),o=At(e.l,n.l),a=At(e.opacity,n.opacity);return function(s){return e.h=r(s),e.c=i(s),e.l=o(s),e.opacity=a(s),e+""}}}var Df=Oo($o),Af=Oo(At);function Cr(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function Io(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=rn&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,f.push({i:a,x:it(r,i)})),n=Nr.lastIndex;return n180?c+=360:c-u>180&&(u+=360),l.push({i:p.push(i(p)+"rotate(",null,r)-2,x:it(u,c)})):c&&p.push(i(p)+"rotate("+c+r)}function s(u,c,p,l){u!==c?l.push({i:p.push(i(p)+"skewX(",null,r)-2,x:it(u,c)}):c&&p.push(i(p)+"skewX("+c+r)}function f(u,c,p,l,m,T){if(u!==p||c!==l){var S=m.push(i(m)+"scale(",null,",",null,")");T.push({i:S-4,x:it(u,p)},{i:S-2,x:it(c,l)})}else(p!==1||l!==1)&&m.push(i(m)+"scale("+p+","+l+")")}return function(u,c){var p=[],l=[];return u=t(u),c=t(c),o(u.translateX,u.translateY,c.translateX,c.translateY,p,l),a(u.rotate,c.rotate,p,l),s(u.skewX,c.skewX,p,l),f(u.scaleX,u.scaleY,c.scaleX,c.scaleY,p,l),u=c=null,function(m){for(var T=-1,S=l.length,A;++TGo(t,"name",{value:e,configurable:!0}),H0=(t,e)=>{for(var n in e)Go(t,n,{get:e[n],enumerable:!0})},$t={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},mt={trace:Yt((...t)=>{},"trace"),debug:Yt((...t)=>{},"debug"),info:Yt((...t)=>{},"info"),warn:Yt((...t)=>{},"warn"),error:Yt((...t)=>{},"error"),fatal:Yt((...t)=>{},"fatal")},q0=Yt(function(t="fatal"){let e=$t.fatal;typeof t=="string"?t.toLowerCase()in $t&&(e=$t[t]):typeof t=="number"&&(e=t),mt.trace=()=>{},mt.debug=()=>{},mt.info=()=>{},mt.warn=()=>{},mt.error=()=>{},mt.fatal=()=>{},e<=$t.fatal&&(mt.fatal=console.error?console.error.bind(console,dt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",dt("FATAL"))),e<=$t.error&&(mt.error=console.error?console.error.bind(console,dt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",dt("ERROR"))),e<=$t.warn&&(mt.warn=console.warn?console.warn.bind(console,dt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",dt("WARN"))),e<=$t.info&&(mt.info=console.info?console.info.bind(console,dt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",dt("INFO"))),e<=$t.debug&&(mt.debug=console.debug?console.debug.bind(console,dt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",dt("DEBUG"))),e<=$t.trace&&(mt.trace=console.debug?console.debug.bind(console,dt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",dt("TRACE")))},"setLogLevel"),dt=Yt(t=>`%c${(0,Zo.default)().format("ss.SSS")} : ${t} : `,"format");function Qo(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Ko(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function jt(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function Yr(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function te(t){let e,n,r;t.length!==2?(e=jt,n=(s,f)=>jt(t(s),f),r=(s,f)=>t(s)-f):(e=t===jt||t===Yr?t:Ff,n=t,r=t);function i(s,f,u=0,c=s.length){if(u>>1;n(s[p],f)<0?u=p+1:c=p}while(u>>1;n(s[p],f)<=0?u=p+1:c=p}while(uu&&r(s[p-1],f)>-r(s[p],f)?p-1:p}return{left:i,center:a,right:o}}function Ff(){return 0}function Fr(t){return t===null?NaN:+t}var Jo=te(jt),jo=Jo.right,Uf=Jo.left,zf=te(Fr).center,Ur=jo;var ye=class extends Map{constructor(e,n=Hf){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let[r,i]of e)this.set(r,i)}get(e){return super.get(ta(this,e))}has(e){return super.has(ta(this,e))}set(e,n){return super.set(Lf(this,e),n)}delete(e){return super.delete(Bf(this,e))}};function ta({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function Lf({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Bf({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Hf(t){return t!==null&&typeof t=="object"?t.valueOf():t}var qf=Math.sqrt(50),Wf=Math.sqrt(10),Vf=Math.sqrt(2);function An(t,e,n){let r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=qf?10:o>=Wf?5:o>=Vf?2:1,s,f,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),f=Math.round(e*u),s/ue&&--f,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),f=Math.round(e/u),s*ue&&--f),f0))return[];if(t===e)return[t];let r=e=i))return[];let s=o-i+1,f=new Array(s);if(r)if(a<0)for(let u=0;u+t(e)}function Qf(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Kf(){return!this.__axis}function ra(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,f=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===In||t===On?-1:1,c=t===On||t===zr?"x":"y",p=t===In||t===Lr?Xf:Gf;function l(m){var T=r??(e.ticks?e.ticks.apply(e,n):e.domain()),S=i??(e.tickFormat?e.tickFormat.apply(e,n):ea),A=Math.max(o,0)+s,w=e.range(),R=+w[0]+f,E=+w[w.length-1]+f,x=(e.bandwidth?Qf:Zf)(e.copy(),f),$=m.selection?m.selection():m,y=$.selectAll(".domain").data([null]),O=$.selectAll(".tick").data(T,e).order(),P=O.exit(),I=O.enter().append("g").attr("class","tick"),B=O.select("line"),L=O.select("text");y=y.merge(y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(I),B=B.merge(I.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),L=L.merge(I.append("text").attr("fill","currentColor").attr(c,u*A).attr("dy",t===In?"0em":t===Lr?"0.71em":"0.32em")),m!==$&&(y=y.transition(m),O=O.transition(m),B=B.transition(m),L=L.transition(m),P=P.transition(m).attr("opacity",na).attr("transform",function(b){return isFinite(b=x(b))?p(b+f):this.getAttribute("transform")}),I.attr("opacity",na).attr("transform",function(b){var _=this.parentNode.__axis;return p((_&&isFinite(_=_(b))?_:x(b))+f)})),P.remove(),y.attr("d",t===On||t===zr?a?"M"+u*a+","+R+"H"+f+"V"+E+"H"+u*a:"M"+f+","+R+"V"+E:a?"M"+R+","+u*a+"V"+f+"H"+E+"V"+u*a:"M"+R+","+f+"H"+E),O.attr("opacity",1).attr("transform",function(b){return p(x(b)+f)}),B.attr(c+"2",u*o),L.attr(c,u*A).text(S),$.filter(Kf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===zr?"start":t===On?"end":"middle"),$.each(function(){this.__axis=x})}return l.scale=function(m){return arguments.length?(e=m,l):e},l.ticks=function(){return n=Array.from(arguments),l},l.tickArguments=function(m){return arguments.length?(n=m==null?[]:Array.from(m),l):n.slice()},l.tickValues=function(m){return arguments.length?(r=m==null?null:Array.from(m),l):r&&r.slice()},l.tickFormat=function(m){return arguments.length?(i=m,l):i},l.tickSize=function(m){return arguments.length?(o=a=+m,l):o},l.tickSizeInner=function(m){return arguments.length?(o=+m,l):o},l.tickSizeOuter=function(m){return arguments.length?(a=+m,l):a},l.tickPadding=function(m){return arguments.length?(s=+m,l):s},l.offset=function(m){return arguments.length?(f=+m,l):f},l}function Jf(t){return ra(In,t)}function jf(t){return ra(Lr,t)}function ia(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function ee(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Tt(t){return t=ee(Math.abs(t)),t?t[1]:NaN}function oa(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],f=0;i>0&&s>0&&(f+s+1>r&&(s=Math.max(1,r-f)),o.push(n.substring(i-=s,i+s)),!((f+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function aa(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var tl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ft(t){if(!(e=tl.exec(t)))throw new Error("invalid format: "+t);var e;return new Rn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Ft.prototype=Rn.prototype;function Rn(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Rn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function sa(t){t:for(var e=t.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var We;function ua(t,e){var n=ee(t,e);if(!n)return We=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(We=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ee(t,Math.max(0,e+o-1))[0]}function Br(t,e){var n=ee(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var Hr={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:ia,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Br(t*100,e),r:Br,s:ua,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function qr(t){return t}var fa=Array.prototype.map,la=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function ca(t){var e=t.grouping===void 0||t.thousands===void 0?qr:oa(fa.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?qr:aa(fa.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",f=t.nan===void 0?"NaN":t.nan+"";function u(p,l){p=Ft(p);var m=p.fill,T=p.align,S=p.sign,A=p.symbol,w=p.zero,R=p.width,E=p.comma,x=p.precision,$=p.trim,y=p.type;y==="n"?(E=!0,y="g"):Hr[y]||(x===void 0&&(x=12),$=!0,y="g"),(w||m==="0"&&T==="=")&&(w=!0,m="0",T="=");var O=(l&&l.prefix!==void 0?l.prefix:"")+(A==="$"?n:A==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():""),P=(A==="$"?r:/[%p]/.test(y)?a:"")+(l&&l.suffix!==void 0?l.suffix:""),I=Hr[y],B=/[defgprs%]/.test(y);x=x===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function L(b){var _=O,h=P,g,d,v;if(y==="c")h=I(b)+h,b="";else{b=+b;var M=b<0||1/b<0;if(b=isNaN(b)?f:I(Math.abs(b),x),$&&(b=sa(b)),M&&+b==0&&S!=="+"&&(M=!1),_=(M?S==="("?S:s:S==="-"||S==="("?"":S)+_,h=(y==="s"&&!isNaN(b)&&We!==void 0?la[8+We/3]:"")+h+(M&&S==="("?")":""),B){for(g=-1,d=b.length;++gv||v>57){h=(v===46?i+b.slice(g+1):b.slice(g))+h,b=b.slice(0,g);break}}}E&&!w&&(b=e(b,1/0));var N=_.length+b.length+h.length,D=N>1)+_+b+h+D.slice(N);break;default:b=D+_+b+h;break}return o(b)}return L.toString=function(){return p+""},L}function c(p,l){var m=Math.max(-8,Math.min(8,Math.floor(Tt(l)/3)))*3,T=Math.pow(10,-m),S=u((p=Ft(p),p.type="f",p),{suffix:la[8+m/3]});return function(A){return S(T*A)}}return{format:u,formatPrefix:c}}var Pn,Yn,Fn;Wr({thousands:",",grouping:[3],currency:["$",""]});function Wr(t){return Pn=ca(t),Yn=Pn.format,Fn=Pn.formatPrefix,Pn}function Vr(t){return Math.max(0,-Tt(Math.abs(t)))}function Xr(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Tt(e)/3)))*3-Tt(Math.abs(t)))}function Gr(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Tt(e)-Tt(t))+1}function el(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function ha(){return this.eachAfter(el)}function pa(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this}function ma(t,e){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(t.call(e,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function da(t,e){for(var n=this,r=[n],i=[],o,a,s,f=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,s=o.length;a=0;)n+=r[i].value;e.value=n})}function _a(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function ya(t){for(var e=this,n=nl(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function nl(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function va(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function wa(){return Array.from(this)}function ba(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Ma(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*Ta(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i=0;--s)i.push(o=a[s]=new Ve(a[s])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(sl)}function rl(){return Un(this).eachBefore(al)}function il(t){return t.children}function ol(t){return Array.isArray(t)?t[1]:null}function al(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function sl(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Ve(t){this.data=t,this.depth=this.height=0,this.parent=null}Ve.prototype=Un.prototype={constructor:Ve,count:ha,each:pa,eachAfter:da,eachBefore:ma,find:xa,sum:ga,sort:_a,path:ya,ancestors:va,descendants:wa,leaves:ba,links:Ma,copy:rl,[Symbol.iterator]:Ta};function ka(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Sa(t,e,n,r,i){for(var o=t.children,a,s=-1,f=o.length,u=t.value&&(r-e)/t.value;++sR&&(R=u),y=A*A*$,E=Math.max(R/y,y/w),E>x){A-=u;break}x=E}a.push(f={value:A,dice:m1?r:1)},n})(ul);function Da(t){if(typeof t!="function")throw new Error;return t}function we(){return 0}function be(t){return function(){return t}}function ll(){var t=Na,e=!1,n=1,r=1,i=[0],o=we,a=we,s=we,f=we,u=we;function c(l){return l.x0=l.y0=0,l.x1=n,l.y1=r,l.eachBefore(p),i=[0],e&&l.eachBefore(ka),l}function p(l){var m=i[l.depth],T=l.x0+m,S=l.y0+m,A=l.x1-m,w=l.y1-m;Ae&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function hl(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i2?pl:hl,f=u=null,p}function p(l){return l==null||isNaN(l=+l)?o:(f||(f=s(t.map(r),e,n)))(r(a(l)))}return p.invert=function(l){return a(i((u||(u=s(e,t.map(r),it)))(l)))},p.domain=function(l){return arguments.length?(t=Array.from(l,Jr),c()):t.slice()},p.range=function(l){return arguments.length?(e=Array.from(l),c()):e.slice()},p.rangeRound=function(l){return e=Array.from(l),n=Ar,c()},p.clamp=function(l){return arguments.length?(a=l?!0:Me,c()):a!==Me},p.interpolate=function(l){return arguments.length?(n=l,c()):n},p.unknown=function(l){return arguments.length?(o=l,p):o},function(l,m){return r=l,i=m,c()}}function Ge(){return ml()(Me,Me)}function ti(t,e,n,r){var i=ve(t,e,n),o;switch(r=Ft(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=Xr(i,a))&&(r.precision=o),Fn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Gr(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Vr(i))&&(r.precision=o-(r.type==="%")*2);break}}return Yn(r)}function dl(t){var e=t.domain;return t.ticks=function(n){var r=e();return $n(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return ti(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,a=r[i],s=r[o],f,u,c=10;for(s0;){if(u=qe(a,s,n),u===f)return r[i]=a,r[o]=s,e(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;f=u}return t},t}function ei(){var t=Ge();return t.copy=function(){return zn(t,ei())},Ut.apply(t,arguments),dl(t)}var ni=new Date,ri=new Date;function G(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{let a=i(o),s=i.ceil(o);return o-a(e(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{let f=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o0))return f;let u;do f.push(u=new Date(+o)),e(o,s),t(o);while(uG(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!o(a););else for(;--s>=0;)for(;e(a,1),!o(a););}),n&&(i.count=(o,a)=>(ni.setTime(+o),ri.setTime(+a),t(ni),t(ri),Math.floor(n(ni,ri))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}var ne=G(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ne.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?G(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):ne);var $a=ne.range;var kt=G(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),Ea=kt.range;var Te=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),xl=Te.range,Ln=G(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),gl=Ln.range;var ke=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),_l=ke.range,Bn=G(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),yl=Bn.range;var Et=G(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),vl=Et.range,Qe=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),wl=Qe.range,Hn=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),bl=Hn.range;function oe(t){return G(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var Ot=oe(0),Se=oe(1),Ia=oe(2),Ra=oe(3),zt=oe(4),Pa=oe(5),Ya=oe(6),Fa=Ot.range,Ml=Se.range,Tl=Ia.range,kl=Ra.range,Sl=zt.range,Cl=Pa.range,Nl=Ya.range;function ae(t){return G(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/6048e5)}var se=ae(0),Ce=ae(1),Ua=ae(2),za=ae(3),Lt=ae(4),La=ae(5),Ba=ae(6),Ha=se.range,Dl=Ce.range,Al=Ua.range,$l=za.range,El=Lt.range,Ol=La.range,Il=Ba.range;var Ne=G(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),Rl=Ne.range,qn=G(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),Pl=qn.range;var ht=G(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ht.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});var Yl=ht.range,yt=G(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());yt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});var Fl=yt.range;function Wa(t,e,n,r,i,o){let a=[[kt,1,1e3],[kt,5,5*1e3],[kt,15,15*1e3],[kt,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[r,1,864e5],[r,2,2*864e5],[n,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function s(u,c,p){let l=cA).right(a,l);if(m===a.length)return t.every(ve(u/31536e6,c/31536e6,p));if(m===0)return ne.every(Math.max(ve(u,c,p),1));let[T,S]=a[l/a[m-1][2]53)return null;"w"in k||(k.w=1),"Z"in k?(Z=si(Ke(k.y,0,1)),ft=Z.getUTCDay(),Z=ft>4||ft===0?Ce.ceil(Z):Ce(Z),Z=Qe.offset(Z,(k.V-1)*7),k.y=Z.getUTCFullYear(),k.m=Z.getUTCMonth(),k.d=Z.getUTCDate()+(k.w+6)%7):(Z=ai(Ke(k.y,0,1)),ft=Z.getDay(),Z=ft>4||ft===0?Se.ceil(Z):Se(Z),Z=Et.offset(Z,(k.V-1)*7),k.y=Z.getFullYear(),k.m=Z.getMonth(),k.d=Z.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),ft="Z"in k?si(Ke(k.y,0,1)).getUTCDay():ai(Ke(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(ft+5)%7:k.w+k.U*7-(ft+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,si(k)):ai(k)}}function P(C,U,z,k){for(var ut=0,Z=U.length,ft=z.length,lt,Vt;ut=ft)return-1;if(lt=U.charCodeAt(ut++),lt===37){if(lt=U.charAt(ut++),Vt=$[lt in Va?U.charAt(ut++):lt],!Vt||(k=Vt(C,z,k))<0)return-1}else if(lt!=z.charCodeAt(k++))return-1}return k}function I(C,U,z){var k=u.exec(U.slice(z));return k?(C.p=c.get(k[0].toLowerCase()),z+k[0].length):-1}function B(C,U,z){var k=m.exec(U.slice(z));return k?(C.w=T.get(k[0].toLowerCase()),z+k[0].length):-1}function L(C,U,z){var k=p.exec(U.slice(z));return k?(C.w=l.get(k[0].toLowerCase()),z+k[0].length):-1}function b(C,U,z){var k=w.exec(U.slice(z));return k?(C.m=R.get(k[0].toLowerCase()),z+k[0].length):-1}function _(C,U,z){var k=S.exec(U.slice(z));return k?(C.m=A.get(k[0].toLowerCase()),z+k[0].length):-1}function h(C,U,z){return P(C,e,U,z)}function g(C,U,z){return P(C,n,U,z)}function d(C,U,z){return P(C,r,U,z)}function v(C){return a[C.getDay()]}function M(C){return o[C.getDay()]}function N(C){return f[C.getMonth()]}function D(C){return s[C.getMonth()]}function Y(C){return i[+(C.getHours()>=12)]}function F(C){return 1+~~(C.getMonth()/3)}function X(C){return a[C.getUTCDay()]}function W(C){return o[C.getUTCDay()]}function q(C){return f[C.getUTCMonth()]}function j(C){return s[C.getUTCMonth()]}function Q(C){return i[+(C.getUTCHours()>=12)]}function V(C){return 1+~~(C.getUTCMonth()/3)}return{format:function(C){var U=y(C+="",E);return U.toString=function(){return C},U},parse:function(C){var U=O(C+="",!1);return U.toString=function(){return C},U},utcFormat:function(C){var U=y(C+="",x);return U.toString=function(){return C},U},utcParse:function(C){var U=O(C+="",!0);return U.toString=function(){return C},U}}}var Va={"-":"",_:" ",0:"0"},et=/^\s*\d+/,Bl=/^%/,Hl=/[\\^$*+?|[\]().{}]/g;function H(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[e.toLowerCase(),n]))}function Wl(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Vl(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Xl(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Gl(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Zl(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Xa(t,e,n){var r=et.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ga(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ql(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Kl(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Jl(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Za(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function jl(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Qa(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function tc(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ec(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function nc(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function rc(t,e,n){var r=et.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ic(t,e,n){var r=Bl.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function oc(t,e,n){var r=et.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function ac(t,e,n){var r=et.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ka(t,e){return H(t.getDate(),e,2)}function sc(t,e){return H(t.getHours(),e,2)}function uc(t,e){return H(t.getHours()%12||12,e,2)}function fc(t,e){return H(1+Et.count(ht(t),t),e,3)}function ns(t,e){return H(t.getMilliseconds(),e,3)}function lc(t,e){return ns(t,e)+"000"}function cc(t,e){return H(t.getMonth()+1,e,2)}function hc(t,e){return H(t.getMinutes(),e,2)}function pc(t,e){return H(t.getSeconds(),e,2)}function mc(t){var e=t.getDay();return e===0?7:e}function dc(t,e){return H(Ot.count(ht(t)-1,t),e,2)}function rs(t){var e=t.getDay();return e>=4||e===0?zt(t):zt.ceil(t)}function xc(t,e){return t=rs(t),H(zt.count(ht(t),t)+(ht(t).getDay()===4),e,2)}function gc(t){return t.getDay()}function _c(t,e){return H(Se.count(ht(t)-1,t),e,2)}function yc(t,e){return H(t.getFullYear()%100,e,2)}function vc(t,e){return t=rs(t),H(t.getFullYear()%100,e,2)}function wc(t,e){return H(t.getFullYear()%1e4,e,4)}function bc(t,e){var n=t.getDay();return t=n>=4||n===0?zt(t):zt.ceil(t),H(t.getFullYear()%1e4,e,4)}function Mc(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+H(e/60|0,"0",2)+H(e%60,"0",2)}function Ja(t,e){return H(t.getUTCDate(),e,2)}function Tc(t,e){return H(t.getUTCHours(),e,2)}function kc(t,e){return H(t.getUTCHours()%12||12,e,2)}function Sc(t,e){return H(1+Qe.count(yt(t),t),e,3)}function is(t,e){return H(t.getUTCMilliseconds(),e,3)}function Cc(t,e){return is(t,e)+"000"}function Nc(t,e){return H(t.getUTCMonth()+1,e,2)}function Dc(t,e){return H(t.getUTCMinutes(),e,2)}function Ac(t,e){return H(t.getUTCSeconds(),e,2)}function $c(t){var e=t.getUTCDay();return e===0?7:e}function Ec(t,e){return H(se.count(yt(t)-1,t),e,2)}function os(t){var e=t.getUTCDay();return e>=4||e===0?Lt(t):Lt.ceil(t)}function Oc(t,e){return t=os(t),H(Lt.count(yt(t),t)+(yt(t).getUTCDay()===4),e,2)}function Ic(t){return t.getUTCDay()}function Rc(t,e){return H(Ce.count(yt(t)-1,t),e,2)}function Pc(t,e){return H(t.getUTCFullYear()%100,e,2)}function Yc(t,e){return t=os(t),H(t.getUTCFullYear()%100,e,2)}function Fc(t,e){return H(t.getUTCFullYear()%1e4,e,4)}function Uc(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Lt(t):Lt.ceil(t),H(t.getUTCFullYear()%1e4,e,4)}function zc(){return"+0000"}function ja(){return"%"}function ts(t){return+t}function es(t){return Math.floor(+t/1e3)}var De,Wn,as,ss,us;fi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function fi(t){return De=ui(t),Wn=De.format,as=De.parse,ss=De.utcFormat,us=De.utcParse,De}function li(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],a;return o1?0:t<-1?Ae:Math.acos(t)}function hi(t){return t>=1?tn:t<=-1?-tn:Math.asin(t)}var pi=Math.PI,mi=2*pi,fe=1e-6,qc=mi-fe;function ms(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ms;let n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;ife)if(!(Math.abs(p*f-u*c)>fe)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let m=r-a,T=i-s,S=f*f+u*u,A=m*m+T*T,w=Math.sqrt(S),R=Math.sqrt(l),E=o*Math.tan((pi-Math.acos((S+l-A)/(2*w*R)))/2),x=E/R,$=E/w;Math.abs(x-1)>fe&&this._append`L${e+x*c},${n+x*p}`,this._append`A${o},${o},0,0,${+(p*m>c*T)},${this._x1=e+$*f},${this._y1=n+$*u}`}}arc(e,n,r,i,o,a){if(e=+e,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),f=r*Math.sin(i),u=e+s,c=n+f,p=1^a,l=a?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>fe||Math.abs(this._y1-c)>fe)&&this._append`L${u},${c}`,r&&(l<0&&(l=l%mi+mi),l>qc?this._append`A${r},${r},0,1,${p},${e-s},${n-f}A${r},${r},0,1,${p},${this._x1=u},${this._y1=c}`:l>fe&&this._append`A${r},${r},0,${+(l>=pi)},${p},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function ds(){return new le}ds.prototype=le.prototype;function Xn(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{let r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new le(e)}function Vc(t){return t.innerRadius}function Xc(t){return t.outerRadius}function Gc(t){return t.startAngle}function Zc(t){return t.endAngle}function Qc(t){return t&&t.padAngle}function Kc(t,e,n,r,i,o,a,s){var f=n-t,u=r-e,c=a-i,p=s-o,l=p*f-c*u;if(!(l*lh*h+g*g&&(P=B,I=L),{cx:P,cy:I,x01:-c,y01:-p,x11:P*(i/$-1),y11:I*(i/$-1)}}function Jc(){var t=Vc,e=Xc,n=K(0),r=null,i=Gc,o=Zc,a=Qc,s=null,f=Xn(u);function u(){var c,p,l=+t.apply(this,arguments),m=+e.apply(this,arguments),T=i.apply(this,arguments)-tn,S=o.apply(this,arguments)-tn,A=ci(S-T),w=S>T;if(s||(s=c=f()),mnt))s.moveTo(0,0);else if(A>$e-nt)s.moveTo(m*Bt(T),m*vt(T)),s.arc(0,0,m,T,S,!w),l>nt&&(s.moveTo(l*Bt(S),l*vt(S)),s.arc(0,0,l,S,T,w));else{var R=T,E=S,x=T,$=S,y=A,O=A,P=a.apply(this,arguments)/2,I=P>nt&&(r?+r.apply(this,arguments):ue(l*l+m*m)),B=Vn(ci(m-l)/2,+n.apply(this,arguments)),L=B,b=B,_,h;if(I>nt){var g=hi(I/l*vt(P)),d=hi(I/m*vt(P));(y-=g*2)>nt?(g*=w?1:-1,x+=g,$-=g):(y=0,x=$=(T+S)/2),(O-=d*2)>nt?(d*=w?1:-1,R+=d,E-=d):(O=0,R=E=(T+S)/2)}var v=m*Bt(R),M=m*vt(R),N=l*Bt($),D=l*vt($);if(B>nt){var Y=m*Bt(E),F=m*vt(E),X=l*Bt(x),W=l*vt(x),q;if(Ant?b>nt?(_=Gn(X,W,v,M,m,b,w),h=Gn(Y,F,N,D,m,b,w),s.moveTo(_.cx+_.x01,_.cy+_.y01),bnt)||!(y>nt)?s.lineTo(N,D):L>nt?(_=Gn(N,D,Y,F,l,-L,w),h=Gn(v,M,X,W,l,-L,w),s.lineTo(_.cx+_.x01,_.cy+_.y01),Lt?1:e>=t?0:NaN}function vs(t){return t}function th(){var t=vs,e=ys,n=null,r=K(0),i=K($e),o=K(0);function a(s){var f,u=(s=Zn(s)).length,c,p,l=0,m=new Array(u),T=new Array(u),S=+r.apply(this,arguments),A=Math.min($e,Math.max(-$e,i.apply(this,arguments)-S)),w,R=Math.min(Math.abs(A)/u,o.apply(this,arguments)),E=R*(A<0?-1:1),x;for(f=0;f0&&(l+=x);for(e!=null?m.sort(function($,y){return e(T[$],T[y])}):n!=null&&m.sort(function($,y){return n(s[$],s[y])}),f=0,p=l?(A-u*E)/l:0;f0?x*p:0)+E,T[c]={data:s[c],index:f,value:x,startAngle:S,endAngle:w,padAngle:R};return T}return a.value=function(s){return arguments.length?(t=typeof s=="function"?s:K(+s),a):t},a.sortValues=function(s){return arguments.length?(e=s,n=null,a):e},a.sort=function(s){return arguments.length?(n=s,e=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:K(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:K(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:K(+s),a):o},a}function Ee(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function en(t){this._context=t}en.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ee(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ee(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function eh(t){return new en(t)}var Qn=class{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}};function nh(t){return new Qn(t,!0)}function rh(t){return new Qn(t,!1)}function xt(){}function ws(t){this._context=t}ws.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ee(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ih(t){return new ws(t)}function bs(t){this._context=t}bs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ee(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function oh(t){return new bs(t)}function Ms(t,e){this._basis=new en(t),this._beta=e}Ms.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],i=e[0],o=t[n]-r,a=e[n]-i,s=-1,f;++s<=n;)f=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(r+f*o),this._beta*e[s]+(1-this._beta)*(i+f*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var ah=(function t(e){function n(r){return e===1?new en(r):new Ms(r,e)}return n.beta=function(r){return t(+r)},n})(.85);function Oe(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Kn(t,e){this._context=t,this._k=(1-e)/6}Kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Oe(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Oe(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var sh=(function t(e){function n(r){return new Kn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Jn(t,e){this._context=t,this._k=(1-e)/6}Jn.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Oe(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var uh=(function t(e){function n(r){return new Jn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function jn(t,e){this._context=t,this._k=(1-e)/6}jn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Oe(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var fh=(function t(e){function n(r){return new jn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function nn(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>nt){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>nt){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Ts(t,e){this._context=t,this._alpha=e}Ts.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var lh=(function t(e){function n(r){return e?new Ts(r,e):new Kn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function ks(t,e){this._context=t,this._alpha=e}ks.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ch=(function t(e){function n(r){return e?new ks(r,e):new Jn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function Ss(t,e){this._context=t,this._alpha=e}Ss.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var hh=(function t(e){function n(r){return e?new Ss(r,e):new jn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function Cs(t){this._context=t}Cs.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function ph(t){return new Cs(t)}function Ns(t){return t<0?-1:1}function Ds(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Ns(o)+Ns(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function As(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function xi(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function tr(t){this._context=t}tr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:xi(this,this._t0,As(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,xi(this,As(this,n=Ds(this,t,e)),n);break;default:xi(this,this._t0,n=Ds(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function $s(t){this._context=new Es(t)}($s.prototype=Object.create(tr.prototype)).point=function(t,e){tr.prototype.point.call(this,e,t)};function Es(t){this._context=t}Es.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};function mh(t){return new tr(t)}function dh(t){return new $s(t)}function Is(t){this._context=t}Is.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=Os(t),i=Os(e),o=0,a=1;a=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function gh(t){return new er(t,.5)}function _h(t){return new er(t,0)}function yh(t){return new er(t,1)}var vh={value:()=>{}};function Ps(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}nr.prototype=Ps.prototype={constructor:nr,on:function(t,e){var n=this._,r=wh(t+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r()=>t;function sn(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:f,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:f,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}sn.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Mh(t){return!t.ctrlKey&&!t.button}function Th(){return this.parentNode}function kh(t,e){return e??{x:t.x,y:t.y}}function Sh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ch(){var t=Mh,e=Th,n=kh,r=Sh,i={},o=ce("start","drag","end"),a=0,s,f,u,c,p=0;function l(x){x.on("mousedown.drag",m).filter(r).on("touchstart.drag",A).on("touchmove.drag",w,Ys).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(x,$){if(!(c||!t.call(this,x,$))){var y=E(this,e.call(this,x,$),x,$,"mouse");y&&(ct(x.view).on("mousemove.drag",T,he).on("mouseup.drag",S,he),rn(x.view),rr(x),u=!1,s=x.clientX,f=x.clientY,y("start",x))}}function T(x){if(Ht(x),!u){var $=x.clientX-s,y=x.clientY-f;u=$*$+y*y>p}i.mouse("drag",x)}function S(x){ct(x.view).on("mousemove.drag mouseup.drag",null),on(x.view,u),Ht(x),i.mouse("end",x)}function A(x,$){if(t.call(this,x,$)){var y=x.changedTouches,O=e.call(this,x,$),P=y.length,I,B;for(I=0;I=0&&t._call.call(void 0,e),t=t._next;--Ie}function Fs(){pe=(or=cn.now())+ar,Ie=fn=0;try{Ls()}finally{Ie=0,Ah(),pe=0}}function Dh(){var t=cn.now(),e=t-or;e>Us&&(ar-=e,or=t)}function Ah(){for(var t,e=ir,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ir=n);ln=t,gi(r)}function gi(t){if(!Ie){fn&&(fn=clearTimeout(fn));var e=t-pe;e>24?(t<1/0&&(fn=setTimeout(Fs,t-cn.now()-ar)),un&&(un=clearInterval(un))):(un||(or=cn.now(),un=setInterval(Dh,Us)),Ie=1,zs(Fs))}}function ur(t,e,n){var r=new hn;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var $h=ce("start","end","cancel","interrupt"),Eh=[],qs=0,Bs=1,lr=2,fr=3,Hs=4,cr=5,mn=6;function qt(t,e,n,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;Oh(t,n,{name:e,index:r,group:i,on:$h,tween:Eh,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:qs})}function dn(t,e){var n=tt(t,e);if(n.state>qs)throw new Error("too late; already scheduled");return n}function at(t,e){var n=tt(t,e);if(n.state>fr)throw new Error("too late; already running");return n}function tt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Oh(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=sr(o,0,n.time);function o(u){n.state=Bs,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,p,l,m;if(n.state!==Bs)return f();for(c in r)if(m=r[c],m.name===n.name){if(m.state===fr)return ur(a);m.state===Hs?(m.state=mn,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete r[c]):+clr&&r.state=0&&(e=e.slice(0,n)),!e||e==="start"})}function jh(t,e,n){var r,i,o=Jh(e)?dn:at;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}function eu(t,e){var n=this._id;return arguments.length<2?tt(this.node(),n).on.on(t):this.each(jh(n,t,e))}function tp(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function nu(){return this.on("end.remove",tp(this._id))}function ru(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Xt(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a()=>t;function yi(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function wt(t,e,n){this.k=t,this.x=e,this.y=n}wt.prototype={constructor:wt,scale:function(t){return t===1?this:new wt(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new wt(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var gn=new wt(1,0,0);vi.prototype=wt.prototype;function vi(t){for(;!t.__zoom;)if(!(t=t.parentNode))return gn;return t.__zoom}function dr(t){t.stopImmediatePropagation()}function Pe(t){t.preventDefault(),t.stopImmediatePropagation()}function xp(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function gp(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function xu(){return this.__zoom||gn}function _p(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function yp(){return navigator.maxTouchPoints||"ontouchstart"in this}function vp(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function wp(){var t=xp,e=gp,n=vp,r=_p,i=yp,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,f=Ir,u=ce("start","zoom","end"),c,p,l,m=500,T=150,S=0,A=10;function w(h){h.property("__zoom",xu).on("wheel.zoom",P,{passive:!1}).on("mousedown.zoom",I).on("dblclick.zoom",B).filter(i).on("touchstart.zoom",L).on("touchmove.zoom",b).on("touchend.zoom touchcancel.zoom",_).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(h,g,d,v){var M=h.selection?h.selection():h;M.property("__zoom",xu),h!==M?$(h,g,d,v):M.interrupt().each(function(){y(this,arguments).event(v).start().zoom(null,typeof g=="function"?g.apply(this,arguments):g).end()})},w.scaleBy=function(h,g,d,v){w.scaleTo(h,function(){var M=this.__zoom.k,N=typeof g=="function"?g.apply(this,arguments):g;return M*N},d,v)},w.scaleTo=function(h,g,d,v){w.transform(h,function(){var M=e.apply(this,arguments),N=this.__zoom,D=d==null?x(M):typeof d=="function"?d.apply(this,arguments):d,Y=N.invert(D),F=typeof g=="function"?g.apply(this,arguments):g;return n(E(R(N,F),D,Y),M,a)},d,v)},w.translateBy=function(h,g,d,v){w.transform(h,function(){return n(this.__zoom.translate(typeof g=="function"?g.apply(this,arguments):g,typeof d=="function"?d.apply(this,arguments):d),e.apply(this,arguments),a)},null,v)},w.translateTo=function(h,g,d,v,M){w.transform(h,function(){var N=e.apply(this,arguments),D=this.__zoom,Y=v==null?x(N):typeof v=="function"?v.apply(this,arguments):v;return n(gn.translate(Y[0],Y[1]).scale(D.k).translate(typeof g=="function"?-g.apply(this,arguments):-g,typeof d=="function"?-d.apply(this,arguments):-d),N,a)},v,M)};function R(h,g){return g=Math.max(o[0],Math.min(o[1],g)),g===h.k?h:new wt(g,h.x,h.y)}function E(h,g,d){var v=g[0]-d[0]*h.k,M=g[1]-d[1]*h.k;return v===h.x&&M===h.y?h:new wt(h.k,v,M)}function x(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function $(h,g,d,v){h.on("start.zoom",function(){y(this,arguments).event(v).start()}).on("interrupt.zoom end.zoom",function(){y(this,arguments).event(v).end()}).tween("zoom",function(){var M=this,N=arguments,D=y(M,N).event(v),Y=e.apply(M,N),F=d==null?x(Y):typeof d=="function"?d.apply(M,N):d,X=Math.max(Y[1][0]-Y[0][0],Y[1][1]-Y[0][1]),W=M.__zoom,q=typeof g=="function"?g.apply(M,N):g,j=f(W.invert(F).concat(X/W.k),q.invert(F).concat(X/q.k));return function(Q){if(Q===1)Q=q;else{var V=j(Q),C=X/V[2];Q=new wt(C,F[0]-V[0]*C,F[1]-V[1]*C)}D.zoom(null,Q)}})}function y(h,g,d){return!d&&h.__zooming||new O(h,g)}function O(h,g){this.that=h,this.args=g,this.active=0,this.sourceEvent=null,this.extent=e.apply(h,g),this.taps=0}O.prototype={event:function(h){return h&&(this.sourceEvent=h),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(h,g){return this.mouse&&h!=="mouse"&&(this.mouse[1]=g.invert(this.mouse[0])),this.touch0&&h!=="touch"&&(this.touch0[1]=g.invert(this.touch0[0])),this.touch1&&h!=="touch"&&(this.touch1[1]=g.invert(this.touch1[0])),this.that.__zoom=g,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(h){var g=ct(this.that).datum();u.call(h,this.that,new yi(h,{sourceEvent:this.sourceEvent,target:w,type:h,transform:this.that.__zoom,dispatch:u}),g)}};function P(h,...g){if(!t.apply(this,arguments))return;var d=y(this,g).event(h),v=this.__zoom,M=Math.max(o[0],Math.min(o[1],v.k*Math.pow(2,r.apply(this,arguments)))),N=pt(h);if(d.wheel)(d.mouse[0][0]!==N[0]||d.mouse[0][1]!==N[1])&&(d.mouse[1]=v.invert(d.mouse[0]=N)),clearTimeout(d.wheel);else{if(v.k===M)return;d.mouse=[N,v.invert(N)],Wt(this),d.start()}Pe(h),d.wheel=setTimeout(D,T),d.zoom("mouse",n(E(R(v,M),d.mouse[0],d.mouse[1]),d.extent,a));function D(){d.wheel=null,d.end()}}function I(h,...g){if(l||!t.apply(this,arguments))return;var d=h.currentTarget,v=y(this,g,!0).event(h),M=ct(h.view).on("mousemove.zoom",F,!0).on("mouseup.zoom",X,!0),N=pt(h,d),D=h.clientX,Y=h.clientY;rn(h.view),dr(h),v.mouse=[N,this.__zoom.invert(N)],Wt(this),v.start();function F(W){if(Pe(W),!v.moved){var q=W.clientX-D,j=W.clientY-Y;v.moved=q*q+j*j>S}v.event(W).zoom("mouse",n(E(v.that.__zoom,v.mouse[0]=pt(W,d),v.mouse[1]),v.extent,a))}function X(W){M.on("mousemove.zoom mouseup.zoom",null),on(W.view,v.moved),Pe(W),v.event(W).end()}}function B(h,...g){if(t.apply(this,arguments)){var d=this.__zoom,v=pt(h.changedTouches?h.changedTouches[0]:h,this),M=d.invert(v),N=d.k*(h.shiftKey?.5:2),D=n(E(R(d,N),v,M),e.apply(this,g),a);Pe(h),s>0?ct(this).transition().duration(s).call($,D,v,h):ct(this).call(w.transform,D,v,h)}}function L(h,...g){if(t.apply(this,arguments)){var d=h.touches,v=d.length,M=y(this,g,h.changedTouches.length===v).event(h),N,D,Y,F;for(dr(h),D=0;Due(c,t)),i=0,r=0,a=[];if(e.length>1){let c=Kt(e);for(let u=0;uo.angle-u.angle);let h=e[e.length-1];for(let u=0;ux.radius*2&&(g=x.radius*2),(d==null||d.width>g)&&(d={circle:x,width:g,p1:o,p2:h,large:g>x.radius,sweep:!0})}d!=null&&(a.push(d),i+=ht(d.circle.radius,d.width),h=o)}}else{let c=t[0];for(let u=1;uMath.abs(c.radius-t[u].radius)){h=!0;break}h?i=r=0:(i=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-1e-10,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0}))}return r/=2,n&&(n.area=i+r,n.arcArea=i,n.polygonArea=r,n.arcs=a,n.innerPoints=e,n.intersectionPoints=s),i+r}function ue(t,n){return n.every(s=>q(t,s)=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);let e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return ht(t,e)+ht(n,i)}function Wt(t,n){let s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];let r=(e*e-i*i+s*s)/(2*s),a=Math.sqrt(e*e-r*r),c=t.x+r*(n.x-t.x)/s,h=t.y+r*(n.y-t.y)/s,u=-(n.y-t.y)*(a/s),o=-(n.x-t.x)*(a/s);return[{x:c+u,y:h-o},{x:c-u,y:h+o}]}function Kt(t){let n={x:0,y:0};for(let s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function he(t,n,s,e){e=e||{};let i=e.maxIterations||100,r=e.tolerance||1e-10,a=t(n),c=t(s),h=s-n;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return n;if(c===0)return s;for(let u=0;u=0&&(n=o),Math.abs(h)dt(n))}function $(t,n){let s=0;for(let e=0;ev.fx-l.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v{let O=f.slice();return O.fx=f.fx,O.id=f.id,O});p.sort((f,O)=>f.id-O.id),s.history.push({x:x[0].slice(),fx:x[0].fx,simplex:p})}d=0;for(let p=0;p=x[b-1].fx){let p=!1;if(S.fx>l.fx?(J(g,1+o,_,-o,l),g.fx=t(g),g.fx=1)break;for(let f=1;fc+r*i*h||u>=T)M=i;else{if(Math.abs(y)<=-a*h)return i;y*(M-x)>=0&&(M=x),x=i,T=u}return 0}for(let x=0;x<10;++x){if(J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>c+r*i*h||x&&u>=o)return b(d,i,o);if(Math.abs(y)<=-a*h)return i;if(y>=0)return b(i,d,u);o=u,d=i,i*=2}return i}function ge(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()},r=n.slice(),a,c,h=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),a=e.fxprime.slice(),xt(a,e.fxprime,-1);for(let o=0;o{let y={};for(let d=0;dmt(t,n,e)-s,0,t+n)}function xe(t,n={}){let s=n.distinct,e=t.map(c=>Object.assign({},c));function i(c){return c.join(";")}if(s){let c=new Map;for(let h of e)for(let u=0;uc===h?0:cr.sets.length===2).forEach(r=>{let a=s[r.sets[0]],c=s[r.sets[1]],h=Math.sqrt(n[a].size/Math.PI),u=Math.sqrt(n[c].size/Math.PI),o=yt(h,u,r.size);e[a][c]=e[c][a]=o;let y=0;r.size+1e-10>=Math.min(n[a].size,n[c].size)?y=1:r.size<=1e-10&&(y=-1),i[a][c]=i[c][a]=y}),{distances:e,constraints:i}}function pe(t,n,s,e){for(let r=0;r0&&x<=y||d<0&&x>=y||(i+=2*M*M,n[2*r]+=4*M*(a-u),n[2*r+1]+=4*M*(c-o),n[2*h]+=4*M*(u-a),n[2*h+1]+=4*M*(o-c))}}return i}function me(t,n={}){let s=ve(t,n),e=n.lossFunction||tt;if(t.length>=8){let i=be(t,n),r=e(i,t),a=e(s,t);r+1e-8d.map(b=>b/c));let h=(d,b)=>pe(d,b,r,a),u=null;for(let d=0;dy.sets.length===2);for(let y of t){let d=y.weight!=null?y.weight:1,b=y.sets[0],x=y.sets[1];y.size+Xt>=Math.min(e[b].size,e[x].size)&&(d=0),i[b].push({set:x,size:y.size,weight:d}),i[x].push({set:b,size:y.size,weight:d})}let r=[];Object.keys(i).forEach(y=>{let d=0;for(let b=0;bt[a]));let r=e.weight!=null?e.weight:1;s+=r*(i-e.size)*(i-e.size)}return s}function Zt(t,n){let s=0;for(let e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){let c=t[e.sets[0]],h=t[e.sets[1]];i=mt(c.radius,h.radius,q(c,h))}else i=rt(e.sets.map(c=>t[c]));let r=e.weight!=null?e.weight:1,a=Math.log((i+1)/(e.size+1));s+=r*a*a}return s}function ke(t,n,s){if(s==null?t.sort((i,r)=>r.radius-i.radius):t.sort(s),t.length>0){let i=t[0].x,r=t[0].y;for(let a of t)a.x-=i,a.y-=r}if(t.length===2&&q(t[0],t[1])1){let i=Math.atan2(t[1].x,t[1].y)-n,r=Math.cos(i),a=Math.sin(i);for(let c of t){let h=c.x,u=c.y;c.x=r*h-a*u,c.y=a*h+r*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){let r=t[1].y/(1e-10+t[1].x);for(let a of t){var e=(a.x+r*a.y)/(1+r*r);a.x=2*e-a.x,a.y=2*e*r-a.y}}}}function Ie(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,r){let a=n(i),c=n(r);a.parent=c}for(let i=0;i{delete i.parent}),Array.from(e.values())}function pt(t){let n=s=>{let e=t.reduce((r,a)=>Math.max(r,a[s]+a.radius),Number.NEGATIVE_INFINITY),i=t.reduce((r,a)=>Math.min(r,a[s]-a.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Jt(t,n,s){n==null&&(n=Math.PI/2);let e=te(t).map(u=>Object.assign({},u)),i=Ie(e);for(let u of i){ke(u,n,s);let o=pt(u);u.size=(o.xRange.max-o.xRange.min)*(o.yRange.max-o.yRange.min),u.bounds=o}i.sort((u,o)=>o.size-u.size),e=i[0];let r=e.bounds,a=(r.xRange.max-r.xRange.min)/50;function c(u,o,y){if(!u)return;let d=u.bounds,b,x;if(o)b=r.xRange.max-d.xRange.min+a;else{b=r.xRange.max-d.xRange.max;let M=(d.xRange.max-d.xRange.min)/2-(r.xRange.max-r.xRange.min)/2;M<0&&(b+=M)}if(y)x=r.yRange.max-d.yRange.min+a;else{x=r.yRange.max-d.yRange.max;let M=(d.yRange.max-d.yRange.min)/2-(r.yRange.max-r.yRange.min)/2;M<0&&(x+=M)}for(let M of u)M.x+=b,M.y+=x,e.push(M)}let h=1;for(;h({radius:o*b.radius,x:e+y+(b.x-a.min)*o,y:e+d+(b.y-c.min)*o,setid:b.setid})))}function $t(t){let n={};for(let s of t)n[s.setid]=s;return n}function te(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ee(t={}){let n=!1,s=600,e=350,i=15,r=1e3,a=Math.PI/2,c=!0,h=null,u=!0,o=!0,y=null,d=null,b=!1,x=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,T={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(p){if(p in T)return T[p];var f=T[p]=_[S];return S+=1,S>=_.length&&(S=0),f},m=Yt,v=tt;function l(p){let f=p.datum(),O=new Set;f.forEach(k=>{k.size==0&&k.sets.length==1&&O.add(k.sets[0])}),f=f.filter(k=>!k.sets.some(B=>O.has(B)));let I={},C={};if(f.length>0){let k=m(f,{lossFunction:v,distinct:b});c&&(k=Jt(k,a,d)),I=Qt(k,s,e,i,h),C=se(I,f,M)}let U={};f.forEach(k=>{k.label&&(U[k.sets]=k.label)});function P(k){if(k.sets in U)return U[k.sets];if(k.sets.length==1)return""+k.sets[0]}p.selectAll("svg").data([I]).enter().append("svg");let E=p.select("svg");n?E.attr("viewBox",`0 0 ${s} ${e}`):E.attr("width",s).attr("height",e);let D={},R=!1;E.selectAll(".venn-area path").each(function(k){let B=this.getAttribute("d");k.sets.length==1&&B&&!b&&(R=!0,D[k.sets[0]]=we(B))});function z(k){return B=>{let et=k.sets.map(Z=>{let X=D[Z],V=I[Z];return X||(X={x:s/2,y:e/2,radius:1}),V||(V={x:s/2,y:e/2,radius:1}),{x:X.x*(1-B)+V.x*B,y:X.y*(1-B)+V.y*B,radius:X.radius*(1-B)+V.radius*B}});return Gt(et,x)}}let N=E.selectAll(".venn-area").data(f,k=>k.sets),L=N.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),F=L.append("path"),K=L.append("text").attr("class","label").text(k=>P(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);o&&(F.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),K.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function H(k){return typeof k.transition=="function"?k.transition("venn").duration(r):k}let j=p;R&&typeof j.transition=="function"?(j=H(p),j.selectAll("path").attrTween("d",z)):j.selectAll("path").attr("d",k=>Gt(k.sets.map(B=>I[B])),x);let A=j.selectAll("text").filter(k=>k.sets in C).text(k=>P(k)).attr("x",k=>Math.floor(C[k.sets].x)).attr("y",k=>Math.floor(C[k.sets].y));u&&(R?"on"in A?A.on("end",ut(I,P)):A.each("end",ut(I,P)):A.each(ut(I,P)));let Y=H(N.exit()).remove();typeof N.transition=="function"&&Y.selectAll("path").attrTween("d",z);let G=Y.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(K.style("font-size","0px"),A.style("font-size",y),G.style("font-size","0px")),{circles:I,textCentres:C,nodes:N,enter:L,update:j,exit:Y}}return l.wrap=function(p){return arguments.length?(u=p,l):u},l.useViewBox=function(){return n=!0,l},l.width=function(p){return arguments.length?(s=p,l):s},l.height=function(p){return arguments.length?(e=p,l):e},l.padding=function(p){return arguments.length?(i=p,l):i},l.distinct=function(p){return arguments.length?(b=p,l):b},l.colours=function(p){return arguments.length?(g=p,l):g},l.colors=function(p){return arguments.length?(g=p,l):g},l.fontSize=function(p){return arguments.length?(y=p,l):y},l.round=function(p){return arguments.length?(x=p,l):x},l.duration=function(p){return arguments.length?(r=p,l):r},l.layoutFunction=function(p){return arguments.length?(m=p,l):m},l.normalize=function(p){return arguments.length?(c=p,l):c},l.scaleToFit=function(p){return arguments.length?(h=p,l):h},l.styled=function(p){return arguments.length?(o=p,l):o},l.orientation=function(p){return arguments.length?(a=p,l):a},l.orientationOrder=function(p){return arguments.length?(d=p,l):d},l.lossFunction=function(p){return arguments.length?(v=p==="default"?tt:p==="logRatio"?Zt:p,l):v},l}function ut(t,n){return function(s){let e=this,i=t[s.sets[0]].radius||50,r=n(s)||"",a=r.split(/\s+/).reverse(),h=(r.length+a.length)/3,u=a.pop(),o=[u],y=0,d=1.1;e.textContent=null;let b=[];function x(g){let m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=x(u);for(;u=a.pop(),!!u;){o.push(u);let g=o.join(" ");M.textContent=g,g.length>h&&M.getComputedTextLength()>i&&(o.pop(),M.textContent=o.join(" "),o=[u],M=x(u),y++)}let T=.35-y*d/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${T+m*d}em`)})}}function ft(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i=r&&(i=e[o],r=y)}let a=Ht(o=>-1*ft({x:o[0],y:o[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:s?0:a[0],y:a[1]},h=!0;for(let o of t)if(q(c,o)>o.radius){h=!1;break}for(let o of n)if(q(c,o)o.p1))}function Me(t){let n={},s=Object.keys(t);for(let e of s)n[e]=[];for(let e=0;e0&&console.log("WARNING: area "+a+" not represented on screen")}return e}function Se(t,n,s){let e=[];return e.push(` M`,t,n),e.push(` m`,-s,0),e.push(` diff --git a/src/google/adk/cli/browser/chunk-LA76DWZL.js b/src/google/adk/cli/browser/chunk-LA76DWZL.js index d2277db602..9c18b20445 100644 --- a/src/google/adk/cli/browser/chunk-LA76DWZL.js +++ b/src/google/adk/cli/browser/chunk-LA76DWZL.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as dt}from"./chunk-TPDTRWWV.js";import{a as ft}from"./chunk-PRKFGJVH.js";import{k as yt}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{M as nt,N as at,R as rt,S as lt,T as ot,U as ht,V as ct,W as Q,X as ut,Y as J}from"./chunk-QFMJV7VH.js";import{g as l}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";var et=(function(){var t=l(function(M,e,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=e);return s},"o"),d=[1,4],a=[1,14],r=[1,12],o=[1,13],y=[6,7,8],p=[1,20],u=[1,18],w=[1,19],c=[6,7,11],m=[1,6,13,14],k=[1,23],_=[1,24],x=[1,6,7,11,13,14],N={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:l(function(e,s,i,h,f,n,v){var b=n.length-1;switch(f){case 6:case 7:return h;case 15:h.addNode(n[b-1].length,n[b].trim());break;case 16:h.addNode(0,n[b].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:a,7:[1,10],9:9,12:11,13:r,14:o},t(y,[2,3]),{1:[2,2]},t(y,[2,4]),t(y,[2,5]),{1:[2,6],6:a,12:15,13:r,14:o},{6:a,9:16,12:11,13:r,14:o},{6:p,7:u,10:17,11:w},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:p,7:u,10:22,11:w},{1:[2,7],6:a,12:15,13:r,14:o},t(m,[2,14],{7:k,11:_}),t(x,[2,8]),t(x,[2,9]),t(x,[2,10]),t(c,[2,15]),t(m,[2,13],{7:k,11:_}),t(x,[2,11]),t(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(e,s){if(s.recoverable)this.trace(e);else{var i=new Error(e);throw i.hash=s,i}},"parseError"),parse:l(function(e){var s=this,i=[0],h=[],f=[null],n=[],v=this.table,b="",I=0,S=0,A=0,L=2,O=1,Z=n.slice.call(arguments,1),g=Object.create(this.lexer),E={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(E.yy[V]=this.yy[V]);g.setInput(e,E.yy),E.yy.lexer=g,E.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var R=g.yylloc;n.push(R);var X=g.options&&g.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xt(P){i.length=i.length-2*P,f.length=f.length-P,n.length=n.length-P}l(xt,"popStack");function it(){var P;return P=h.pop()||g.lex()||O,typeof P!="number"&&(P instanceof Array&&(h=P,P=h.pop()),P=s.symbols_[P]||P),P}l(it,"lex");for(var T,Y,W,B,Vt,K,F={},H,C,st,G;;){if(W=i[i.length-1],this.defaultActions[W]?B=this.defaultActions[W]:((T===null||typeof T>"u")&&(T=it()),B=v[W]&&v[W][T]),typeof B>"u"||!B.length||!B[0]){var q="";G=[];for(H in v[W])this.terminals_[H]&&H>L&&G.push("'"+this.terminals_[H]+"'");g.showPosition?q="Parse error on line "+(I+1)+`: `+g.showPosition()+` Expecting `+G.join(", ")+", got '"+(this.terminals_[T]||T)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(T==O?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(q,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:R,expected:G})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+T);switch(B[0]){case 1:i.push(T),f.push(g.yytext),n.push(g.yylloc),i.push(B[1]),T=null,Y?(T=Y,Y=null):(S=g.yyleng,b=g.yytext,I=g.yylineno,R=g.yylloc,A>0&&A--);break;case 2:if(C=this.productions_[B[1]][1],F.$=f[f.length-C],F._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},X&&(F._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(F,[b,S,I,E.yy,B[1],f,n].concat(Z)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),f=f.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[B[1]][0]),f.push(F.$),n.push(F._$),st=v[i[i.length-2]][i[i.length-1]],i.push(st);break;case 3:return!0}}return!0},"parse")},D=(function(){var M={EOF:1,parseError:l(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:l(function(e,s){return this.yy=s||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var s=e.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:l(function(e){var s=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===h.length?this.yylloc.first_column:0)+h[h.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-LI24J5PW.js b/src/google/adk/cli/browser/chunk-LI24J5PW.js index 1290de323d..07bdfb0c1d 100644 --- a/src/google/adk/cli/browser/chunk-LI24J5PW.js +++ b/src/google/adk/cli/browser/chunk-LI24J5PW.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as Mt}from"./chunk-APNCZOFE.js";import{a as Ut}from"./chunk-ST54LLJ3.js";import{b as Vt}from"./chunk-F57TI45K.js";import{e as Bt,m as Gt}from"./chunk-WBLSVR3V.js";import{M as B,R as Rt,S as Nt,T as wt,U as $t,V as Pt,W as Ft,X as Yt,Y as w}from"./chunk-QFMJV7VH.js";import{g as h,i as k}from"./chunk-JRNAXTJ7.js";import{j as Ot}from"./chunk-RMXJBC7V.js";var vt=(function(){var t=h(function(Y,o,c,n){for(c=c||{},n=Y.length;n--;c[Y[n]]=o);return c},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],u=[1,9],d=[1,11],S=[1,16],f=[1,17],T=[1,18],E=[1,19],_=[1,33],x=[1,20],v=[1,21],p=[1,22],D=[1,23],R=[1,24],L=[1,26],$=[1,27],I=[1,28],P=[1,29],et=[1,30],st=[1,31],it=[1,32],rt=[1,35],at=[1,36],nt=[1,37],ot=[1,38],j=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:h(function(o,c,n,g,b,i,X){var l=i.length-1;switch(b){case 3:return g.setRootDoc(i[l]),i[l];break;case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:let ht=i[l-1];ht.description=g.trimColon(i[l]),this.$=ht;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:let ut=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:ut};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var V=i[l],H=i[l-2].trim();if(i[l].match(":")){var J=i[l].split(":");V=J[0],H=[H,J[1]]}this.$={stmt:"state",id:V,type:"default",description:H};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:u,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:T,22:E,24:_,25:x,26:v,27:p,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:f,19:T,22:E,24:_,25:x,26:v,27:p,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:_,57:j},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(lt,[2,44],{58:[1,56]}),t(lt,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:_,57:j},t(y,[2,17]),t(xt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:u,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:T,21:[1,72],22:E,24:_,25:x,26:v,27:p,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(lt,[2,46]),t(lt,[2,47]),t(y,[2,15]),t(y,[2,19]),t(xt,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:u,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:T,21:[1,81],22:E,24:_,25:x,26:v,27:p,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:h(function(o,c){if(c.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=c,n}},"parseError"),parse:h(function(o){var c=this,n=[0],g=[],b=[null],i=[],X=this.table,l="",V=0,H=0,J=0,ht=2,ut=1,ue=i.slice.call(arguments,1),m=Object.create(this.lexer),M={yy:{}};for(var Tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Tt)&&(M.yy[Tt]=this.yy[Tt]);m.setInput(o,M.yy),M.yy.lexer=m,M.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var bt=m.yylloc;i.push(bt);var de=m.options&&m.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(O){n.length=n.length-2*O,b.length=b.length-O,i.length=i.length-O}h(fe,"popStack");function Lt(){var O;return O=g.pop()||m.lex()||ut,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=c.symbols_[O]||O),O}h(Lt,"lex");for(var C,Et,U,N,Be,_t,W={},dt,F,It,ft;;){if(U=n[n.length-1],this.defaultActions[U]?N=this.defaultActions[U]:((C===null||typeof C>"u")&&(C=Lt()),N=X[U]&&X[U][C]),typeof N>"u"||!N.length||!N[0]){var kt="";ft=[];for(dt in X[U])this.terminals_[dt]&&dt>ht&&ft.push("'"+this.terminals_[dt]+"'");m.showPosition?kt="Parse error on line "+(V+1)+`: `+m.showPosition()+` Expecting `+ft.join(", ")+", got '"+(this.terminals_[C]||C)+"'":kt="Parse error on line "+(V+1)+": Unexpected "+(C==ut?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(kt,{text:m.match,token:this.terminals_[C]||C,line:m.yylineno,loc:bt,expected:ft})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+C);switch(N[0]){case 1:n.push(C),b.push(m.yytext),i.push(m.yylloc),n.push(N[1]),C=null,Et?(C=Et,Et=null):(H=m.yyleng,l=m.yytext,V=m.yylineno,bt=m.yylloc,J>0&&J--);break;case 2:if(F=this.productions_[N[1]][1],W.$=b[b.length-F],W._$={first_line:i[i.length-(F||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(F||1)].first_column,last_column:i[i.length-1].last_column},de&&(W._$.range=[i[i.length-(F||1)].range[0],i[i.length-1].range[1]]),_t=this.performAction.apply(W,[l,H,V,M.yy,N[1],b,i].concat(ue)),typeof _t<"u")return _t;F&&(n=n.slice(0,-1*F*2),b=b.slice(0,-1*F),i=i.slice(0,-1*F)),n.push(this.productions_[N[1]][0]),b.push(W.$),i.push(W._$),It=X[n[n.length-2]][n[n.length-1]],n.push(It);break;case 3:return!0}}return!0},"parse")},he=(function(){var Y={EOF:1,parseError:h(function(c,n){if(this.yy.parser)this.yy.parser.parseError(c,n);else throw new Error(c)},"parseError"),setInput:h(function(o,c){return this.yy=c||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:h(function(o){var c=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===g.length?this.yylloc.first_column:0)+g[g.length-n.length].length-n[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-N5S45BK4.js b/src/google/adk/cli/browser/chunk-N5S45BK4.js index 4f22e6ea24..ad781d7bd6 100644 --- a/src/google/adk/cli/browser/chunk-N5S45BK4.js +++ b/src/google/adk/cli/browser/chunk-N5S45BK4.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as e,b as i,c as a,d as o}from"./chunk-LI24J5PW.js";import"./chunk-APNCZOFE.js";import"./chunk-ST54LLJ3.js";import"./chunk-F57TI45K.js";import"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import"./chunk-QFMJV7VH.js";import{g as r}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";var v={parser:e,get db(){return new a(2)},renderer:i,styles:o,init:r(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{v as diagram}; diff --git a/src/google/adk/cli/browser/chunk-NALL4A3P.js b/src/google/adk/cli/browser/chunk-NALL4A3P.js index 8970e67502..058bfa7f9c 100644 --- a/src/google/adk/cli/browser/chunk-NALL4A3P.js +++ b/src/google/adk/cli/browser/chunk-NALL4A3P.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{A as q,B as mt,C as Ce,D as Pe,E as hu,G as Z,I as tr,J as $t,M as qh,O as Gt,S as Ue,T as In,V as Mo,Z as Hs,_ as zh,a as et,b as Pr,c as dt,d as Ve,e as Ne,h as Or,k as Ks,l as wn,m as gr,n as Ke,o as tn,p as D,r as At,s as ct,t as Lr,u as pt,v as I,w as ht,z as Uh}from"./chunk-ASJUXEUE.js";import{e as Ze,f as Fh,g as Gh,h as mr}from"./chunk-EGBSMT36.js";import{a as ge,b as er,d as nv,e as X,f as en,g as ae,h as du,i as pu,j as P}from"./chunk-RMXJBC7V.js";var il={};en(il,{AnnotatedTextEdit:()=>Xr,ChangeAnnotation:()=>ri,ChangeAnnotationIdentifier:()=>lt,CodeAction:()=>ad,CodeActionContext:()=>sd,CodeActionKind:()=>Gg,CodeActionTriggerKind:()=>tl,CodeDescription:()=>jf,CodeLens:()=>od,Color:()=>Xc,ColorInformation:()=>Uf,ColorPresentation:()=>qf,Command:()=>ni,CompletionItem:()=>Xf,CompletionItemKind:()=>bg,CompletionItemLabelDetails:()=>Yf,CompletionItemTag:()=>Og,CompletionList:()=>Jf,CreateFile:()=>rs,DeleteFile:()=>is,Diagnostic:()=>Ma,DiagnosticRelatedInformation:()=>Jc,DiagnosticSeverity:()=>Ig,DiagnosticTag:()=>_g,DocumentHighlight:()=>td,DocumentHighlightKind:()=>Dg,DocumentLink:()=>ld,DocumentSymbol:()=>id,DocumentUri:()=>Mf,EOL:()=>IA,FoldingRange:()=>zf,FoldingRangeKind:()=>wg,FormattingOptions:()=>cd,Hover:()=>Qf,InlayHint:()=>gd,InlayHintKind:()=>rl,InlayHintLabelPart:()=>nl,InlineCompletionContext:()=>vd,InlineCompletionItem:()=>Td,InlineCompletionList:()=>Rd,InlineCompletionTriggerKind:()=>zg,InlineValueContext:()=>md,InlineValueEvaluatableExpression:()=>hd,InlineValueText:()=>dd,InlineValueVariableLookup:()=>pd,InsertReplaceEdit:()=>Hf,InsertTextFormat:()=>Pg,InsertTextMode:()=>Lg,Location:()=>Da,LocationLink:()=>Gf,MarkedString:()=>Ua,MarkupContent:()=>ss,MarkupKind:()=>el,OptionalVersionedTextDocumentIdentifier:()=>Ga,ParameterInformation:()=>Zf,Position:()=>ce,Range:()=>ie,RenameFile:()=>ns,SelectedCompletionInfo:()=>xd,SelectionRange:()=>ud,SemanticTokenModifiers:()=>qg,SemanticTokenTypes:()=>Ug,SemanticTokens:()=>fd,SignatureInformation:()=>ed,StringValue:()=>yd,SymbolInformation:()=>rd,SymbolKind:()=>Mg,SymbolTag:()=>Fg,TextDocument:()=>Ad,TextDocumentEdit:()=>Fa,TextDocumentIdentifier:()=>Wf,TextDocumentItem:()=>Kf,TextEdit:()=>Er,URI:()=>Yc,VersionedTextDocumentIdentifier:()=>Vf,WorkspaceChange:()=>Bf,WorkspaceEdit:()=>Qc,WorkspaceFolder:()=>Ed,WorkspaceSymbol:()=>nd,integer:()=>Ff,uinteger:()=>La});var Mf,Yc,Ff,La,ce,ie,Da,Gf,Xc,Uf,qf,wg,zf,Jc,Ig,_g,jf,Ma,ni,Er,ri,lt,Xr,Fa,rs,ns,is,Qc,ts,Zc,Bf,Wf,Vf,Ga,Kf,el,ss,bg,Pg,Og,Hf,Lg,Yf,Xf,Jf,Ua,Qf,Zf,ed,Dg,td,Mg,Fg,rd,nd,id,Gg,tl,sd,ad,od,cd,ld,ud,Ug,qg,fd,dd,pd,hd,md,rl,nl,gd,yd,Td,Rd,zg,xd,vd,Ed,IA,Ad,$d,m,as=nv(()=>{"use strict";(function(t){function e(r){return typeof r=="string"}t.is=e})(Mf||(Mf={}));(function(t){function e(r){return typeof r=="string"}t.is=e})(Yc||(Yc={}));(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}t.is=e})(Ff||(Ff={}));(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}t.is=e})(La||(La={}));(function(t){function e(n,i){return n===Number.MAX_VALUE&&(n=La.MAX_VALUE),i===Number.MAX_VALUE&&(i=La.MAX_VALUE),{line:n,character:i}}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&m.uinteger(i.line)&&m.uinteger(i.character)}t.is=r})(ce||(ce={}));(function(t){function e(n,i,s,a){if(m.uinteger(n)&&m.uinteger(i)&&m.uinteger(s)&&m.uinteger(a))return{start:ce.create(n,i),end:ce.create(s,a)};if(ce.is(n)&&ce.is(i))return{start:n,end:i};throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${s}, ${a}]`)}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&ce.is(i.start)&&ce.is(i.end)}t.is=r})(ie||(ie={}));(function(t){function e(n,i){return{uri:n,range:i}}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&ie.is(i.range)&&(m.string(i.uri)||m.undefined(i.uri))}t.is=r})(Da||(Da={}));(function(t){function e(n,i,s,a){return{targetUri:n,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&ie.is(i.targetRange)&&m.string(i.targetUri)&&ie.is(i.targetSelectionRange)&&(ie.is(i.originSelectionRange)||m.undefined(i.originSelectionRange))}t.is=r})(Gf||(Gf={}));(function(t){function e(n,i,s,a){return{red:n,green:i,blue:s,alpha:a}}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&m.numberRange(i.red,0,1)&&m.numberRange(i.green,0,1)&&m.numberRange(i.blue,0,1)&&m.numberRange(i.alpha,0,1)}t.is=r})(Xc||(Xc={}));(function(t){function e(n,i){return{range:n,color:i}}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&ie.is(i.range)&&Xc.is(i.color)}t.is=r})(Uf||(Uf={}));(function(t){function e(n,i,s){return{label:n,textEdit:i,additionalTextEdits:s}}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&m.string(i.label)&&(m.undefined(i.textEdit)||Er.is(i))&&(m.undefined(i.additionalTextEdits)||m.typedArray(i.additionalTextEdits,Er.is))}t.is=r})(qf||(qf={}));wg=(function(t){return t.Comment="comment",t.Imports="imports",t.Region="region",t})(wg||{});(function(t){function e(n,i,s,a,o,c){let l={startLine:n,endLine:i};return m.defined(s)&&(l.startCharacter=s),m.defined(a)&&(l.endCharacter=a),m.defined(o)&&(l.kind=o),m.defined(c)&&(l.collapsedText=c),l}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&m.uinteger(i.startLine)&&m.uinteger(i.startLine)&&(m.undefined(i.startCharacter)||m.uinteger(i.startCharacter))&&(m.undefined(i.endCharacter)||m.uinteger(i.endCharacter))&&(m.undefined(i.kind)||m.string(i.kind))}t.is=r})(zf||(zf={}));(function(t){function e(n,i){return{location:n,message:i}}t.create=e;function r(n){let i=n;return m.defined(i)&&Da.is(i.location)&&m.string(i.message)}t.is=r})(Jc||(Jc={}));Ig=(function(t){return t.Error=1,t.Warning=2,t.Information=3,t.Hint=4,t})(Ig||{}),_g=(function(t){return t.Unnecessary=1,t.Deprecated=2,t})(_g||{});(function(t){function e(r){let n=r;return m.objectLiteral(n)&&m.string(n.href)}t.is=e})(jf||(jf={}));(function(t){function e(n,i,s,a,o,c){let l={range:n,message:i};return m.defined(s)&&(l.severity=s),m.defined(a)&&(l.code=a),m.defined(o)&&(l.source=o),m.defined(c)&&(l.relatedInformation=c),l}t.create=e;function r(n){var i;let s=n;return m.defined(s)&&ie.is(s.range)&&m.string(s.message)&&(m.number(s.severity)||m.undefined(s.severity))&&(m.integer(s.code)||m.string(s.code)||m.undefined(s.code))&&(m.undefined(s.codeDescription)||m.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(m.string(s.source)||m.undefined(s.source))&&(m.undefined(s.relatedInformation)||m.typedArray(s.relatedInformation,Jc.is))}t.is=r})(Ma||(Ma={}));(function(t){function e(n,i,...s){let a={title:n,command:i};return m.defined(s)&&s.length>0&&(a.arguments=s),a}t.create=e;function r(n){let i=n;return m.defined(i)&&m.string(i.title)&&m.string(i.command)}t.is=r})(ni||(ni={}));(function(t){function e(s,a){return{range:s,newText:a}}t.replace=e;function r(s,a){return{range:{start:s,end:s},newText:a}}t.insert=r;function n(s){return{range:s,newText:""}}t.del=n;function i(s){let a=s;return m.objectLiteral(a)&&m.string(a.newText)&&ie.is(a.range)}t.is=i})(Er||(Er={}));(function(t){function e(n,i,s){let a={label:n};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&m.string(i.label)&&(m.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(m.string(i.description)||i.description===void 0)}t.is=r})(ri||(ri={}));(function(t){function e(r){let n=r;return m.string(n)}t.is=e})(lt||(lt={}));(function(t){function e(s,a,o){return{range:s,newText:a,annotationId:o}}t.replace=e;function r(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}t.insert=r;function n(s,a){return{range:s,newText:"",annotationId:a}}t.del=n;function i(s){let a=s;return Er.is(a)&&(ri.is(a.annotationId)||lt.is(a.annotationId))}t.is=i})(Xr||(Xr={}));(function(t){function e(n,i){return{textDocument:n,edits:i}}t.create=e;function r(n){let i=n;return m.defined(i)&&Ga.is(i.textDocument)&&Array.isArray(i.edits)}t.is=r})(Fa||(Fa={}));(function(t){function e(n,i,s){let a={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function r(n){let i=n;return i&&i.kind==="create"&&m.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||m.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||m.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||lt.is(i.annotationId))}t.is=r})(rs||(rs={}));(function(t){function e(n,i,s,a){let o={kind:"rename",oldUri:n,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}t.create=e;function r(n){let i=n;return i&&i.kind==="rename"&&m.string(i.oldUri)&&m.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||m.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||m.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||lt.is(i.annotationId))}t.is=r})(ns||(ns={}));(function(t){function e(n,i,s){let a={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function r(n){let i=n;return i&&i.kind==="delete"&&m.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||m.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||m.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||lt.is(i.annotationId))}t.is=r})(is||(is={}));(function(t){function e(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(i=>m.string(i.kind)?rs.is(i)||ns.is(i)||is.is(i):Fa.is(i)))}t.is=e})(Qc||(Qc={}));ts=class{constructor(e,r){this.edits=e,this.changeAnnotations=r}insert(e,r,n){let i,s;if(n===void 0?i=Er.insert(e,r):lt.is(n)?(s=n,i=Xr.insert(e,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),i=Xr.insert(e,r,s)),this.edits.push(i),s!==void 0)return s}replace(e,r,n){let i,s;if(n===void 0?i=Er.replace(e,r):lt.is(n)?(s=n,i=Xr.replace(e,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),i=Xr.replace(e,r,s)),this.edits.push(i),s!==void 0)return s}delete(e,r){let n,i;if(r===void 0?n=Er.del(e):lt.is(r)?(i=r,n=Xr.del(e,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=Xr.del(e,i)),this.edits.push(n),i!==void 0)return i}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},Zc=class{constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,r){let n;if(lt.is(e)?n=e:(n=this.nextId(),r=e),this._annotations[n]!==void 0)throw new Error(`Id ${n} is already in use.`);if(r===void 0)throw new Error(`No annotation provided for id ${n}`);return this._annotations[n]=r,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},Bf=class{constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Zc(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(r=>{if(Fa.is(r)){let n=new ts(r.edits,this._changeAnnotations);this._textEditChanges[r.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach(r=>{let n=new ts(e.changes[r]);this._textEditChanges[r]=n})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Ga.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let r={uri:e.uri,version:e.version},n=this._textEditChanges[r.uri];if(!n){let i=[],s={textDocument:r,edits:i};this._workspaceEdit.documentChanges.push(s),n=new ts(i,this._changeAnnotations),this._textEditChanges[r.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let r=this._textEditChanges[e];if(!r){let n=[];this._workspaceEdit.changes[e]=n,r=new ts(n),this._textEditChanges[e]=r}return r}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Zc,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;ri.is(r)||lt.is(r)?i=r:n=r;let s,a;if(i===void 0?s=rs.create(e,n):(a=lt.is(i)?i:this._changeAnnotations.manage(i),s=rs.create(e,n,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a}renameFile(e,r,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let s;ri.is(n)||lt.is(n)?s=n:i=n;let a,o;if(s===void 0?a=ns.create(e,r,i):(o=lt.is(s)?s:this._changeAnnotations.manage(s),a=ns.create(e,r,i,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o}deleteFile(e,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;ri.is(r)||lt.is(r)?i=r:n=r;let s,a;if(i===void 0?s=is.create(e,n):(a=lt.is(i)?i:this._changeAnnotations.manage(i),s=is.create(e,n,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a}};(function(t){function e(n){return{uri:n}}t.create=e;function r(n){let i=n;return m.defined(i)&&m.string(i.uri)}t.is=r})(Wf||(Wf={}));(function(t){function e(n,i){return{uri:n,version:i}}t.create=e;function r(n){let i=n;return m.defined(i)&&m.string(i.uri)&&m.integer(i.version)}t.is=r})(Vf||(Vf={}));(function(t){function e(n,i){return{uri:n,version:i}}t.create=e;function r(n){let i=n;return m.defined(i)&&m.string(i.uri)&&(i.version===null||m.integer(i.version))}t.is=r})(Ga||(Ga={}));(function(t){function e(n,i,s,a){return{uri:n,languageId:i,version:s,text:a}}t.create=e;function r(n){let i=n;return m.defined(i)&&m.string(i.uri)&&m.string(i.languageId)&&m.integer(i.version)&&m.string(i.text)}t.is=r})(Kf||(Kf={}));(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(r){let n=r;return n===t.PlainText||n===t.Markdown}t.is=e})(el||(el={}));(function(t){function e(r){let n=r;return m.objectLiteral(r)&&el.is(n.kind)&&m.string(n.value)}t.is=e})(ss||(ss={}));bg=(function(t){return t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25,t})(bg||{}),Pg=(function(t){return t.PlainText=1,t.Snippet=2,t})(Pg||{}),Og=(function(t){return t.Deprecated=1,t})(Og||{});(function(t){function e(n,i,s){return{newText:n,insert:i,replace:s}}t.create=e;function r(n){let i=n;return i&&m.string(i.newText)&&ie.is(i.insert)&&ie.is(i.replace)}t.is=r})(Hf||(Hf={}));Lg=(function(t){return t.asIs=1,t.adjustIndentation=2,t})(Lg||{});(function(t){function e(r){let n=r;return n&&(m.string(n.detail)||n.detail===void 0)&&(m.string(n.description)||n.description===void 0)}t.is=e})(Yf||(Yf={}));(function(t){function e(r){return{label:r}}t.create=e})(Xf||(Xf={}));(function(t){function e(r,n){return{items:r||[],isIncomplete:!!n}}t.create=e})(Jf||(Jf={}));(function(t){function e(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function r(n){let i=n;return m.string(i)||m.objectLiteral(i)&&m.string(i.language)&&m.string(i.value)}t.is=r})(Ua||(Ua={}));(function(t){function e(r){let n=r;return!!n&&m.objectLiteral(n)&&(ss.is(n.contents)||Ua.is(n.contents)||m.typedArray(n.contents,Ua.is))&&(r.range===void 0||ie.is(r.range))}t.is=e})(Qf||(Qf={}));(function(t){function e(r,n){return n?{label:r,documentation:n}:{label:r}}t.create=e})(Zf||(Zf={}));(function(t){function e(r,n,...i){let s={label:r};return m.defined(n)&&(s.documentation=n),m.defined(i)?s.parameters=i:s.parameters=[],s}t.create=e})(ed||(ed={}));Dg=(function(t){return t.Text=1,t.Read=2,t.Write=3,t})(Dg||{});(function(t){function e(r,n){let i={range:r};return m.number(n)&&(i.kind=n),i}t.create=e})(td||(td={}));Mg=(function(t){return t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26,t})(Mg||{}),Fg=(function(t){return t.Deprecated=1,t})(Fg||{});(function(t){function e(r,n,i,s,a){let o={name:r,kind:n,location:{uri:s,range:i}};return a&&(o.containerName=a),o}t.create=e})(rd||(rd={}));(function(t){function e(r,n,i,s){return s!==void 0?{name:r,kind:n,location:{uri:i,range:s}}:{name:r,kind:n,location:{uri:i}}}t.create=e})(nd||(nd={}));(function(t){function e(n,i,s,a,o,c){let l={name:n,detail:i,kind:s,range:a,selectionRange:o};return c!==void 0&&(l.children=c),l}t.create=e;function r(n){let i=n;return i&&m.string(i.name)&&m.number(i.kind)&&ie.is(i.range)&&ie.is(i.selectionRange)&&(i.detail===void 0||m.string(i.detail))&&(i.deprecated===void 0||m.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=r})(id||(id={}));Gg=(function(t){return t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll",t})(Gg||{}),tl=(function(t){return t.Invoked=1,t.Automatic=2,t})(tl||{});(function(t){function e(n,i,s){let a={diagnostics:n};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}t.create=e;function r(n){let i=n;return m.defined(i)&&m.typedArray(i.diagnostics,Ma.is)&&(i.only===void 0||m.typedArray(i.only,m.string))&&(i.triggerKind===void 0||i.triggerKind===tl.Invoked||i.triggerKind===tl.Automatic)}t.is=r})(sd||(sd={}));(function(t){function e(n,i,s){let a={title:n},o=!0;return typeof i=="string"?(o=!1,a.kind=i):ni.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}t.create=e;function r(n){let i=n;return i&&m.string(i.title)&&(i.diagnostics===void 0||m.typedArray(i.diagnostics,Ma.is))&&(i.kind===void 0||m.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||ni.is(i.command))&&(i.isPreferred===void 0||m.boolean(i.isPreferred))&&(i.edit===void 0||Qc.is(i.edit))}t.is=r})(ad||(ad={}));(function(t){function e(n,i){let s={range:n};return m.defined(i)&&(s.data=i),s}t.create=e;function r(n){let i=n;return m.defined(i)&&ie.is(i.range)&&(m.undefined(i.command)||ni.is(i.command))}t.is=r})(od||(od={}));(function(t){function e(n,i){return{tabSize:n,insertSpaces:i}}t.create=e;function r(n){let i=n;return m.defined(i)&&m.uinteger(i.tabSize)&&m.boolean(i.insertSpaces)}t.is=r})(cd||(cd={}));(function(t){function e(n,i,s){return{range:n,target:i,data:s}}t.create=e;function r(n){let i=n;return m.defined(i)&&ie.is(i.range)&&(m.undefined(i.target)||m.string(i.target))}t.is=r})(ld||(ld={}));(function(t){function e(n,i){return{range:n,parent:i}}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&ie.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=r})(ud||(ud={}));Ug=(function(t){return t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator",t})(Ug||{}),qg=(function(t){return t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary",t})(qg||{});(function(t){function e(r){let n=r;return m.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}t.is=e})(fd||(fd={}));(function(t){function e(n,i){return{range:n,text:i}}t.create=e;function r(n){let i=n;return i!=null&&ie.is(i.range)&&m.string(i.text)}t.is=r})(dd||(dd={}));(function(t){function e(n,i,s){return{range:n,variableName:i,caseSensitiveLookup:s}}t.create=e;function r(n){let i=n;return i!=null&&ie.is(i.range)&&m.boolean(i.caseSensitiveLookup)&&(m.string(i.variableName)||i.variableName===void 0)}t.is=r})(pd||(pd={}));(function(t){function e(n,i){return{range:n,expression:i}}t.create=e;function r(n){let i=n;return i!=null&&ie.is(i.range)&&(m.string(i.expression)||i.expression===void 0)}t.is=r})(hd||(hd={}));(function(t){function e(n,i){return{frameId:n,stoppedLocation:i}}t.create=e;function r(n){let i=n;return m.defined(i)&&ie.is(n.stoppedLocation)}t.is=r})(md||(md={}));(function(t){t.Type=1,t.Parameter=2;function e(r){return r===1||r===2}t.is=e})(rl||(rl={}));(function(t){function e(n){return{value:n}}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&(i.tooltip===void 0||m.string(i.tooltip)||ss.is(i.tooltip))&&(i.location===void 0||Da.is(i.location))&&(i.command===void 0||ni.is(i.command))}t.is=r})(nl||(nl={}));(function(t){function e(n,i,s){let a={position:n,label:i};return s!==void 0&&(a.kind=s),a}t.create=e;function r(n){let i=n;return m.objectLiteral(i)&&ce.is(i.position)&&(m.string(i.label)||m.typedArray(i.label,nl.is))&&(i.kind===void 0||rl.is(i.kind))&&i.textEdits===void 0||m.typedArray(i.textEdits,Er.is)&&(i.tooltip===void 0||m.string(i.tooltip)||ss.is(i.tooltip))&&(i.paddingLeft===void 0||m.boolean(i.paddingLeft))&&(i.paddingRight===void 0||m.boolean(i.paddingRight))}t.is=r})(gd||(gd={}));(function(t){function e(r){return{kind:"snippet",value:r}}t.createSnippet=e})(yd||(yd={}));(function(t){function e(r,n,i,s){return{insertText:r,filterText:n,range:i,command:s}}t.create=e})(Td||(Td={}));(function(t){function e(r){return{items:r}}t.create=e})(Rd||(Rd={}));zg=(function(t){return t.Invoked=0,t.Automatic=1,t})(zg||{});(function(t){function e(r,n){return{range:r,text:n}}t.create=e})(xd||(xd={}));(function(t){function e(r,n){return{triggerKind:r,selectedCompletionInfo:n}}t.create=e})(vd||(vd={}));(function(t){function e(r){let n=r;return m.objectLiteral(n)&&Yc.is(n.uri)&&m.string(n.name)}t.is=e})(Ed||(Ed={}));IA=[` `,`\r `,"\r"];(function(t){function e(s,a,o,c){return new $d(s,a,o,c)}t.create=e;function r(s){let a=s;return!!(m.defined(a)&&m.string(a.uri)&&(m.undefined(a.languageId)||m.string(a.languageId))&&m.uinteger(a.lineCount)&&m.func(a.getText)&&m.func(a.positionAt)&&m.func(a.offsetAt))}t.is=r;function n(s,a){let o=s.getText(),c=i(a,(u,p)=>{let h=u.range.start.line-p.range.start.line;return h===0?u.range.start.character-p.range.start.character:h}),l=o.length;for(let u=c.length-1;u>=0;u--){let p=c[u],h=s.offsetAt(p.range.start),g=s.offsetAt(p.range.end);if(g<=l)o=o.substring(0,h)+p.newText+o.substring(g,o.length);else throw new Error("Overlapping edit");l=h}return o}t.applyEdits=n;function i(s,a){if(s.length<=1)return s;let o=s.length/2|0,c=s.slice(0,o),l=s.slice(o);i(c,a),i(l,a);let u=0,p=0,h=0;for(;u{let e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(let s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),f=i((r,t)=>{let e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};c(r,e).lower()},"drawBackgroundRect"),h=i((r,t)=>{let e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);let a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),w=i((r,t,e,s)=>{let a=r.append("image");a.attr("x",t),a.attr("y",e);let n=(0,l.sanitizeUrl)(s);a.attr("xlink:href",n)},"drawImage"),k=i((r,t,e,s)=>{let a=r.append("use");a.attr("x",t),a.attr("y",e);let n=(0,l.sanitizeUrl)(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),v=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),E=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),R=i(()=>{let r=o(".mermaidTooltip");return r.empty()&&(r=o("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{c as a,f as b,h as c,w as d,k as e,v as f,E as g,R as h}; diff --git a/src/google/adk/cli/browser/chunk-NQKWI5EB.js b/src/google/adk/cli/browser/chunk-NQKWI5EB.js index b6ea2fa5ce..c4c881df2d 100644 --- a/src/google/adk/cli/browser/chunk-NQKWI5EB.js +++ b/src/google/adk/cli/browser/chunk-NQKWI5EB.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as o,b as c,c as t,d as n,e as k,f as e,g as i,k as u,p as d,q as l}from"./chunk-NALL4A3P.js";var m=class extends l{static{e(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},v={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new d,"ValueConverter")}};function p(s=n){let r=t(c(s),i),a=t(o({shared:r}),u,v);return r.ServiceRegistry.register(a),{shared:r,Packet:a}}e(p,"createPacketServices");export{v as a,p as b}; diff --git a/src/google/adk/cli/browser/chunk-P4MFJI72.js b/src/google/adk/cli/browser/chunk-P4MFJI72.js index a857aef411..18a021aa94 100644 --- a/src/google/adk/cli/browser/chunk-P4MFJI72.js +++ b/src/google/adk/cli/browser/chunk-P4MFJI72.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as c,$b as M,Bb as l,Ca as m,Cb as d,Cc as r,Ib as p,Kb as g,Lb as h,Pa as o,Yb as x,Zb as a,_b as y,eb as b,fc as T,gc as _,hc as C,pd as F,qb as v,sb as f,wc as s}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";function P(n,D){if(n&1&&(l(0,"label",2),y(1),d()),n&2){let t=h(),i=C(0);a(t.theme.components.TextField.label),p("htmlFor",t.inputId),o(),M(i)}}var S=(()=>{class n extends F{text=r.required();label=r.required();inputType=r.required();inputValue=s(()=>super.resolvePrimitive(this.text())||"");resolvedLabel=s(()=>super.resolvePrimitive(this.label()));inputId=super.getUniqueId("a2ui-input");handleInput(t){let i=this.text()?.path;!(t.target instanceof HTMLInputElement)||!i||this.processor.setData(this.component(),i,t.target.value,this.surfaceId())}static \u0275fac=(()=>{let t;return function(e){return(t||(t=m(n)))(e||n)}})();static \u0275cmp=c({type:n,selectors:[["a2ui-text-field"]],inputs:{text:[1,"text"],label:[1,"label"],inputType:[1,"inputType"]},features:[b],decls:4,vars:11,consts:[[3,"for","class"],["autocomplete","off","placeholder","Please enter a value",3,"input","id","value","type"],[3,"for"]],template:function(i,e){if(i&1&&(T(0),l(1,"section"),v(2,P,2,4,"label",0),l(3,"input",1),g("input",function(I){return e.handleInput(I)}),d()()),i&2){let u=_(e.resolvedLabel());o(),a(e.theme.components.TextField.container),o(),f(u?2:-1),o(),x(e.theme.additionalStyles==null?null:e.theme.additionalStyles.TextField),a(e.theme.components.TextField.element),p("id",e.inputId)("value",e.inputValue())("type",e.inputType()==="number"?"number":"text")}},styles:["[_nghost-%COMP%]{display:flex;flex:var(--weight)}section[_ngcontent-%COMP%], input[_ngcontent-%COMP%], label[_ngcontent-%COMP%]{box-sizing:border-box}input[_ngcontent-%COMP%]{display:block;width:100%}label[_ngcontent-%COMP%]{display:block;margin-bottom:4px}"]})}return n})();export{S as TextField}; diff --git a/src/google/adk/cli/browser/chunk-PM3FQFTD.js b/src/google/adk/cli/browser/chunk-PM3FQFTD.js index 86263463ff..dbca7dc8ae 100644 --- a/src/google/adk/cli/browser/chunk-PM3FQFTD.js +++ b/src/google/adk/cli/browser/chunk-PM3FQFTD.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as K}from"./chunk-DMWOYWYQ.js";import{a as Q}from"./chunk-T3Q3QCCV.js";import"./chunk-NQKWI5EB.js";import"./chunk-WR6HISGZ.js";import"./chunk-I4UDKKN5.js";import"./chunk-2DLZXFEQ.js";import"./chunk-JNY2YWG7.js";import"./chunk-XULIXUQL.js";import"./chunk-3NJNOY56.js";import"./chunk-NALL4A3P.js";import{a as q}from"./chunk-TPDTRWWV.js";import{k as H,l as J}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{N as M,R as P,S as R,T as I,U as L,V as N,W as B,X as U,Y as V,r as W}from"./chunk-QFMJV7VH.js";import{K as C,N as j,g as o,i as g,r as Z}from"./chunk-JRNAXTJ7.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import{j as O}from"./chunk-RMXJBC7V.js";var X=W.pie,D={sections:new Map,showData:!1,config:X},f=D.sections,y=D.showData,se=structuredClone(X),ce=o(()=>structuredClone(se),"getConfig"),de=o(()=>{f=new Map,y=D.showData,P()},"clear"),pe=o(({label:e,value:a})=>{if(a<0)throw new Error(`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);f.has(e)||(f.set(e,a),g.debug(`added new section: ${e}, with value: ${a}`))},"addSection"),ge=o(()=>f,"getSections"),fe=o(e=>{y=e},"setShowData"),ue=o(()=>y,"getShowData"),Y={getConfig:ce,clear:de,setDiagramTitle:B,getDiagramTitle:U,setAccTitle:R,getAccTitle:I,setAccDescription:L,getAccDescription:N,addSection:pe,getSections:ge,setShowData:fe,getShowData:ue},me=o((e,a)=>{K(e,a),a.setShowData(e.showData),e.sections.map(a.addSection)},"populateDb"),he={parse:o(e=>O(null,null,function*(){let a=yield Q("pie",e);g.debug(a),me(a,Y)}),"parse")},ve=o(e=>` .pieCircle{ stroke: ${e.pieStrokeColor}; diff --git a/src/google/adk/cli/browser/chunk-PRKFGJVH.js b/src/google/adk/cli/browser/chunk-PRKFGJVH.js index 84a9cfab56..24ec74640a 100644 --- a/src/google/adk/cli/browser/chunk-PRKFGJVH.js +++ b/src/google/adk/cli/browser/chunk-PRKFGJVH.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + function Y(a,t,s){if(a&&a.length){let[e,n]=t,o=Math.PI/180*s,r=Math.cos(o),h=Math.sin(o);for(let i of a){let[l,c]=i;i[0]=(l-e)*r-(c-n)*h+e,i[1]=(l-e)*h+(c-n)*r+n}}}function zt(a,t){return a[0]===t[0]&&a[1]===t[1]}function Wt(a,t,s,e=1){let n=s,o=Math.max(t,.1),r=a[0]&&a[0][0]&&typeof a[0][0]=="number"?[a]:a,h=[0,0];if(n)for(let l of r)Y(l,h,n);let i=(function(l,c,d){let p=[];for(let M of l){let m=[...M];zt(m[0],m[m.length-1])||m.push([m[0][0],m[0][1]]),m.length>2&&p.push(m)}let u=[];c=Math.max(c,.1);let f=[];for(let M of p)for(let m=0;mM.yminm.ymin?1:M.xm.x?1:M.ymax===m.ymax?0:(M.ymax-m.ymax)/Math.abs(M.ymax-m.ymax)),!f.length)return u;let g=[],k=f[0].ymin,b=0;for(;g.length||f.length;){if(f.length){let M=-1;for(let m=0;mk);m++)M=m;f.splice(0,M+1).forEach(m=>{g.push({s:k,edge:m})})}if(g=g.filter(M=>!(M.edge.ymax<=k)),g.sort((M,m)=>M.edge.x===m.edge.x?0:(M.edge.x-m.edge.x)/Math.abs(M.edge.x-m.edge.x)),(d!==1||b%c==0)&&g.length>1)for(let M=0;M=g.length)break;let P=g[M].edge,x=g[m].edge;u.push([[Math.round(P.x),k],[Math.round(x.x),k]])}k+=d,g.forEach(M=>{M.edge.x=M.edge.x+d*M.edge.islope}),b++}return u})(r,o,e);if(n){for(let l of r)Y(l,h,-n);(function(l,c,d){let p=[];l.forEach(u=>p.push(...u)),Y(p,c,d)})(i,h,-n)}return i}function F(a,t){var s;let e=t.hachureAngle+90,n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let o=1;return t.roughness>=1&&(((s=t.randomizer)===null||s===void 0?void 0:s.next())||Math.random())>.7&&(o=n),Wt(a,n,e,o||1)}var q=class{constructor(t){this.helper=t}fillPolygons(t,s){return this._fillPolygons(t,s)}_fillPolygons(t,s){let e=F(t,s);return{type:"fillSketch",ops:this.renderLines(e,s)}}renderLines(t,s){let e=[];for(let n of t)e.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],s));return e}};function X(a){let t=a[0],s=a[1];return Math.sqrt(Math.pow(t[0]-s[0],2)+Math.pow(t[1]-s[1],2))}var at=class extends q{fillPolygons(t,s){let e=s.hachureGap;e<0&&(e=4*s.strokeWidth),e=Math.max(e,.1);let n=F(t,Object.assign({},s,{hachureGap:e})),o=Math.PI/180*s.hachureAngle,r=[],h=.5*e*Math.cos(o),i=.5*e*Math.sin(o);for(let[l,c]of n)X([l,c])&&r.push([[l[0]-h,l[1]+i],[...c]],[[l[0]+h,l[1]-i],[...c]]);return{type:"fillSketch",ops:this.renderLines(r,s)}}},ot=class extends q{fillPolygons(t,s){let e=this._fillPolygons(t,s),n=Object.assign({},s,{hachureAngle:s.hachureAngle+90}),o=this._fillPolygons(t,n);return e.ops=e.ops.concat(o.ops),e}},ht=class{constructor(t){this.helper=t}fillPolygons(t,s){let e=F(t,s=Object.assign({},s,{hachureAngle:0}));return this.dotsOnLines(e,s)}dotsOnLines(t,s){let e=[],n=s.hachureGap;n<0&&(n=4*s.strokeWidth),n=Math.max(n,.1);let o=s.fillWeight;o<0&&(o=s.strokeWidth/2);let r=n/4;for(let h of t){let i=X(h),l=i/n,c=Math.ceil(l)-1,d=i-c*n,p=(h[0][0]+h[1][0])/2-n/4,u=Math.min(h[0][1],h[1][1]);for(let f=0;f{let h=X(r),i=Math.floor(h/(e+n)),l=(h+n-i*(e+n))/2,c=r[0],d=r[1];c[0]>d[0]&&(c=r[1],d=r[0]);let p=Math.atan((d[1]-c[1])/(d[0]-c[0]));for(let u=0;u{let r=X(o),h=Math.round(r/(2*s)),i=o[0],l=o[1];i[0]>l[0]&&(i=o[1],l=o[0]);let c=Math.atan((l[1]-i[1])/(l[0]-i[0]));for(let d=0;dc%2?l+s:l+t);o.push({key:"C",data:i}),t=i[4],s=i[5];break}case"Q":o.push({key:"Q",data:[...h]}),t=h[2],s=h[3];break;case"q":{let i=h.map((l,c)=>c%2?l+s:l+t);o.push({key:"Q",data:i}),t=i[2],s=i[3];break}case"A":o.push({key:"A",data:[...h]}),t=h[5],s=h[6];break;case"a":t+=h[5],s+=h[6],o.push({key:"A",data:[h[0],h[1],h[2],h[3],h[4],t,s]});break;case"H":o.push({key:"H",data:[...h]}),t=h[0];break;case"h":t+=h[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...h]}),s=h[0];break;case"v":s+=h[0],o.push({key:"V",data:[s]});break;case"S":o.push({key:"S",data:[...h]}),t=h[2],s=h[3];break;case"s":{let i=h.map((l,c)=>c%2?l+s:l+t);o.push({key:"S",data:i}),t=i[2],s=i[3];break}case"T":o.push({key:"T",data:[...h]}),t=h[0],s=h[1];break;case"t":t+=h[0],s+=h[1],o.push({key:"T",data:[t,s]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=e,s=n}return o}function Lt(a){let t=[],s="",e=0,n=0,o=0,r=0,h=0,i=0;for(let{key:l,data:c}of a){switch(l){case"M":t.push({key:"M",data:[...c]}),[e,n]=c,[o,r]=c;break;case"C":t.push({key:"C",data:[...c]}),e=c[4],n=c[5],h=c[2],i=c[3];break;case"L":t.push({key:"L",data:[...c]}),[e,n]=c;break;case"H":e=c[0],t.push({key:"L",data:[e,n]});break;case"V":n=c[0],t.push({key:"L",data:[e,n]});break;case"S":{let d=0,p=0;s==="C"||s==="S"?(d=e+(e-h),p=n+(n-i)):(d=e,p=n),t.push({key:"C",data:[d,p,...c]}),h=c[0],i=c[1],e=c[2],n=c[3];break}case"T":{let[d,p]=c,u=0,f=0;s==="Q"||s==="T"?(u=e+(e-h),f=n+(n-i)):(u=e,f=n);let g=e+2*(u-e)/3,k=n+2*(f-n)/3,b=d+2*(u-d)/3,M=p+2*(f-p)/3;t.push({key:"C",data:[g,k,b,M,d,p]}),h=u,i=f,e=d,n=p;break}case"Q":{let[d,p,u,f]=c,g=e+2*(d-e)/3,k=n+2*(p-n)/3,b=u+2*(d-u)/3,M=f+2*(p-f)/3;t.push({key:"C",data:[g,k,b,M,u,f]}),h=d,i=p,e=u,n=f;break}case"A":{let d=Math.abs(c[0]),p=Math.abs(c[1]),u=c[2],f=c[3],g=c[4],k=c[5],b=c[6];d===0||p===0?(t.push({key:"C",data:[e,n,k,b,k,b]}),e=k,n=b):(e!==k||n!==b)&&(Tt(e,n,k,b,d,p,u,f,g).forEach(function(M){t.push({key:"C",data:M})}),e=k,n=b);break}case"Z":t.push({key:"Z",data:[]}),e=o,n=r}s=l}return t}function R(a,t,s){return[a*Math.cos(s)-t*Math.sin(s),a*Math.sin(s)+t*Math.cos(s)]}function Tt(a,t,s,e,n,o,r,h,i,l){let c=(d=r,Math.PI*d/180);var d;let p=[],u=0,f=0,g=0,k=0;if(l)[u,f,g,k]=l;else{[a,t]=R(a,t,-c),[s,e]=R(s,e,-c);let T=(a-s)/2,v=(t-e)/2,_=T*T/(n*n)+v*v/(o*o);_>1&&(_=Math.sqrt(_),n*=_,o*=_);let W=n*n,E=o*o,It=W*E-W*v*v-E*T*T,Ct=W*v*v+E*T*T,kt=(h===i?-1:1)*Math.sqrt(Math.abs(It/Ct));g=kt*n*v/o+(a+s)/2,k=kt*-o*T/n+(t+e)/2,u=Math.asin(parseFloat(((t-k)/o).toFixed(9))),f=Math.asin(parseFloat(((e-k)/o).toFixed(9))),af&&(u-=2*Math.PI),!i&&f>u&&(f-=2*Math.PI)}let b=f-u;if(Math.abs(b)>120*Math.PI/180){let T=f,v=s,_=e;f=i&&f>u?u+120*Math.PI/180*1:u+120*Math.PI/180*-1,p=Tt(s=g+n*Math.cos(f),e=k+o*Math.sin(f),v,_,n,o,r,0,i,[f,T,g,k])}b=f-u;let M=Math.cos(u),m=Math.sin(u),P=Math.cos(f),x=Math.sin(f),w=Math.tan(b/4),L=4/3*n*w,A=4/3*o*w,V=[a,t],D=[a+L*m,t-A*M],C=[s+L*x,e-A*P],Mt=[s,e];if(D[0]=2*V[0]-D[0],D[1]=2*V[1]-D[1],l)return[D,C,Mt].concat(p);{p=[D,C,Mt].concat(p);let T=[];for(let v=0;v2){let n=[];for(let o=0;o2*Math.PI&&(u=0,f=2*Math.PI);let g=2*Math.PI/i.curveStepCount,k=Math.min(g/2,(f-u)/2),b=vt(k,l,c,d,p,u,f,1,i);if(!i.disableMultiStroke){let M=vt(k,l,c,d,p,u,f,1.5,i);b.push(...M)}return r&&(h?b.push(...I(l,c,l+d*Math.cos(u),c+p*Math.sin(u),i),...I(l,c,l+d*Math.cos(f),c+p*Math.sin(f),i)):b.push({op:"lineTo",data:[l,c]},{op:"lineTo",data:[l+d*Math.cos(u),c+p*Math.sin(u)]})),{type:"path",ops:b}}function wt(a,t){let s=Lt(Ot(gt(a))),e=[],n=[0,0],o=[0,0];for(let{key:r,data:h}of s)switch(r){case"M":o=[h[0],h[1]],n=[h[0],h[1]];break;case"L":e.push(...I(o[0],o[1],h[0],h[1],t)),o=[h[0],h[1]];break;case"C":{let[i,l,c,d,p,u]=h;e.push(...Rt(i,l,c,d,p,u,o,t)),o=[p,u];break}case"Z":e.push(...I(o[0],o[1],n[0],n[1],t)),o=[n[0],n[1]]}return{type:"path",ops:e}}function st(a,t){let s=[];for(let e of a)if(e.length){let n=t.maxRandomnessOffset||0,o=e.length;if(o>2){s.push({op:"move",data:[e[0][0]+y(n,t),e[0][1]+y(n,t)]});for(let r=1;r500?.4:-.0016668*i+1.233334;let c=n.maxRandomnessOffset||0;c*c*100>h&&(c=i/10);let d=c/2,p=.2+.2*_t(n),u=n.bowing*n.maxRandomnessOffset*(e-t)/200,f=n.bowing*n.maxRandomnessOffset*(a-s)/200;u=y(u,n,l),f=y(f,n,l);let g=[],k=()=>y(d,n,l),b=()=>y(c,n,l),M=n.preserveVertices;return o&&(r?g.push({op:"move",data:[a+(M?0:k()),t+(M?0:k())]}):g.push({op:"move",data:[a+(M?0:y(c,n,l)),t+(M?0:y(c,n,l))]})),r?g.push({op:"bcurveTo",data:[u+a+(s-a)*p+k(),f+t+(e-t)*p+k(),u+a+2*(s-a)*p+k(),f+t+2*(e-t)*p+k(),s+(M?0:k()),e+(M?0:k())]}):g.push({op:"bcurveTo",data:[u+a+(s-a)*p+b(),f+t+(e-t)*p+b(),u+a+2*(s-a)*p+b(),f+t+2*(e-t)*p+b(),s+(M?0:b()),e+(M?0:b())]}),g}function Q(a,t,s){if(!a.length)return[];let e=[];e.push([a[0][0]+y(t,s),a[0][1]+y(t,s)]),e.push([a[0][0]+y(t,s),a[0][1]+y(t,s)]);for(let n=1;n3){let o=[],r=1-s.curveTightness;n.push({op:"move",data:[a[1][0],a[1][1]]});for(let h=1;h+21&&n.push(h)):n.push(h),n.push(a[t+3])}else{let i=a[t+0],l=a[t+1],c=a[t+2],d=a[t+3],p=z(i,l,.5),u=z(l,c,.5),f=z(c,d,.5),g=z(p,u,.5),k=z(u,f,.5),b=z(g,k,.5);pt([i,p,g,b],0,s,n),pt([b,k,f,d],0,s,n)}var o,r;return n}function qt(a,t){return U(a,0,a.length,t)}function U(a,t,s,e,n){let o=n||[],r=a[t],h=a[s-1],i=0,l=1;for(let c=t+1;ci&&(i=d,l=c)}return Math.sqrt(i)>e?(U(a,t,l+1,e,o),U(a,l,s,e,o)):(o.length||o.push(r),o.push(h)),o}function nt(a,t=.15,s){let e=[],n=(a.length-1)/3;for(let o=0;o0?U(e,0,e.length,s):e}var O="none",$=class{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,s,e){return{shape:t,sets:s||[],options:e||this.defaultOptions}}line(t,s,e,n,o){let r=this._o(o);return this._d("line",[Dt(t,s,e,n,r)],r)}rectangle(t,s,e,n,o){let r=this._o(o),h=[],i=$t(t,s,e,n,r);if(r.fill){let l=[[t,s],[t+e,s],[t+e,s+n],[t,s+n]];r.fillStyle==="solid"?h.push(st([l],r)):h.push(G([l],r))}return r.stroke!==O&&h.push(i),this._d("rectangle",h,r)}ellipse(t,s,e,n,o){let r=this._o(o),h=[],i=At(e,n,r),l=lt(t,s,r,i);if(r.fill)if(r.fillStyle==="solid"){let c=lt(t,s,r,i).opset;c.type="fillPath",h.push(c)}else h.push(G([l.estimatedPoints],r));return r.stroke!==O&&h.push(l.opset),this._d("ellipse",h,r)}circle(t,s,e,n){let o=this.ellipse(t,s,e,e,n);return o.shape="circle",o}linearPath(t,s){let e=this._o(s);return this._d("linearPath",[N(t,!1,e)],e)}arc(t,s,e,n,o,r,h=!1,i){let l=this._o(i),c=[],d=mt(t,s,e,n,o,r,h,!0,l);if(h&&l.fill)if(l.fillStyle==="solid"){let p=Object.assign({},l);p.disableMultiStroke=!0;let u=mt(t,s,e,n,o,r,!0,!1,p);u.type="fillPath",c.push(u)}else c.push((function(p,u,f,g,k,b,M){let m=p,P=u,x=Math.abs(f/2),w=Math.abs(g/2);x+=y(.01*x,M),w+=y(.01*w,M);let L=k,A=b;for(;L<0;)L+=2*Math.PI,A+=2*Math.PI;A-L>2*Math.PI&&(L=0,A=2*Math.PI);let V=(A-L)/M.curveStepCount,D=[];for(let C=L;C<=A;C+=V)D.push([m+x*Math.cos(C),P+w*Math.sin(C)]);return D.push([m+x*Math.cos(A),P+w*Math.sin(A)]),D.push([m,P]),G([D],M)})(t,s,e,n,o,r,l));return l.stroke!==O&&c.push(d),this._d("arc",c,l)}curve(t,s){let e=this._o(s),n=[],o=yt(t,e);if(e.fill&&e.fill!==O)if(e.fillStyle==="solid"){let r=yt(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(r.ops)})}else{let r=[],h=t;if(h.length){let i=typeof h[0][0]=="number"?[h]:h;for(let l of i)l.length<3?r.push(...l):l.length===3?r.push(...nt(St([l[0],l[0],l[1],l[2]]),10,(1+e.roughness)/2)):r.push(...nt(St(l),10,(1+e.roughness)/2))}r.length&&n.push(G([r],e))}return e.stroke!==O&&n.push(o),this._d("curve",n,e)}polygon(t,s){let e=this._o(s),n=[],o=N(t,!0,e);return e.fill&&(e.fillStyle==="solid"?n.push(st([t],e)):n.push(G([t],e))),e.stroke!==O&&n.push(o),this._d("polygon",n,e)}path(t,s){let e=this._o(s),n=[];if(!t)return this._d("path",n,e);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let o=e.fill&&e.fill!=="transparent"&&e.fill!==O,r=e.stroke!==O,h=!!(e.simplification&&e.simplification<1),i=(function(c,d,p){let u=Lt(Ot(gt(c))),f=[],g=[],k=[0,0],b=[],M=()=>{b.length>=4&&g.push(...nt(b,d)),b=[]},m=()=>{M(),g.length&&(f.push(g),g=[])};for(let{key:x,data:w}of u)switch(x){case"M":m(),k=[w[0],w[1]],g.push(k);break;case"L":M(),g.push([w[0],w[1]]);break;case"C":if(!b.length){let L=g.length?g[g.length-1]:k;b.push([L[0],L[1]])}b.push([w[0],w[1]]),b.push([w[2],w[3]]),b.push([w[4],w[5]]);break;case"Z":M(),g.push([k[0],k[1]])}if(m(),!p)return f;let P=[];for(let x of f){let w=qt(x,p);w.length&&P.push(w)}return P})(t,1,h?4-4*(e.simplification||1):(1+e.roughness)/2),l=wt(t,e);if(o)if(e.fillStyle==="solid")if(i.length===1){let c=wt(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else n.push(st(i,e));else n.push(G(i,e));return r&&(h?i.forEach(c=>{n.push(N(c,!1,e))}):n.push(l)),this._d("path",n,e)}opsToPath(t,s){let e="";for(let n of t.ops){let o=typeof s=="number"&&s>=0?n.data.map(r=>+r.toFixed(s)):n.data;switch(n.op){case"move":e+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":e+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":e+=`L${o[0]} ${o[1]} `}}return e.trim()}toPaths(t){let s=t.sets||[],e=t.options||this.defaultOptions,n=[];for(let o of s){let r=null;switch(o.type){case"path":r={d:this.opsToPath(o),stroke:e.stroke,strokeWidth:e.strokeWidth,fill:O};break;case"fillPath":r={d:this.opsToPath(o),stroke:O,strokeWidth:0,fill:e.fill||O};break;case"fillSketch":r=this.fillSketch(o,e)}r&&n.push(r)}return n}fillSketch(t,s){let e=s.fillWeight;return e<0&&(e=s.strokeWidth/2),{d:this.opsToPath(t),stroke:s.fill||O,strokeWidth:e,fill:O}}_mergedShape(t){return t.filter((s,e)=>e===0||s.op!=="move")}},ft=class{constructor(t,s){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new $(s)}draw(t){let s=t.sets||[],e=t.options||this.getDefaultOptions(),n=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(let r of s)switch(r.type){case"path":n.save(),n.strokeStyle=e.stroke==="none"?"transparent":e.stroke,n.lineWidth=e.strokeWidth,e.strokeLineDash&&n.setLineDash(e.strokeLineDash),e.strokeLineDashOffset&&(n.lineDashOffset=e.strokeLineDashOffset),this._drawToContext(n,r,o),n.restore();break;case"fillPath":{n.save(),n.fillStyle=e.fill||"";let h=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,r,o,h),n.restore();break}case"fillSketch":this.fillSketch(n,r,e)}}fillSketch(t,s,e){let n=e.fillWeight;n<0&&(n=e.strokeWidth/2),t.save(),e.fillLineDash&&t.setLineDash(e.fillLineDash),e.fillLineDashOffset&&(t.lineDashOffset=e.fillLineDashOffset),t.strokeStyle=e.fill||"",t.lineWidth=n,this._drawToContext(t,s,e.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,s,e,n="nonzero"){t.beginPath();for(let o of s.ops){let r=typeof e=="number"&&e>=0?o.data.map(h=>+h.toFixed(e)):o.data;switch(o.op){case"move":t.moveTo(r[0],r[1]);break;case"bcurveTo":t.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case"lineTo":t.lineTo(r[0],r[1])}}s.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,s,e,n,o){let r=this.gen.line(t,s,e,n,o);return this.draw(r),r}rectangle(t,s,e,n,o){let r=this.gen.rectangle(t,s,e,n,o);return this.draw(r),r}ellipse(t,s,e,n,o){let r=this.gen.ellipse(t,s,e,n,o);return this.draw(r),r}circle(t,s,e,n){let o=this.gen.circle(t,s,e,n);return this.draw(o),o}linearPath(t,s){let e=this.gen.linearPath(t,s);return this.draw(e),e}polygon(t,s){let e=this.gen.polygon(t,s);return this.draw(e),e}arc(t,s,e,n,o,r,h=!1,i){let l=this.gen.arc(t,s,e,n,o,r,h,i);return this.draw(l),l}curve(t,s){let e=this.gen.curve(t,s);return this.draw(e),e}path(t,s){let e=this.gen.path(t,s);return this.draw(e),e}},H="http://www.w3.org/2000/svg",dt=class{constructor(t,s){this.svg=t,this.gen=new $(s)}draw(t){let s=t.sets||[],e=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,o=n.createElementNS(H,"g"),r=t.options.fixedDecimalPlaceDigits;for(let h of s){let i=null;switch(h.type){case"path":i=n.createElementNS(H,"path"),i.setAttribute("d",this.opsToPath(h,r)),i.setAttribute("stroke",e.stroke),i.setAttribute("stroke-width",e.strokeWidth+""),i.setAttribute("fill","none"),e.strokeLineDash&&i.setAttribute("stroke-dasharray",e.strokeLineDash.join(" ").trim()),e.strokeLineDashOffset&&i.setAttribute("stroke-dashoffset",`${e.strokeLineDashOffset}`);break;case"fillPath":i=n.createElementNS(H,"path"),i.setAttribute("d",this.opsToPath(h,r)),i.setAttribute("stroke","none"),i.setAttribute("stroke-width","0"),i.setAttribute("fill",e.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||i.setAttribute("fill-rule","evenodd");break;case"fillSketch":i=this.fillSketch(n,h,e)}i&&o.appendChild(i)}return o}fillSketch(t,s,e){let n=e.fillWeight;n<0&&(n=e.strokeWidth/2);let o=t.createElementNS(H,"path");return o.setAttribute("d",this.opsToPath(s,e.fixedDecimalPlaceDigits)),o.setAttribute("stroke",e.fill||""),o.setAttribute("stroke-width",n+""),o.setAttribute("fill","none"),e.fillLineDash&&o.setAttribute("stroke-dasharray",e.fillLineDash.join(" ").trim()),e.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${e.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,s){return this.gen.opsToPath(t,s)}line(t,s,e,n,o){let r=this.gen.line(t,s,e,n,o);return this.draw(r)}rectangle(t,s,e,n,o){let r=this.gen.rectangle(t,s,e,n,o);return this.draw(r)}ellipse(t,s,e,n,o){let r=this.gen.ellipse(t,s,e,n,o);return this.draw(r)}circle(t,s,e,n){let o=this.gen.circle(t,s,e,n);return this.draw(o)}linearPath(t,s){let e=this.gen.linearPath(t,s);return this.draw(e)}polygon(t,s){let e=this.gen.polygon(t,s);return this.draw(e)}arc(t,s,e,n,o,r,h=!1,i){let l=this.gen.arc(t,s,e,n,o,r,h,i);return this.draw(l)}curve(t,s){let e=this.gen.curve(t,s);return this.draw(e)}path(t,s){let e=this.gen.path(t,s);return this.draw(e)}},Ft={canvas:(a,t)=>new ft(a,t),svg:(a,t)=>new dt(a,t),generator:a=>new $(a),newSeed:()=>$.newSeed()};export{Ft as a}; diff --git a/src/google/adk/cli/browser/chunk-Q6H4XMU7.js b/src/google/adk/cli/browser/chunk-Q6H4XMU7.js index c182271548..b972eac319 100644 --- a/src/google/adk/cli/browser/chunk-Q6H4XMU7.js +++ b/src/google/adk/cli/browser/chunk-Q6H4XMU7.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as r,Ca as o,Cc as h,Gb as u,Jb as p,Pa as a,Yb as m,Zb as f,eb as c,pd as y,qd as g,xb as s,yb as l,zb as d}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";var _=(()=>{class n extends y{action=h.required();handleClick(){let t=this.action();t&&super.sendAction(t)}static \u0275fac=(()=>{let t;return function(e){return(t||(t=o(n)))(e||n)}})();static \u0275cmp=r({type:n,selectors:[["a2ui-button"]],inputs:{action:[1,"action"]},features:[c],decls:2,vars:6,consts:[[3,"click"],["a2ui-renderer","",3,"surfaceId","component"]],template:function(i,e){i&1&&(l(0,"button",0),p("click",function(){return e.handleClick()}),u(1,1),d()),i&2&&(m(e.theme.additionalStyles==null?null:e.theme.additionalStyles.Button),f(e.theme.components.Button),a(),s("surfaceId",e.surfaceId())("component",e.component().properties.child))},dependencies:[g],styles:["[_nghost-%COMP%]{display:block;flex:var(--weight);min-height:0}"]})}return n})();export{_ as Button}; diff --git a/src/google/adk/cli/browser/chunk-QFMJV7VH.js b/src/google/adk/cli/browser/chunk-QFMJV7VH.js index b7cb38a78b..f9abc22684 100644 --- a/src/google/adk/cli/browser/chunk-QFMJV7VH.js +++ b/src/google/adk/cli/browser/chunk-QFMJV7VH.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{g as l,h as pi,i as M,j as fi}from"./chunk-JRNAXTJ7.js";import{a as P,b as X,j as jt}from"./chunk-RMXJBC7V.js";var Vt={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<.16666666666666666?t+(e-t)*6*i:i<.5?e:i<.6666666666666666?t+(e-t)*(.6666666666666666-i)*6:t),hsl2rgb:({h:t,s:e,l:i},a)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;let s=i<.5?i*(1+e):i+e-i*e,c=2*i-s;switch(a){case"r":return Vt.hue2rgb(c,s,t+.3333333333333333)*255;case"g":return Vt.hue2rgb(c,s,t)*255;case"b":return Vt.hue2rgb(c,s,t-.3333333333333333)*255}},rgb2hsl:({r:t,g:e,b:i},a)=>{t/=255,e/=255,i/=255;let s=Math.max(t,e,i),c=Math.min(t,e,i),f=(s+c)/2;if(a==="l")return f*100;if(s===c)return 0;let x=s-c,_=f>.5?x/(2-s-c):x/(s+c);if(a==="s")return _*100;switch(s){case t:return((e-i)/x+(ee>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},yi=yr;var br={dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},bi=br;var Tr={channel:xi,lang:yi,unit:bi},C=Tr;var tt={};for(let t=0;t<=255;t++)tt[t]=C.unit.dec2hex(t);var S={ALL:0,RGB:1,HSL:2};var Le=class{constructor(){this.type=S.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=S.ALL}is(e){return this.type===e}},Ti=Le;var ve=class{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new Ti}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=S.ALL,this}_ensureHSL(){let e=this.data,{h:i,s:a,l:s}=e;i===void 0&&(e.h=C.channel.rgb2hsl(e,"h")),a===void 0&&(e.s=C.channel.rgb2hsl(e,"s")),s===void 0&&(e.l=C.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r:i,g:a,b:s}=e;i===void 0&&(e.r=C.channel.hsl2rgb(e,"r")),a===void 0&&(e.g=C.channel.hsl2rgb(e,"g")),s===void 0&&(e.b=C.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,i=e.r;return!this.type.is(S.HSL)&&i!==void 0?i:(this._ensureHSL(),C.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,i=e.g;return!this.type.is(S.HSL)&&i!==void 0?i:(this._ensureHSL(),C.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,i=e.b;return!this.type.is(S.HSL)&&i!==void 0?i:(this._ensureHSL(),C.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,i=e.h;return!this.type.is(S.RGB)&&i!==void 0?i:(this._ensureRGB(),C.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,i=e.s;return!this.type.is(S.RGB)&&i!==void 0?i:(this._ensureRGB(),C.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,i=e.l;return!this.type.is(S.RGB)&&i!==void 0?i:(this._ensureRGB(),C.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(S.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(S.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(S.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(S.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(S.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(S.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},ki=ve;var kr=new ki({r:0,g:0,b:0,a:0},"transparent"),ot=kr;var Si={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(Si.re);if(!e)return;let i=e[1],a=parseInt(i,16),s=i.length,c=s%4===0,f=s>4,x=f?1:17,_=f?8:4,L=c?0:-1,$=f?255:15;return ot.set({r:(a>>_*(L+3)&$)*x,g:(a>>_*(L+2)&$)*x,b:(a>>_*(L+1)&$)*x,a:c?(a&$)*x/255:1},t)},stringify:t=>{let{r:e,g:i,b:a,a:s}=t;return s<1?`#${tt[Math.round(e)]}${tt[Math.round(i)]}${tt[Math.round(a)]}${tt[Math.round(s*255)]}`:`#${tt[Math.round(e)]}${tt[Math.round(i)]}${tt[Math.round(a)]}`}},lt=Si;var Yt={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(Yt.hueRe);if(e){let[,i,a]=e;switch(a){case"grad":return C.channel.clamp.h(parseFloat(i)*.9);case"rad":return C.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return C.channel.clamp.h(parseFloat(i)*360)}}return C.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let i=t.match(Yt.re);if(!i)return;let[,a,s,c,f,x]=i;return ot.set({h:Yt._hue2deg(a),s:C.channel.clamp.s(parseFloat(s)),l:C.channel.clamp.l(parseFloat(c)),a:f?C.channel.clamp.a(x?parseFloat(f)/100:parseFloat(f)):1},t)},stringify:t=>{let{h:e,s:i,l:a,a:s}=t;return s<1?`hsla(${C.lang.round(e)}, ${C.lang.round(i)}%, ${C.lang.round(a)}%, ${s})`:`hsl(${C.lang.round(e)}, ${C.lang.round(i)}%, ${C.lang.round(a)}%)`}},At=Yt;var Xt={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=Xt.colors[t];if(e)return lt.parse(e)},stringify:t=>{let e=lt.stringify(t);for(let i in Xt.colors)if(Xt.colors[i]===e)return i}},Ae=Xt;var Bi={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let i=t.match(Bi.re);if(!i)return;let[,a,s,c,f,x,_,L,$]=i;return ot.set({r:C.channel.clamp.r(s?parseFloat(a)*2.55:parseFloat(a)),g:C.channel.clamp.g(f?parseFloat(c)*2.55:parseFloat(c)),b:C.channel.clamp.b(_?parseFloat(x)*2.55:parseFloat(x)),a:L?C.channel.clamp.a($?parseFloat(L)/100:parseFloat(L)):1},t)},stringify:t=>{let{r:e,g:i,b:a,a:s}=t;return s<1?`rgba(${C.lang.round(e)}, ${C.lang.round(i)}, ${C.lang.round(a)}, ${C.lang.round(s)})`:`rgb(${C.lang.round(e)}, ${C.lang.round(i)}, ${C.lang.round(a)})`}},Et=Bi;var Sr={format:{keyword:Ae,hex:lt,rgb:Et,rgba:Et,hsl:At,hsla:At},parse:t=>{if(typeof t!="string")return t;let e=lt.parse(t)||Et.parse(t)||At.parse(t)||Ae.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(S.HSL)||t.data.r===void 0?At.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Et.stringify(t):lt.stringify(t)},B=Sr;var Br=(t,e)=>{let i=B.parse(t);for(let a in e)i[a]=C.channel.clamp[a](e[a]);return B.stringify(i)},Kt=Br;var Fr=(t,e,i=0,a=1)=>{if(typeof t!="number")return Kt(t,{a:e});let s=ot.set({r:C.channel.clamp.r(t),g:C.channel.clamp.g(e),b:C.channel.clamp.b(i),a:C.channel.clamp.a(a)});return B.stringify(s)},et=Fr;var _r=(t,e)=>C.lang.round(B.parse(t)[e]),Lr=_r;var vr=t=>{let{r:e,g:i,b:a}=B.parse(t),s=.2126*C.channel.toLinear(e)+.7152*C.channel.toLinear(i)+.0722*C.channel.toLinear(a);return C.lang.round(s)},Fi=vr;var Ar=t=>Fi(t)>=.5,_i=Ar;var Er=t=>!_i(t),j=Er;var Or=(t,e,i)=>{let a=B.parse(t),s=a[e],c=C.channel.clamp[e](s+i);return s!==c&&(a[e]=c),B.stringify(a)},yt=Or;var Mr=(t,e)=>yt(t,"l",e),d=Mr;var Dr=(t,e)=>yt(t,"l",-e),g=Dr;var wr=(t,e)=>yt(t,"a",-e),Ir=wr;var zr=(t,e)=>{let i=B.parse(t),a={};for(let s in e)e[s]&&(a[s]=i[s]+e[s]);return Kt(t,a)},o=zr;var qr=(t,e,i=50)=>{let{r:a,g:s,b:c,a:f}=B.parse(t),{r:x,g:_,b:L,a:$}=B.parse(e),St=i/100,ht=St*2-1,it=f-$,dt=((ht*it===-1?ht:(ht+it)/(1+ht*it))+1)/2,Bt=1-dt,ce=a*dt+x*Bt,de=s*dt+_*Bt,ut=c*dt+L*Bt,v=f*St+$*(1-St);return et(ce,de,ut,v)},Li=qr;var Rr=(t,e=100)=>{let i=B.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Li(i,t,e)},h=Rr;var{entries:zi,setPrototypeOf:vi,isFrozen:Wr,getPrototypeOf:Pr,getOwnPropertyDescriptor:Nr}=Object,{freeze:z,seal:U,create:Qt}=Object,{apply:ze,construct:qe}=typeof Reflect<"u"&&Reflect;z||(z=function(e){return e});U||(U=function(e){return e});ze||(ze=function(e,i){for(var a=arguments.length,s=new Array(a>2?a-2:0),c=2;c1?i-1:0),s=1;s1?i-1:0),s=1;s2&&arguments[2]!==void 0?arguments[2]:te;vi&&vi(t,null);let a=e.length;for(;a--;){let s=e[a];if(typeof s=="string"){let c=i(s);c!==s&&(Wr(e)||(e[a]=c),s=c)}t[s]=!0}return t}function Vr(t){for(let e=0;e/gm),Jr=U(/\$\{[\w\W]*/gm),Qr=U(/^data-[\-\w.\u00B7-\uFFFF]+$/),to=U(/^aria-[\-\w]+$/),qi=U(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eo=U(/^(?:\w+script|data):/i),io=U(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ri=U(/^html$/i),ro=U(/^[a-z][.\w]*(-[.\w]+)+$/i),wi=Object.freeze({__proto__:null,ARIA_ATTR:to,ATTR_WHITESPACE:io,CUSTOM_ELEMENT:ro,DATA_ATTR:Qr,DOCTYPE_NAME:Ri,ERB_EXPR:Zr,IS_ALLOWED_URI:qi,IS_SCRIPT_OR_DATA:eo,MUSTACHE_EXPR:Kr,TMPLIT_EXPR:Jr}),It={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},oo=function(){return typeof window>"u"?null:window},ao=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let a=null,s="data-tt-policy-suffix";i&&i.hasAttribute(s)&&(a=i.getAttribute(s));let c="dompurify"+(a?"#"+a:"");try{return e.createPolicy(c,{createHTML(f){return f},createScriptURL(f){return f}})}catch(f){return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Ii=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Wi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oo(),e=m=>Wi(m);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==It.document||!t.Element)return e.isSupported=!1,e;let{document:i}=t,a=i,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:f,Node:x,Element:_,NodeFilter:L,NamedNodeMap:$=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:St,DOMParser:ht,trustedTypes:it}=t,ct=_.prototype,dt=wt(ct,"cloneNode"),Bt=wt(ct,"remove"),ce=wt(ct,"nextSibling"),de=wt(ct,"childNodes"),ut=wt(ct,"parentNode");if(typeof f=="function"){let m=i.createElement("template");m.content&&m.content.ownerDocument&&(i=m.content.ownerDocument)}let v,Ft="",{implementation:ue,createNodeIterator:rr,createDocumentFragment:or,getElementsByTagName:ar}=i,{importNode:sr}=a,w=Ii();e.isSupported=typeof zi=="function"&&typeof ut=="function"&&ue&&ue.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ge,ERB_EXPR:Ce,TMPLIT_EXPR:me,DATA_ATTR:lr,ARIA_ATTR:nr,IS_SCRIPT_OR_DATA:hr,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:cr}=wi,{IS_ALLOWED_URI:Ve}=wi,F=null,Ye=p({},[...Ei,...Me,...De,...we,...Oi]),A=null,Xe=p({},[...Mi,...Ie,...Di,...Jt]),b=Object.seal(Qt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_t=null,Rt=null,rt=Object.seal(Qt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ke=!0,pe=!0,Ze=!1,Je=!0,gt=!1,Wt=!0,at=!1,fe=!1,xe=!1,Ct=!1,Pt=!1,Nt=!1,Qe=!0,ti=!1,dr="user-content-",ye=!0,Lt=!1,mt={},V=null,be=p({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ei=null,ii=p({},["audio","video","img","source","image","track"]),Te=null,ri=p({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ht="http://www.w3.org/1998/Math/MathML",Ut="http://www.w3.org/2000/svg",Z="http://www.w3.org/1999/xhtml",pt=Z,ke=!1,Se=null,ur=p({},[Ht,Ut,Z],Ee),Gt=p({},["mi","mo","mn","ms","mtext"]),$t=p({},["annotation-xml"]),gr=p({},["title","style","font","a","script"]),vt=null,Cr=["application/xhtml+xml","text/html"],mr="text/html",k=null,ft=null,pr=i.createElement("form"),oi=function(r){return r instanceof RegExp||r instanceof Function},Be=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ft&&ft===r)){if((!r||typeof r!="object")&&(r={}),r=K(r),vt=Cr.indexOf(r.PARSER_MEDIA_TYPE)===-1?mr:r.PARSER_MEDIA_TYPE,k=vt==="application/xhtml+xml"?Ee:te,F=H(r,"ALLOWED_TAGS")?p({},r.ALLOWED_TAGS,k):Ye,A=H(r,"ALLOWED_ATTR")?p({},r.ALLOWED_ATTR,k):Xe,Se=H(r,"ALLOWED_NAMESPACES")?p({},r.ALLOWED_NAMESPACES,Ee):ur,Te=H(r,"ADD_URI_SAFE_ATTR")?p(K(ri),r.ADD_URI_SAFE_ATTR,k):ri,ei=H(r,"ADD_DATA_URI_TAGS")?p(K(ii),r.ADD_DATA_URI_TAGS,k):ii,V=H(r,"FORBID_CONTENTS")?p({},r.FORBID_CONTENTS,k):be,_t=H(r,"FORBID_TAGS")?p({},r.FORBID_TAGS,k):K({}),Rt=H(r,"FORBID_ATTR")?p({},r.FORBID_ATTR,k):K({}),mt=H(r,"USE_PROFILES")?r.USE_PROFILES:!1,Ke=r.ALLOW_ARIA_ATTR!==!1,pe=r.ALLOW_DATA_ATTR!==!1,Ze=r.ALLOW_UNKNOWN_PROTOCOLS||!1,Je=r.ALLOW_SELF_CLOSE_IN_ATTR!==!1,gt=r.SAFE_FOR_TEMPLATES||!1,Wt=r.SAFE_FOR_XML!==!1,at=r.WHOLE_DOCUMENT||!1,Ct=r.RETURN_DOM||!1,Pt=r.RETURN_DOM_FRAGMENT||!1,Nt=r.RETURN_TRUSTED_TYPE||!1,xe=r.FORCE_BODY||!1,Qe=r.SANITIZE_DOM!==!1,ti=r.SANITIZE_NAMED_PROPS||!1,ye=r.KEEP_CONTENT!==!1,Lt=r.IN_PLACE||!1,Ve=r.ALLOWED_URI_REGEXP||qi,pt=r.NAMESPACE||Z,Gt=r.MATHML_TEXT_INTEGRATION_POINTS||Gt,$t=r.HTML_INTEGRATION_POINTS||$t,b=r.CUSTOM_ELEMENT_HANDLING||{},r.CUSTOM_ELEMENT_HANDLING&&oi(r.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(b.tagNameCheck=r.CUSTOM_ELEMENT_HANDLING.tagNameCheck),r.CUSTOM_ELEMENT_HANDLING&&oi(r.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(b.attributeNameCheck=r.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),r.CUSTOM_ELEMENT_HANDLING&&typeof r.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(b.allowCustomizedBuiltInElements=r.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),gt&&(pe=!1),Pt&&(Ct=!0),mt&&(F=p({},Oi),A=Qt(null),mt.html===!0&&(p(F,Ei),p(A,Mi)),mt.svg===!0&&(p(F,Me),p(A,Ie),p(A,Jt)),mt.svgFilters===!0&&(p(F,De),p(A,Ie),p(A,Jt)),mt.mathMl===!0&&(p(F,we),p(A,Di),p(A,Jt))),H(r,"ADD_TAGS")||(rt.tagCheck=null),H(r,"ADD_ATTR")||(rt.attributeCheck=null),r.ADD_TAGS&&(typeof r.ADD_TAGS=="function"?rt.tagCheck=r.ADD_TAGS:(F===Ye&&(F=K(F)),p(F,r.ADD_TAGS,k))),r.ADD_ATTR&&(typeof r.ADD_ATTR=="function"?rt.attributeCheck=r.ADD_ATTR:(A===Xe&&(A=K(A)),p(A,r.ADD_ATTR,k))),r.ADD_URI_SAFE_ATTR&&p(Te,r.ADD_URI_SAFE_ATTR,k),r.FORBID_CONTENTS&&(V===be&&(V=K(V)),p(V,r.FORBID_CONTENTS,k)),r.ADD_FORBID_CONTENTS&&(V===be&&(V=K(V)),p(V,r.ADD_FORBID_CONTENTS,k)),ye&&(F["#text"]=!0),at&&p(F,["html","head","body"]),F.table&&(p(F,["tbody"]),delete _t.tbody),r.TRUSTED_TYPES_POLICY){if(typeof r.TRUSTED_TYPES_POLICY.createHTML!="function")throw Dt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof r.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Dt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=r.TRUSTED_TYPES_POLICY,Ft=v.createHTML("")}else v===void 0&&(v=ao(it,s)),v!==null&&typeof Ft=="string"&&(Ft=v.createHTML(""));z&&z(r),ft=r}},ai=p({},[...Me,...De,...Yr]),si=p({},[...we,...Xr]),fr=function(r){let n=ut(r);(!n||!n.tagName)&&(n={namespaceURI:pt,tagName:"template"});let u=te(r.tagName),y=te(n.tagName);return Se[r.namespaceURI]?r.namespaceURI===Ut?n.namespaceURI===Z?u==="svg":n.namespaceURI===Ht?u==="svg"&&(y==="annotation-xml"||Gt[y]):!!ai[u]:r.namespaceURI===Ht?n.namespaceURI===Z?u==="math":n.namespaceURI===Ut?u==="math"&&$t[y]:!!si[u]:r.namespaceURI===Z?n.namespaceURI===Ut&&!$t[y]||n.namespaceURI===Ht&&!Gt[y]?!1:!si[u]&&(gr[u]||!ai[u]):!!(vt==="application/xhtml+xml"&&Se[r.namespaceURI]):!1},Y=function(r){Ot(e.removed,{element:r});try{ut(r).removeChild(r)}catch(n){Bt(r)}},st=function(r,n){try{Ot(e.removed,{attribute:n.getAttributeNode(r),from:n})}catch(u){Ot(e.removed,{attribute:null,from:n})}if(n.removeAttribute(r),r==="is")if(Ct||Pt)try{Y(n)}catch(u){}else try{n.setAttribute(r,"")}catch(u){}},li=function(r){let n=null,u=null;if(xe)r=""+r;else{let T=Oe(r,/^[\r\n\t ]+/);u=T&&T[0]}vt==="application/xhtml+xml"&&pt===Z&&(r=''+r+"");let y=v?v.createHTML(r):r;if(pt===Z)try{n=new ht().parseFromString(y,vt)}catch(T){}if(!n||!n.documentElement){n=ue.createDocument(pt,"template",null);try{n.documentElement.innerHTML=ke?Ft:y}catch(T){}}let O=n.body||n.documentElement;return r&&u&&O.insertBefore(i.createTextNode(u),O.childNodes[0]||null),pt===Z?ar.call(n,at?"html":"body")[0]:at?n.documentElement:O},ni=function(r){return rr.call(r.ownerDocument||r,r,L.SHOW_ELEMENT|L.SHOW_COMMENT|L.SHOW_TEXT|L.SHOW_PROCESSING_INSTRUCTION|L.SHOW_CDATA_SECTION,null)},Fe=function(r){return r instanceof St&&(typeof r.nodeName!="string"||typeof r.textContent!="string"||typeof r.removeChild!="function"||!(r.attributes instanceof $)||typeof r.removeAttribute!="function"||typeof r.setAttribute!="function"||typeof r.namespaceURI!="string"||typeof r.insertBefore!="function"||typeof r.hasChildNodes!="function")},hi=function(r){return typeof x=="function"&&r instanceof x};function J(m,r,n){Zt(m,u=>{u.call(e,r,n,ft)})}let ci=function(r){let n=null;if(J(w.beforeSanitizeElements,r,null),Fe(r))return Y(r),!0;let u=k(r.nodeName);if(J(w.uponSanitizeElement,r,{tagName:u,allowedTags:F}),Wt&&r.hasChildNodes()&&!hi(r.firstElementChild)&&I(/<[/\w!]/g,r.innerHTML)&&I(/<[/\w!]/g,r.textContent)||r.nodeType===It.progressingInstruction||Wt&&r.nodeType===It.comment&&I(/<[/\w]/g,r.data))return Y(r),!0;if(!(rt.tagCheck instanceof Function&&rt.tagCheck(u))&&(!F[u]||_t[u])){if(!_t[u]&&ui(u)&&(b.tagNameCheck instanceof RegExp&&I(b.tagNameCheck,u)||b.tagNameCheck instanceof Function&&b.tagNameCheck(u)))return!1;if(ye&&!V[u]){let y=ut(r)||r.parentNode,O=de(r)||r.childNodes;if(O&&y){let T=O.length;for(let W=T-1;W>=0;--W){let Q=dt(O[W],!0);Q.__removalCount=(r.__removalCount||0)+1,y.insertBefore(Q,ce(r))}}}return Y(r),!0}return r instanceof _&&!fr(r)||(u==="noscript"||u==="noembed"||u==="noframes")&&I(/<\/no(script|embed|frames)/i,r.innerHTML)?(Y(r),!0):(gt&&r.nodeType===It.text&&(n=r.textContent,Zt([ge,Ce,me],y=>{n=Mt(n,y," ")}),r.textContent!==n&&(Ot(e.removed,{element:r.cloneNode()}),r.textContent=n)),J(w.afterSanitizeElements,r,null),!1)},di=function(r,n,u){if(Rt[n]||Qe&&(n==="id"||n==="name")&&(u in i||u in pr))return!1;if(!(pe&&!Rt[n]&&I(lr,n))){if(!(Ke&&I(nr,n))){if(!(rt.attributeCheck instanceof Function&&rt.attributeCheck(n,r))){if(!A[n]||Rt[n]){if(!(ui(r)&&(b.tagNameCheck instanceof RegExp&&I(b.tagNameCheck,r)||b.tagNameCheck instanceof Function&&b.tagNameCheck(r))&&(b.attributeNameCheck instanceof RegExp&&I(b.attributeNameCheck,n)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(n,r))||n==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&I(b.tagNameCheck,u)||b.tagNameCheck instanceof Function&&b.tagNameCheck(u))))return!1}else if(!Te[n]){if(!I(Ve,Mt(u,je,""))){if(!((n==="src"||n==="xlink:href"||n==="href")&&r!=="script"&&Gr(u,"data:")===0&&ei[r])){if(!(Ze&&!I(hr,Mt(u,je,"")))){if(u)return!1}}}}}}}return!0},ui=function(r){return r!=="annotation-xml"&&Oe(r,cr)},gi=function(r){J(w.beforeSanitizeAttributes,r,null);let{attributes:n}=r;if(!n||Fe(r))return;let u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0},y=n.length;for(;y--;){let O=n[y],{name:T,namespaceURI:W,value:Q}=O,xt=k(T),_e=Q,E=T==="value"?_e:$r(_e);if(u.attrName=xt,u.attrValue=E,u.keepAttr=!0,u.forceKeepAttr=void 0,J(w.uponSanitizeAttribute,r,u),E=u.attrValue,ti&&(xt==="id"||xt==="name")&&(st(T,r),E=dr+E),Wt&&I(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,E)){st(T,r);continue}if(xt==="attributename"&&Oe(E,"href")){st(T,r);continue}if(u.forceKeepAttr)continue;if(!u.keepAttr){st(T,r);continue}if(!Je&&I(/\/>/i,E)){st(T,r);continue}gt&&Zt([ge,Ce,me],mi=>{E=Mt(E,mi," ")});let Ci=k(r.nodeName);if(!di(Ci,xt,E)){st(T,r);continue}if(v&&typeof it=="object"&&typeof it.getAttributeType=="function"&&!W)switch(it.getAttributeType(Ci,xt)){case"TrustedHTML":{E=v.createHTML(E);break}case"TrustedScriptURL":{E=v.createScriptURL(E);break}}if(E!==_e)try{W?r.setAttributeNS(W,T,E):r.setAttribute(T,E),Fe(r)?Y(r):Ai(e.removed)}catch(mi){st(T,r)}}J(w.afterSanitizeAttributes,r,null)},xr=function m(r){let n=null,u=ni(r);for(J(w.beforeSanitizeShadowDOM,r,null);n=u.nextNode();)J(w.uponSanitizeShadowNode,n,null),ci(n),gi(n),n.content instanceof c&&m(n.content);J(w.afterSanitizeShadowDOM,r,null)};return e.sanitize=function(m){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,u=null,y=null,O=null;if(ke=!m,ke&&(m=""),typeof m!="string"&&!hi(m))if(typeof m.toString=="function"){if(m=m.toString(),typeof m!="string")throw Dt("dirty is not a string, aborting")}else throw Dt("toString is not a function");if(!e.isSupported)return m;if(fe||Be(r),e.removed=[],typeof m=="string"&&(Lt=!1),Lt){if(m.nodeName){let Q=k(m.nodeName);if(!F[Q]||_t[Q])throw Dt("root node is forbidden and cannot be sanitized in-place")}}else if(m instanceof x)n=li(""),u=n.ownerDocument.importNode(m,!0),u.nodeType===It.element&&u.nodeName==="BODY"||u.nodeName==="HTML"?n=u:n.appendChild(u);else{if(!Ct&&!gt&&!at&&m.indexOf("<")===-1)return v&&Nt?v.createHTML(m):m;if(n=li(m),!n)return Ct?null:Nt?Ft:""}n&&xe&&Y(n.firstChild);let T=ni(Lt?m:n);for(;y=T.nextNode();)ci(y),gi(y),y.content instanceof c&&xr(y.content);if(Lt)return m;if(Ct){if(Pt)for(O=or.call(n.ownerDocument);n.firstChild;)O.appendChild(n.firstChild);else O=n;return(A.shadowroot||A.shadowrootmode)&&(O=sr.call(a,O,!0)),O}let W=at?n.outerHTML:n.innerHTML;return at&&F["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&I(Ri,n.ownerDocument.doctype.name)&&(W=" `+W),gt&&Zt([ge,Ce,me],Q=>{W=Mt(W,Q," ")}),v&&Nt?v.createHTML(W):W},e.setConfig=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Be(m),fe=!0},e.clearConfig=function(){ft=null,fe=!1},e.isValidAttribute=function(m,r,n){ft||Be({});let u=k(m),y=k(r);return di(u,y,n)},e.addHook=function(m,r){typeof r=="function"&&Ot(w[m],r)},e.removeHook=function(m,r){if(r!==void 0){let n=Hr(w[m],r);return n===-1?void 0:Ur(w[m],n,1)[0]}return Ai(w[m])},e.removeHooks=function(m){w[m]=[]},e.removeAllHooks=function(){w=Ii()},e}var bt=Wi();var so=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,lo=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,no=/\s*%%.*\n/gm,ho=class extends Error{static{l(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},re={},Os=l(function(t,e){t=t.replace(so,"").replace(lo,"").replace(no,` `);for(let[i,{detector:a}]of Object.entries(re))if(a(t,e))return i;throw new ho(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),Ms=l((...t)=>{for(let{id:e,detector:i,loader:a}of t)$i(e,i,a)},"registerLazyLoadedDiagrams"),$i=l((t,e,i)=>{re[t]&&M.warn(`Detector with key ${t} already exists. Overwriting.`),re[t]={detector:e,loader:i},M.debug(`Detector with key ${t} added${i?" with loader":""}`)},"addDetector"),Ds=l(t=>re[t].loader,"getDiagramLoader"),Re=l((t,e,{depth:i=2,clobber:a=!1}={})=>{let s={depth:i,clobber:a};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(c=>Re(t,c,s)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(c=>{t.includes(c)||t.push(c)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(c=>{typeof e[c]=="object"&&e[c]!==null&&(t[c]===void 0||typeof t[c]=="object")?(t[c]===void 0&&(t[c]=Array.isArray(e[c])?[]:{}),t[c]=Re(t[c],e[c],{depth:i-1,clobber:a})):(a||typeof t[c]!="object"&&typeof e[c]!="object")&&(t[c]=e[c])}),t)},"assignWithDepth"),D=Re,se="#ffffff",le="#f2f2f2",R=l((t,e)=>e?o(t,{s:-40,l:10}):o(t,{s:-40,l:-10}),"mkBorder"),co=class{static{l(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||o(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||o(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||R(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||R(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||R(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||R(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||h(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||h(this.tertiaryColor),this.lineColor=this.lineColor||h(this.background),this.arrowheadColor=this.arrowheadColor||h(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||h(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||d(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||g(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||g(this.mainBkg,10)):(this.rowOdd=this.rowOdd||d(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||d(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[i]=t[i]}),this.updateColors(),e.forEach(i=>{this[i]=t[i]})}},uo=l(t=>{let e=new co;return e.calculate(t),e},"getThemeVariables"),go=class{static{l(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=d(this.primaryColor,16),this.tertiaryColor=o(this.primaryColor,{h:-160}),this.primaryBorderColor=h(this.background),this.secondaryBorderColor=R(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=R(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.lineColor=h(this.background),this.textColor=h(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=d(h("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=et(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=g("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=g(this.sectionBkgColor,10),this.taskBorderColor=et(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=et(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||d(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||g(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=d(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=d(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=d(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=h(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=o(this.primaryColor,{h:64}),this.fillType3=o(this.secondaryColor,{h:64}),this.fillType4=o(this.primaryColor,{h:-64}),this.fillType5=o(this.secondaryColor,{h:-64}),this.fillType6=o(this.primaryColor,{h:128}),this.fillType7=o(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330});for(let t=0;t{this[i]=t[i]}),this.updateColors(),e.forEach(i=>{this[i]=t[i]})}},Co=l(t=>{let e=new go;return e.calculate(t),e},"getThemeVariables"),mo=class{static{l(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=o(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=o(this.primaryColor,{h:-160}),this.primaryBorderColor=R(this.primaryColor,this.darkMode),this.secondaryBorderColor=R(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=R(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.lineColor=h(this.background),this.textColor=h(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=et(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||g(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||g(this.tertiaryColor,40);for(let t=0;t{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}let e=Object.keys(t);e.forEach(i=>{this[i]=t[i]}),this.updateColors(),e.forEach(i=>{this[i]=t[i]})}},po=l(t=>{let e=new mo;return e.calculate(t),e},"getThemeVariables"),fo=class{static{l(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=d("#cde498",10),this.primaryBorderColor=R(this.primaryColor,this.darkMode),this.secondaryBorderColor=R(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=R(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.primaryColor),this.lineColor=h(this.background),this.textColor=h(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=g(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||g(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||g(this.tertiaryColor,40);for(let t=0;t{this[i]=t[i]}),this.updateColors(),e.forEach(i=>{this[i]=t[i]})}},xo=l(t=>{let e=new fo;return e.calculate(t),e},"getThemeVariables"),yo=class{static{l(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=d(this.contrast,55),this.background="#ffffff",this.tertiaryColor=o(this.primaryColor,{h:-160}),this.primaryBorderColor=R(this.primaryColor,this.darkMode),this.secondaryBorderColor=R(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=R(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.lineColor=h(this.background),this.textColor=h(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||d(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=d(this.contrast,55),this.border2=this.contrast,this.actorBorder=d(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t{this[i]=t[i]}),this.updateColors(),e.forEach(i=>{this[i]=t[i]})}},bo=l(t=>{let e=new yo;return e.calculate(t),e},"getThemeVariables"),Tt={base:{getThemeVariables:uo},dark:{getThemeVariables:Co},default:{getThemeVariables:po},forest:{getThemeVariables:xo},neutral:{getThemeVariables:bo}},G={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},ji=X(P({},G),{deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Tt.default.getThemeVariables(),sequence:X(P({},G.sequence),{messageFont:l(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:l(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:l(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")}),class:{hideEmptyMembersBox:!1},gantt:X(P({},G.gantt),{tickInterval:void 0,useWidth:void 0}),c4:X(P({},G.c4),{useWidth:void 0,personFont:l(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:X(P({},G.flowchart),{inheritDir:!1}),external_personFont:l(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:l(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:l(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:l(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:l(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:l(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:l(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:l(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:l(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:l(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:l(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:l(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:l(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:l(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:l(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:l(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:l(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:l(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:l(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:l(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:l(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")}),pie:X(P({},G.pie),{useWidth:984}),xyChart:X(P({},G.xyChart),{useWidth:void 0}),requirement:X(P({},G.requirement),{useWidth:void 0}),packet:P({},G.packet),radar:P({},G.radar),ishikawa:P({},G.ishikawa),treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:P({},G.venn)}),Vi=l((t,e="")=>Object.keys(t).reduce((i,a)=>Array.isArray(t[a])?i:typeof t[a]=="object"&&t[a]!==null?[...i,e+a,...Vi(t[a],"")]:[...i,e+a],[]),"keyify"),To=new Set(Vi(ji,"")),ko=ji,We=l(t=>{if(M.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>We(e));return}for(let e of Object.keys(t)){if(M.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!To.has(e)||t[e]==null){M.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){M.debug("sanitizing object",e),We(t[e]);continue}let i=["themeCSS","fontFamily","altFontFamily"];for(let a of i)e.includes(a)&&(M.debug("sanitizing css option",e),t[e]=So(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let i=t.themeVariables[e];i?.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}M.debug("After sanitization",t)}},"sanitizeDirective"),So=l(t=>{let e=0,i=0;for(let a of t){if(e!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),N=D({},ne),oe,nt=[],zt=D({},ne),he=l((t,e)=>{let i=D({},t),a={};for(let s of e)Xi(s),a=D(a,s);if(i=D(i,a),a.theme&&a.theme in Tt){let s=D({},oe),c=D(s.themeVariables||{},a.themeVariables);i.theme&&i.theme in Tt&&(i.themeVariables=Tt[i.theme].getThemeVariables(c))}return zt=i,Zi(zt),zt},"updateCurrentConfig"),Ps=l(t=>(N=D({},ne),N=D(N,t),t.theme&&Tt[t.theme]&&(N.themeVariables=Tt[t.theme].getThemeVariables(t.themeVariables)),he(N,nt),N),"setSiteConfig"),Ns=l(t=>{oe=D({},t)},"saveConfigFromInitialize"),Hs=l(t=>(N=D(N,t),he(N,nt),N),"updateSiteConfig"),Us=l(()=>D({},N),"getSiteConfig"),Bo=l(t=>(Zi(t),D(zt,t),Ne()),"setConfig"),Ne=l(()=>D({},zt),"getConfig"),Xi=l(t=>{t&&(["secure",...N.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(M.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Xi(t[e])}))},"sanitize"),Gs=l(t=>{We(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables=X(P({},t.themeVariables),{fontFamily:t.fontFamily})),nt.push(t),he(N,nt)},"addDirective"),$s=l((t=N)=>{nt=[],he(t,nt)},"reset"),Fo={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},Pi={},Ki=l(t=>{Pi[t]||(M.warn(Fo[t]),Pi[t]=!0)},"issueWarning"),Zi=l(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ki("LAZY_LOAD_DEPRECATED")},"checkConfig"),js=l(()=>{let t={};oe&&(t=D(t,oe));for(let e of nt)t=D(t,e);return t},"getUserDefinedConfig"),_o=l(t=>(t.flowchart?.htmlLabels!=null&&Ki("FLOWCHART_HTML_LABELS_DEPRECATED"),Yi(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),qt=//gi,Lo=l(t=>t?tr(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),vo=(()=>{let t=!1;return()=>{t||(Ji(),t=!0)}})();function Ji(){let t="data-temp-href-target";bt.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),bt.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}l(Ji,"setupDompurifyHooks");var Qi=l(t=>(vo(),bt.sanitize(t)),"removeScript"),Ni=l((t,e)=>{if(_o(e)){let i=e.securityLevel;i==="antiscript"||i==="strict"||i==="sandbox"?t=Qi(t):i!=="loose"&&(t=tr(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=Mo(t))}return t},"sanitizeMore"),kt=l((t,e)=>t&&(e.dompurifyConfig?t=bt.sanitize(Ni(t,e),e.dompurifyConfig).toString():t=bt.sanitize(Ni(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),Ao=l((t,e)=>typeof t=="string"?kt(t,e):t.flat().map(i=>kt(i,e)),"sanitizeTextOrArray"),Eo=l(t=>qt.test(t),"hasBreaks"),Oo=l(t=>t.split(qt),"splitBreaks"),Mo=l(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),tr=l(t=>t.replace(qt,"#br#"),"breakToPlaceholder"),Do=l(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),wo=l(function(...t){let e=t.filter(i=>!isNaN(i));return Math.max(...e)},"getMax"),Io=l(function(...t){let e=t.filter(i=>!isNaN(i));return Math.min(...e)},"getMin"),Ys=l(function(t){let e=t.split(/(,)/),i=[];for(let a=0;a0&&a+1Math.max(0,t.split(e).length-1),"countOccurrence"),zo=l((t,e)=>{let i=Pe(t,"~"),a=Pe(e,"~");return i===1&&a===1},"shouldCombineSets"),qo=l(t=>{let e=Pe(t,"~"),i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);let a=[...t],s=a.indexOf("~"),c=a.lastIndexOf("~");for(;s!==-1&&c!==-1&&s!==c;)a[s]="<",a[c]=">",s=a.indexOf("~"),c=a.lastIndexOf("~");return i&&a.unshift("~"),a.join("")},"processSet"),Hi=l(()=>window.MathMLElement!==void 0,"isMathMLSupported"),ee=/\$\$(.*)\$\$/g,Ui=l(t=>(t.match(ee)?.length??0)>0,"hasKatex"),Xs=l((t,e)=>jt(null,null,function*(){let i=document.createElement("div");i.innerHTML=yield Wo(t,e),i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",i);let s={width:i.clientWidth,height:i.clientHeight};return i.remove(),s}),"calculateMathMLDimensions"),Ro=l((t,e)=>jt(null,null,function*(){if(!Ui(t))return t;if(!(Hi()||e.legacyMathML||e.forceLegacyMathML))return t.replace(ee,"MathML is unsupported in this environment.");{let{default:i}=yield import("./chunk-27SWUPRL.js"),a=e.forceLegacyMathML||!Hi()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(qt).map(s=>Ui(s)?`
${s}
`:`
${s}
`).join("").replace(ee,(s,c)=>i.renderToString(c,{throwOnError:!0,displayMode:!0,output:a}).replace(/\n/g," ").replace(//g,""))}return t.replace(ee,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")}),"renderKatexUnsanitized"),Wo=l((t,e)=>jt(null,null,function*(){return kt(yield Ro(t,e),e)}),"renderKatexSanitized"),Ks={getRows:Lo,sanitizeText:kt,sanitizeTextOrArray:Ao,hasBreaks:Eo,splitBreaks:Oo,lineBreakRegex:qt,removeScript:Qi,getUrl:Do,evaluate:Yi,getMax:wo,getMin:Io},Po=l(function(t,e){for(let i of e)t.attr(i[0],i[1])},"d3Attrs"),No=l(function(t,e,i){let a=new Map;return i?(a.set("width","100%"),a.set("style",`max-width: ${e}px;`)):(a.set("height",t),a.set("width",e)),a},"calculateSvgSizeAttrs"),Ho=l(function(t,e,i,a){let s=No(e,i,a);Po(t,s)},"configureSvgSize"),Uo=l(function(t,e,i,a){let s=e.node().getBBox(),c=s.width,f=s.height;M.info(`SVG bounds: ${c}x${f}`,s);let x=0,_=0;M.info(`Graph bounds: ${x}x${_}`,t),x=c+i*2,_=f+i*2,M.info(`Calculated bounds: ${x}x${_}`),Ho(e,_,x,a);let L=`${s.x-i} ${s.y-i} ${s.width+2*i} ${s.height+2*i}`;e.attr("viewBox",L)},"setupGraphViewbox"),ie={},Go=l((t,e,i)=>{let a="";return t in ie&&ie[t]?a=ie[t](i):M.warn(`No theme found for ${t}`),` & { diff --git a/src/google/adk/cli/browser/chunk-QGHEW6NO.js b/src/google/adk/cli/browser/chunk-QGHEW6NO.js index 82b5b010fa..a5b19cf17f 100644 --- a/src/google/adk/cli/browser/chunk-QGHEW6NO.js +++ b/src/google/adk/cli/browser/chunk-QGHEW6NO.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as je}from"./chunk-APNCZOFE.js";import{a as We}from"./chunk-ST54LLJ3.js";import{b as Ue,c as Ze}from"./chunk-F57TI45K.js";import"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import{m as Ge,p as Ke}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{R as Ve,S as Me,T as Be,U as Fe,V as Ye,W as Pe,X as ze,Y as j,a as Le,b as we}from"./chunk-QFMJV7VH.js";import{a as ve,g as l,h as De,i as v}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import{j as Ce}from"./chunk-RMXJBC7V.js";var ye=(function(){var t=l(function(A,a,n,c){for(n=n||{},c=A.length;c--;n[A[c]]=a);return n},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],d=[1,10],o=[1,11],h=[1,12],b=[1,13],R=[1,23],k=[1,24],_=[1,25],w=[1,26],W=[1,27],E=[1,19],ie=[1,28],Q=[1,29],S=[1,20],I=[1,18],V=[1,21],M=[1,22],re=[1,36],ae=[1,37],ne=[1,38],ce=[1,39],oe=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],T=[1,45],O=[1,46],F=[1,55],Y=[40,48,50,51,52,70,71],P=[1,66],z=[1,64],N=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],ke=[65,66,67,68,69],ge=[1,84],_e=[1,83],me=[1,81],Ee=[1,82],Se=[6,10,42,47],D=[6,10,13,41,42,47,48,49],q=[1,92],H=[1,91],J=[1,90],U=[19,58],Te=[1,101],Oe=[1,100],le=[19,58,60,62],he={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:l(function(a,n,c,r,u,e,Z){var s=e.length-1;switch(u){case 1:break;case 2:this.$=[];break;case 3:e[s-1].push(e[s]),this.$=e[s-1];break;case 4:case 5:this.$=e[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[s-4]),r.addEntity(e[s-2]),r.addRelationship(e[s-4],e[s],e[s-2],e[s-3]);break;case 9:r.addEntity(e[s-8]),r.addEntity(e[s-4]),r.addRelationship(e[s-8],e[s],e[s-4],e[s-5]),r.setClass([e[s-8]],e[s-6]),r.setClass([e[s-4]],e[s-2]);break;case 10:r.addEntity(e[s-6]),r.addEntity(e[s-2]),r.addRelationship(e[s-6],e[s],e[s-2],e[s-3]),r.setClass([e[s-6]],e[s-4]);break;case 11:r.addEntity(e[s-6]),r.addEntity(e[s-4]),r.addRelationship(e[s-6],e[s],e[s-4],e[s-5]),r.setClass([e[s-4]],e[s-2]);break;case 12:r.addEntity(e[s-3]),r.addAttributes(e[s-3],e[s-1]);break;case 13:r.addEntity(e[s-5]),r.addAttributes(e[s-5],e[s-1]),r.setClass([e[s-5]],e[s-3]);break;case 14:r.addEntity(e[s-2]);break;case 15:r.addEntity(e[s-4]),r.setClass([e[s-4]],e[s-2]);break;case 16:r.addEntity(e[s]);break;case 17:r.addEntity(e[s-2]),r.setClass([e[s-2]],e[s]);break;case 18:r.addEntity(e[s-6],e[s-4]),r.addAttributes(e[s-6],e[s-1]);break;case 19:r.addEntity(e[s-8],e[s-6]),r.addAttributes(e[s-8],e[s-1]),r.setClass([e[s-8]],e[s-3]);break;case 20:r.addEntity(e[s-5],e[s-3]);break;case 21:r.addEntity(e[s-7],e[s-5]),r.setClass([e[s-7]],e[s-2]);break;case 22:r.addEntity(e[s-3],e[s-1]);break;case 23:r.addEntity(e[s-5],e[s-3]),r.setClass([e[s-5]],e[s]);break;case 24:case 25:this.$=e[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=e[s-3],r.addClass(e[s-2],e[s-1]);break;case 37:case 38:case 59:case 67:this.$=[e[s]];break;case 39:case 40:this.$=e[s-2].concat([e[s]]);break;case 41:this.$=e[s-2],r.setClass(e[s-1],e[s]);break;case 42:this.$=e[s-3],r.addCssStyles(e[s-2],e[s-1]);break;case 43:this.$=[e[s]];break;case 44:e[s-2].push(e[s]),this.$=e[s-2];break;case 46:this.$=e[s-1]+e[s];break;case 54:case 79:case 80:this.$=e[s].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=e[s];break;case 60:e[s].push(e[s-1]),this.$=e[s];break;case 61:this.$={type:e[s-1],name:e[s]};break;case 62:this.$={type:e[s-2],name:e[s-1],keys:e[s]};break;case 63:this.$={type:e[s-2],name:e[s-1],comment:e[s]};break;case 64:this.$={type:e[s-3],name:e[s-2],keys:e[s-1],comment:e[s]};break;case 65:case 66:case 69:this.$=e[s];break;case 68:e[s-2].push(e[s]),this.$=e[s-2];break;case 70:this.$=e[s].replace(/"/g,"");break;case 71:this.$={cardA:e[s],relType:e[s-1],cardB:e[s-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:d,24:o,26:h,28:b,29:14,30:15,31:16,32:17,33:R,34:k,35:_,36:w,37:W,40:E,43:ie,44:Q,48:S,50:I,51:V,52:M},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:30,11:9,22:d,24:o,26:h,28:b,29:14,30:15,31:16,32:17,33:R,34:k,35:_,36:w,37:W,40:E,43:ie,44:Q,48:S,50:I,51:V,52:M},t(i,[2,5]),t(i,[2,6]),t(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:re,66:ae,67:ne,68:ce,69:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},t(i,[2,27]),t(i,[2,28]),t(i,[2,29]),t(i,[2,30]),t(i,[2,31]),t(B,[2,54]),t(B,[2,55]),t(B,[2,56]),t(B,[2,57]),t(B,[2,58]),t(i,[2,32]),t(i,[2,33]),t(i,[2,34]),t(i,[2,35]),{16:44,40:T,41:O},{16:47,40:T,41:O},{16:48,40:T,41:O},t(i,[2,4]),{11:49,40:E,48:S,50:I,51:V,52:M},{16:50,40:T,41:O},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:E,48:S,50:I,51:V,52:M},{64:57,70:[1,58],71:[1,59]},t(Y,[2,72]),t(Y,[2,73]),t(Y,[2,74]),t(Y,[2,75]),t(Y,[2,76]),t(i,[2,24]),t(i,[2,25]),t(i,[2,26]),{13:P,38:60,41:z,42:N,45:62,46:63,48:G,49:K},t(X,[2,37]),t(X,[2,38]),{16:68,40:T,41:O,42:N},{13:P,38:69,41:z,42:N,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},t(i,[2,17],{63:35,12:72,17:[1,73],42:N,65:re,66:ae,67:ne,68:ce,69:oe}),{19:[1,74]},t(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:re,66:ae,67:ne,68:ce,69:oe},t(ke,[2,77]),t(ke,[2,78]),{6:ge,10:_e,39:80,42:me,47:Ee},{40:[1,85],41:[1,86]},t(Se,[2,43],{46:87,13:P,41:z,48:G,49:K}),t(D,[2,45]),t(D,[2,50]),t(D,[2,51]),t(D,[2,52]),t(D,[2,53]),t(i,[2,41],{42:N}),{6:ge,10:_e,39:88,42:me,47:Ee},{14:89,40:q,50:H,72:J},{16:93,40:T,41:O},{11:94,40:E,48:S,50:I,51:V,52:M},{18:95,19:[1,96],53:53,54:54,58:F},t(i,[2,12]),{19:[2,60]},t(U,[2,61],{56:97,57:98,59:99,61:Te,62:Oe}),t([19,58,61,62],[2,66]),t(i,[2,22],{15:[1,103],17:[1,102]}),t([40,48,50,51,52],[2,71]),t(i,[2,36]),{13:P,41:z,45:104,46:63,48:G,49:K},t(i,[2,47]),t(i,[2,48]),t(i,[2,49]),t(X,[2,39]),t(X,[2,40]),t(D,[2,46]),t(i,[2,42]),t(i,[2,8]),t(i,[2,79]),t(i,[2,80]),t(i,[2,81]),{13:[1,105],42:N},{13:[1,107],15:[1,106]},{19:[1,108]},t(i,[2,15]),t(U,[2,62],{57:109,60:[1,110],62:Oe}),t(U,[2,63]),t(le,[2,67]),t(U,[2,70]),t(le,[2,69]),{18:111,19:[1,112],53:53,54:54,58:F},{16:113,40:T,41:O},t(Se,[2,44],{46:87,13:P,41:z,48:G,49:K}),{14:114,40:q,50:H,72:J},{16:115,40:T,41:O},{14:116,40:q,50:H,72:J},t(i,[2,13]),t(U,[2,64]),{59:117,61:Te},{19:[1,118]},t(i,[2,20]),t(i,[2,23],{17:[1,119],42:N}),t(i,[2,11]),{13:[1,120],42:N},t(i,[2,10]),t(le,[2,68]),t(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:F},{14:123,40:q,50:H,72:J},{19:[1,124]},t(i,[2,21]),t(i,[2,9]),t(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:l(function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},"parseError"),parse:l(function(a){var n=this,c=[0],r=[],u=[null],e=[],Z=this.table,s="",ee=0,Ne=0,Ae=0,qe=2,Re=1,He=e.slice.call(arguments,1),p=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);p.setInput(a,x.yy),x.yy.lexer=p,x.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var de=p.yylloc;e.push(de);var Je=p.options&&p.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $e(y){c.length=c.length-2*y,u.length=u.length-y,e.length=e.length-y}l($e,"popStack");function Ie(){var y;return y=r.pop()||p.lex()||Re,typeof y!="number"&&(y instanceof Array&&(r=y,y=r.pop()),y=n.symbols_[y]||y),y}l(Ie,"lex");for(var f,be,C,g,nt,pe,L={},te,m,xe,se;;){if(C=c[c.length-1],this.defaultActions[C]?g=this.defaultActions[C]:((f===null||typeof f>"u")&&(f=Ie()),g=Z[C]&&Z[C][f]),typeof g>"u"||!g.length||!g[0]){var fe="";se=[];for(te in Z[C])this.terminals_[te]&&te>qe&&se.push("'"+this.terminals_[te]+"'");p.showPosition?fe="Parse error on line "+(ee+1)+`: `+p.showPosition()+` Expecting `+se.join(", ")+", got '"+(this.terminals_[f]||f)+"'":fe="Parse error on line "+(ee+1)+": Unexpected "+(f==Re?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(fe,{text:p.match,token:this.terminals_[f]||f,line:p.yylineno,loc:de,expected:se})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+f);switch(g[0]){case 1:c.push(f),u.push(p.yytext),e.push(p.yylloc),c.push(g[1]),f=null,be?(f=be,be=null):(Ne=p.yyleng,s=p.yytext,ee=p.yylineno,de=p.yylloc,Ae>0&&Ae--);break;case 2:if(m=this.productions_[g[1]][1],L.$=u[u.length-m],L._$={first_line:e[e.length-(m||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(m||1)].first_column,last_column:e[e.length-1].last_column},Je&&(L._$.range=[e[e.length-(m||1)].range[0],e[e.length-1].range[1]]),pe=this.performAction.apply(L,[s,Ne,ee,x.yy,g[1],u,e].concat(He)),typeof pe<"u")return pe;m&&(c=c.slice(0,-1*m*2),u=u.slice(0,-1*m),e=e.slice(0,-1*m)),c.push(this.productions_[g[1]][0]),u.push(L.$),e.push(L._$),xe=Z[c[c.length-2]][c[c.length-1]],c.push(xe);break;case 3:return!0}}return!0},"parse")},Xe=(function(){var A={EOF:1,parseError:l(function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},"parseError"),setInput:l(function(a,n){return this.yy=n||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var n=a.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:l(function(a){var n=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===r.length?this.yylloc.first_column:0)+r[r.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-QMDHABEH.js b/src/google/adk/cli/browser/chunk-QMDHABEH.js index 7dbba58b45..38d453132e 100644 --- a/src/google/adk/cli/browser/chunk-QMDHABEH.js +++ b/src/google/adk/cli/browser/chunk-QMDHABEH.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as gt}from"./chunk-B2DSW4QB.js";import{a as dt,b as ft,c as pt,f as Z}from"./chunk-NMKTPNXE.js";import"./chunk-GP6TCC26.js";import{N as st,R as at,S as lt,T as ot,U as ct,V as ht,W as ut,X as yt,Y as F}from"./chunk-QFMJV7VH.js";import{K as U,a as W,g as n}from"./chunk-JRNAXTJ7.js";import"./chunk-RMXJBC7V.js";var K=(function(){var t=n(function(h,r,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],c=[1,10],i=[1,11],f=[1,12],u=[1,13],d=[1,14],g={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n(function(r,a,l,y,p,o,v){var k=o.length-1;switch(p){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:y.addTask(o[k-1],o[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:c,14:i,16:f,17:u,18:d},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:c,14:i,16:f,17:u,18:d},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:n(function(r){var a=this,l=[0],y=[],p=[null],o=[],v=this.table,k="",C=0,tt=0,et=0,$t=2,rt=1,Mt=o.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(I.yy[Y]=this.yy[Y]);b.setInput(r,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;o.push(q);var Et=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}n(Ct,"popStack");function it(){var w;return w=y.pop()||b.lex()||rt,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=a.symbols_[w]||w),w}n(it,"lex");for(var _,H,A,T,Jt,X,V={},N,M,nt,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((_===null||typeof _>"u")&&(_=it()),T=v[A]&&v[A][_]),typeof T>"u"||!T.length||!T[0]){var G="";z=[];for(N in v[A])this.terminals_[N]&&N>$t&&z.push("'"+this.terminals_[N]+"'");b.showPosition?G="Parse error on line "+(C+1)+`: `+b.showPosition()+` Expecting `+z.join(", ")+", got '"+(this.terminals_[_]||_)+"'":G="Parse error on line "+(C+1)+": Unexpected "+(_==rt?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(G,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+_);switch(T[0]){case 1:l.push(_),p.push(b.yytext),o.push(b.yylloc),l.push(T[1]),_=null,H?(_=H,H=null):(tt=b.yyleng,k=b.yytext,C=b.yylineno,q=b.yylloc,et>0&&et--);break;case 2:if(M=this.productions_[T[1]][1],V.$=p[p.length-M],V._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},Et&&(V._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),X=this.performAction.apply(V,[k,tt,C,I.yy,T[1],p,o].concat(Mt)),typeof X<"u")return X;M&&(l=l.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),p.push(V.$),o.push(V._$),nt=v[l[l.length-2]][l[l.length-1]],l.push(nt);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:n(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:n(function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n(function(r){var a=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-R6ZR5LUR.js b/src/google/adk/cli/browser/chunk-R6ZR5LUR.js index e3dea3c53d..3451b12461 100644 --- a/src/google/adk/cli/browser/chunk-R6ZR5LUR.js +++ b/src/google/adk/cli/browser/chunk-R6ZR5LUR.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as d,Bb as m,Ca as r,Cb as u,Cc as _,Db as p,Ib as v,Lb as f,Ma as l,Pa as n,Yb as y,Zb as g,eb as s,fc as h,gc as x,hc as C,pd as b,qb as a,sb as c,wc as M}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";function U(e,V){if(e&1&&(m(0,"section"),p(1,"video",1),u()),e&2){let t=f(),i=C(0);y(t.theme.additionalStyles==null?null:t.theme.additionalStyles.Video),g(t.theme.components.Video),n(),v("src",i,l)}}var L=(()=>{class e extends b{url=_.required();resolvedUrl=M(()=>this.resolvePrimitive(this.url()));static \u0275fac=(()=>{let t;return function(o){return(t||(t=r(e)))(o||e)}})();static \u0275cmp=d({type:e,selectors:[["a2ui-video"]],inputs:{url:[1,"url"]},features:[s],decls:2,vars:2,consts:[[3,"class","style"],["controls","",3,"src"]],template:function(i,o){if(i&1&&(h(0),a(1,U,2,5,"section",0)),i&2){let D=x(o.resolvedUrl());n(),c(D?1:-1)}},styles:["[_nghost-%COMP%]{display:block;flex:var(--weight);min-height:0;overflow:auto}video[_ngcontent-%COMP%]{display:block;width:100%;box-sizing:border-box}"]})}return e})();export{L as Video}; diff --git a/src/google/adk/cli/browser/chunk-RCKFX6QR.js b/src/google/adk/cli/browser/chunk-RCKFX6QR.js index 8ca9f21d72..c92d0b159f 100644 --- a/src/google/adk/cli/browser/chunk-RCKFX6QR.js +++ b/src/google/adk/cli/browser/chunk-RCKFX6QR.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as lt}from"./chunk-B2DSW4QB.js";import{h as ot}from"./chunk-NMKTPNXE.js";import{a as ct}from"./chunk-APNCZOFE.js";import{a as ht}from"./chunk-ST54LLJ3.js";import{a as it,b as rt}from"./chunk-ZMOC4H7T.js";import{b as nt,c as ut}from"./chunk-F57TI45K.js";import"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import{f as at}from"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import{m as Qe,p as Je}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{M as q1,R as X1,S as Q1,T as J1,U as Z1,V as $1,W as et,X as tt,Y as de,Z as u1,_ as st,a as K1,b as Y1,g as H1}from"./chunk-QFMJV7VH.js";import{a as Ee,g,i as Z}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import{a as a1,b as n1,j as j1}from"./chunk-RMXJBC7V.js";var mt="flowchart-",Ct=class{constructor(){this.vertexCounter=0,this.config=de(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Q1,this.setAccDescription=Z1,this.setDiagramTitle=et,this.getAccTitle=J1,this.getAccDescription=$1,this.getDiagramTitle=tt,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{g(this,"FlowDB")}sanitizeText(e){return q1.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}lookUpDomId(e){for(let i of this.vertices.values())if(i.id===e)return i.domId;return e}addVertex(e,i,r,a,o,d,l={},k){if(!e||e.trim().length===0)return;let n;if(k!==void 0){let D;k.includes(` `)?D=k+` `:D=`{ diff --git a/src/google/adk/cli/browser/chunk-RMXJBC7V.js b/src/google/adk/cli/browser/chunk-RMXJBC7V.js index ae85e2370c..d9983488e7 100644 --- a/src/google/adk/cli/browser/chunk-RMXJBC7V.js +++ b/src/google/adk/cli/browser/chunk-RMXJBC7V.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + var r=Object.create;var j=Object.defineProperty,s=Object.defineProperties,t=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertyNames,k=Object.getOwnPropertySymbols,w=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var n=(b,a)=>(a=Symbol[b])?a:Symbol.for("Symbol."+b),x=b=>{throw TypeError(b)};var p=(b,a,c)=>a in b?j(b,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[a]=c,z=(b,a)=>{for(var c in a||={})o.call(a,c)&&p(b,c,a[c]);if(k)for(var c of k(a))q.call(a,c)&&p(b,c,a[c]);return b},A=(b,a)=>s(b,u(a));var B=(b,a)=>{var c={};for(var d in b)o.call(b,d)&&a.indexOf(d)<0&&(c[d]=b[d]);if(b!=null&&k)for(var d of k(b))a.indexOf(d)<0&&q.call(b,d)&&(c[d]=b[d]);return c};var C=(b,a)=>()=>(b&&(a=b(b=0)),a);var D=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports),E=(b,a)=>{for(var c in a)j(b,c,{get:a[c],enumerable:!0})},l=(b,a,c,d)=>{if(a&&typeof a=="object"||typeof a=="function")for(let e of v(a))!o.call(b,e)&&e!==c&&j(b,e,{get:()=>a[e],enumerable:!(d=t(a,e))||d.enumerable});return b},F=(b,a,c)=>(l(b,a,"default"),c&&l(c,a,"default")),G=(b,a,c)=>(c=b!=null?r(w(b)):{},l(a||!b||!b.__esModule?j(c,"default",{value:b,enumerable:!0}):c,b)),H=b=>l(j({},"__esModule",{value:!0}),b);var I=(b,a,c)=>new Promise((d,e)=>{var f=g=>{try{i(c.next(g))}catch(m){e(m)}},h=g=>{try{i(c.throw(g))}catch(m){e(m)}},i=g=>g.done?d(g.value):Promise.resolve(g.value).then(f,h);i((c=c.apply(b,a)).next())}),y=function(b,a){this[0]=b,this[1]=a};var J=b=>{var a=b[n("asyncIterator")],c=!1,d,e={};return a==null?(a=b[n("iterator")](),d=f=>e[f]=h=>a[f](h)):(a=a.call(b),d=f=>e[f]=h=>{if(c){if(c=!1,f==="throw")throw h;return h}return c=!0,{done:!1,value:new y(new Promise(i=>{var g=a[f](h);g instanceof Object||x("Object expected"),i(g)}),1)}}),e[n("iterator")]=()=>e,d("next"),"throw"in a?d("throw"):e.throw=f=>{throw f},"return"in a&&d("return"),e};export{z as a,A as b,B as c,C as d,D as e,E as f,F as g,G as h,H as i,I as j,J as k}; diff --git a/src/google/adk/cli/browser/chunk-S22PTQH2.js b/src/google/adk/cli/browser/chunk-S22PTQH2.js index 3bea5f3ccf..1595aeda95 100644 --- a/src/google/adk/cli/browser/chunk-S22PTQH2.js +++ b/src/google/adk/cli/browser/chunk-S22PTQH2.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as st}from"./chunk-APNCZOFE.js";import{a as it}from"./chunk-ST54LLJ3.js";import{b as et,c as tt}from"./chunk-F57TI45K.js";import"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import{m as Ze}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{R as Ke,S as We,T as je,U as Ge,V as ze,W as Xe,X as Je,Y as ge}from"./chunk-QFMJV7VH.js";import{g as o,h as He,i as ke}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import{j as Qe}from"./chunk-RMXJBC7V.js";var Ae=(function(){var e=o(function(P,i,a,c){for(a=a||{},c=P.length;c--;a[P[c]]=i);return a},"o"),f=[1,3],h=[1,4],r=[1,5],n=[1,6],d=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],k=[1,22],b=[2,7],g=[1,26],S=[1,27],N=[1,28],q=[1,29],A=[1,33],C=[1,34],V=[1,35],v=[1,36],x=[1,37],L=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],E=[1,39],p=[1,40],m=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],$=[1,61],X=[89,90],Ce=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],de=[27,29],Ve=[1,70],ve=[1,71],xe=[1,72],Le=[1,73],we=[1,74],De=[1,75],Oe=[1,76],Z=[1,83],U=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],re=[1,88],ne=[1,89],ae=[1,90],le=[1,91],ce=[1,92],Ee=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],I=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],oe=[1,116],he=[1,117],ue=[1,114],fe=[1,115],_e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:o(function(i,a,c,s,u,t,me){var l=t.length-1;switch(u){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:f,9:h,11:r,13:n},{1:[3]},{3:8,4:2,5:[1,7],6:f,9:h,11:r,13:n},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:f,9:h,11:r,13:n},{1:[2,2]},{4:17,5:k,7:13,8:b,9:h,11:r,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:S,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:E,90:p},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:k,7:42,8:b,9:h,11:r,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:S,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:E,90:p},{4:17,5:k,7:43,8:b,9:h,11:r,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:S,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:E,90:p},{4:17,5:k,7:44,8:b,9:h,11:r,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:S,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:E,90:p},{4:17,5:k,7:45,8:b,9:h,11:r,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:S,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:E,90:p},{4:17,5:k,7:46,8:b,9:h,11:r,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:S,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:E,90:p},{4:17,5:k,7:47,8:b,9:h,11:r,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:S,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:E,90:p},{4:17,5:k,7:48,8:b,9:h,11:r,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:S,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:E,90:p},{4:17,5:k,7:49,8:b,9:h,11:r,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:S,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:E,90:p},{4:17,5:k,7:50,8:b,9:h,11:r,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:S,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:E,90:p},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(m,[2,17]),e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),{30:60,33:62,75:$,89:E,90:p},{30:63,33:62,75:$,89:E,90:p},{30:64,33:62,75:$,89:E,90:p},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ce,[2,81]),e(Ce,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(de,[2,79]),e(de,[2,80]),{27:[1,67],29:[1,68]},e(de,[2,85]),e(de,[2,86]),{62:69,65:Ve,66:ve,67:xe,68:Le,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:xe,68:Le,69:we,70:De,71:Oe},{30:78,33:62,75:$,89:E,90:p},{73:79,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},{30:94,33:62,75:$,76:U,89:E,90:p},{5:[1,95]},{30:96,33:62,75:$,89:E,90:p},{5:[1,97]},{30:98,33:62,75:$,89:E,90:p},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(m,[2,59],{76:U}),e(m,[2,64],{76:Me}),{33:103,75:[1,102],89:E,90:p},e(Fe,[2,65],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),e(I,[2,67]),e(I,[2,69]),e(I,[2,70]),e(I,[2,71]),e(I,[2,72]),e(I,[2,73]),e(I,[2,74]),e(I,[2,75]),e(I,[2,76]),e(I,[2,77]),e(I,[2,78]),e(m,[2,57],{76:Me}),e(m,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:oe,40:he,56:113,57:ue,59:fe},{27:[1,118],76:U},{33:119,89:E,90:p},{33:120,89:E,90:p},{75:Z,78:121,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(I,[2,68]),e(m,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(m,[2,28]),{5:[1,127]},e(m,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:fe},e(m,[2,47]),{5:[1,131]},e(m,[2,48]),e(m,[2,49]),e(Fe,[2,66],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),{33:132,89:E,90:p},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(m,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(m,[2,46]),{5:oe,40:he,56:152,57:ue,59:fe},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(m,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(m,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:oe,40:he,56:163,57:ue,59:fe},{5:oe,40:he,56:164,57:ue,59:fe},e(m,[2,23]),e(m,[2,24]),e(m,[2,25]),e(m,[2,26]),e(m,[2,44]),e(m,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:o(function(i,a){if(a.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=a,c}},"parseError"),parse:o(function(i){var a=this,c=[0],s=[],u=[null],t=[],me=this.table,l="",be=0,Pe=0,$e=0,at=2,Ue=1,lt=t.slice.call(arguments,1),R=Object.create(this.lexer),G={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(G.yy[Se]=this.yy[Se]);R.setInput(i,G.yy),G.yy.lexer=R,G.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var Ie=R.yylloc;t.push(Ie);var ct=R.options&&R.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ot(_){c.length=c.length-2*_,u.length=u.length-_,t.length=t.length-_}o(ot,"popStack");function Ye(){var _;return _=s.pop()||R.lex()||Ue,typeof _!="number"&&(_ instanceof Array&&(s=_,_=s.pop()),_=a.symbols_[_]||_),_}o(Ye,"lex");for(var y,Te,z,T,Et,Ne,J={},Re,F,Be,ye;;){if(z=c[c.length-1],this.defaultActions[z]?T=this.defaultActions[z]:((y===null||typeof y>"u")&&(y=Ye()),T=me[z]&&me[z][y]),typeof T>"u"||!T.length||!T[0]){var qe="";ye=[];for(Re in me[z])this.terminals_[Re]&&Re>at&&ye.push("'"+this.terminals_[Re]+"'");R.showPosition?qe="Parse error on line "+(be+1)+`: `+R.showPosition()+` Expecting `+ye.join(", ")+", got '"+(this.terminals_[y]||y)+"'":qe="Parse error on line "+(be+1)+": Unexpected "+(y==Ue?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(qe,{text:R.match,token:this.terminals_[y]||y,line:R.yylineno,loc:Ie,expected:ye})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+y);switch(T[0]){case 1:c.push(y),u.push(R.yytext),t.push(R.yylloc),c.push(T[1]),y=null,Te?(y=Te,Te=null):(Pe=R.yyleng,l=R.yytext,be=R.yylineno,Ie=R.yylloc,$e>0&&$e--);break;case 2:if(F=this.productions_[T[1]][1],J.$=u[u.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},ct&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Ne=this.performAction.apply(J,[l,Pe,be,G.yy,T[1],u,t].concat(lt)),typeof Ne<"u")return Ne;F&&(c=c.slice(0,-1*F*2),u=u.slice(0,-1*F),t=t.slice(0,-1*F)),c.push(this.productions_[T[1]][0]),u.push(J.$),t.push(J._$),Be=me[c[c.length-2]][c[c.length-1]],c.push(Be);break;case 3:return!0}}return!0},"parse")},nt=(function(){var P={EOF:1,parseError:o(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:o(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===s.length?this.yylloc.first_column:0)+s[s.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-SMT27N2F.js b/src/google/adk/cli/browser/chunk-SMT27N2F.js index 8fcc01c426..6d898094cd 100644 --- a/src/google/adk/cli/browser/chunk-SMT27N2F.js +++ b/src/google/adk/cli/browser/chunk-SMT27N2F.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as e,b as r}from"./chunk-NQKWI5EB.js";import"./chunk-NALL4A3P.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";export{e as PacketModule,r as createPacketServices}; diff --git a/src/google/adk/cli/browser/chunk-ST54LLJ3.js b/src/google/adk/cli/browser/chunk-ST54LLJ3.js index 2a0315718b..e795f09024 100644 --- a/src/google/adk/cli/browser/chunk-ST54LLJ3.js +++ b/src/google/adk/cli/browser/chunk-ST54LLJ3.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{N as w}from"./chunk-QFMJV7VH.js";import{g as r,i as c}from"./chunk-JRNAXTJ7.js";var g=r((t,e,i,h)=>{t.attr("class",i);let{width:o,height:n,x,y:u}=s(t,e);w(t,n,o,h);let a=m(x,u,o,n,e);t.attr("viewBox",a),c.debug(`viewBox configured: ${a} with padding: ${e}`)},"setupViewPortForSVG"),s=r((t,e)=>{let i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+e*2,height:i.height+e*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),m=r((t,e,i,h,o)=>`${t-o} ${e-o} ${i} ${h}`,"createViewBox");export{g as a}; diff --git a/src/google/adk/cli/browser/chunk-SXB5AC5V.js b/src/google/adk/cli/browser/chunk-SXB5AC5V.js index 8514b7fc0f..553f4bd056 100644 --- a/src/google/adk/cli/browser/chunk-SXB5AC5V.js +++ b/src/google/adk/cli/browser/chunk-SXB5AC5V.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as p,$b as b,Bb as l,Ca as m,Cb as r,Cc as c,Ib as d,Kb as h,Pa as o,Yb as v,Zb as a,_b as g,eb as u,pd as f,wc as s}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";var E=(()=>{class i extends f{value=c.required();label=c.required();inputChecked=s(()=>super.resolvePrimitive(this.value())??!1);resolvedLabel=s(()=>super.resolvePrimitive(this.label()));inputId=super.getUniqueId("a2ui-checkbox");handleChange(t){let n=this.value()?.path;!(t.target instanceof HTMLInputElement)||!n||this.processor.setData(this.component(),n,t.target.checked,this.surfaceId())}static \u0275fac=(()=>{let t;return function(e){return(t||(t=m(i)))(e||i)}})();static \u0275cmp=p({type:i,selectors:[["a2ui-checkbox"]],inputs:{value:[1,"value"],label:[1,"label"]},features:[u],decls:4,vars:12,consts:[["autocomplete","off","type","checkbox",3,"change","id","checked"],[3,"htmlFor"]],template:function(n,e){n&1&&(l(0,"section")(1,"input",0),h("change",function(k){return e.handleChange(k)}),r(),l(2,"label",1),g(3),r()()),n&2&&(v(e.theme.additionalStyles==null?null:e.theme.additionalStyles.CheckBox),a(e.theme.components.CheckBox.container),o(),a(e.theme.components.CheckBox.element),d("id",e.inputId)("checked",e.inputChecked()),o(),a(e.theme.components.CheckBox.label),d("htmlFor",e.inputId),o(),b(e.resolvedLabel()))},styles:["[_nghost-%COMP%]{display:block;flex:var(--weight);min-height:0;overflow:auto}input[_ngcontent-%COMP%]{display:block;width:100%}"]})}return i})();export{E as Checkbox}; diff --git a/src/google/adk/cli/browser/chunk-T2UY75BD.js b/src/google/adk/cli/browser/chunk-T2UY75BD.js index 63a477b5e3..0895206cd4 100644 --- a/src/google/adk/cli/browser/chunk-T2UY75BD.js +++ b/src/google/adk/cli/browser/chunk-T2UY75BD.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as tr}from"./chunk-4R6SYGKS.js";import{a as $e,b as je,d as Mt,e as Bt,f as lt,g as Vt}from"./chunk-NMKTPNXE.js";import{a as Je,b as Qe}from"./chunk-ZMOC4H7T.js";import{a as Ze,k as te,m as F}from"./chunk-WBLSVR3V.js";import{a as Ir}from"./chunk-GP6TCC26.js";import{A as Ct,G as Nt,H as We,J as U,K as Rt,L as $t,M as S,N as Ke,R as Fe,S as jt,T as qe,U as He,V as ze,W as Ue,X as Ge,Y as j,Z as Xe,o as Ye}from"./chunk-QFMJV7VH.js";import{a as mt,g as _,i as Q}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import{a as Be,b as Ve,h as xr,j as $}from"./chunk-RMXJBC7V.js";var ae=xr(Ir(),1);var ee=(function(){var e=_(function(Et,y,N,m){for(N=N||{},m=Et.length;m--;N[Et[m]]=y);return N},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],n=[1,9],c=[1,11],l=[1,12],h=[1,14],s=[1,15],E=[1,17],p=[1,18],f=[1,19],u=[1,25],O=[1,26],b=[1,27],L=[1,28],w=[1,29],A=[1,30],k=[1,31],D=[1,32],M=[1,33],W=[1,34],K=[1,35],H=[1,36],G=[1,37],X=[1,38],z=[1,39],v=[1,40],tt=[1,42],Z=[1,43],et=[1,44],st=[1,45],at=[1,46],R=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],ot=[1,74],ct=[1,80],C=[1,81],ie=[1,82],ne=[1,83],oe=[1,84],ce=[1,85],le=[1,86],he=[1,87],de=[1,88],Te=[1,89],Ee=[1,90],pe=[1,91],ue=[1,92],_e=[1,93],fe=[1,94],ge=[1,95],xe=[1,96],Ie=[1,97],be=[1,98],Re=[1,99],Oe=[1,100],ye=[1,101],Le=[1,102],Se=[1,103],me=[1,104],Ne=[1,105],Ae=[2,78],Lt=[4,5,17,51,53,54],wt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],we=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Ht=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Pe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],zt=[5,52],B=[70,71,72,73],it=[1,151],Ut={trace:_(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:_(function(y,N,m,g,V,o,St){var T=o.length-1;switch(V){case 3:return g.apply(o[T]),o[T];break;case 4:case 10:this.$=[];break;case 5:case 11:o[T-1].push(o[T]),this.$=o[T-1];break;case 6:case 7:case 12:case 13:this.$=o[T];break;case 8:case 9:case 14:this.$=[];break;case 16:o[T].type="createParticipant",this.$=o[T];break;case 17:o[T-1].unshift({type:"boxStart",boxData:g.parseBoxData(o[T-2])}),o[T-1].push({type:"boxEnd",boxText:o[T-2]}),this.$=o[T-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[T-2]),sequenceIndexStep:Number(o[T-1]),sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[T-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:g.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:o[T-1].actor};break;case 24:this.$={type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:o[T-1].actor};break;case 30:g.setDiagramTitle(o[T].substring(6)),this.$=o[T].substring(6);break;case 31:g.setDiagramTitle(o[T].substring(7)),this.$=o[T].substring(7);break;case 32:this.$=o[T].trim(),g.setAccTitle(this.$);break;case 33:case 34:this.$=o[T].trim(),g.setAccDescription(this.$);break;case 35:o[T-1].unshift({type:"loopStart",loopText:g.parseMessage(o[T-2]),signalType:g.LINETYPE.LOOP_START}),o[T-1].push({type:"loopEnd",loopText:o[T-2],signalType:g.LINETYPE.LOOP_END}),this.$=o[T-1];break;case 36:o[T-1].unshift({type:"rectStart",color:g.parseMessage(o[T-2]),signalType:g.LINETYPE.RECT_START}),o[T-1].push({type:"rectEnd",color:g.parseMessage(o[T-2]),signalType:g.LINETYPE.RECT_END}),this.$=o[T-1];break;case 37:o[T-1].unshift({type:"optStart",optText:g.parseMessage(o[T-2]),signalType:g.LINETYPE.OPT_START}),o[T-1].push({type:"optEnd",optText:g.parseMessage(o[T-2]),signalType:g.LINETYPE.OPT_END}),this.$=o[T-1];break;case 38:o[T-1].unshift({type:"altStart",altText:g.parseMessage(o[T-2]),signalType:g.LINETYPE.ALT_START}),o[T-1].push({type:"altEnd",signalType:g.LINETYPE.ALT_END}),this.$=o[T-1];break;case 39:o[T-1].unshift({type:"parStart",parText:g.parseMessage(o[T-2]),signalType:g.LINETYPE.PAR_START}),o[T-1].push({type:"parEnd",signalType:g.LINETYPE.PAR_END}),this.$=o[T-1];break;case 40:o[T-1].unshift({type:"parStart",parText:g.parseMessage(o[T-2]),signalType:g.LINETYPE.PAR_OVER_START}),o[T-1].push({type:"parEnd",signalType:g.LINETYPE.PAR_END}),this.$=o[T-1];break;case 41:o[T-1].unshift({type:"criticalStart",criticalText:g.parseMessage(o[T-2]),signalType:g.LINETYPE.CRITICAL_START}),o[T-1].push({type:"criticalEnd",signalType:g.LINETYPE.CRITICAL_END}),this.$=o[T-1];break;case 42:o[T-1].unshift({type:"breakStart",breakText:g.parseMessage(o[T-2]),signalType:g.LINETYPE.BREAK_START}),o[T-1].push({type:"breakEnd",optText:g.parseMessage(o[T-2]),signalType:g.LINETYPE.BREAK_END}),this.$=o[T-1];break;case 44:this.$=o[T-3].concat([{type:"option",optionText:g.parseMessage(o[T-1]),signalType:g.LINETYPE.CRITICAL_OPTION},o[T]]);break;case 46:this.$=o[T-3].concat([{type:"and",parText:g.parseMessage(o[T-1]),signalType:g.LINETYPE.PAR_AND},o[T]]);break;case 48:this.$=o[T-3].concat([{type:"else",altText:g.parseMessage(o[T-1]),signalType:g.LINETYPE.ALT_ELSE},o[T]]);break;case 49:o[T-3].draw="participant",o[T-3].type="addParticipant",o[T-3].description=g.parseMessage(o[T-1]),this.$=o[T-3];break;case 50:o[T-1].draw="participant",o[T-1].type="addParticipant",this.$=o[T-1];break;case 51:o[T-3].draw="actor",o[T-3].type="addParticipant",o[T-3].description=g.parseMessage(o[T-1]),this.$=o[T-3];break;case 52:case 57:o[T-1].draw="actor",o[T-1].type="addParticipant",this.$=o[T-1];break;case 53:o[T-1].type="destroyParticipant",this.$=o[T-1];break;case 54:o[T-3].draw="participant",o[T-3].type="addParticipant",o[T-3].description=g.parseMessage(o[T-1]),this.$=o[T-3];break;case 55:o[T-1].draw="participant",o[T-1].type="addParticipant",this.$=o[T-1];break;case 56:o[T-3].draw="actor",o[T-3].type="addParticipant",o[T-3].description=g.parseMessage(o[T-1]),this.$=o[T-3];break;case 58:this.$=[o[T-1],{type:"addNote",placement:o[T-2],actor:o[T-1].actor,text:o[T]}];break;case 59:o[T-2]=[].concat(o[T-1],o[T-1]).slice(0,2),o[T-2][0]=o[T-2][0].actor,o[T-2][1]=o[T-2][1].actor,this.$=[o[T-1],{type:"addNote",placement:g.PLACEMENT.OVER,actor:o[T-2].slice(0,2),text:o[T]}];break;case 60:this.$=[o[T-1],{type:"addLinks",actor:o[T-1].actor,text:o[T]}];break;case 61:this.$=[o[T-1],{type:"addALink",actor:o[T-1].actor,text:o[T]}];break;case 62:this.$=[o[T-1],{type:"addProperties",actor:o[T-1].actor,text:o[T]}];break;case 63:this.$=[o[T-1],{type:"addDetails",actor:o[T-1].actor,text:o[T]}];break;case 66:this.$=[o[T-2],o[T]];break;case 67:this.$=o[T];break;case 68:this.$=g.PLACEMENT.LEFTOF;break;case 69:this.$=g.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[T-4],o[T-1],{type:"addMessage",from:o[T-4].actor,to:o[T-1].actor,signalType:o[T-3],msg:o[T],activate:!0},{type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:o[T-1].actor}];break;case 71:this.$=[o[T-4],o[T-1],{type:"addMessage",from:o[T-4].actor,to:o[T-1].actor,signalType:o[T-3],msg:o[T]},{type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:o[T-4].actor}];break;case 72:this.$=[o[T-4],o[T-1],{type:"addMessage",from:o[T-4].actor,to:o[T-1].actor,signalType:o[T-3],msg:o[T],activate:!0,centralConnection:g.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:g.LINETYPE.CENTRAL_CONNECTION,actor:o[T-1].actor}];break;case 73:this.$=[o[T-4],o[T-1],{type:"addMessage",from:o[T-4].actor,to:o[T-1].actor,signalType:o[T-2],msg:o[T],activate:!1,centralConnection:g.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:g.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[T-4].actor}];break;case 74:this.$=[o[T-5],o[T-1],{type:"addMessage",from:o[T-5].actor,to:o[T-1].actor,signalType:o[T-3],msg:o[T],activate:!0,centralConnection:g.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:g.LINETYPE.CENTRAL_CONNECTION,actor:o[T-1].actor},{type:"centralConnectionReverse",signalType:g.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[T-5].actor}];break;case 75:this.$=[o[T-3],o[T-1],{type:"addMessage",from:o[T-3].actor,to:o[T-1].actor,signalType:o[T-2],msg:o[T]}];break;case 76:this.$={type:"addParticipant",actor:o[T-1],config:o[T]};break;case 77:this.$=o[T-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[T]};break;case 79:this.$=g.LINETYPE.SOLID_OPEN;break;case 80:this.$=g.LINETYPE.DOTTED_OPEN;break;case 81:this.$=g.LINETYPE.SOLID;break;case 82:this.$=g.LINETYPE.SOLID_TOP;break;case 83:this.$=g.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=g.LINETYPE.STICK_TOP;break;case 85:this.$=g.LINETYPE.STICK_BOTTOM;break;case 86:this.$=g.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=g.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=g.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=g.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=g.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=g.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=g.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=g.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=g.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=g.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=g.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=g.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=g.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=g.LINETYPE.DOTTED;break;case 100:this.$=g.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=g.LINETYPE.SOLID_CROSS;break;case 102:this.$=g.LINETYPE.DOTTED_CROSS;break;case 103:this.$=g.LINETYPE.SOLID_POINT;break;case 104:this.$=g.LINETYPE.DOTTED_POINT;break;case 105:this.$=g.parseMessage(o[T].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:c,8:8,9:10,10:l,13:13,14:h,15:s,18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:O,32:b,34:L,36:w,37:A,38:k,39:D,40:M,42:W,44:K,45:H,47:G,51:X,53:z,54:v,56:tt,61:Z,62:et,63:st,64:at,73:R},e(I,[2,5]),{9:48,13:13,14:h,15:s,18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:O,32:b,34:L,36:w,37:A,38:k,39:D,40:M,42:W,44:K,45:H,47:G,51:X,53:z,54:v,56:tt,61:Z,62:et,63:st,64:at,73:R},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(I,[2,15]),{13:49,51:X,53:z,54:v},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:R},{23:56,73:R},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(I,[2,30]),e(I,[2,31]),{33:[1,62]},{35:[1,63]},e(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:ot},{23:75,55:76,73:ot},{23:77,73:R},{69:78,72:[1,79],78:ct,79:C,80:ie,81:ne,82:oe,83:ce,84:le,85:he,86:de,87:Te,88:Ee,89:pe,90:ue,91:_e,92:fe,93:ge,94:xe,95:Ie,96:be,97:Re,98:Oe,99:ye,100:Le,101:Se,102:me,103:Ne},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:R},{23:111,73:R},{23:112,73:R},{23:113,73:R},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Ae),e(I,[2,6]),e(I,[2,16]),e(Lt,[2,10],{11:114}),e(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(I,[2,22]),{5:[1,118]},{5:[1,119]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(wt,i,{7:120}),e(wt,i,{7:121}),e(wt,i,{7:122}),e(we,i,{41:123,7:124}),e(Ht,i,{43:125,7:126}),e(Ht,i,{7:126,43:127}),e(Pe,i,{46:128,7:129}),e(wt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(zt,Ae,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:R},{69:146,78:ct,79:C,80:ie,81:ne,82:oe,83:ce,84:le,85:he,86:de,87:Te,88:Ee,89:pe,90:ue,91:_e,92:fe,93:ge,94:xe,95:Ie,96:be,97:Re,98:Oe,99:ye,100:Le,101:Se,102:me,103:Ne},e(B,[2,79]),e(B,[2,80]),e(B,[2,81]),e(B,[2,82]),e(B,[2,83]),e(B,[2,84]),e(B,[2,85]),e(B,[2,86]),e(B,[2,87]),e(B,[2,88]),e(B,[2,89]),e(B,[2,90]),e(B,[2,91]),e(B,[2,92]),e(B,[2,93]),e(B,[2,94]),e(B,[2,95]),e(B,[2,96]),e(B,[2,97]),e(B,[2,98]),e(B,[2,99]),e(B,[2,100]),e(B,[2,101]),e(B,[2,102]),e(B,[2,103]),e(B,[2,104]),{23:147,73:R},{23:149,60:148,73:R},{73:[2,68]},{73:[2,69]},{58:150,104:it},{58:152,104:it},{58:153,104:it},{58:154,104:it},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:X,53:z,54:v},{5:[1,160]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(I,[2,24]),{4:n,5:c,8:8,9:10,10:l,13:13,14:h,15:s,17:[1,161],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:O,32:b,34:L,36:w,37:A,38:k,39:D,40:M,42:W,44:K,45:H,47:G,51:X,53:z,54:v,56:tt,61:Z,62:et,63:st,64:at,73:R},{4:n,5:c,8:8,9:10,10:l,13:13,14:h,15:s,17:[1,162],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:O,32:b,34:L,36:w,37:A,38:k,39:D,40:M,42:W,44:K,45:H,47:G,51:X,53:z,54:v,56:tt,61:Z,62:et,63:st,64:at,73:R},{4:n,5:c,8:8,9:10,10:l,13:13,14:h,15:s,17:[1,163],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:O,32:b,34:L,36:w,37:A,38:k,39:D,40:M,42:W,44:K,45:H,47:G,51:X,53:z,54:v,56:tt,61:Z,62:et,63:st,64:at,73:R},{17:[1,164]},{4:n,5:c,8:8,9:10,10:l,13:13,14:h,15:s,17:[2,47],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:O,32:b,34:L,36:w,37:A,38:k,39:D,40:M,42:W,44:K,45:H,47:G,50:[1,165],51:X,53:z,54:v,56:tt,61:Z,62:et,63:st,64:at,73:R},{17:[1,166]},{4:n,5:c,8:8,9:10,10:l,13:13,14:h,15:s,17:[2,45],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:O,32:b,34:L,36:w,37:A,38:k,39:D,40:M,42:W,44:K,45:H,47:G,49:[1,167],51:X,53:z,54:v,56:tt,61:Z,62:et,63:st,64:at,73:R},{17:[1,168]},{17:[1,169]},{4:n,5:c,8:8,9:10,10:l,13:13,14:h,15:s,17:[2,43],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:O,32:b,34:L,36:w,37:A,38:k,39:D,40:M,42:W,44:K,45:H,47:G,48:[1,170],51:X,53:z,54:v,56:tt,61:Z,62:et,63:st,64:at,73:R},{4:n,5:c,8:8,9:10,10:l,13:13,14:h,15:s,17:[1,171],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:O,32:b,34:L,36:w,37:A,38:k,39:D,40:M,42:W,44:K,45:H,47:G,51:X,53:z,54:v,56:tt,61:Z,62:et,63:st,64:at,73:R},{16:[1,172]},e(I,[2,50]),{16:[1,173]},e(I,[2,55]),e(zt,[2,76]),{76:[1,174]},{16:[1,175]},e(I,[2,52]),{16:[1,176]},e(I,[2,57]),e(I,[2,53]),{23:177,73:R},{23:178,73:R},{23:179,73:R},{58:180,104:it},{23:181,72:[1,182],73:R},{58:183,104:it},{58:184,104:it},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(I,[2,17]),e(Lt,[2,11]),{13:186,51:X,53:z,54:v},e(Lt,[2,13]),e(Lt,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,187]},e(I,[2,39]),{16:[1,188]},e(I,[2,40]),e(I,[2,41]),{16:[1,189]},e(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:it},{58:196,104:it},{58:197,104:it},{5:[2,75]},{58:198,104:it},{23:199,73:R},{5:[2,58]},{5:[2,59]},{23:200,73:R},e(Lt,[2,12]),e(we,i,{7:124,41:201}),e(Ht,i,{7:126,43:202}),e(Pe,i,{7:129,46:203}),e(I,[2,49]),e(I,[2,54]),e(zt,[2,77]),e(I,[2,51]),e(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:it},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:_(function(y,N){if(N.recoverable)this.trace(y);else{var m=new Error(y);throw m.hash=N,m}},"parseError"),parse:_(function(y){var N=this,m=[0],g=[],V=[null],o=[],St=this.table,T="",kt=0,ke=0,De=0,ur=2,ve=1,_r=o.slice.call(arguments,1),q=Object.create(this.lexer),_t={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(_t.yy[Gt]=this.yy[Gt]);q.setInput(y,_t.yy),_t.yy.lexer=q,_t.yy.parser=this,typeof q.yylloc>"u"&&(q.yylloc={});var Xt=q.yylloc;o.push(Xt);var fr=q.options&&q.options.ranges;typeof _t.yy.parseError=="function"?this.parseError=_t.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gr(rt){m.length=m.length-2*rt,V.length=V.length-rt,o.length=o.length-rt}_(gr,"popStack");function Ce(){var rt;return rt=g.pop()||q.lex()||ve,typeof rt!="number"&&(rt instanceof Array&&(g=rt,rt=g.pop()),rt=N.symbols_[rt]||rt),rt}_(Ce,"lex");for(var J,Jt,ft,nt,us,Qt,bt={},Dt,dt,Me,vt;;){if(ft=m[m.length-1],this.defaultActions[ft]?nt=this.defaultActions[ft]:((J===null||typeof J>"u")&&(J=Ce()),nt=St[ft]&&St[ft][J]),typeof nt>"u"||!nt.length||!nt[0]){var Zt="";vt=[];for(Dt in St[ft])this.terminals_[Dt]&&Dt>ur&&vt.push("'"+this.terminals_[Dt]+"'");q.showPosition?Zt="Parse error on line "+(kt+1)+`: `+q.showPosition()+` Expecting `+vt.join(", ")+", got '"+(this.terminals_[J]||J)+"'":Zt="Parse error on line "+(kt+1)+": Unexpected "+(J==ve?"end of input":"'"+(this.terminals_[J]||J)+"'"),this.parseError(Zt,{text:q.match,token:this.terminals_[J]||J,line:q.yylineno,loc:Xt,expected:vt})}if(nt[0]instanceof Array&&nt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ft+", token: "+J);switch(nt[0]){case 1:m.push(J),V.push(q.yytext),o.push(q.yylloc),m.push(nt[1]),J=null,Jt?(J=Jt,Jt=null):(ke=q.yyleng,T=q.yytext,kt=q.yylineno,Xt=q.yylloc,De>0&&De--);break;case 2:if(dt=this.productions_[nt[1]][1],bt.$=V[V.length-dt],bt._$={first_line:o[o.length-(dt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(dt||1)].first_column,last_column:o[o.length-1].last_column},fr&&(bt._$.range=[o[o.length-(dt||1)].range[0],o[o.length-1].range[1]]),Qt=this.performAction.apply(bt,[T,ke,kt,_t.yy,nt[1],V,o].concat(_r)),typeof Qt<"u")return Qt;dt&&(m=m.slice(0,-1*dt*2),V=V.slice(0,-1*dt),o=o.slice(0,-1*dt)),m.push(this.productions_[nt[1]][0]),V.push(bt.$),o.push(bt._$),Me=St[m[m.length-2]][m[m.length-1]],m.push(Me);break;case 3:return!0}}return!0},"parse")},pr=(function(){var Et={EOF:1,parseError:_(function(N,m){if(this.yy.parser)this.yy.parser.parseError(N,m);else throw new Error(N)},"parseError"),setInput:_(function(y,N){return this.yy=N||this.yy||{},this._input=y,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:_(function(){var y=this._input[0];this.yytext+=y,this.yyleng++,this.offset++,this.match+=y,this.matched+=y;var N=y.match(/(?:\r\n?|\n).*/g);return N?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),y},"input"),unput:_(function(y){var N=y.length,m=y.split(/(?:\r\n?|\n)/g);this._input=y+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var V=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[V[0],V[0]+this.yyleng-N]),this.yyleng=this.yytext.length,this},"unput"),more:_(function(){return this._more=!0,this},"more"),reject:_(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-T3Q3QCCV.js b/src/google/adk/cli/browser/chunk-T3Q3QCCV.js index 3b26d9edf3..1b64338ab7 100644 --- a/src/google/adk/cli/browser/chunk-T3Q3QCCV.js +++ b/src/google/adk/cli/browser/chunk-T3Q3QCCV.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{f as t}from"./chunk-NALL4A3P.js";import{j as i}from"./chunk-RMXJBC7V.js";var o={},m={info:t(()=>i(null,null,function*(){let{createInfoServices:e}=yield import("./chunk-DIR2LWLP.js"),r=e().Info.parser.LangiumParser;o.info=r}),"info"),packet:t(()=>i(null,null,function*(){let{createPacketServices:e}=yield import("./chunk-SMT27N2F.js"),r=e().Packet.parser.LangiumParser;o.packet=r}),"packet"),pie:t(()=>i(null,null,function*(){let{createPieServices:e}=yield import("./chunk-HDC4PFPG.js"),r=e().Pie.parser.LangiumParser;o.pie=r}),"pie"),architecture:t(()=>i(null,null,function*(){let{createArchitectureServices:e}=yield import("./chunk-IHY23QJP.js"),r=e().Architecture.parser.LangiumParser;o.architecture=r}),"architecture"),gitGraph:t(()=>i(null,null,function*(){let{createGitGraphServices:e}=yield import("./chunk-XE4A3JWW.js"),r=e().GitGraph.parser.LangiumParser;o.gitGraph=r}),"gitGraph"),radar:t(()=>i(null,null,function*(){let{createRadarServices:e}=yield import("./chunk-FDH623K7.js"),r=e().Radar.parser.LangiumParser;o.radar=r}),"radar"),treemap:t(()=>i(null,null,function*(){let{createTreemapServices:e}=yield import("./chunk-7UW26RYS.js"),r=e().Treemap.parser.LangiumParser;o.treemap=r}),"treemap")};function p(e,r){return i(this,null,function*(){let c=m[e];if(!c)throw new Error(`Unknown diagram type: ${e}`);o[e]||(yield c());let s=o[e].parse(r);if(s.lexerErrors.length>0||s.parserErrors.length>0)throw new u(s);return s.value})}t(p,"parse");var u=class extends Error{constructor(e){let r=e.lexerErrors.map(a=>{let s=a.line!==void 0&&!isNaN(a.line)?a.line:"?",n=a.column!==void 0&&!isNaN(a.column)?a.column:"?";return`Lexer error on line ${s}, column ${n}: ${a.message}`}).join(` `),c=e.parserErrors.map(a=>{let s=a.token.startLine!==void 0&&!isNaN(a.token.startLine)?a.token.startLine:"?",n=a.token.startColumn!==void 0&&!isNaN(a.token.startColumn)?a.token.startColumn:"?";return`Parse error on line ${s}, column ${n}: ${a.message}`}).join(` `);super(`Parsing failed: ${r} ${c}`),this.result=e}static{t(this,"MermaidParseError")}};export{p as a}; diff --git a/src/google/adk/cli/browser/chunk-TIJO3EOA.js b/src/google/adk/cli/browser/chunk-TIJO3EOA.js index 3e13a70239..f19ee11675 100644 --- a/src/google/adk/cli/browser/chunk-TIJO3EOA.js +++ b/src/google/adk/cli/browser/chunk-TIJO3EOA.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as lt}from"./chunk-B2DSW4QB.js";import{h as ut}from"./chunk-NMKTPNXE.js";import{a as ot}from"./chunk-APNCZOFE.js";import{a as ct}from"./chunk-ST54LLJ3.js";import{b as rt,c as nt}from"./chunk-F57TI45K.js";import{m as pe,p as at}from"./chunk-WBLSVR3V.js";import{G as qe,I as M,M as L,R as Je,S as Ze,T as $e,U as et,V as tt,W as st,X as it,Y as D,g as He}from"./chunk-QFMJV7VH.js";import{a as Z,g as d,i as he}from"./chunk-JRNAXTJ7.js";import{a as We,b as je,j as Xe}from"./chunk-RMXJBC7V.js";var we=(function(){var e=d(function(I,l,o,p){for(o=o||{},p=I.length;p--;o[I[p]]=l);return o},"o"),i=[1,18],n=[1,19],u=[1,20],a=[1,41],c=[1,42],f=[1,26],b=[1,24],F=[1,25],T=[1,32],O=[1,33],Ae=[1,34],k=[1,45],be=[1,35],fe=[1,36],ke=[1,37],ge=[1,38],me=[1,27],Ce=[1,28],Ee=[1,29],ye=[1,30],Te=[1,31],g=[1,44],m=[1,46],C=[1,43],E=[1,47],De=[1,9],h=[1,8,9],$=[1,58],ee=[1,59],te=[1,60],se=[1,61],ie=[1,62],Fe=[1,63],Be=[1,64],v=[1,8,9,41],Ve=[1,76],R=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],ae=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],re=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],Me=[13,60,68,69,70,71,72,86,100,102,103],_e=[1,101],z=[1,118],Y=[1,114],K=[1,110],Q=[1,116],W=[1,111],j=[1,112],X=[1,113],H=[1,115],q=[1,117],Pe=[22,48,60,61,82,86,87,88,89,90],Se=[1,8,9,39,41,44],ne=[1,8,9,22],Re=[1,147],Ge=[1,8,9,61],N=[1,8,9,22,48,60,61,82,86,87,88,89,90],Ne={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:d(function(l,o,p,r,A,t,J){var s=t.length-1;switch(A){case 8:this.$=t[s-1];break;case 9:case 10:case 13:case 15:this.$=t[s];break;case 11:case 14:this.$=t[s-2]+"."+t[s];break;case 12:case 16:this.$=t[s-1]+t[s];break;case 17:case 18:this.$=t[s-1]+"~"+t[s]+"~";break;case 19:r.addRelation(t[s]);break;case 20:t[s-1].title=r.cleanupLabel(t[s]),r.addRelation(t[s-1]);break;case 31:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(t[s-3],t[s-1][0],t[s-1][1]);break;case 35:r.addClassesToNamespace(t[s-4],t[s-1][0],t[s-1][1]);break;case 36:this.$=t[s],r.addNamespace(t[s]);break;case 37:this.$=[[t[s]],[]];break;case 38:this.$=[[t[s-1]],[]];break;case 39:t[s][0].unshift(t[s-2]),this.$=t[s];break;case 40:this.$=[[],[t[s]]];break;case 41:this.$=[[],[t[s-1]]];break;case 42:t[s][1].unshift(t[s-2]),this.$=t[s];break;case 44:r.setCssClass(t[s-2],t[s]);break;case 45:r.addMembers(t[s-3],t[s-1]);break;case 47:r.setCssClass(t[s-5],t[s-3]),r.addMembers(t[s-5],t[s-1]);break;case 48:this.$=t[s],r.addClass(t[s]);break;case 49:this.$=t[s-1],r.addClass(t[s-1]),r.setClassLabel(t[s-1],t[s]);break;case 53:r.addAnnotation(t[s],t[s-2]);break;case 54:case 67:this.$=[t[s]];break;case 55:t[s].push(t[s-1]),this.$=t[s];break;case 56:break;case 57:r.addMember(t[s-1],r.cleanupLabel(t[s]));break;case 58:break;case 59:break;case 60:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 61:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 62:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 63:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 64:this.$=r.addNote(t[s],t[s-1]);break;case 65:this.$=r.addNote(t[s]);break;case 66:this.$=t[s-2],r.defineClass(t[s-1],t[s]);break;case 68:this.$=t[s-2].concat([t[s]]);break;case 69:r.setDirection("TB");break;case 70:r.setDirection("BT");break;case 71:r.setDirection("RL");break;case 72:r.setDirection("LR");break;case 73:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 74:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 75:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 76:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 77:this.$=r.relationType.AGGREGATION;break;case 78:this.$=r.relationType.EXTENSION;break;case 79:this.$=r.relationType.COMPOSITION;break;case 80:this.$=r.relationType.DEPENDENCY;break;case 81:this.$=r.relationType.LOLLIPOP;break;case 82:this.$=r.lineType.LINE;break;case 83:this.$=r.lineType.DOTTED_LINE;break;case 84:case 90:this.$=t[s-2],r.setClickEvent(t[s-1],t[s]);break;case 85:case 91:this.$=t[s-3],r.setClickEvent(t[s-2],t[s-1]),r.setTooltip(t[s-2],t[s]);break;case 86:this.$=t[s-2],r.setLink(t[s-1],t[s]);break;case 87:this.$=t[s-3],r.setLink(t[s-2],t[s-1],t[s]);break;case 88:this.$=t[s-3],r.setLink(t[s-2],t[s-1]),r.setTooltip(t[s-2],t[s]);break;case 89:this.$=t[s-4],r.setLink(t[s-3],t[s-2],t[s]),r.setTooltip(t[s-3],t[s-1]);break;case 92:this.$=t[s-3],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 93:this.$=t[s-4],r.setClickEvent(t[s-3],t[s-2],t[s-1]),r.setTooltip(t[s-3],t[s]);break;case 94:this.$=t[s-3],r.setLink(t[s-2],t[s]);break;case 95:this.$=t[s-4],r.setLink(t[s-3],t[s-1],t[s]);break;case 96:this.$=t[s-4],r.setLink(t[s-3],t[s-1]),r.setTooltip(t[s-3],t[s]);break;case 97:this.$=t[s-5],r.setLink(t[s-4],t[s-2],t[s]),r.setTooltip(t[s-4],t[s-1]);break;case 98:this.$=t[s-2],r.setCssStyle(t[s-1],t[s]);break;case 99:r.setCssClass(t[s-1],t[s]);break;case 100:this.$=[t[s]];break;case 101:t[s-2].push(t[s]),this.$=t[s-2];break;case 103:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:u,38:22,42:a,43:23,46:c,49:f,51:b,52:F,54:T,56:O,57:Ae,60:k,62:be,63:fe,64:ke,65:ge,75:me,76:Ce,78:Ee,82:ye,83:Te,86:g,100:m,102:C,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(De,[2,5],{8:[1,48]}),{8:[1,49]},e(h,[2,19],{22:[1,50]}),e(h,[2,21]),e(h,[2,22]),e(h,[2,23]),e(h,[2,24]),e(h,[2,25]),e(h,[2,26]),e(h,[2,27]),e(h,[2,28]),e(h,[2,29]),e(h,[2,30]),{34:[1,51]},{36:[1,52]},e(h,[2,33]),e(h,[2,56],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:$,69:ee,70:te,71:se,72:ie,73:Fe,74:Be}),{39:[1,65]},e(v,[2,43],{39:[1,67],44:[1,66]}),e(h,[2,58]),e(h,[2,59]),{16:68,60:k,86:g,100:m,102:C},{16:39,17:40,19:69,60:k,86:g,100:m,102:C,103:E},{16:39,17:40,19:70,60:k,86:g,100:m,102:C,103:E},{16:39,17:40,19:71,60:k,86:g,100:m,102:C,103:E},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:k,86:g,100:m,102:C,103:E},{13:Ve,55:75},{58:77,60:[1,78]},e(h,[2,69]),e(h,[2,70]),e(h,[2,71]),e(h,[2,72]),e(R,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:k,86:g,100:m,102:C,103:E}),e(R,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:k,86:g,100:m,102:C,103:E},{16:39,17:40,19:86,60:k,86:g,100:m,102:C,103:E},e(ae,[2,126]),e(ae,[2,127]),e(ae,[2,128]),e(ae,[2,129]),e([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,130]),e(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:n,37:u,42:a,46:c,49:f,51:b,52:F,54:T,56:O,57:Ae,60:k,62:be,63:fe,64:ke,65:ge,75:me,76:Ce,78:Ee,82:ye,83:Te,86:g,100:m,102:C,103:E}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:u,38:22,42:a,43:23,46:c,49:f,51:b,52:F,54:T,56:O,57:Ae,60:k,62:be,63:fe,64:ke,65:ge,75:me,76:Ce,78:Ee,82:ye,83:Te,86:g,100:m,102:C,103:E},e(h,[2,20]),e(h,[2,31]),e(h,[2,32]),{13:[1,90],16:39,17:40,19:89,60:k,86:g,100:m,102:C,103:E},{53:91,66:56,67:57,68:$,69:ee,70:te,71:se,72:ie,73:Fe,74:Be},e(h,[2,57]),{67:92,73:Fe,74:Be},e(re,[2,76],{66:93,68:$,69:ee,70:te,71:se,72:ie}),e(U,[2,77]),e(U,[2,78]),e(U,[2,79]),e(U,[2,80]),e(U,[2,81]),e(Me,[2,82]),e(Me,[2,83]),{8:[1,95],24:96,30:97,40:94,43:23,46:c,54:T,56:O},{16:98,60:k,86:g,100:m,102:C},{41:[1,100],45:99,51:_e},{50:[1,102]},{13:[1,103]},{13:[1,104]},{79:[1,105],81:[1,106]},{22:z,48:Y,59:107,60:K,82:Q,84:108,85:109,86:W,87:j,88:X,89:H,90:q},{60:[1,119]},{13:Ve,55:120},e(v,[2,65]),e(v,[2,131]),{22:z,48:Y,59:121,60:K,61:[1,122],82:Q,84:108,85:109,86:W,87:j,88:X,89:H,90:q},e(Pe,[2,67]),{16:39,17:40,19:123,60:k,86:g,100:m,102:C,103:E},e(R,[2,16]),e(R,[2,17]),e(R,[2,18]),{39:[2,36]},{15:125,16:84,17:85,18:[1,124],39:[2,9],60:k,86:g,100:m,102:C,103:E},{39:[2,10]},e(Se,[2,48],{11:126,12:[1,127]}),e(De,[2,7]),{9:[1,128]},e(ne,[2,60]),{16:39,17:40,19:129,60:k,86:g,100:m,102:C,103:E},{13:[1,131],16:39,17:40,19:130,60:k,86:g,100:m,102:C,103:E},e(re,[2,75],{66:132,68:$,69:ee,70:te,71:se,72:ie}),e(re,[2,74]),{41:[1,133]},{24:96,30:97,40:134,43:23,46:c,54:T,56:O},{8:[1,135],41:[2,37]},{8:[1,136],41:[2,40]},e(v,[2,44],{39:[1,137]}),{41:[1,138]},e(v,[2,46]),{41:[2,54],45:139,51:_e},{16:39,17:40,19:140,60:k,86:g,100:m,102:C,103:E},e(h,[2,84],{13:[1,141]}),e(h,[2,86],{13:[1,143],77:[1,142]}),e(h,[2,90],{13:[1,144],80:[1,145]}),{13:[1,146]},e(h,[2,98],{61:Re}),e(Ge,[2,100],{85:148,22:z,48:Y,60:K,82:Q,86:W,87:j,88:X,89:H,90:q}),e(N,[2,102]),e(N,[2,104]),e(N,[2,105]),e(N,[2,106]),e(N,[2,107]),e(N,[2,108]),e(N,[2,109]),e(N,[2,110]),e(N,[2,111]),e(N,[2,112]),e(h,[2,99]),e(v,[2,64]),e(h,[2,66],{61:Re}),{60:[1,149]},e(R,[2,14]),{15:150,16:84,17:85,60:k,86:g,100:m,102:C,103:E},{39:[2,12]},e(Se,[2,49]),{13:[1,151]},{1:[2,4]},e(ne,[2,62]),e(ne,[2,61]),{16:39,17:40,19:152,60:k,86:g,100:m,102:C,103:E},e(re,[2,73]),e(h,[2,34]),{41:[1,153]},{24:96,30:97,40:154,41:[2,38],43:23,46:c,54:T,56:O},{24:96,30:97,40:155,41:[2,41],43:23,46:c,54:T,56:O},{45:156,51:_e},e(v,[2,45]),{41:[2,55]},e(h,[2,53]),e(h,[2,85]),e(h,[2,87]),e(h,[2,88],{77:[1,157]}),e(h,[2,91]),e(h,[2,92],{13:[1,158]}),e(h,[2,94],{13:[1,160],77:[1,159]}),{22:z,48:Y,60:K,82:Q,84:161,85:109,86:W,87:j,88:X,89:H,90:q},e(N,[2,103]),e(Pe,[2,68]),{39:[2,11]},{14:[1,162]},e(ne,[2,63]),e(h,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,163]},e(h,[2,89]),e(h,[2,93]),e(h,[2,95]),e(h,[2,96],{77:[1,164]}),e(Ge,[2,101],{85:148,22:z,48:Y,60:K,82:Q,86:W,87:j,88:X,89:H,90:q}),e(Se,[2,8]),e(v,[2,47]),e(h,[2,97])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],125:[2,12],128:[2,4],139:[2,55],150:[2,11],154:[2,39],155:[2,42]},parseError:d(function(l,o){if(o.recoverable)this.trace(l);else{var p=new Error(l);throw p.hash=o,p}},"parseError"),parse:d(function(l){var o=this,p=[0],r=[],A=[null],t=[],J=this.table,s="",le=0,Ue=0,ze=0,bt=2,Ye=1,ft=t.slice.call(arguments,1),y=Object.create(this.lexer),w={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(w.yy[Le]=this.yy[Le]);y.setInput(l,w.yy),w.yy.lexer=y,w.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var xe=y.yylloc;t.push(xe);var kt=y.options&&y.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gt(_){p.length=p.length-2*_,A.length=A.length-_,t.length=t.length-_}d(gt,"popStack");function Ke(){var _;return _=r.pop()||y.lex()||Ye,typeof _!="number"&&(_ instanceof Array&&(r=_,_=r.pop()),_=o.symbols_[_]||_),_}d(Ke,"lex");for(var B,ve,V,S,Tt,Ie,G={},oe,x,Qe,ce;;){if(V=p[p.length-1],this.defaultActions[V]?S=this.defaultActions[V]:((B===null||typeof B>"u")&&(B=Ke()),S=J[V]&&J[V][B]),typeof S>"u"||!S.length||!S[0]){var Oe="";ce=[];for(oe in J[V])this.terminals_[oe]&&oe>bt&&ce.push("'"+this.terminals_[oe]+"'");y.showPosition?Oe="Parse error on line "+(le+1)+`: `+y.showPosition()+` Expecting `+ce.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Oe="Parse error on line "+(le+1)+": Unexpected "+(B==Ye?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Oe,{text:y.match,token:this.terminals_[B]||B,line:y.yylineno,loc:xe,expected:ce})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+B);switch(S[0]){case 1:p.push(B),A.push(y.yytext),t.push(y.yylloc),p.push(S[1]),B=null,ve?(B=ve,ve=null):(Ue=y.yyleng,s=y.yytext,le=y.yylineno,xe=y.yylloc,ze>0&&ze--);break;case 2:if(x=this.productions_[S[1]][1],G.$=A[A.length-x],G._$={first_line:t[t.length-(x||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(x||1)].first_column,last_column:t[t.length-1].last_column},kt&&(G._$.range=[t[t.length-(x||1)].range[0],t[t.length-1].range[1]]),Ie=this.performAction.apply(G,[s,Ue,le,w.yy,S[1],A,t].concat(ft)),typeof Ie<"u")return Ie;x&&(p=p.slice(0,-1*x*2),A=A.slice(0,-1*x),t=t.slice(0,-1*x)),p.push(this.productions_[S[1]][0]),A.push(G.$),t.push(G._$),Qe=J[p[p.length-2]][p[p.length-1]],p.push(Qe);break;case 3:return!0}}return!0},"parse")},At=(function(){var I={EOF:1,parseError:d(function(o,p){if(this.yy.parser)this.yy.parser.parseError(o,p);else throw new Error(o)},"parseError"),setInput:d(function(l,o){return this.yy=o||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var o=l.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:d(function(l){var o=l.length,p=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===r.length?this.yylloc.first_column:0)+r[r.length-p.length].length-p[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-TNJPXCAB.js b/src/google/adk/cli/browser/chunk-TNJPXCAB.js index 1dde258711..4131531f96 100644 --- a/src/google/adk/cli/browser/chunk-TNJPXCAB.js +++ b/src/google/adk/cli/browser/chunk-TNJPXCAB.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as T,b as Y,c as K,d as yt}from"./chunk-JHZIBEJC.js";import{c as B}from"./chunk-W7PRDKNL.js";import{a as kt}from"./chunk-DRBE27N3.js";import{a as gt}from"./chunk-PRKFGJVH.js";import{c as ut,d as xt}from"./chunk-VDPKVNDJ.js";import{f as bt}from"./chunk-WXI2IBAH.js";import{m as O}from"./chunk-WBLSVR3V.js";import{E as F,Y as E}from"./chunk-QFMJV7VH.js";import{$ as ct,L as N,M as nt,O as st,P as ot,Q as G,U as it,X as lt,a as S,aa as dt,ba as ft,ca as pt,da as ht,ea as mt,g as p,i as b}from"./chunk-JRNAXTJ7.js";import{a as at,j as et}from"./chunk-RMXJBC7V.js";var Ot=p((r,t,a,n,i,s)=>{t.arrowTypeStart&&wt(r,"start",t.arrowTypeStart,a,n,i,s),t.arrowTypeEnd&&wt(r,"end",t.arrowTypeEnd,a,n,i,s)},"addEdgeMarkers"),Tt={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},wt=p((r,t,a,n,i,s,e)=>{let o=Tt[a];if(!o){b.warn(`Unknown arrow type: ${a}`);return}let c=o.type,m=`${i}_${s}-${c}${t==="start"?"Start":"End"}`;if(e&&e.trim()!==""){let y=e.replace(/[^\dA-Za-z]/g,"_"),f=`${m}_${y}`;if(!document.getElementById(f)){let d=document.getElementById(m);if(d){let u=d.cloneNode(!0);u.id=f,u.querySelectorAll("path, circle, line").forEach(k=>{k.setAttribute("stroke",e),o.fill&&k.setAttribute("fill",e)}),d.parentNode?.appendChild(u)}}r.attr(`marker-${t}`,`url(${n}#${f})`)}else r.attr(`marker-${t}`,`url(${n}#${m})`)},"addEdgeMarker"),Xt=p(r=>typeof r=="string"?r:E()?.flowchart?.curve,"resolveEdgeCurveType"),Q=new Map,w=new Map,cr=p(()=>{Q.clear(),w.clear()},"clear"),C=p(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),dr=p((r,t)=>et(null,null,function*(){let a=E(),n=F(a),{labelStyles:i}=xt(t);t.labelStyle=i;let s=r.insert("g").attr("class","edgeLabel"),e=s.insert("g").attr("class","label").attr("data-id",t.id),o=t.labelType==="markdown",l=yield bt(r,t.label,{style:C(t.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1,markdown:o,width:o?void 0:void 0},a);e.node().appendChild(l),b.info("abc82",t,t.labelType);let m=l.getBBox(),y=m;if(n){let d=l.children[0],u=S(l);m=d.getBoundingClientRect(),y=m,u.attr("width",m.width),u.attr("height",m.height)}else{let d=S(l).select("text").node();d&&typeof d.getBBox=="function"&&(y=d.getBBox())}e.attr("transform",T(y,n)),Q.set(t.id,s),t.width=m.width,t.height=m.height;let f;if(t.startLabelLeft){let d=r.insert("g").attr("class","edgeTerminals"),u=d.insert("g").attr("class","inner"),h=yield B(u,t.startLabelLeft,C(t.labelStyle)||"",!1,!1);f=h;let k=h.getBBox();if(n){let x=h.children[0],L=S(h);k=x.getBoundingClientRect(),L.attr("width",k.width),L.attr("height",k.height)}u.attr("transform",T(k,n)),w.get(t.id)||w.set(t.id,{}),w.get(t.id).startLeft=d,W(f,t.startLabelLeft)}if(t.startLabelRight){let d=r.insert("g").attr("class","edgeTerminals"),u=d.insert("g").attr("class","inner"),h=yield B(u,t.startLabelRight,C(t.labelStyle)||"",!1,!1);f=h,u.node().appendChild(h);let k=h.getBBox();if(n){let x=h.children[0],L=S(h);k=x.getBoundingClientRect(),L.attr("width",k.width),L.attr("height",k.height)}u.attr("transform",T(k,n)),w.get(t.id)||w.set(t.id,{}),w.get(t.id).startRight=d,W(f,t.startLabelRight)}if(t.endLabelLeft){let d=r.insert("g").attr("class","edgeTerminals"),u=d.insert("g").attr("class","inner"),h=yield B(u,t.endLabelLeft,C(t.labelStyle)||"",!1,!1);f=h;let k=h.getBBox();if(n){let x=h.children[0],L=S(h);k=x.getBoundingClientRect(),L.attr("width",k.width),L.attr("height",k.height)}u.attr("transform",T(k,n)),d.node().appendChild(h),w.get(t.id)||w.set(t.id,{}),w.get(t.id).endLeft=d,W(f,t.endLabelLeft)}if(t.endLabelRight){let d=r.insert("g").attr("class","edgeTerminals"),u=d.insert("g").attr("class","inner"),h=yield B(u,t.endLabelRight,C(t.labelStyle)||"",!1,!1);f=h;let k=h.getBBox();if(n){let x=h.children[0],L=S(h);k=x.getBoundingClientRect(),L.attr("width",k.width),L.attr("height",k.height)}u.attr("transform",T(k,n)),d.node().appendChild(h),w.get(t.id)||w.set(t.id,{}),w.get(t.id).endRight=d,W(f,t.endLabelRight)}return l}),"insertEdgeLabel");function W(r,t){F(E())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}p(W,"setTerminalWidth");var fr=p((r,t)=>{b.debug("Moving label abc88 ",r.id,r.label,Q.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,n=E(),{subGraphTitleTotalMargin:i}=kt(n);if(r.label){let s=Q.get(r.id),e=r.x,o=r.y;if(a){let c=O.calcLabelPosition(a);b.debug("Moving label "+r.label+" from (",e,",",o,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(e=c.x,o=c.y)}s.attr("transform",`translate(${e}, ${o+i/2})`)}if(r.startLabelLeft){let s=w.get(r.id).startLeft,e=r.x,o=r.y;if(a){let c=O.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);e=c.x,o=c.y}s.attr("transform",`translate(${e}, ${o})`)}if(r.startLabelRight){let s=w.get(r.id).startRight,e=r.x,o=r.y;if(a){let c=O.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);e=c.x,o=c.y}s.attr("transform",`translate(${e}, ${o})`)}if(r.endLabelLeft){let s=w.get(r.id).endLeft,e=r.x,o=r.y;if(a){let c=O.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);e=c.x,o=c.y}s.attr("transform",`translate(${e}, ${o})`)}if(r.endLabelRight){let s=w.get(r.id).endRight,e=r.x,o=r.y;if(a){let c=O.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);e=c.x,o=c.y}s.attr("transform",`translate(${e}, ${o})`)}},"positionEdgeLabel"),Yt=p((r,t)=>{let a=r.x,n=r.y,i=Math.abs(t.x-a),s=Math.abs(t.y-n),e=r.width/2,o=r.height/2;return i>=e||s>=o},"outsideNode"),Bt=p((r,t,a)=>{b.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(a)} diff --git a/src/google/adk/cli/browser/chunk-TNYN2TVW.js b/src/google/adk/cli/browser/chunk-TNYN2TVW.js index f79ed23625..bb9f1e9510 100644 --- a/src/google/adk/cli/browser/chunk-TNYN2TVW.js +++ b/src/google/adk/cli/browser/chunk-TNYN2TVW.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as W}from"./chunk-JDPVSVO4.js";import{a as S}from"./chunk-XMBKBASC.js";import{a as V,b as q,c as z,d as K,e as Q}from"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import{b as M,d as F,e as U,g as Y,h as H,i as j,j as B}from"./chunk-W7PRDKNL.js";import{a as T}from"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{Y as R}from"./chunk-QFMJV7VH.js";import{g,i}from"./chunk-JRNAXTJ7.js";import{J as C,e as G,v as _}from"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import{a as P,b as A,j as b}from"./chunk-RMXJBC7V.js";function p(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:re(e),edges:se(e)};return C(e.graph())||(t.value=G(e.graph())),t}function re(e){return _(e.nodes(),function(t){var n=e.node(t),a=e.parent(t),s={v:t};return C(n)||(s.value=n),C(a)||(s.parent=a),s})}function se(e){return _(e.edges(),function(t){var n=e.edge(t),a={v:t.v,w:t.w};return C(t.name)||(a.name=t.name),C(n)||(a.value=n),a})}var d=new Map,X=new Map,L=new Map,ae=g(()=>{X.clear(),L.clear(),d.clear()},"clear"),O=g((e,t)=>{let n=X.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),ce=g((e,t)=>{let n=X.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||O(e.v,t)||O(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),I=g((e,t,n,a)=>{i.warn("Copying children of ",e,"root",a,"data",t.node(e),a);let s=t.children(e)||[];e!==a&&s.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)I(o,t,n,a);else{let l=t.node(o);i.info("cp ",o," to ",a," with parent ",e),n.setNode(o,l),a!==t.parent(o)&&(i.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==a&&o!==e?(i.debug("Setting parent",o,e),n.setParent(o,e)):(i.info("In copy ",e,"root",a,"data",t.node(e),a),i.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==a,"node!==clusterId",o!==e));let u=t.edges(o);i.debug("Copying Edges",u),u.forEach(c=>{i.info("Edge",c);let m=t.edge(c.v,c.w,c.name);i.info("Edge data",m,a);try{ce(c,a)?(i.info("Copying as ",c.v,c.w,m,c.name),n.setEdge(c.v,c.w,m,c.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",a," clusterId:",e)}catch(h){i.error(h)}})}i.debug("Removing node",o),t.removeNode(o)})},"copy"),ee=g((e,t)=>{let n=t.children(e),a=[...n];for(let s of n)L.set(s,e),a=[...a,...ee(s,t)];return a},"extractDescendants"),de=g((e,t,n)=>{let a=e.edges().filter(c=>c.v===t||c.w===t),s=e.edges().filter(c=>c.v===n||c.w===n),o=a.map(c=>({v:c.v===t?n:c.v,w:c.w===t?t:c.w})),l=s.map(c=>({v:c.v,w:c.w}));return o.filter(c=>l.some(m=>c.v===m.v&&c.w===m.w))},"findCommonEdges"),x=g((e,t,n)=>{let a=t.children(e);if(i.trace("Searching children of id ",e,a),a.length<1)return e;let s;for(let o of a){let l=x(o,t,n),u=de(t,n,l);if(l)if(u.length>0)s=l;else return l}return s},"findNonClusterChild"),$=g(e=>!d.has(e)||!d.get(e).externalConnections?e:d.has(e)?d.get(e).id:e,"getAnchorId"),le=g((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",x(n,e,n)),X.set(n,ee(n,e)),d.set(n,{id:x(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let a=e.children(n),s=e.edges();a.length>0?(i.debug("Cluster identified",n,X),s.forEach(o=>{let l=O(o.v,n),u=O(o.w,n);l^u&&(i.warn("Edge: ",o," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",X.get(n)),d.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,X)});for(let n of d.keys()){let a=d.get(n).id,s=e.parent(a);s!==n&&d.has(s)&&!d.get(s).externalConnections&&(d.get(n).id=s)}e.edges().forEach(function(n){let a=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(i.warn("Fix XXX",d,"ids:",n.v,n.w,"Translating: ",d.get(n.v)," --- ",d.get(n.w)),d.get(n.v)||d.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),s=$(n.v),o=$(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){let l=e.parent(s);d.get(l).externalConnections=!0,a.fromCluster=n.v}if(o!==n.w){let l=e.parent(o);d.get(l).externalConnections=!0,a.toCluster=n.w}i.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,a,n.name)}}),i.warn("Adjusted Graph",p(e)),ne(e,0),i.trace(d)},"adjustClustersAndEdges"),ne=g((e,t)=>{if(i.warn("extractor - ",t,p(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),a=!1;for(let s of n){let o=e.children(s);a=a||o.length>0}if(!a){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(let s of n)if(i.debug("Extracting node",s,d,d.has(s)&&!d.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!d.has(s))i.debug("Not a cluster",s,t);else if(!d.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){i.warn("Cluster without external connections, without a parent and with children",s,t);let l=e.graph().rankdir==="TB"?"LR":"TB";d.get(s)?.clusterData?.dir&&(l=d.get(s).clusterData.dir,i.warn("Fixing dir",d.get(s).clusterData.dir,l));let u=new S({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(e)),I(s,e,u,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:d.get(s).clusterData,label:d.get(s).label,graph:u}),i.warn("New graph after copy node: (",s,")",p(u)),i.debug("Old graph after copy",p(e))}else i.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!d.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.debug(d);n=e.nodes(),i.warn("New list of nodes",n);for(let s of n){let o=e.node(s);i.warn(" Now next level",s,o),o?.clusterNode&&ne(o.graph,t+1)}},"extractor"),te=g((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(a=>{let s=e.children(a),o=te(e,s);n=[...n,...o]}),n},"sorter"),fe=g(e=>te(e,e.children()),"sortNodesByHierarchy"),ie=g((e,t,n,a,s,o)=>b(null,null,function*(){i.warn("Graph in recursive render:XAX",p(t),s);let l=t.graph().rankdir;i.trace("Dir in recursive render - dir:",l);let u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));let c=u.insert("g").attr("class","clusters"),m=u.insert("g").attr("class","edgePaths"),h=u.insert("g").attr("class","edgeLabels"),v=u.insert("g").attr("class","nodes");yield Promise.all(t.nodes().map(function(f){return b(this,null,function*(){let r=t.node(f);if(s!==void 0){let w=JSON.parse(JSON.stringify(s.clusterData));i.trace(`Setting data for parent cluster XXX Node.id = `,f,` data=`,w.height,` diff --git a/src/google/adk/cli/browser/chunk-TPDTRWWV.js b/src/google/adk/cli/browser/chunk-TPDTRWWV.js index c404234de4..e366e7731c 100644 --- a/src/google/adk/cli/browser/chunk-TPDTRWWV.js +++ b/src/google/adk/cli/browser/chunk-TPDTRWWV.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{Y as s}from"./chunk-QFMJV7VH.js";import{a as e,g as n}from"./chunk-JRNAXTJ7.js";var a=n(t=>{let{securityLevel:c}=s(),o=e("body");if(c==="sandbox"){let m=e(`#i${t}`).node()?.contentDocument??document;o=e(m.body)}return o.select(`#${t}`)},"selectSvgElement");export{a}; diff --git a/src/google/adk/cli/browser/chunk-URGIGLGR.js b/src/google/adk/cli/browser/chunk-URGIGLGR.js index 3440b4a67a..8fb473940e 100644 --- a/src/google/adk/cli/browser/chunk-URGIGLGR.js +++ b/src/google/adk/cli/browser/chunk-URGIGLGR.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as m,Bb as g,Ca as a,Cb as p,Cc as r,Db as v,Ib as h,Lb as f,Ma as l,Nc as D,Pa as o,Yb as y,Zb as x,eb as d,fc as M,gc as b,hc as C,pd as I,qb as c,sb as u,wc as s}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";function H(t,U){if(t&1&&(g(0,"section"),v(1,"img",1),p()),t&2){let e=f(),i=C(0);y(e.theme.additionalStyles==null?null:e.theme.additionalStyles.Image),x(e.classes()),o(),h("src",i,l)}}var w=(()=>{class t extends I{url=r.required();usageHint=r.required();resolvedUrl=s(()=>this.resolvePrimitive(this.url()));classes=s(()=>{let e=this.usageHint();return D.merge(this.theme.components.Image.all,e?this.theme.components.Image[e]:{})});static \u0275fac=(()=>{let e;return function(n){return(e||(e=a(t)))(n||t)}})();static \u0275cmp=m({type:t,selectors:[["a2ui-image"]],inputs:{url:[1,"url"],usageHint:[1,"usageHint"]},features:[d],decls:2,vars:2,consts:[[3,"class","style"],[3,"src"]],template:function(i,n){if(i&1&&(M(0),c(1,H,2,5,"section",0)),i&2){let _=b(n.resolvedUrl());o(),u(_?1:-1)}},styles:["[_nghost-%COMP%]{display:block;flex:var(--weight);min-height:0;overflow:auto}img[_ngcontent-%COMP%]{display:block;width:100%;height:100%;box-sizing:border-box}"]})}return t})();export{w as Image}; diff --git a/src/google/adk/cli/browser/chunk-UWBTGTN5.js b/src/google/adk/cli/browser/chunk-UWBTGTN5.js index 700eef53ac..1ad223c355 100644 --- a/src/google/adk/cli/browser/chunk-UWBTGTN5.js +++ b/src/google/adk/cli/browser/chunk-UWBTGTN5.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as de}from"./chunk-DMWOYWYQ.js";import{a as he}from"./chunk-T3Q3QCCV.js";import"./chunk-NQKWI5EB.js";import"./chunk-WR6HISGZ.js";import"./chunk-I4UDKKN5.js";import"./chunk-2DLZXFEQ.js";import"./chunk-JNY2YWG7.js";import"./chunk-XULIXUQL.js";import{a as pe}from"./chunk-ST54LLJ3.js";import"./chunk-3NJNOY56.js";import"./chunk-NALL4A3P.js";import{a as ie}from"./chunk-TPDTRWWV.js";import{c as ce,d as T}from"./chunk-VDPKVNDJ.js";import{l as G}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{A as O,N as Q,R as Z,S as ee,T as te,U as ae,V as le,W as se,X as re,r as K}from"./chunk-QFMJV7VH.js";import{a as D,g as d,i as H,o as F,p as ne,q as oe,r as R}from"./chunk-JRNAXTJ7.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import{a as I,j as J}from"./chunk-RMXJBC7V.js";var me=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ee,this.getAccTitle=te,this.setDiagramTitle=se,this.getDiagramTitle=re,this.getAccDescription=le,this.setAccDescription=ae}static{d(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let s=K,a=O();return G(I(I({},s.treemap),a.treemap??{}))}addNode(s,a){this.nodes.push(s),this.levels.set(s,a),a===0&&(this.outerNodes.push(s),this.root??=s)}getRoot(){return{name:"",children:this.outerNodes}}addClass(s,a){let o=this.classes.get(s)??{id:s,styles:[],textStyles:[]},i=a.replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");i&&i.forEach(p=>{ce(p)&&(o?.textStyles?o.textStyles.push(p):o.textStyles=[p]),o?.styles?o.styles.push(p):o.styles=[p]}),this.classes.set(s,o)}getClasses(){return this.classes}getStylesForClass(s){return this.classes.get(s)?.styles??[]}clear(){Z(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function ue(s){if(!s.length)return[];let a=[],o=[];return s.forEach(i=>{let p={name:i.name,children:i.type==="Leaf"?void 0:[]};for(p.classSelector=i?.classSelector,i?.cssCompiledStyles&&(p.cssCompiledStyles=i.cssCompiledStyles),i.type==="Leaf"&&i.value!==void 0&&(p.value=i.value);o.length>0&&o[o.length-1].level>=i.level;)o.pop();if(o.length===0)a.push(p);else{let n=o[o.length-1].node;n.children?n.children.push(p):n.children=[p]}i.type!=="Leaf"&&o.push({node:p,level:i.level})}),a}d(ue,"buildHierarchy");var we=d((s,a)=>{de(s,a);let o=[];for(let n of s.TreemapRows??[])n.$type==="ClassDefStatement"&&a.addClass(n.className??"",n.styleText??"");for(let n of s.TreemapRows??[]){let h=n.item;if(!h)continue;let u=n.indent?parseInt(n.indent):0,V=Te(h),l=h.classSelector?a.getStylesForClass(h.classSelector):[],N=l.length>0?l:void 0,v={level:u,name:V,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:N};o.push(v)}let i=ue(o),p=d((n,h)=>{for(let u of n)a.addNode(u,h),u.children&&u.children.length>0&&p(u.children,h+1)},"addNodesRecursively");p(i,0)},"populate"),Te=d(s=>s.name?String(s.name):"","getItemName"),fe={parser:{yy:void 0},parse:d(s=>J(null,null,function*(){try{let o=yield he("treemap",s);H.debug("Treemap AST:",o);let i=fe.parser?.yy;if(!(i instanceof me))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");we(o,i)}catch(a){throw H.error("Error parsing treemap:",a),a}}),"parse")},Le=10,z=10,M=25,$e=d((s,a,o,i)=>{let p=i.db,n=p.getConfig(),h=n.padding??Le,u=p.getDiagramTitle(),V=p.getRoot(),{themeVariables:l}=O();if(!V)return;let N=u?30:0,v=ie(a),X=n.nodeWidth?n.nodeWidth*z:960,Y=n.nodeHeight?n.nodeHeight*z:500,B=X,j=Y+N;v.attr("viewBox",`0 0 ${B} ${j}`),Q(v,j,B,n.useMaxWidth);let C;try{let e=n.valueFormat||",";if(e==="$0,0")C=d(t=>"$"+F(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),r=t?t[0]:"";C=d(m=>"$"+F(","+r)(m),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);C=d(r=>"$"+F(t||"")(r),"valueFormat")}else C=F(e)}catch(e){H.error("Error creating format function:",e),C=F(",")}let A=R().range(["transparent",l.cScale0,l.cScale1,l.cScale2,l.cScale3,l.cScale4,l.cScale5,l.cScale6,l.cScale7,l.cScale8,l.cScale9,l.cScale10,l.cScale11]),ye=R().range(["transparent",l.cScalePeer0,l.cScalePeer1,l.cScalePeer2,l.cScalePeer3,l.cScalePeer4,l.cScalePeer5,l.cScalePeer6,l.cScalePeer7,l.cScalePeer8,l.cScalePeer9,l.cScalePeer10,l.cScalePeer11]),W=R().range([l.cScaleLabel0,l.cScaleLabel1,l.cScaleLabel2,l.cScaleLabel3,l.cScaleLabel4,l.cScaleLabel5,l.cScaleLabel6,l.cScaleLabel7,l.cScaleLabel8,l.cScaleLabel9,l.cScaleLabel10,l.cScaleLabel11]);u&&v.append("text").attr("x",B/2).attr("y",N/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);let U=v.append("g").attr("transform",`translate(0, ${N})`).attr("class","treemapContainer"),ge=ne(V).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),q=oe().size([X,Y]).paddingTop(e=>e.children&&e.children.length>0?M+z:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?z:0).paddingRight(e=>e.children&&e.children.length>0?z:0).paddingBottom(e=>e.children&&e.children.length>0?z:0).round(!0)(ge),Se=q.descendants().filter(e=>e.children&&e.children.length>0),k=U.selectAll(".treemapSection").data(Se).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);k.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),k.append("clipPath").attr("id",(e,t)=>`clip-section-${a}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),k.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>ye(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";let t=T({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),k.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";let t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",r=T({cssCompiledStyles:e.data.cssCompiledStyles});return t+r.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;let t=D(this),r=e.data.name;t.text(r);let m=e.x1-e.x0,g=6,S;n.showValues!==!1&&e.value?S=m-10-30-10-g:S=m-g-6;let f=Math.max(15,S),c=t.node();if(c.getComputedTextLength()>f){let y=r;for(;y.length>0;){if(y=r.substring(0,y.length-1),y.length===0){t.text("..."),c.getComputedTextLength()>f&&t.text("");break}if(t.text(y+"..."),c.getComputedTextLength()<=f)break}}}),n.showValues!==!1&&k.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?C(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";let t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",r=T({cssCompiledStyles:e.data.cssCompiledStyles});return t+r.labelStyles.replace("color:","fill:")});let xe=q.leaves(),E=U.selectAll(".treemapLeafGroup").data(xe).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>T({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),E.append("clipPath").attr("id",(e,t)=>`clip-${a}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),E.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{let t="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+W(e.data.name)+";",r=T({cssCompiledStyles:e.data.cssCompiledStyles});return t+r.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${a}-${t})`).text(e=>e.data.name).each(function(e){let t=D(this),r=e.x1-e.x0,m=e.y1-e.y0,g=t.node(),S=4,L=r-2*S,f=m-2*S;if(L<10||f<10){t.style("display","none");return}let c=parseInt(t.style("font-size"),10),w=8,x=28,y=.6,b=6,P=2;for(;g.getComputedTextLength()>L&&c>w;)c--,t.style("font-size",`${c}px`);let $=Math.max(b,Math.min(x,Math.round(c*y))),_=c+P+$;for(;_>f&&c>w&&(c--,$=Math.max(b,Math.min(x,Math.round(c*y))),!($f;t.style("font-size",`${c}px`),(g.getComputedTextLength()>L||c(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{let r="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+W(t.data.name)+";",m=T({cssCompiledStyles:t.data.cssCompiledStyles});return r+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,r)=>`url(#clip-${a}-${r})`).text(t=>t.value?C(t.value):"").each(function(t){let r=D(this),m=this.parentNode;if(!m){r.style("display","none");return}let g=D(m).select(".treemapLabel");if(g.empty()||g.style("display")==="none"){r.style("display","none");return}let S=parseFloat(g.style("font-size")),L=28,f=.6,c=6,w=2,x=Math.max(c,Math.min(L,Math.round(S*f)));r.style("font-size",`${x}px`);let b=(t.y1-t.y0)/2+S/2+w;r.attr("y",b);let P=t.x1-t.x0,ve=t.y1-t.y0-4,Ce=P-8;r.node().getComputedTextLength()>Ce||b+x>ve||x{let a=G(Ne,s);return` .treemapNode.section { stroke: ${a.sectionStrokeColor}; diff --git a/src/google/adk/cli/browser/chunk-V2DCVTQX.js b/src/google/adk/cli/browser/chunk-V2DCVTQX.js index 0b2c747212..7a00b4ed34 100644 --- a/src/google/adk/cli/browser/chunk-V2DCVTQX.js +++ b/src/google/adk/cli/browser/chunk-V2DCVTQX.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{G as re,N as se,R as oe,S as le,T as he,U as ce,V as de,W as ue,X as Dt,Y as qt,p as ne,r as L}from"./chunk-QFMJV7VH.js";import{a as mt,g as s,i as dt,t as zt}from"./chunk-JRNAXTJ7.js";import{a as Q}from"./chunk-RMXJBC7V.js";var Vt=(function(){var t=s(function(Y,r,l,u){for(l=l||{},u=Y.length;u--;l[Y[u]]=r);return l},"o"),a=[1,3],p=[1,4],f=[1,5],o=[1,6],x=[1,7],_=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[55,56,57],k=[2,36],m=[1,37],q=[1,36],y=[1,38],b=[1,35],T=[1,43],g=[1,41],ot=[1,14],ut=[1,23],xt=[1,18],ft=[1,19],gt=[1,20],lt=[1,21],_t=[1,22],ht=[1,24],i=[1,25],wt=[1,26],Bt=[1,27],Rt=[1,28],Nt=[1,29],W=[1,32],U=[1,33],A=[1,34],F=[1,39],P=[1,40],v=[1,42],C=[1,44],H=[1,62],X=[1,61],E=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Wt=[1,65],Ut=[1,66],Qt=[1,67],Ot=[1,68],Ht=[1,69],Xt=[1,70],Mt=[1,71],Yt=[1,72],jt=[1,73],Gt=[1,74],Kt=[1,75],Zt=[1,76],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,90],Z=[1,91],J=[1,92],$=[1,99],tt=[1,93],et=[1,96],it=[1,94],at=[1,95],nt=[1,97],rt=[1,98],At=[1,102],Jt=[10,55,56,57],R=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Ft={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:s(function(r,l,u,d,S,e,ct){var n=e.length-1;switch(S){case 23:this.$=e[n];break;case 24:this.$=e[n-1]+""+e[n];break;case 26:this.$=e[n-1]+e[n];break;case 27:this.$=[e[n].trim()];break;case 28:e[n-2].push(e[n].trim()),this.$=e[n-2];break;case 29:this.$=e[n-4],d.addClass(e[n-2],e[n]);break;case 37:this.$=[];break;case 42:this.$=e[n].trim(),d.setDiagramTitle(this.$);break;case 43:this.$=e[n].trim(),d.setAccTitle(this.$);break;case 44:case 45:this.$=e[n].trim(),d.setAccDescription(this.$);break;case 46:d.addSection(e[n].substr(8)),this.$=e[n].substr(8);break;case 47:d.addPoint(e[n-3],"",e[n-1],e[n],[]);break;case 48:d.addPoint(e[n-4],e[n-3],e[n-1],e[n],[]);break;case 49:d.addPoint(e[n-4],"",e[n-2],e[n-1],e[n]);break;case 50:d.addPoint(e[n-5],e[n-4],e[n-2],e[n-1],e[n]);break;case 51:d.setXAxisLeftText(e[n-2]),d.setXAxisRightText(e[n]);break;case 52:e[n-1].text+=" \u27F6 ",d.setXAxisLeftText(e[n-1]);break;case 53:d.setXAxisLeftText(e[n]);break;case 54:d.setYAxisBottomText(e[n-2]),d.setYAxisTopText(e[n]);break;case 55:e[n-1].text+=" \u27F6 ",d.setYAxisBottomText(e[n-1]);break;case 56:d.setYAxisBottomText(e[n]);break;case 57:d.setQuadrant1Text(e[n]);break;case 58:d.setQuadrant2Text(e[n]);break;case 59:d.setQuadrant3Text(e[n]);break;case 60:d.setQuadrant4Text(e[n]);break;case 64:this.$={text:e[n],type:"text"};break;case 65:this.$={text:e[n-1].text+""+e[n],type:e[n-1].type};break;case 66:this.$={text:e[n],type:"text"};break;case 67:this.$={text:e[n],type:"markdown"};break;case 68:this.$=e[n];break;case 69:this.$=e[n-1]+""+e[n];break}},"anonymous"),table:[{18:a,26:1,27:2,28:p,55:f,56:o,57:x},{1:[3]},{18:a,26:8,27:2,28:p,55:f,56:o,57:x},{18:a,26:9,27:2,28:p,55:f,56:o,57:x},t(_,[2,33],{29:10}),t(h,[2,61]),t(h,[2,62]),t(h,[2,63]),{1:[2,30]},{1:[2,31]},t(c,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:m,5:q,10:y,12:b,13:T,14:g,18:ot,25:ut,35:xt,37:ft,39:gt,41:lt,42:_t,48:ht,50:i,51:wt,52:Bt,53:Rt,54:Nt,60:W,61:U,63:A,64:F,65:P,66:v,67:C}),t(_,[2,34]),{27:45,55:f,56:o,57:x},t(c,[2,37]),t(c,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:m,5:q,10:y,12:b,13:T,14:g,18:ot,25:ut,35:xt,37:ft,39:gt,41:lt,42:_t,48:ht,50:i,51:wt,52:Bt,53:Rt,54:Nt,60:W,61:U,63:A,64:F,65:P,66:v,67:C}),t(c,[2,39]),t(c,[2,40]),t(c,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(c,[2,45]),t(c,[2,46]),{18:[1,50]},{4:m,5:q,10:y,12:b,13:T,14:g,43:51,58:31,60:W,61:U,63:A,64:F,65:P,66:v,67:C},{4:m,5:q,10:y,12:b,13:T,14:g,43:52,58:31,60:W,61:U,63:A,64:F,65:P,66:v,67:C},{4:m,5:q,10:y,12:b,13:T,14:g,43:53,58:31,60:W,61:U,63:A,64:F,65:P,66:v,67:C},{4:m,5:q,10:y,12:b,13:T,14:g,43:54,58:31,60:W,61:U,63:A,64:F,65:P,66:v,67:C},{4:m,5:q,10:y,12:b,13:T,14:g,43:55,58:31,60:W,61:U,63:A,64:F,65:P,66:v,67:C},{4:m,5:q,10:y,12:b,13:T,14:g,43:56,58:31,60:W,61:U,63:A,64:F,65:P,66:v,67:C},{4:m,5:q,8:H,10:y,12:b,13:T,14:g,18:X,44:[1,57],47:[1,58],58:60,59:59,63:A,64:F,65:P,66:v,67:C},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(_,[2,35]),t(c,[2,38]),t(c,[2,42]),t(c,[2,43]),t(c,[2,44]),{3:64,4:Wt,5:Ut,6:Qt,7:Ot,8:Ht,9:Xt,10:Mt,11:Yt,12:jt,13:Gt,14:Kt,15:Zt,21:63},t(c,[2,53],{59:59,58:60,4:m,5:q,8:H,10:y,12:b,13:T,14:g,18:X,49:[1,77],63:A,64:F,65:P,66:v,67:C}),t(c,[2,56],{59:59,58:60,4:m,5:q,8:H,10:y,12:b,13:T,14:g,18:X,49:[1,78],63:A,64:F,65:P,66:v,67:C}),t(c,[2,57],{59:59,58:60,4:m,5:q,8:H,10:y,12:b,13:T,14:g,18:X,63:A,64:F,65:P,66:v,67:C}),t(c,[2,58],{59:59,58:60,4:m,5:q,8:H,10:y,12:b,13:T,14:g,18:X,63:A,64:F,65:P,66:v,67:C}),t(c,[2,59],{59:59,58:60,4:m,5:q,8:H,10:y,12:b,13:T,14:g,18:X,63:A,64:F,65:P,66:v,67:C}),t(c,[2,60],{59:59,58:60,4:m,5:q,8:H,10:y,12:b,13:T,14:g,18:X,63:A,64:F,65:P,66:v,67:C}),{45:[1,79]},{44:[1,80]},t(E,[2,65]),t(E,[2,81]),t(E,[2,82]),t(E,[2,83]),{3:82,4:Wt,5:Ut,6:Qt,7:Ot,8:Ht,9:Xt,10:Mt,11:Yt,12:jt,13:Gt,14:Kt,15:Zt,18:[1,81]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(c,[2,52],{58:31,43:83,4:m,5:q,10:y,12:b,13:T,14:g,60:W,61:U,63:A,64:F,65:P,66:v,67:C}),t(c,[2,55],{58:31,43:84,4:m,5:q,10:y,12:b,13:T,14:g,60:W,61:U,63:A,64:F,65:P,66:v,67:C}),{46:[1,85]},{45:[1,86]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:89,17:it,18:at,19:nt,20:rt,22:88,23:87},t(w,[2,24]),t(c,[2,51],{59:59,58:60,4:m,5:q,8:H,10:y,12:b,13:T,14:g,18:X,63:A,64:F,65:P,66:v,67:C}),t(c,[2,54],{59:59,58:60,4:m,5:q,8:H,10:y,12:b,13:T,14:g,18:X,63:A,64:F,65:P,66:v,67:C}),t(c,[2,47],{22:88,16:89,23:100,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),{46:[1,101]},t(c,[2,29],{10:At}),t(Jt,[2,27],{16:103,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),t(R,[2,25]),t(R,[2,13]),t(R,[2,14]),t(R,[2,15]),t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),t(R,[2,19]),t(R,[2,20]),t(R,[2,21]),t(R,[2,22]),t(c,[2,49],{10:At}),t(c,[2,48],{22:88,16:89,23:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:89,17:it,18:at,19:nt,20:rt,22:105},t(R,[2,26]),t(c,[2,50],{10:At}),t(Jt,[2,28],{16:103,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:s(function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},"parseError"),parse:s(function(r){var l=this,u=[0],d=[],S=[null],e=[],ct=this.table,n="",yt=0,$t=0,te=0,Ce=2,ee=1,Le=e.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Pt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Pt)&&(j.yy[Pt]=this.yy[Pt]);D.setInput(r,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var vt=D.yylloc;e.push(vt);var Ee=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(B){u.length=u.length-2*B,S.length=S.length-B,e.length=e.length-B}s(De,"popStack");function ie(){var B;return B=d.pop()||D.lex()||ee,typeof B!="number"&&(B instanceof Array&&(d=B,B=d.pop()),B=l.symbols_[B]||B),B}s(ie,"lex");for(var V,Ct,G,N,We,Lt,st={},bt,M,ae,Tt;;){if(G=u[u.length-1],this.defaultActions[G]?N=this.defaultActions[G]:((V===null||typeof V>"u")&&(V=ie()),N=ct[G]&&ct[G][V]),typeof N>"u"||!N.length||!N[0]){var Et="";Tt=[];for(bt in ct[G])this.terminals_[bt]&&bt>Ce&&Tt.push("'"+this.terminals_[bt]+"'");D.showPosition?Et="Parse error on line "+(yt+1)+`: `+D.showPosition()+` Expecting `+Tt.join(", ")+", got '"+(this.terminals_[V]||V)+"'":Et="Parse error on line "+(yt+1)+": Unexpected "+(V==ee?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(Et,{text:D.match,token:this.terminals_[V]||V,line:D.yylineno,loc:vt,expected:Tt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+V);switch(N[0]){case 1:u.push(V),S.push(D.yytext),e.push(D.yylloc),u.push(N[1]),V=null,Ct?(V=Ct,Ct=null):($t=D.yyleng,n=D.yytext,yt=D.yylineno,vt=D.yylloc,te>0&&te--);break;case 2:if(M=this.productions_[N[1]][1],st.$=S[S.length-M],st._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Ee&&(st._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),Lt=this.performAction.apply(st,[n,$t,yt,j.yy,N[1],S,e].concat(Le)),typeof Lt<"u")return Lt;M&&(u=u.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),u.push(this.productions_[N[1]][0]),S.push(st.$),e.push(st._$),ae=ct[u[u.length-2]][u[u.length-1]],u.push(ae);break;case 3:return!0}}return!0},"parse")},ve=(function(){var Y={EOF:1,parseError:s(function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},"parseError"),setInput:s(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===d.length?this.yylloc.first_column:0)+d[d.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-VDPKVNDJ.js b/src/google/adk/cli/browser/chunk-VDPKVNDJ.js index 9a47ca2ba8..29a6b31b95 100644 --- a/src/google/adk/cli/browser/chunk-VDPKVNDJ.js +++ b/src/google/adk/cli/browser/chunk-VDPKVNDJ.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{Y as c}from"./chunk-QFMJV7VH.js";import{g as l}from"./chunk-JRNAXTJ7.js";var m=l(t=>{let{handDrawnSeed:e}=c();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),h=l(t=>{let e=p([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),p=l(t=>{let e=new Map;return t.forEach(o=>{let[a,r]=o.split(":");e.set(a.trim(),r?.trim())}),e},"styles2Map"),d=l(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),S=l(t=>{let{stylesArray:e}=h(t),o=[],a=[],r=[],n=[];return e.forEach(s=>{let i=s[0];d(i)?o.push(s.join(":")+" !important"):(a.push(s.join(":")+" !important"),i.includes("stroke")&&r.push(s.join(":")+" !important"),i==="fill"&&n.push(s.join(":")+" !important"))}),{labelStyles:o.join(";"),nodeStyles:a.join(";"),stylesArray:e,borderStyles:r,backgroundStyles:n}},"styles2String"),w=l((t,e)=>{let{themeVariables:o,handDrawnSeed:a}=c(),{nodeBorder:r,mainBkg:n}=o,{stylesMap:s}=h(t);return Object.assign({roughness:.7,fill:s.get("fill")||n,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||r,seed:a,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:f(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),f=l(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(e.length===1){let r=isNaN(e[0])?0:e[0];return[r,r]}let o=isNaN(e[0])?0:e[0],a=isNaN(e[1])?0:e[1];return[o,a]},"getStrokeDashArray");export{m as a,h as b,d as c,S as d,w as e}; diff --git a/src/google/adk/cli/browser/chunk-W67OU2Q2.js b/src/google/adk/cli/browser/chunk-W67OU2Q2.js index 7f141bceba..09321e3997 100644 --- a/src/google/adk/cli/browser/chunk-W67OU2Q2.js +++ b/src/google/adk/cli/browser/chunk-W67OU2Q2.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{M as xt,O as kt,R as _t,S as vt,T as bt,U as St,V as wt,W as Lt,X as Et,Y as Q,_ as At}from"./chunk-QFMJV7VH.js";import{J as Ct,a as q,g as y,r as Tt}from"./chunk-JRNAXTJ7.js";import"./chunk-RMXJBC7V.js";function X(t,n){let r;if(n===void 0)for(let l of t)l!=null&&(r=l)&&(r=l);else{let l=-1;for(let f of t)(f=n(f,++l,t))!=null&&(r=f)&&(r=f)}return r}function F(t,n){let r;if(n===void 0)for(let l of t)l!=null&&(r>l||r===void 0&&l>=l)&&(r=l);else{let l=-1;for(let f of t)(f=n(f,++l,t))!=null&&(r>f||r===void 0&&f>=f)&&(r=f)}return r}function U(t,n){let r=0;if(n===void 0)for(let l of t)(l=+l)&&(r+=l);else{let l=-1;for(let f of t)(f=+n(f,++l,t))&&(r+=f)}return r}function Bt(t){return t.target.depth}function st(t){return t.depth}function it(t,n){return n-1-t.height}function G(t,n){return t.sourceLinks.length?t.depth:n-1}function at(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?F(t.sourceLinks,Bt)-1:0}function W(t){return function(){return t}}function Mt(t,n){return K(t.source,n.source)||t.index-n.index}function Ot(t,n){return K(t.target,n.target)||t.index-n.index}function K(t,n){return t.y0-n.y0}function lt(t){return t.value}function $t(t){return t.index}function Vt(t){return t.nodes}function Ft(t){return t.links}function It(t,n){let r=t.get(n);if(!r)throw new Error("missing: "+n);return r}function Nt({nodes:t}){for(let n of t){let r=n.y0,l=r;for(let f of n.sourceLinks)f.y0=r+f.width/2,r+=f.width;for(let f of n.targetLinks)f.y1=l+f.width/2,l+=f.width}}function Z(){let t=0,n=0,r=1,l=1,f=24,S=8,m,x=$t,o=G,i,a,k=Vt,_=Ft,d=6;function v(){let e={nodes:k.apply(null,arguments),links:_.apply(null,arguments)};return C(e),T(e),M(e),P(e),z(e),Nt(e),e}v.update=function(e){return Nt(e),e},v.nodeId=function(e){return arguments.length?(x=typeof e=="function"?e:W(e),v):x},v.nodeAlign=function(e){return arguments.length?(o=typeof e=="function"?e:W(e),v):o},v.nodeSort=function(e){return arguments.length?(i=e,v):i},v.nodeWidth=function(e){return arguments.length?(f=+e,v):f},v.nodePadding=function(e){return arguments.length?(S=m=+e,v):S},v.nodes=function(e){return arguments.length?(k=typeof e=="function"?e:W(e),v):k},v.links=function(e){return arguments.length?(_=typeof e=="function"?e:W(e),v):_},v.linkSort=function(e){return arguments.length?(a=e,v):a},v.size=function(e){return arguments.length?(t=n=0,r=+e[0],l=+e[1],v):[r-t,l-n]},v.extent=function(e){return arguments.length?(t=+e[0][0],r=+e[1][0],n=+e[0][1],l=+e[1][1],v):[[t,n],[r,l]]},v.iterations=function(e){return arguments.length?(d=+e,v):d};function C({nodes:e,links:u}){for(let[h,s]of e.entries())s.index=h,s.sourceLinks=[],s.targetLinks=[];let c=new Map(e.map((h,s)=>[x(h,s,e),h]));for(let[h,s]of u.entries()){s.index=h;let{source:g,target:b}=s;typeof g!="object"&&(g=s.source=It(c,g)),typeof b!="object"&&(b=s.target=It(c,b)),g.sourceLinks.push(s),b.targetLinks.push(s)}if(a!=null)for(let{sourceLinks:h,targetLinks:s}of e)h.sort(a),s.sort(a)}function T({nodes:e}){for(let u of e)u.value=u.fixedValue===void 0?Math.max(U(u.sourceLinks,lt),U(u.targetLinks,lt)):u.fixedValue}function M({nodes:e}){let u=e.length,c=new Set(e),h=new Set,s=0;for(;c.size;){for(let g of c){g.depth=s;for(let{target:b}of g.sourceLinks)h.add(b)}if(++s>u)throw new Error("circular link");c=h,h=new Set}}function P({nodes:e}){let u=e.length,c=new Set(e),h=new Set,s=0;for(;c.size;){for(let g of c){g.height=s;for(let{source:b}of g.targetLinks)h.add(b)}if(++s>u)throw new Error("circular link");c=h,h=new Set}}function j({nodes:e}){let u=X(e,s=>s.depth)+1,c=(r-t-f)/(u-1),h=new Array(u);for(let s of e){let g=Math.max(0,Math.min(u-1,Math.floor(o.call(null,s,u))));s.layer=g,s.x0=t+g*c,s.x1=s.x0+f,h[g]?h[g].push(s):h[g]=[s]}if(i)for(let s of h)s.sort(i);return h}function B(e){let u=F(e,c=>(l-n-(c.length-1)*m)/U(c,lt));for(let c of e){let h=n;for(let s of c){s.y0=h,s.y1=h+s.value*u,h=s.y1+m;for(let g of s.sourceLinks)g.width=g.value*u}h=(l-h+m)/(c.length+1);for(let s=0;sc.length)-1)),B(u);for(let c=0;c0))continue;let D=($/N-b.y0)*u;b.y0+=D,b.y1+=D,A(b)}i===void 0&&g.sort(K),R(g,c)}}function O(e,u,c){for(let h=e.length,s=h-2;s>=0;--s){let g=e[s];for(let b of g){let $=0,N=0;for(let{target:L,value:ot}of b.sourceLinks){let Y=ot*(L.layer-b.layer);$+=H(b,L)*Y,N+=Y}if(!(N>0))continue;let D=($/N-b.y0)*u;b.y0+=D,b.y1+=D,A(b)}i===void 0&&g.sort(K),R(g,c)}}function R(e,u){let c=e.length>>1,h=e[c];p(e,h.y0-m,c-1,u),I(e,h.y1+m,c+1,u),p(e,l,e.length-1,u),I(e,n,0,u)}function I(e,u,c,h){for(;c1e-6&&(s.y0+=g,s.y1+=g),u=s.y1+m}}function p(e,u,c,h){for(;c>=0;--c){let s=e[c],g=(s.y1-u)*h;g>1e-6&&(s.y0-=g,s.y1-=g),u=s.y0-m}}function A({sourceLinks:e,targetLinks:u}){if(a===void 0){for(let{source:{sourceLinks:c}}of u)c.sort(Ot);for(let{target:{targetLinks:c}}of e)c.sort(Mt)}}function J(e){if(a===void 0)for(let{sourceLinks:u,targetLinks:c}of e)u.sort(Ot),c.sort(Mt)}function E(e,u){let c=e.y0-(e.sourceLinks.length-1)*m/2;for(let{target:h,width:s}of e.sourceLinks){if(h===u)break;c+=s+m}for(let{source:h,width:s}of u.targetLinks){if(h===e)break;c-=s}return c}function H(e,u){let c=u.y0-(u.targetLinks.length-1)*m/2;for(let{source:h,width:s}of u.targetLinks){if(h===e)break;c+=s+m}for(let{target:h,width:s}of e.sourceLinks){if(h===u)break;c-=s}return c}return v}var ut=Math.PI,ft=2*ut,V=1e-6,Ut=ft-V;function ct(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Pt(){return new ct}ct.prototype=Pt.prototype={constructor:ct,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,r,l){this._+="Q"+ +t+","+ +n+","+(this._x1=+r)+","+(this._y1=+l)},bezierCurveTo:function(t,n,r,l,f,S){this._+="C"+ +t+","+ +n+","+ +r+","+ +l+","+(this._x1=+f)+","+(this._y1=+S)},arcTo:function(t,n,r,l,f){t=+t,n=+n,r=+r,l=+l,f=+f;var S=this._x1,m=this._y1,x=r-t,o=l-n,i=S-t,a=m-n,k=i*i+a*a;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(k>V)if(!(Math.abs(a*x-o*i)>V)||!f)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var _=r-S,d=l-m,v=x*x+o*o,C=_*_+d*d,T=Math.sqrt(v),M=Math.sqrt(k),P=f*Math.tan((ut-Math.acos((v+k-C)/(2*T*M)))/2),j=P/M,B=P/T;Math.abs(j-1)>V&&(this._+="L"+(t+j*i)+","+(n+j*a)),this._+="A"+f+","+f+",0,0,"+ +(a*_>i*d)+","+(this._x1=t+B*x)+","+(this._y1=n+B*o)}},arc:function(t,n,r,l,f,S){t=+t,n=+n,r=+r,S=!!S;var m=r*Math.cos(l),x=r*Math.sin(l),o=t+m,i=n+x,a=1^S,k=S?l-f:f-l;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+o+","+i:(Math.abs(this._x1-o)>V||Math.abs(this._y1-i)>V)&&(this._+="L"+o+","+i),r&&(k<0&&(k=k%ft+ft),k>Ut?this._+="A"+r+","+r+",0,1,"+a+","+(t-m)+","+(n-x)+"A"+r+","+r+",0,1,"+a+","+(this._x1=o)+","+(this._y1=i):k>V&&(this._+="A"+r+","+r+",0,"+ +(k>=ut)+","+a+","+(this._x1=t+r*Math.cos(f))+","+(this._y1=n+r*Math.sin(f))))},rect:function(t,n,r,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +l+"h"+-r+"Z"},toString:function(){return this._}};var ht=Pt;function dt(t){return function(){return t}}function Rt(t){return t[0]}function zt(t){return t[1]}var Dt=Array.prototype.slice;function Wt(t){return t.source}function Ht(t){return t.target}function Yt(t){var n=Wt,r=Ht,l=Rt,f=zt,S=null;function m(){var x,o=Dt.call(arguments),i=n.apply(this,o),a=r.apply(this,o);if(S||(S=x=ht()),t(S,+l.apply(this,(o[0]=i,o)),+f.apply(this,o),+l.apply(this,(o[0]=a,o)),+f.apply(this,o)),x)return S=null,x+""||null}return m.source=function(x){return arguments.length?(n=x,m):n},m.target=function(x){return arguments.length?(r=x,m):r},m.x=function(x){return arguments.length?(l=typeof x=="function"?x:dt(+x),m):l},m.y=function(x){return arguments.length?(f=typeof x=="function"?x:dt(+x),m):f},m.context=function(x){return arguments.length?(S=x??null,m):S},m}function qt(t,n,r,l,f){t.moveTo(n,r),t.bezierCurveTo(n=(n+l)/2,r,n,f,l,f)}function pt(){return Yt(qt)}function Xt(t){return[t.source.x1,t.y0]}function Gt(t){return[t.target.x0,t.y1]}function yt(){return pt().source(Xt).target(Gt)}var mt=(function(){var t=y(function(x,o,i,a){for(i=i||{},a=x.length;a--;i[x[a]]=o);return i},"o"),n=[1,9],r=[1,10],l=[1,5,10,12],f={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:y(function(o,i,a,k,_,d,v){var C=d.length-1;switch(_){case 7:let T=k.findOrCreateNode(d[C-4].trim().replaceAll('""','"')),M=k.findOrCreateNode(d[C-2].trim().replaceAll('""','"')),P=parseFloat(d[C].trim());k.addLink(T,M,P);break;case 8:case 9:case 11:this.$=d[C];break;case 10:this.$=d[C-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:y(function(o,i){if(i.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=i,a}},"parseError"),parse:y(function(o){var i=this,a=[0],k=[],_=[null],d=[],v=this.table,C="",T=0,M=0,P=0,j=2,B=1,z=d.slice.call(arguments,1),w=Object.create(this.lexer),O={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(O.yy[R]=this.yy[R]);w.setInput(o,O.yy),O.yy.lexer=w,O.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var I=w.yylloc;d.push(I);var p=w.options&&w.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function A(L){a.length=a.length-2*L,_.length=_.length-L,d.length=d.length-L}y(A,"popStack");function J(){var L;return L=k.pop()||w.lex()||B,typeof L!="number"&&(L instanceof Array&&(k=L,L=k.pop()),L=i.symbols_[L]||L),L}y(J,"lex");for(var E,H,e,u,c,h,s={},g,b,$,N;;){if(e=a[a.length-1],this.defaultActions[e]?u=this.defaultActions[e]:((E===null||typeof E>"u")&&(E=J()),u=v[e]&&v[e][E]),typeof u>"u"||!u.length||!u[0]){var D="";N=[];for(g in v[e])this.terminals_[g]&&g>j&&N.push("'"+this.terminals_[g]+"'");w.showPosition?D="Parse error on line "+(T+1)+`: `+w.showPosition()+` Expecting `+N.join(", ")+", got '"+(this.terminals_[E]||E)+"'":D="Parse error on line "+(T+1)+": Unexpected "+(E==B?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(D,{text:w.match,token:this.terminals_[E]||E,line:w.yylineno,loc:I,expected:N})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+e+", token: "+E);switch(u[0]){case 1:a.push(E),_.push(w.yytext),d.push(w.yylloc),a.push(u[1]),E=null,H?(E=H,H=null):(M=w.yyleng,C=w.yytext,T=w.yylineno,I=w.yylloc,P>0&&P--);break;case 2:if(b=this.productions_[u[1]][1],s.$=_[_.length-b],s._$={first_line:d[d.length-(b||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(b||1)].first_column,last_column:d[d.length-1].last_column},p&&(s._$.range=[d[d.length-(b||1)].range[0],d[d.length-1].range[1]]),h=this.performAction.apply(s,[C,M,T,O.yy,u[1],_,d].concat(z)),typeof h<"u")return h;b&&(a=a.slice(0,-1*b*2),_=_.slice(0,-1*b),d=d.slice(0,-1*b)),a.push(this.productions_[u[1]][0]),_.push(s.$),d.push(s._$),$=v[a[a.length-2]][a[a.length-1]],a.push($);break;case 3:return!0}}return!0},"parse")},S=(function(){var x={EOF:1,parseError:y(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:y(function(o,i){return this.yy=i||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:y(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var i=o.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:y(function(o){var i=o.length,a=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var k=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===k.length?this.yylloc.first_column:0)+k[k.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-W7PRDKNL.js b/src/google/adk/cli/browser/chunk-W7PRDKNL.js index 6db8bd616f..d0160171b5 100644 --- a/src/google/adk/cli/browser/chunk-W7PRDKNL.js +++ b/src/google/adk/cli/browser/chunk-W7PRDKNL.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as At,b as Ot}from"./chunk-DRBE27N3.js";import{a as w}from"./chunk-PRKFGJVH.js";import{a as jt,b as St,d as R,e as N}from"./chunk-VDPKVNDJ.js";import{d as $t,f as nt}from"./chunk-WXI2IBAH.js";import{i as wt,o as bt,q as st}from"./chunk-WBLSVR3V.js";import{$ as Rt,A as dt,E as it,G as Pt,I as Nt,J as _t,Y as U,u as ut}from"./chunk-QFMJV7VH.js";import{a as Q,g as b,i as Z}from"./chunk-JRNAXTJ7.js";import{a as tt,b as rt,j as C}from"./chunk-RMXJBC7V.js";var O=b((y,t,g)=>C(null,null,function*(){let o,l=t.useHtmlLabels||ut(U()?.htmlLabels);g?o=g:o="node default";let r=y.insert("g").attr("class",o).attr("id",t.domId||t.id),f=r.insert("g").attr("class","label").attr("style",st(t.labelStyle)),a;t.label===void 0?a="":a=typeof t.label=="string"?t.label:t.label[0];let c=!!t.icon||!!t.img,s=t.labelType==="markdown",e=yield nt(f,Pt(bt(a),U()),{useHtmlLabels:l,width:t.width||U().flowchart?.wrappingWidth,cssClasses:s?"markdown-node-label":void 0,style:t.labelStyle,addSvgBackground:c,markdown:s},U()),i=e.getBBox(),h=(t?.padding??0)/2;if(l){let n=e.children[0],p=Q(e);yield Ot(n,a),i=n.getBoundingClientRect(),p.attr("width",i.width),p.attr("height",i.height)}return l?f.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"):f.attr("transform","translate(0, "+-i.height/2+")"),t.centerLabel&&f.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),f.insert("rect",":first-child"),{shapeSvg:r,bbox:i,halfPadding:h,label:f}}),"labelHelper"),Lt=b((y,t,g)=>C(null,null,function*(){let o=g.useHtmlLabels??it(U()),l=y.insert("g").attr("class","label").attr("style",g.labelStyle||""),r=yield nt(l,Pt(bt(t),U()),{useHtmlLabels:o,width:g.width||U()?.flowchart?.wrappingWidth,style:g.labelStyle,addSvgBackground:!!g.icon||!!g.img}),f=r.getBBox(),a=g.padding/2;if(it(U())){let c=r.children[0],s=Q(r);f=c.getBoundingClientRect(),s.attr("width",f.width),s.attr("height",f.height)}return o?l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):l.attr("transform","translate(0, "+-f.height/2+")"),g.centerLabel&&l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:y,bbox:f,halfPadding:a,label:l}}),"insertLabel"),A=b((y,t)=>{let g=t.node().getBBox();y.width=g.width,y.height=g.height},"updateNodeBounds"),T=b((y,t)=>(y.look==="handDrawn"?"rough-node":"node")+" "+y.cssClasses+" "+(t||""),"getNodeClasses");function z(y){let t=y.map((g,o)=>`${o===0?"M":"L"}${g.x},${g.y}`);return t.push("Z"),t.join(" ")}b(z,"createPathFromPoints");function ft(y,t,g,o,l,r){let f=[],c=g-y,s=o-t,e=c/r,i=2*Math.PI/e,h=t+s/2;for(let n=0;n<=50;n++){let p=n/50,u=y+p*c,m=h+l*Math.sin(i*(u-y));f.push({x:u,y:m})}return f}b(ft,"generateFullSineWavePoints");function kt(y,t,g,o,l,r){let f=[],a=l*Math.PI/180,e=(r*Math.PI/180-a)/(o-1);for(let i=0;i{var g=y.x,o=y.y,l=t.x-g,r=t.y-o,f=y.width/2,a=y.height/2,c,s;return Math.abs(r)*f>Math.abs(l)*a?(r<0&&(a=-a),c=r===0?0:a*l/r,s=a):(l<0&&(f=-f),c=f,s=l===0?0:f*r/l),{x:g+c,y:o+s}},"intersectRect"),xt=ne,ce=b((y,t,g,o=!1,l=!1)=>C(null,null,function*(){let r=t||"";typeof r=="object"&&(r=r[0]);let f=U(),a=it(f);return yield nt(y,r,{style:g,isTitle:o,useHtmlLabels:a,markdown:!1,isNode:l,width:Number.POSITIVE_INFINITY},f)}),"createLabel"),Bt=ce,yt=b((y,t,g,o,l)=>["M",y+l,t,"H",y+g-l,"A",l,l,0,0,1,y+g,t+l,"V",t+o-l,"A",l,l,0,0,1,y+g-l,t+o,"H",y+l,"A",l,l,0,0,1,y,t+o-l,"V",t+l,"A",l,l,0,0,1,y+l,t,"Z"].join(" "),"createRoundedRectPathD"),Xt=b((y,t)=>C(null,null,function*(){Z.info("Creating subgraph rect for ",t.id,t);let g=U(),{themeVariables:o,handDrawnSeed:l}=g,{clusterBkg:r,clusterBorder:f}=o,{labelStyles:a,nodeStyles:c,borderStyles:s,backgroundStyles:e}=R(t),i=y.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),h=it(g),n=i.insert("g").attr("class","cluster-label "),p;t.labelType==="markdown"?p=yield nt(n,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width}):p=yield Bt(n,t.label,t.labelStyle||"",!1,!0);let u=p.getBBox();if(it(g)){let B=p.children[0],k=Q(p);u=B.getBoundingClientRect(),k.attr("width",u.width),k.attr("height",u.height)}let m=t.width<=u.width+t.padding?u.width+t.padding:t.width;t.width<=u.width+t.padding?t.diff=(m-t.width)/2-t.padding:t.diff=-t.padding;let d=t.height,x=t.x-m/2,D=t.y-d/2;Z.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){let B=w.svg(i),k=N(t,{roughness:.7,fill:r,stroke:f,fillWeight:3,seed:l}),M=B.path(yt(x,D,m,d,0),k);S=i.insert(()=>(Z.debug("Rough node insert CXC",M),M),":first-child"),S.select("path:nth-child(2)").attr("style",s.join(";")),S.select("path").attr("style",e.join(";").replace("fill","stroke"))}else S=i.insert("rect",":first-child"),S.attr("style",c).attr("rx",t.rx).attr("ry",t.ry).attr("x",x).attr("y",D).attr("width",m).attr("height",d);let{subGraphTitleTopMargin:$}=At(g);if(n.attr("transform",`translate(${t.x-u.width/2}, ${t.y-t.height/2+$})`),a){let B=n.select("span");B&&B.attr("style",a)}let v=S.node().getBBox();return t.offsetX=0,t.width=v.width,t.height=v.height,t.offsetY=u.height-t.padding/2,t.intersect=function(B){return xt(t,B)},{cluster:i,labelBBox:u}}),"rect"),oe=b((y,t)=>{let g=y.insert("g").attr("class","note-cluster").attr("id",t.id),o=g.insert("rect",":first-child"),l=0*t.padding,r=l/2;o.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-r).attr("y",t.y-t.height/2-r).attr("width",t.width+l).attr("height",t.height+l).attr("fill","none");let f=o.node().getBBox();return t.width=f.width,t.height=f.height,t.intersect=function(a){return xt(t,a)},{cluster:g,labelBBox:{width:0,height:0}}},"noteGroup"),he=b((y,t)=>C(null,null,function*(){let g=U(),{themeVariables:o,handDrawnSeed:l}=g,{altBackground:r,compositeBackground:f,compositeTitleBackground:a,nodeBorder:c}=o,s=y.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),e=s.insert("g",":first-child"),i=s.insert("g").attr("class","cluster-label"),h=s.append("rect"),n=yield Bt(i,t.label,t.labelStyle,void 0,!0),p=n.getBBox();if(it(g)){let M=n.children[0],I=Q(n);p=M.getBoundingClientRect(),I.attr("width",p.width),I.attr("height",p.height)}let u=0*t.padding,m=u/2,d=(t.width<=p.width+t.padding?p.width+t.padding:t.width)+u;t.width<=p.width+t.padding?t.diff=(d-t.width)/2-t.padding:t.diff=-t.padding;let x=t.height+u,D=t.height+u-p.height-6,S=t.x-d/2,$=t.y-x/2;t.width=d;let v=t.y-t.height/2-m+p.height+2,B;if(t.look==="handDrawn"){let M=t.cssClasses.includes("statediagram-cluster-alt"),I=w.svg(s),Y=t.rx||t.ry?I.path(yt(S,$,d,x,10),{roughness:.7,fill:a,fillStyle:"solid",stroke:c,seed:l}):I.rectangle(S,$,d,x,{seed:l});B=s.insert(()=>Y,":first-child");let V=I.rectangle(S,v,d,D,{fill:M?r:f,fillStyle:M?"hachure":"solid",stroke:c,seed:l});B=s.insert(()=>Y,":first-child"),h=s.insert(()=>V)}else B=e.insert("rect",":first-child"),B.attr("class","outer").attr("x",S).attr("y",$).attr("width",d).attr("height",x).attr("data-look",t.look),h.attr("class","inner").attr("x",S).attr("y",v).attr("width",d).attr("height",D);i.attr("transform",`translate(${t.x-p.width/2}, ${$+1-(it(g)?0:3)})`);let k=B.node().getBBox();return t.height=k.height,t.offsetX=0,t.offsetY=p.height-t.padding/2,t.labelBBox=p,t.intersect=function(M){return xt(t,M)},{cluster:s,labelBBox:p}}),"roundedWithTitle"),ge=b((y,t)=>C(null,null,function*(){Z.info("Creating subgraph rect for ",t.id,t);let g=U(),{themeVariables:o,handDrawnSeed:l}=g,{clusterBkg:r,clusterBorder:f}=o,{labelStyles:a,nodeStyles:c,borderStyles:s,backgroundStyles:e}=R(t),i=y.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),h=it(g),n=i.insert("g").attr("class","cluster-label "),p=yield nt(n,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width}),u=p.getBBox();if(it(g)){let B=p.children[0],k=Q(p);u=B.getBoundingClientRect(),k.attr("width",u.width),k.attr("height",u.height)}let m=t.width<=u.width+t.padding?u.width+t.padding:t.width;t.width<=u.width+t.padding?t.diff=(m-t.width)/2-t.padding:t.diff=-t.padding;let d=t.height,x=t.x-m/2,D=t.y-d/2;Z.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){let B=w.svg(i),k=N(t,{roughness:.7,fill:r,stroke:f,fillWeight:4,seed:l}),M=B.path(yt(x,D,m,d,t.rx),k);S=i.insert(()=>(Z.debug("Rough node insert CXC",M),M),":first-child"),S.select("path:nth-child(2)").attr("style",s.join(";")),S.select("path").attr("style",e.join(";").replace("fill","stroke"))}else S=i.insert("rect",":first-child"),S.attr("style",c).attr("rx",t.rx).attr("ry",t.ry).attr("x",x).attr("y",D).attr("width",m).attr("height",d);let{subGraphTitleTopMargin:$}=At(g);if(n.attr("transform",`translate(${t.x-u.width/2}, ${t.y-t.height/2+$})`),a){let B=n.select("span");B&&B.attr("style",a)}let v=S.node().getBBox();return t.offsetX=0,t.width=v.width,t.height=v.height,t.offsetY=u.height-t.padding/2,t.intersect=function(B){return xt(t,B)},{cluster:i,labelBBox:u}}),"kanbanSection"),fe=b((y,t)=>{let g=U(),{themeVariables:o,handDrawnSeed:l}=g,{nodeBorder:r}=o,f=y.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),a=f.insert("g",":first-child"),c=0*t.padding,s=t.width+c;t.diff=-t.padding;let e=t.height+c,i=t.x-s/2,h=t.y-e/2;t.width=s;let n;if(t.look==="handDrawn"){let m=w.svg(f).rectangle(i,h,s,e,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:r,seed:l});n=f.insert(()=>m,":first-child")}else n=a.insert("rect",":first-child"),n.attr("class","divider").attr("x",i).attr("y",h).attr("width",s).attr("height",e).attr("data-look",t.look);let p=n.node().getBBox();return t.height=p.height,t.offsetX=0,t.offsetY=0,t.intersect=function(u){return xt(t,u)},{cluster:f,labelBBox:{}}},"divider"),ye=Xt,pe={rect:Xt,squareRect:ye,roundedWithTitle:he,noteGroup:oe,divider:fe,kanbanSection:ge},Yt=new Map,Fe=b((y,t)=>C(null,null,function*(){let g=t.shape||"rect",o=yield pe[g](y,t);return Yt.set(t.id,o),o}),"insertCluster"),Ge=b(()=>{Yt=new Map},"clear");function qt(y,t){return y.intersect(t)}b(qt,"intersectNode");var ue=qt;function Ft(y,t,g,o){var l=y.x,r=y.y,f=l-o.x,a=r-o.y,c=Math.sqrt(t*t*a*a+g*g*f*f),s=Math.abs(t*g*f/c);o.x0}b(Ht,"sameSign");var me=Vt;function Zt(y,t,g){let o=y.x,l=y.y,r=[],f=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(e){f=Math.min(f,e.x),a=Math.min(a,e.y)}):(f=Math.min(f,t.x),a=Math.min(a,t.y));let c=o-y.width/2-f,s=l-y.height/2-a;for(let e=0;e1&&r.sort(function(e,i){let h=e.x-g.x,n=e.y-g.y,p=Math.sqrt(h*h+n*n),u=i.x-g.x,m=i.y-g.y,d=Math.sqrt(u*u+m*m);return pe,":first-child");return i.attr("class","anchor").attr("style",st(a)),A(t,i),t.intersect=function(h){return Z.info("Circle intersect",t,f,h),P.circle(t,f,h)},r}b(Jt,"anchor");function Wt(y,t,g,o,l,r,f){let c=(y+g)/2,s=(t+o)/2,e=Math.atan2(o-t,g-y),i=(g-y)/2,h=(o-t)/2,n=i/l,p=h/r,u=Math.sqrt(n**2+p**2);if(u>1)throw new Error("The given radii are too small to create an arc between the points.");let m=Math.sqrt(1-u**2),d=c+m*r*Math.sin(e)*(f?-1:1),x=s-m*l*Math.cos(e)*(f?-1:1),D=Math.atan2((t-x)/r,(y-d)/l),$=Math.atan2((o-x)/r,(g-d)/l)-D;f&&$<0&&($+=2*Math.PI),!f&&$>0&&($-=2*Math.PI);let v=[];for(let B=0;B<20;B++){let k=B/19,M=D+k*$,I=d+l*Math.cos(M),Y=x+r*Math.sin(M);v.push({x:I,y:Y})}return v}b(Wt,"generateArcPoints");function Qt(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=r.width+t.padding+20,a=r.height+t.padding,c=a/2,s=c/(2.5+a/50),{cssStyles:e}=t,i=[{x:f/2,y:-a/2},{x:-f/2,y:-a/2},...Wt(-f/2,-a/2,-f/2,a/2,s,c,!1),{x:f/2,y:a/2},...Wt(f/2,a/2,f/2,-a/2,s,c,!0)],h=w.svg(l),n=N(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");let p=z(i),u=h.path(p,n),m=l.insert(()=>u,":first-child");return m.attr("class","basic label-container"),e&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",e),o&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",o),m.attr("transform",`translate(${s/2}, 0)`),A(t,m),t.intersect=function(d){return P.polygon(t,i,d)},l})}b(Qt,"bowTieRect");function ht(y,t,g,o){return y.insert("polygon",":first-child").attr("points",o.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+g/2+")")}b(ht,"insertPolygonShape");function Ut(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=r.height+t.padding,a=12,c=r.width+t.padding+a,s=0,e=c,i=-f,h=0,n=[{x:s+a,y:i},{x:e,y:i},{x:e,y:h},{x:s,y:h},{x:s,y:i+a},{x:s+a,y:i}],p,{cssStyles:u}=t;if(t.look==="handDrawn"){let m=w.svg(l),d=N(t,{}),x=z(n),D=m.path(x,d);p=l.insert(()=>D,":first-child").attr("transform",`translate(${-c/2}, ${f/2})`),u&&p.attr("style",u)}else p=ht(l,c,f,n);return o&&p.attr("style",o),A(t,p),t.intersect=function(m){return P.polygon(t,n,m)},l})}b(Ut,"card");function Kt(y,t){let{nodeStyles:g}=R(t);t.label="";let o=y.insert("g").attr("class",T(t)).attr("id",t.domId??t.id),{cssStyles:l}=t,r=Math.max(28,t.width??0),f=[{x:0,y:r/2},{x:r/2,y:0},{x:0,y:-r/2},{x:-r/2,y:0}],a=w.svg(o),c=N(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let s=z(f),e=a.path(s,c),i=o.insert(()=>e,":first-child");return l&&t.look!=="handDrawn"&&i.selectAll("path").attr("style",l),g&&t.look!=="handDrawn"&&i.selectAll("path").attr("style",g),t.width=28,t.height=28,t.intersect=function(h){return P.polygon(t,f,h)},o}b(Kt,"choice");function It(y,t,g){return C(this,null,function*(){let{labelStyles:o,nodeStyles:l}=R(t);t.labelStyle=o;let{shapeSvg:r,bbox:f,halfPadding:a}=yield O(y,t,T(t)),c=g?.padding??a,s=f.width/2+c,e,{cssStyles:i}=t;if(t.look==="handDrawn"){let h=w.svg(r),n=N(t,{}),p=h.circle(0,0,s*2,n);e=r.insert(()=>p,":first-child"),e.attr("class","basic label-container").attr("style",st(i))}else e=r.insert("circle",":first-child").attr("class","basic label-container").attr("style",l).attr("r",s).attr("cx",0).attr("cy",0);return A(t,e),t.calcIntersect=function(h,n){let p=h.width/2;return P.circle(h,p,n)},t.intersect=function(h){return Z.info("Circle intersect",t,s,h),P.circle(t,s,h)},r})}b(It,"circle");function ts(y){let t=Math.cos(Math.PI/4),g=Math.sin(Math.PI/4),o=y*2,l={x:o/2*t,y:o/2*g},r={x:-(o/2)*t,y:o/2*g},f={x:-(o/2)*t,y:-(o/2)*g},a={x:o/2*t,y:-(o/2)*g};return`M ${r.x},${r.y} L ${a.x},${a.y} M ${l.x},${l.y} L ${f.x},${f.y}`}b(ts,"createLine");function ss(y,t){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g,t.label="";let l=y.insert("g").attr("class",T(t)).attr("id",t.domId??t.id),r=Math.max(30,t?.width??0),{cssStyles:f}=t,a=w.svg(l),c=N(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let s=a.circle(0,0,r*2,c),e=ts(r),i=a.path(e,c),h=l.insert(()=>s,":first-child");return h.insert(()=>i),f&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",f),o&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",o),A(t,h),t.intersect=function(n){return Z.info("crossedCircle intersect",t,{radius:r,point:n}),P.circle(t,r,n)},l}b(ss,"crossedCircle");function ct(y,t,g,o=100,l=0,r=180){let f=[],a=l*Math.PI/180,e=(r*Math.PI/180-a)/(o-1);for(let i=0;iD,":first-child").attr("stroke-opacity",0),S.insert(()=>d,":first-child"),S.attr("class","text"),e&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",e),o&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",o),S.attr("transform",`translate(${s}, 0)`),f.attr("transform",`translate(${-a/2+s-(r.x-(r.left??0))},${-c/2+(t.padding??0)/2-(r.y-(r.top??0))})`),A(t,S),t.intersect=function($){return P.polygon(t,h,$)},l})}b(es,"curlyBraceLeft");function ot(y,t,g,o=100,l=0,r=180){let f=[],a=l*Math.PI/180,e=(r*Math.PI/180-a)/(o-1);for(let i=0;iD,":first-child").attr("stroke-opacity",0),S.insert(()=>d,":first-child"),S.attr("class","text"),e&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",e),o&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",o),S.attr("transform",`translate(${-s}, 0)`),f.attr("transform",`translate(${-a/2+(t.padding??0)/2-(r.x-(r.left??0))},${-c/2+(t.padding??0)/2-(r.y-(r.top??0))})`),A(t,S),t.intersect=function($){return P.polygon(t,h,$)},l})}b(as,"curlyBraceRight");function K(y,t,g,o=100,l=0,r=180){let f=[],a=l*Math.PI/180,e=(r*Math.PI/180-a)/(o-1);for(let i=0;iB,":first-child").attr("stroke-opacity",0),k.insert(()=>x,":first-child"),k.insert(()=>$,":first-child"),k.attr("class","text"),e&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",e),o&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",o),k.attr("transform",`translate(${s-s/4}, 0)`),f.attr("transform",`translate(${-a/2+(t.padding??0)/2-(r.x-(r.left??0))},${-c/2+(t.padding??0)/2-(r.y-(r.top??0))})`),A(t,k),t.intersect=function(M){return P.polygon(t,n,M)},l})}b(rs,"curlyBraces");function is(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=80,a=20,c=Math.max(f,(r.width+(t.padding??0)*2)*1.25,t?.width??0),s=Math.max(a,r.height+(t.padding??0)*2,t?.height??0),e=s/2,{cssStyles:i}=t,h=w.svg(l),n=N(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");let p=c,u=s,m=p-e,d=u/4,x=[{x:m,y:0},{x:d,y:0},{x:0,y:u/2},{x:d,y:u},{x:m,y:u},...kt(-m,-u/2,e,50,270,90)],D=z(x),S=h.path(D,n),$=l.insert(()=>S,":first-child");return $.attr("class","basic label-container"),i&&t.look!=="handDrawn"&&$.selectChildren("path").attr("style",i),o&&t.look!=="handDrawn"&&$.selectChildren("path").attr("style",o),$.attr("transform",`translate(${-c/2}, ${-s/2})`),A(t,$),t.intersect=function(v){return P.polygon(t,x,v)},l})}b(is,"curvedTrapezoid");var we=b((y,t,g,o,l,r)=>[`M${y},${t+r}`,`a${l},${r} 0,0,0 ${g},0`,`a${l},${r} 0,0,0 ${-g},0`,`l0,${o}`,`a${l},${r} 0,0,0 ${g},0`,`l0,${-o}`].join(" "),"createCylinderPathD"),be=b((y,t,g,o,l,r)=>[`M${y},${t+r}`,`M${y+g},${t+r}`,`a${l},${r} 0,0,0 ${-g},0`,`l0,${o}`,`a${l},${r} 0,0,0 ${g},0`,`l0,${-o}`].join(" "),"createOuterCylinderPathD"),Se=b((y,t,g,o,l,r)=>[`M${y-g/2},${-o/2}`,`a${l},${r} 0,0,0 ${g},0`].join(" "),"createInnerCylinderPathD");function ls(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,label:f}=yield O(y,t,T(t)),a=Math.max(r.width+t.padding,t.width??0),c=a/2,s=c/(2.5+a/50),e=Math.max(r.height+s+t.padding,t.height??0),i,{cssStyles:h}=t;if(t.look==="handDrawn"){let n=w.svg(l),p=be(0,0,a,e,c,s),u=Se(0,s,a,e,c,s),m=n.path(p,N(t,{})),d=n.path(u,N(t,{fill:"none"}));i=l.insert(()=>d,":first-child"),i=l.insert(()=>m,":first-child"),i.attr("class","basic label-container"),h&&i.attr("style",h)}else{let n=we(0,0,a,e,c,s);i=l.insert("path",":first-child").attr("d",n).attr("class","basic label-container").attr("style",st(h)).attr("style",o)}return i.attr("label-offset-y",s),i.attr("transform",`translate(${-a/2}, ${-(e/2+s)})`),A(t,i),f.attr("transform",`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)+(t.padding??0)/1.5-(r.y-(r.top??0))})`),t.intersect=function(n){let p=P.rect(t,n),u=p.x-(t.x??0);if(c!=0&&(Math.abs(u)<(t.width??0)/2||Math.abs(u)==(t.width??0)/2&&Math.abs(p.y-(t.y??0))>(t.height??0)/2-s)){let m=s*s*(1-u*u/(c*c));m>0&&(m=Math.sqrt(m)),m=s-m,n.y-(t.y??0)>0&&(m=-m),p.y+=m}return p},l})}b(ls,"cylinder");function ns(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,label:f}=yield O(y,t,T(t)),a=r.width+t.padding,c=r.height+t.padding,s=c*.2,e=-a/2,i=-c/2-s/2,{cssStyles:h}=t,n=w.svg(l),p=N(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let u=[{x:e,y:i+s},{x:-e,y:i+s},{x:-e,y:-i},{x:e,y:-i},{x:e,y:i},{x:-e,y:i},{x:-e,y:i+s}],m=n.polygon(u.map(x=>[x.x,x.y]),p),d=l.insert(()=>m,":first-child");return d.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",h),o&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",o),f.attr("transform",`translate(${e+(t.padding??0)/2-(r.x-(r.left??0))}, ${i+s+(t.padding??0)/2-(r.y-(r.top??0))})`),A(t,d),t.intersect=function(x){return P.rect(t,x)},l})}b(ns,"dividedRectangle");function cs(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,halfPadding:f}=yield O(y,t,T(t)),c=r.width/2+f+5,s=r.width/2+f,e,{cssStyles:i}=t;if(t.look==="handDrawn"){let h=w.svg(l),n=N(t,{roughness:.2,strokeWidth:2.5}),p=N(t,{roughness:.2,strokeWidth:1.5}),u=h.circle(0,0,c*2,n),m=h.circle(0,0,s*2,p);e=l.insert("g",":first-child"),e.attr("class",st(t.cssClasses)).attr("style",st(i)),e.node()?.appendChild(u),e.node()?.appendChild(m)}else{e=l.insert("g",":first-child");let h=e.insert("circle",":first-child"),n=e.insert("circle");e.attr("class","basic label-container").attr("style",o),h.attr("class","outer-circle").attr("style",o).attr("r",c).attr("cx",0).attr("cy",0),n.attr("class","inner-circle").attr("style",o).attr("r",s).attr("cx",0).attr("cy",0)}return A(t,e),t.intersect=function(h){return Z.info("DoubleCircle intersect",t,c,h),P.circle(t,c,h)},l})}b(cs,"doublecircle");function os(y,t,{config:{themeVariables:g}}){let{labelStyles:o,nodeStyles:l}=R(t);t.label="",t.labelStyle=o;let r=y.insert("g").attr("class",T(t)).attr("id",t.domId??t.id),f=7,{cssStyles:a}=t,c=w.svg(r),{nodeBorder:s}=g,e=N(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(e.roughness=0);let i=c.circle(0,0,f*2,e),h=r.insert(()=>i,":first-child");return h.selectAll("path").attr("style",`fill: ${s} !important;`),a&&a.length>0&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",a),l&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",l),A(t,h),t.intersect=function(n){return Z.info("filledCircle intersect",t,{radius:f,point:n}),P.circle(t,f,n)},r}b(os,"filledCircle");function hs(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,label:f}=yield O(y,t,T(t)),a=r.width+(t.padding??0),c=a+r.height,s=a+r.height,e=[{x:0,y:-c},{x:s,y:-c},{x:s/2,y:0}],{cssStyles:i}=t,h=w.svg(l),n=N(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");let p=z(e),u=h.path(p,n),m=l.insert(()=>u,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return i&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),o&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",o),t.width=a,t.height=c,A(t,m),f.attr("transform",`translate(${-r.width/2-(r.x-(r.left??0))}, ${-c/2+(t.padding??0)/2+(r.y-(r.top??0))})`),t.intersect=function(d){return Z.info("Triangle intersect",t,e,d),P.polygon(t,e,d)},l})}b(hs,"flippedTriangle");function gs(y,t,{dir:g,config:{state:o,themeVariables:l}}){let{nodeStyles:r}=R(t);t.label="";let f=y.insert("g").attr("class",T(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,c=Math.max(70,t?.width??0),s=Math.max(10,t?.height??0);g==="LR"&&(c=Math.max(10,t?.width??0),s=Math.max(70,t?.height??0));let e=-1*c/2,i=-1*s/2,h=w.svg(f),n=N(t,{stroke:l.lineColor,fill:l.lineColor});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");let p=h.rectangle(e,i,c,s,n),u=f.insert(()=>p,":first-child");a&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",a),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),A(t,u);let m=o?.padding??0;return t.width&&t.height&&(t.width+=m/2||0,t.height+=m/2||0),t.intersect=function(d){return P.rect(t,d)},f}b(gs,"forkJoin");function fs(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let l=80,r=50,{shapeSvg:f,bbox:a}=yield O(y,t,T(t)),c=Math.max(l,a.width+(t.padding??0)*2,t?.width??0),s=Math.max(r,a.height+(t.padding??0)*2,t?.height??0),e=s/2,{cssStyles:i}=t,h=w.svg(f),n=N(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");let p=[{x:-c/2,y:-s/2},{x:c/2-e,y:-s/2},...kt(-c/2+e,0,e,50,90,270),{x:c/2-e,y:s/2},{x:-c/2,y:s/2}],u=z(p),m=h.path(u,n),d=f.insert(()=>m,":first-child");return d.attr("class","basic label-container"),i&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",i),o&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",o),A(t,d),t.intersect=function(x){return Z.info("Pill intersect",t,{radius:e,point:x}),P.polygon(t,p,x)},f})}b(fs,"halfRoundedRectangle");var $e=b((y,t,g,o,l)=>[`M${y+l},${t}`,`L${y+g-l},${t}`,`L${y+g},${t-o/2}`,`L${y+g-l},${t-o}`,`L${y+l},${t-o}`,`L${y},${t-o/2}`,"Z"].join(" "),"createHexagonPathD");function ys(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=4,a=r.height+t.padding,c=a/f,s=r.width+2*c+t.padding,e=[{x:c,y:0},{x:s-c,y:0},{x:s,y:-a/2},{x:s-c,y:-a},{x:c,y:-a},{x:0,y:-a/2}],i,{cssStyles:h}=t;if(t.look==="handDrawn"){let n=w.svg(l),p=N(t,{}),u=$e(0,0,s,a,c),m=n.path(u,p);i=l.insert(()=>m,":first-child").attr("transform",`translate(${-s/2}, ${a/2})`),h&&i.attr("style",h)}else i=ht(l,s,a,e);return o&&i.attr("style",o),t.width=s,t.height=a,A(t,i),t.intersect=function(n){return P.polygon(t,e,n)},l})}b(ys,"hexagon");function ps(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.label="",t.labelStyle=g;let{shapeSvg:l}=yield O(y,t,T(t)),r=Math.max(30,t?.width??0),f=Math.max(30,t?.height??0),{cssStyles:a}=t,c=w.svg(l),s=N(t,{});t.look!=="handDrawn"&&(s.roughness=0,s.fillStyle="solid");let e=[{x:0,y:0},{x:r,y:0},{x:0,y:f},{x:r,y:f}],i=z(e),h=c.path(i,s),n=l.insert(()=>h,":first-child");return n.attr("class","basic label-container"),a&&t.look!=="handDrawn"&&n.selectChildren("path").attr("style",a),o&&t.look!=="handDrawn"&&n.selectChildren("path").attr("style",o),n.attr("transform",`translate(${-r/2}, ${-f/2})`),A(t,n),t.intersect=function(p){return Z.info("Pill intersect",t,{points:e}),P.polygon(t,e,p)},l})}b(ps,"hourglass");function us(l,r,f){return C(this,arguments,function*(y,t,{config:{themeVariables:g,flowchart:o}}){let{labelStyles:a}=R(t);t.labelStyle=a;let c=t.assetHeight??48,s=t.assetWidth??48,e=Math.max(c,s),i=o?.wrappingWidth;t.width=Math.max(e,i??0);let{shapeSvg:h,bbox:n,label:p}=yield O(y,t,"icon-shape default"),u=t.pos==="t",m=e,d=e,{nodeBorder:x}=g,{stylesMap:D}=St(t),S=-d/2,$=-m/2,v=t.label?8:0,B=w.svg(h),k=N(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let M=B.rectangle(S,$,d,m,k),I=Math.max(d,n.width),Y=m+n.height+v,V=B.rectangle(-I/2,-Y/2,I,Y,rt(tt({},k),{fill:"transparent",stroke:"none"})),q=h.insert(()=>M,":first-child"),W=h.insert(()=>V);if(t.icon){let j=h.append("g");j.html(`${yield $t(t.icon,{height:e,width:e,fallbackPrefix:""})}`);let L=j.node().getBBox(),F=L.width,_=L.height,H=L.x,X=L.y;j.attr("transform",`translate(${-F/2-H},${u?n.height/2+v/2-_/2-X:-n.height/2-v/2-_/2-X})`),j.attr("style",`color: ${D.get("stroke")??x};`)}return p.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))},${u?-Y/2:Y/2-n.height})`),q.attr("transform",`translate(0,${u?n.height/2+v/2:-n.height/2-v/2})`),A(t,W),t.intersect=function(j){if(Z.info("iconSquare intersect",t,j),!t.label)return P.rect(t,j);let L=t.x??0,F=t.y??0,_=t.height??0,H=[];return u?H=[{x:L-n.width/2,y:F-_/2},{x:L+n.width/2,y:F-_/2},{x:L+n.width/2,y:F-_/2+n.height+v},{x:L+d/2,y:F-_/2+n.height+v},{x:L+d/2,y:F+_/2},{x:L-d/2,y:F+_/2},{x:L-d/2,y:F-_/2+n.height+v},{x:L-n.width/2,y:F-_/2+n.height+v}]:H=[{x:L-d/2,y:F-_/2},{x:L+d/2,y:F-_/2},{x:L+d/2,y:F-_/2+m},{x:L+n.width/2,y:F-_/2+m},{x:L+n.width/2/2,y:F+_/2},{x:L-n.width/2,y:F+_/2},{x:L-n.width/2,y:F-_/2+m},{x:L-d/2,y:F-_/2+m}],P.polygon(t,H,j)},h})}b(us,"icon");function ds(l,r,f){return C(this,arguments,function*(y,t,{config:{themeVariables:g,flowchart:o}}){let{labelStyles:a}=R(t);t.labelStyle=a;let c=t.assetHeight??48,s=t.assetWidth??48,e=Math.max(c,s),i=o?.wrappingWidth;t.width=Math.max(e,i??0);let{shapeSvg:h,bbox:n,label:p}=yield O(y,t,"icon-shape default"),u=20,m=t.label?8:0,d=t.pos==="t",{nodeBorder:x,mainBkg:D}=g,{stylesMap:S}=St(t),$=w.svg(h),v=N(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let B=S.get("fill");v.stroke=B??D;let k=h.append("g");t.icon&&k.html(`${yield $t(t.icon,{height:e,width:e,fallbackPrefix:""})}`);let M=k.node().getBBox(),I=M.width,Y=M.height,V=M.x,q=M.y,W=Math.max(I,Y)*Math.SQRT2+u*2,j=$.circle(0,0,W,v),L=Math.max(W,n.width),F=W+n.height+m,_=$.rectangle(-L/2,-F/2,L,F,rt(tt({},v),{fill:"transparent",stroke:"none"})),H=h.insert(()=>j,":first-child"),X=h.insert(()=>_);return k.attr("transform",`translate(${-I/2-V},${d?n.height/2+m/2-Y/2-q:-n.height/2-m/2-Y/2-q})`),k.attr("style",`color: ${S.get("stroke")??x};`),p.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))},${d?-F/2:F/2-n.height})`),H.attr("transform",`translate(0,${d?n.height/2+m/2:-n.height/2-m/2})`),A(t,X),t.intersect=function(E){return Z.info("iconSquare intersect",t,E),P.rect(t,E)},h})}b(ds,"iconCircle");function ms(l,r,f){return C(this,arguments,function*(y,t,{config:{themeVariables:g,flowchart:o}}){let{labelStyles:a}=R(t);t.labelStyle=a;let c=t.assetHeight??48,s=t.assetWidth??48,e=Math.max(c,s),i=o?.wrappingWidth;t.width=Math.max(e,i??0);let{shapeSvg:h,bbox:n,halfPadding:p,label:u}=yield O(y,t,"icon-shape default"),m=t.pos==="t",d=e+p*2,x=e+p*2,{nodeBorder:D,mainBkg:S}=g,{stylesMap:$}=St(t),v=-x/2,B=-d/2,k=t.label?8:0,M=w.svg(h),I=N(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let Y=$.get("fill");I.stroke=Y??S;let V=M.path(yt(v,B,x,d,5),I),q=Math.max(x,n.width),W=d+n.height+k,j=M.rectangle(-q/2,-W/2,q,W,rt(tt({},I),{fill:"transparent",stroke:"none"})),L=h.insert(()=>V,":first-child").attr("class","icon-shape2"),F=h.insert(()=>j);if(t.icon){let _=h.append("g");_.html(`${yield $t(t.icon,{height:e,width:e,fallbackPrefix:""})}`);let H=_.node().getBBox(),X=H.width,E=H.height,G=H.x,J=H.y;_.attr("transform",`translate(${-X/2-G},${m?n.height/2+k/2-E/2-J:-n.height/2-k/2-E/2-J})`),_.attr("style",`color: ${$.get("stroke")??D};`)}return u.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))},${m?-W/2:W/2-n.height})`),L.attr("transform",`translate(0,${m?n.height/2+k/2:-n.height/2-k/2})`),A(t,F),t.intersect=function(_){if(Z.info("iconSquare intersect",t,_),!t.label)return P.rect(t,_);let H=t.x??0,X=t.y??0,E=t.height??0,G=[];return m?G=[{x:H-n.width/2,y:X-E/2},{x:H+n.width/2,y:X-E/2},{x:H+n.width/2,y:X-E/2+n.height+k},{x:H+x/2,y:X-E/2+n.height+k},{x:H+x/2,y:X+E/2},{x:H-x/2,y:X+E/2},{x:H-x/2,y:X-E/2+n.height+k},{x:H-n.width/2,y:X-E/2+n.height+k}]:G=[{x:H-x/2,y:X-E/2},{x:H+x/2,y:X-E/2},{x:H+x/2,y:X-E/2+d},{x:H+n.width/2,y:X-E/2+d},{x:H+n.width/2/2,y:X+E/2},{x:H-n.width/2,y:X+E/2},{x:H-n.width/2,y:X-E/2+d},{x:H-x/2,y:X-E/2+d}],P.polygon(t,G,_)},h})}b(ms,"iconRounded");function xs(l,r,f){return C(this,arguments,function*(y,t,{config:{themeVariables:g,flowchart:o}}){let{labelStyles:a}=R(t);t.labelStyle=a;let c=t.assetHeight??48,s=t.assetWidth??48,e=Math.max(c,s),i=o?.wrappingWidth;t.width=Math.max(e,i??0);let{shapeSvg:h,bbox:n,halfPadding:p,label:u}=yield O(y,t,"icon-shape default"),m=t.pos==="t",d=e+p*2,x=e+p*2,{nodeBorder:D,mainBkg:S}=g,{stylesMap:$}=St(t),v=-x/2,B=-d/2,k=t.label?8:0,M=w.svg(h),I=N(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let Y=$.get("fill");I.stroke=Y??S;let V=M.path(yt(v,B,x,d,.1),I),q=Math.max(x,n.width),W=d+n.height+k,j=M.rectangle(-q/2,-W/2,q,W,rt(tt({},I),{fill:"transparent",stroke:"none"})),L=h.insert(()=>V,":first-child"),F=h.insert(()=>j);if(t.icon){let _=h.append("g");_.html(`${yield $t(t.icon,{height:e,width:e,fallbackPrefix:""})}`);let H=_.node().getBBox(),X=H.width,E=H.height,G=H.x,J=H.y;_.attr("transform",`translate(${-X/2-G},${m?n.height/2+k/2-E/2-J:-n.height/2-k/2-E/2-J})`),_.attr("style",`color: ${$.get("stroke")??D};`)}return u.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))},${m?-W/2:W/2-n.height})`),L.attr("transform",`translate(0,${m?n.height/2+k/2:-n.height/2-k/2})`),A(t,F),t.intersect=function(_){if(Z.info("iconSquare intersect",t,_),!t.label)return P.rect(t,_);let H=t.x??0,X=t.y??0,E=t.height??0,G=[];return m?G=[{x:H-n.width/2,y:X-E/2},{x:H+n.width/2,y:X-E/2},{x:H+n.width/2,y:X-E/2+n.height+k},{x:H+x/2,y:X-E/2+n.height+k},{x:H+x/2,y:X+E/2},{x:H-x/2,y:X+E/2},{x:H-x/2,y:X-E/2+n.height+k},{x:H-n.width/2,y:X-E/2+n.height+k}]:G=[{x:H-x/2,y:X-E/2},{x:H+x/2,y:X-E/2},{x:H+x/2,y:X-E/2+d},{x:H+n.width/2,y:X-E/2+d},{x:H+n.width/2/2,y:X+E/2},{x:H-n.width/2,y:X+E/2},{x:H-n.width/2,y:X-E/2+d},{x:H-x/2,y:X-E/2+d}],P.polygon(t,G,_)},h})}b(xs,"iconSquare");function ws(o,l,r){return C(this,arguments,function*(y,t,{config:{flowchart:g}}){let f=new Image;f.src=t?.img??"",yield f.decode();let a=Number(f.naturalWidth.toString().replace("px","")),c=Number(f.naturalHeight.toString().replace("px",""));t.imageAspectRatio=a/c;let{labelStyles:s}=R(t);t.labelStyle=s;let e=g?.wrappingWidth;t.defaultWidth=g?.wrappingWidth;let i=Math.max(t.label?e??0:0,t?.assetWidth??a),h=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:i,n=t.constraint==="on"?h/t.imageAspectRatio:t?.assetHeight??c;t.width=Math.max(h,e??0);let{shapeSvg:p,bbox:u,label:m}=yield O(y,t,"image-shape default"),d=t.pos==="t",x=-h/2,D=-n/2,S=t.label?8:0,$=w.svg(p),v=N(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let B=$.rectangle(x,D,h,n,v),k=Math.max(h,u.width),M=n+u.height+S,I=$.rectangle(-k/2,-M/2,k,M,rt(tt({},v),{fill:"none",stroke:"none"})),Y=p.insert(()=>B,":first-child"),V=p.insert(()=>I);if(t.img){let q=p.append("image");q.attr("href",t.img),q.attr("width",h),q.attr("height",n),q.attr("preserveAspectRatio","none"),q.attr("transform",`translate(${-h/2},${d?M/2-n:-M/2})`)}return m.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${d?-n/2-u.height/2-S/2:n/2-u.height/2+S/2})`),Y.attr("transform",`translate(0,${d?u.height/2+S/2:-u.height/2-S/2})`),A(t,V),t.intersect=function(q){if(Z.info("iconSquare intersect",t,q),!t.label)return P.rect(t,q);let W=t.x??0,j=t.y??0,L=t.height??0,F=[];return d?F=[{x:W-u.width/2,y:j-L/2},{x:W+u.width/2,y:j-L/2},{x:W+u.width/2,y:j-L/2+u.height+S},{x:W+h/2,y:j-L/2+u.height+S},{x:W+h/2,y:j+L/2},{x:W-h/2,y:j+L/2},{x:W-h/2,y:j-L/2+u.height+S},{x:W-u.width/2,y:j-L/2+u.height+S}]:F=[{x:W-h/2,y:j-L/2},{x:W+h/2,y:j-L/2},{x:W+h/2,y:j-L/2+n},{x:W+u.width/2,y:j-L/2+n},{x:W+u.width/2/2,y:j+L/2},{x:W-u.width/2,y:j+L/2},{x:W-u.width/2,y:j-L/2+n},{x:W-h/2,y:j-L/2+n}],P.polygon(t,F,q)},p})}b(ws,"imageSquare");function bs(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=Math.max(r.width+(t.padding??0)*2,t?.width??0),a=Math.max(r.height+(t.padding??0)*2,t?.height??0),c=[{x:0,y:0},{x:f,y:0},{x:f+3*a/6,y:-a},{x:-3*a/6,y:-a}],s,{cssStyles:e}=t;if(t.look==="handDrawn"){let i=w.svg(l),h=N(t,{}),n=z(c),p=i.path(n,h);s=l.insert(()=>p,":first-child").attr("transform",`translate(${-f/2}, ${a/2})`),e&&s.attr("style",e)}else s=ht(l,f,a,c);return o&&s.attr("style",o),t.width=f,t.height=a,A(t,s),t.intersect=function(i){return P.polygon(t,c,i)},l})}b(bs,"inv_trapezoid");function Dt(y,t,g){return C(this,null,function*(){let{labelStyles:o,nodeStyles:l}=R(t);t.labelStyle=o;let{shapeSvg:r,bbox:f}=yield O(y,t,T(t)),a=Math.max(f.width+g.labelPaddingX*2,t?.width||0),c=Math.max(f.height+g.labelPaddingY*2,t?.height||0),s=-a/2,e=-c/2,i,{rx:h,ry:n}=t,{cssStyles:p}=t;if(g?.rx&&g.ry&&(h=g.rx,n=g.ry),t.look==="handDrawn"){let u=w.svg(r),m=N(t,{}),d=h||n?u.path(yt(s,e,a,c,h||0),m):u.rectangle(s,e,a,c,m);i=r.insert(()=>d,":first-child"),i.attr("class","basic label-container").attr("style",st(p))}else i=r.insert("rect",":first-child"),i.attr("class","basic label-container").attr("style",l).attr("rx",st(h)).attr("ry",st(n)).attr("x",s).attr("y",e).attr("width",a).attr("height",c);return A(t,i),t.calcIntersect=function(u,m){return P.rect(u,m)},t.intersect=function(u){return P.rect(t,u)},r})}b(Dt,"drawRect");function Ss(y,t){return C(this,null,function*(){let{shapeSvg:g,bbox:o,label:l}=yield O(y,t,"label"),r=g.insert("rect",":first-child");return r.attr("width",.1).attr("height",.1),g.attr("class","label edgeLabel"),l.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),A(t,r),t.intersect=function(c){return P.rect(t,c)},g})}b(Ss,"labelRect");function $s(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=Math.max(r.width+(t.padding??0),t?.width??0),a=Math.max(r.height+(t.padding??0),t?.height??0),c=[{x:0,y:0},{x:f+3*a/6,y:0},{x:f,y:-a},{x:-(3*a)/6,y:-a}],s,{cssStyles:e}=t;if(t.look==="handDrawn"){let i=w.svg(l),h=N(t,{}),n=z(c),p=i.path(n,h);s=l.insert(()=>p,":first-child").attr("transform",`translate(${-f/2}, ${a/2})`),e&&s.attr("style",e)}else s=ht(l,f,a,c);return o&&s.attr("style",o),t.width=f,t.height=a,A(t,s),t.intersect=function(i){return P.polygon(t,c,i)},l})}b($s,"lean_left");function vs(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=Math.max(r.width+(t.padding??0),t?.width??0),a=Math.max(r.height+(t.padding??0),t?.height??0),c=[{x:-3*a/6,y:0},{x:f,y:0},{x:f+3*a/6,y:-a},{x:0,y:-a}],s,{cssStyles:e}=t;if(t.look==="handDrawn"){let i=w.svg(l),h=N(t,{}),n=z(c),p=i.path(n,h);s=l.insert(()=>p,":first-child").attr("transform",`translate(${-f/2}, ${a/2})`),e&&s.attr("style",e)}else s=ht(l,f,a,c);return o&&s.attr("style",o),t.width=f,t.height=a,A(t,s),t.intersect=function(i){return P.polygon(t,c,i)},l})}b(vs,"lean_right");function ks(y,t){let{labelStyles:g,nodeStyles:o}=R(t);t.label="",t.labelStyle=g;let l=y.insert("g").attr("class",T(t)).attr("id",t.domId??t.id),{cssStyles:r}=t,f=Math.max(35,t?.width??0),a=Math.max(35,t?.height??0),c=7,s=[{x:f,y:0},{x:0,y:a+c/2},{x:f-2*c,y:a+c/2},{x:0,y:2*a},{x:f,y:a-c/2},{x:2*c,y:a-c/2}],e=w.svg(l),i=N(t,{});t.look!=="handDrawn"&&(i.roughness=0,i.fillStyle="solid");let h=z(s),n=e.path(h,i),p=l.insert(()=>n,":first-child");return r&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",r),o&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",o),p.attr("transform",`translate(-${f/2},${-a})`),A(t,p),t.intersect=function(u){return Z.info("lightningBolt intersect",t,u),P.polygon(t,s,u)},l}b(ks,"lightningBolt");var ve=b((y,t,g,o,l,r,f)=>[`M${y},${t+r}`,`a${l},${r} 0,0,0 ${g},0`,`a${l},${r} 0,0,0 ${-g},0`,`l0,${o}`,`a${l},${r} 0,0,0 ${g},0`,`l0,${-o}`,`M${y},${t+r+f}`,`a${l},${r} 0,0,0 ${g},0`].join(" "),"createCylinderPathD"),ke=b((y,t,g,o,l,r,f)=>[`M${y},${t+r}`,`M${y+g},${t+r}`,`a${l},${r} 0,0,0 ${-g},0`,`l0,${o}`,`a${l},${r} 0,0,0 ${g},0`,`l0,${-o}`,`M${y},${t+r+f}`,`a${l},${r} 0,0,0 ${g},0`].join(" "),"createOuterCylinderPathD"),De=b((y,t,g,o,l,r)=>[`M${y-g/2},${-o/2}`,`a${l},${r} 0,0,0 ${g},0`].join(" "),"createInnerCylinderPathD");function Ds(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,label:f}=yield O(y,t,T(t)),a=Math.max(r.width+(t.padding??0),t.width??0),c=a/2,s=c/(2.5+a/50),e=Math.max(r.height+s+(t.padding??0),t.height??0),i=e*.1,h,{cssStyles:n}=t;if(t.look==="handDrawn"){let p=w.svg(l),u=ke(0,0,a,e,c,s,i),m=De(0,s,a,e,c,s),d=N(t,{}),x=p.path(u,d),D=p.path(m,d);l.insert(()=>D,":first-child").attr("class","line"),h=l.insert(()=>x,":first-child"),h.attr("class","basic label-container"),n&&h.attr("style",n)}else{let p=ve(0,0,a,e,c,s,i);h=l.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",st(n)).attr("style",o)}return h.attr("label-offset-y",s),h.attr("transform",`translate(${-a/2}, ${-(e/2+s)})`),A(t,h),f.attr("transform",`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)+s-(r.y-(r.top??0))})`),t.intersect=function(p){let u=P.rect(t,p),m=u.x-(t.x??0);if(c!=0&&(Math.abs(m)<(t.width??0)/2||Math.abs(m)==(t.width??0)/2&&Math.abs(u.y-(t.y??0))>(t.height??0)/2-s)){let d=s*s*(1-m*m/(c*c));d>0&&(d=Math.sqrt(d)),d=s-d,p.y-(t.y??0)>0&&(d=-d),u.y+=d}return u},l})}b(Ds,"linedCylinder");function Bs(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,label:f}=yield O(y,t,T(t)),a=Math.max(r.width+(t.padding??0)*2,t?.width??0),c=Math.max(r.height+(t.padding??0)*2,t?.height??0),s=c/4,e=c+s,{cssStyles:i}=t,h=w.svg(l),n=N(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");let p=[{x:-a/2-a/2*.1,y:-e/2},{x:-a/2-a/2*.1,y:e/2},...ft(-a/2-a/2*.1,e/2,a/2+a/2*.1,e/2,s,.8),{x:a/2+a/2*.1,y:-e/2},{x:-a/2-a/2*.1,y:-e/2},{x:-a/2,y:-e/2},{x:-a/2,y:e/2*1.1},{x:-a/2,y:-e/2}],u=h.polygon(p.map(d=>[d.x,d.y]),n),m=l.insert(()=>u,":first-child");return m.attr("class","basic label-container"),i&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),o&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",o),m.attr("transform",`translate(0,${-s/2})`),f.attr("transform",`translate(${-a/2+(t.padding??0)+a/2*.1/2-(r.x-(r.left??0))},${-c/2+(t.padding??0)-s/2-(r.y-(r.top??0))})`),A(t,m),t.intersect=function(d){return P.polygon(t,p,d)},l})}b(Bs,"linedWaveEdgedRect");function Ms(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,label:f}=yield O(y,t,T(t)),a=Math.max(r.width+(t.padding??0)*2,t?.width??0),c=Math.max(r.height+(t.padding??0)*2,t?.height??0),s=5,e=-a/2,i=-c/2,{cssStyles:h}=t,n=w.svg(l),p=N(t,{}),u=[{x:e-s,y:i+s},{x:e-s,y:i+c+s},{x:e+a-s,y:i+c+s},{x:e+a-s,y:i+c},{x:e+a,y:i+c},{x:e+a,y:i+c-s},{x:e+a+s,y:i+c-s},{x:e+a+s,y:i-s},{x:e+s,y:i-s},{x:e+s,y:i},{x:e,y:i},{x:e,y:i+s}],m=[{x:e,y:i+s},{x:e+a-s,y:i+s},{x:e+a-s,y:i+c},{x:e+a,y:i+c},{x:e+a,y:i},{x:e,y:i}];t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let d=z(u),x=n.path(d,p),D=z(m),S=n.path(D,rt(tt({},p),{fill:"none"})),$=l.insert(()=>S,":first-child");return $.insert(()=>x,":first-child"),$.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",h),o&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",o),f.attr("transform",`translate(${-(r.width/2)-s-(r.x-(r.left??0))}, ${-(r.height/2)+s-(r.y-(r.top??0))})`),A(t,$),t.intersect=function(v){return P.polygon(t,u,v)},l})}b(Ms,"multiRect");function Cs(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,label:f}=yield O(y,t,T(t)),a=Math.max(r.width+(t.padding??0)*2,t?.width??0),c=Math.max(r.height+(t.padding??0)*2,t?.height??0),s=c/4,e=c+s,i=-a/2,h=-e/2,n=5,{cssStyles:p}=t,u=ft(i-n,h+e+n,i+a-n,h+e+n,s,.8),m=u?.[u.length-1],d=[{x:i-n,y:h+n},{x:i-n,y:h+e+n},...u,{x:i+a-n,y:m.y-n},{x:i+a,y:m.y-n},{x:i+a,y:m.y-2*n},{x:i+a+n,y:m.y-2*n},{x:i+a+n,y:h-n},{x:i+n,y:h-n},{x:i+n,y:h},{x:i,y:h},{x:i,y:h+n}],x=[{x:i,y:h+n},{x:i+a-n,y:h+n},{x:i+a-n,y:m.y-n},{x:i+a,y:m.y-n},{x:i+a,y:h},{x:i,y:h}],D=w.svg(l),S=N(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let $=z(d),v=D.path($,S),B=z(x),k=D.path(B,S),M=l.insert(()=>v,":first-child");return M.insert(()=>k),M.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",p),o&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",o),M.attr("transform",`translate(0,${-s/2})`),f.attr("transform",`translate(${-(r.width/2)-n-(r.x-(r.left??0))}, ${-(r.height/2)+n-s/2-(r.y-(r.top??0))})`),A(t,M),t.intersect=function(I){return P.polygon(t,d,I)},l})}b(Cs,"multiWaveEdgedRectangle");function Ps(o,l,r){return C(this,arguments,function*(y,t,{config:{themeVariables:g}}){let{labelStyles:f,nodeStyles:a}=R(t);t.labelStyle=f,t.useHtmlLabels||it(dt())||(t.centerLabel=!0);let{shapeSvg:s,bbox:e,label:i}=yield O(y,t,T(t)),h=Math.max(e.width+(t.padding??0)*2,t?.width??0),n=Math.max(e.height+(t.padding??0)*2,t?.height??0),p=-h/2,u=-n/2,{cssStyles:m}=t,d=w.svg(s),x=N(t,{fill:g.noteBkgColor,stroke:g.noteBorderColor});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let D=d.rectangle(p,u,h,n,x),S=s.insert(()=>D,":first-child");return S.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",m),a&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",a),i.attr("transform",`translate(${-e.width/2-(e.x-(e.left??0))}, ${-(e.height/2)-(e.y-(e.top??0))})`),A(t,S),t.intersect=function($){return P.rect(t,$)},s})}b(Ps,"note");var Be=b((y,t,g)=>[`M${y+g/2},${t}`,`L${y+g},${t-g/2}`,`L${y+g/2},${t-g}`,`L${y},${t-g/2}`,"Z"].join(" "),"createDecisionBoxPathD");function Ns(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=r.width+t.padding,a=r.height+t.padding,c=f+a,s=.5,e=[{x:c/2,y:0},{x:c,y:-c/2},{x:c/2,y:-c},{x:0,y:-c/2}],i,{cssStyles:h}=t;if(t.look==="handDrawn"){let n=w.svg(l),p=N(t,{}),u=Be(0,0,c),m=n.path(u,p);i=l.insert(()=>m,":first-child").attr("transform",`translate(${-c/2+s}, ${c/2})`),h&&i.attr("style",h)}else i=ht(l,c,c,e),i.attr("transform",`translate(${-c/2+s}, ${c/2})`);return o&&i.attr("style",o),A(t,i),t.calcIntersect=function(n,p){let u=n.width,m=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],d=P.polygon(n,m,p);return{x:d.x-.5,y:d.y-.5}},t.intersect=function(n){return this.calcIntersect(t,n)},l})}b(Ns,"question");function Rs(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,label:f}=yield O(y,t,T(t)),a=Math.max(r.width+(t.padding??0),t?.width??0),c=Math.max(r.height+(t.padding??0),t?.height??0),s=-a/2,e=-c/2,i=e/2,h=[{x:s+i,y:e},{x:s,y:0},{x:s+i,y:-e},{x:-s,y:-e},{x:-s,y:e}],{cssStyles:n}=t,p=w.svg(l),u=N(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=z(h),d=p.path(m,u),x=l.insert(()=>d,":first-child");return x.attr("class","basic label-container"),n&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),o&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",o),x.attr("transform",`translate(${-i/2},0)`),f.attr("transform",`translate(${-i/2-r.width/2-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),A(t,x),t.intersect=function(D){return P.polygon(t,h,D)},l})}b(Rs,"rect_left_inv_arrow");function As(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let l;t.cssClasses?l="node "+t.cssClasses:l="node default";let r=y.insert("g").attr("class",l).attr("id",t.domId||t.id),f=r.insert("g"),a=r.insert("g").attr("class","label").attr("style",o),c=t.description,s=t.label,e=yield Bt(a,s,t.labelStyle,!0,!0),i={width:0,height:0};if(it(U())){let k=e.children[0],M=Q(e);i=k.getBoundingClientRect(),M.attr("width",i.width),M.attr("height",i.height)}Z.info("Text 2",c);let h=c||[],n=e.getBBox(),p=yield Bt(a,Array.isArray(h)?h.join("
"):h,t.labelStyle,!0,!0),u=p.children[0],m=Q(p);i=u.getBoundingClientRect(),m.attr("width",i.width),m.attr("height",i.height);let d=(t.padding||0)/2;Q(p).attr("transform","translate( "+(i.width>n.width?0:(n.width-i.width)/2)+", "+(n.height+d+5)+")"),Q(e).attr("transform","translate( "+(i.width(Z.debug("Rough node insert CXC",I),Y),":first-child"),v=r.insert(()=>(Z.debug("Rough node insert CXC",I),I),":first-child")}else v=f.insert("rect",":first-child"),B=f.insert("line"),v.attr("class","outer title-state").attr("style",o).attr("x",-i.width/2-d).attr("y",-i.height/2-d).attr("width",i.width+(t.padding||0)).attr("height",i.height+(t.padding||0)),B.attr("class","divider").attr("x1",-i.width/2-d).attr("x2",i.width/2+d).attr("y1",-i.height/2-d+n.height+d).attr("y2",-i.height/2-d+n.height+d);return A(t,v),t.intersect=function(k){return P.rect(t,k)},r})}b(As,"rectWithTitle");function Ls(y,t){return C(this,null,function*(){let g={rx:5,ry:5,classes:"",labelPaddingX:(t?.padding||0)*1,labelPaddingY:(t?.padding||0)*1};return Dt(y,t,g)})}b(Ls,"roundedRect");function Hs(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,label:f}=yield O(y,t,T(t)),a=t?.padding??0,c=Math.max(r.width+(t.padding??0)*2,t?.width??0),s=Math.max(r.height+(t.padding??0)*2,t?.height??0),e=-r.width/2-a,i=-r.height/2-a,{cssStyles:h}=t,n=w.svg(l),p=N(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let u=[{x:e,y:i},{x:e+c+8,y:i},{x:e+c+8,y:i+s},{x:e-8,y:i+s},{x:e-8,y:i},{x:e,y:i},{x:e,y:i+s}],m=n.polygon(u.map(x=>[x.x,x.y]),p),d=l.insert(()=>m,":first-child");return d.attr("class","basic label-container").attr("style",st(h)),o&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",o),h&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",o),f.attr("transform",`translate(${-c/2+4+(t.padding??0)-(r.x-(r.left??0))},${-s/2+(t.padding??0)-(r.y-(r.top??0))})`),A(t,d),t.intersect=function(x){return P.rect(t,x)},l})}b(Hs,"shadedProcess");function Ws(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,label:f}=yield O(y,t,T(t)),a=Math.max(r.width+(t.padding??0)*2,t?.width??0),c=Math.max(r.height+(t.padding??0)*2,t?.height??0),s=-a/2,e=-c/2,{cssStyles:i}=t,h=w.svg(l),n=N(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");let p=[{x:s,y:e},{x:s,y:e+c},{x:s+a,y:e+c},{x:s+a,y:e-c/2}],u=z(p),m=h.path(u,n),d=l.insert(()=>m,":first-child");return d.attr("class","basic label-container"),i&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",i),o&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",o),d.attr("transform",`translate(0, ${c/4})`),f.attr("transform",`translate(${-a/2+(t.padding??0)-(r.x-(r.left??0))}, ${-c/4+(t.padding??0)-(r.y-(r.top??0))})`),A(t,d),t.intersect=function(x){return P.polygon(t,p,x)},l})}b(Ws,"slopedRect");function Is(y,t){return C(this,null,function*(){let g={rx:0,ry:0,classes:"",labelPaddingX:t.labelPaddingX??(t?.padding||0)*2,labelPaddingY:(t?.padding||0)*1};return Dt(y,t,g)})}b(Is,"squareRect");function Es(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=r.height+t.padding,a=r.width+f/4+t.padding,c=f/2,{cssStyles:s}=t,e=w.svg(l),i=N(t,{});t.look!=="handDrawn"&&(i.roughness=0,i.fillStyle="solid");let h=[{x:-a/2+c,y:-f/2},{x:a/2-c,y:-f/2},...kt(-a/2+c,0,c,50,90,270),{x:a/2-c,y:f/2},...kt(a/2-c,0,c,50,270,450)],n=z(h),p=e.path(n,i),u=l.insert(()=>p,":first-child");return u.attr("class","basic label-container outer-path"),s&&t.look!=="handDrawn"&&u.selectChildren("path").attr("style",s),o&&t.look!=="handDrawn"&&u.selectChildren("path").attr("style",o),A(t,u),t.intersect=function(m){return P.polygon(t,h,m)},l})}b(Es,"stadium");function Ts(y,t){return C(this,null,function*(){return Dt(y,t,{rx:5,ry:5,classes:"flowchart-node"})})}b(Ts,"state");function _s(y,t,{config:{themeVariables:g}}){let{labelStyles:o,nodeStyles:l}=R(t);t.labelStyle=o;let{cssStyles:r}=t,{lineColor:f,stateBorder:a,nodeBorder:c}=g,s=y.insert("g").attr("class","node default").attr("id",t.domId||t.id),e=w.svg(s),i=N(t,{});t.look!=="handDrawn"&&(i.roughness=0,i.fillStyle="solid");let h=e.circle(0,0,14,rt(tt({},i),{stroke:f,strokeWidth:2})),n=a??c,p=e.circle(0,0,5,rt(tt({},i),{fill:n,stroke:n,strokeWidth:2,fillStyle:"solid"})),u=s.insert(()=>h,":first-child");return u.insert(()=>p),r&&u.selectAll("path").attr("style",r),l&&u.selectAll("path").attr("style",l),A(t,u),t.intersect=function(m){return P.circle(t,7,m)},s}b(_s,"stateEnd");function Os(y,t,{config:{themeVariables:g}}){let{lineColor:o}=g,l=y.insert("g").attr("class","node default").attr("id",t.domId||t.id),r;if(t.look==="handDrawn"){let a=w.svg(l).circle(0,0,14,jt(o));r=l.insert(()=>a),r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else r=l.insert("circle",":first-child"),r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return A(t,r),t.intersect=function(f){return P.circle(t,7,f)},l}b(Os,"stateStart");function js(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=(t?.padding||0)/2,a=r.width+t.padding,c=r.height+t.padding,s=-r.width/2-f,e=-r.height/2-f,i=[{x:0,y:0},{x:a,y:0},{x:a,y:-c},{x:0,y:-c},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-c},{x:-8,y:-c},{x:-8,y:0}];if(t.look==="handDrawn"){let h=w.svg(l),n=N(t,{}),p=h.rectangle(s-8,e,a+16,c,n),u=h.line(s,e,s,e+c,n),m=h.line(s+a,e,s+a,e+c,n);l.insert(()=>u,":first-child"),l.insert(()=>m,":first-child");let d=l.insert(()=>p,":first-child"),{cssStyles:x}=t;d.attr("class","basic label-container").attr("style",st(x)),A(t,d)}else{let h=ht(l,a,c,i);o&&h.attr("style",o),A(t,h)}return t.intersect=function(h){return P.polygon(t,i,h)},l})}b(js,"subroutine");function Xs(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=Math.max(r.width+(t.padding??0)*2,t?.width??0),a=Math.max(r.height+(t.padding??0)*2,t?.height??0),c=-f/2,s=-a/2,e=.2*a,i=.2*a,{cssStyles:h}=t,n=w.svg(l),p=N(t,{}),u=[{x:c-e/2,y:s},{x:c+f+e/2,y:s},{x:c+f+e/2,y:s+a},{x:c-e/2,y:s+a}],m=[{x:c+f-e/2,y:s+a},{x:c+f+e/2,y:s+a},{x:c+f+e/2,y:s+a-i}];t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let d=z(u),x=n.path(d,p),D=z(m),S=n.path(D,rt(tt({},p),{fillStyle:"solid"})),$=l.insert(()=>S,":first-child");return $.insert(()=>x,":first-child"),$.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",h),o&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",o),A(t,$),t.intersect=function(v){return P.polygon(t,u,v)},l})}b(Xs,"taggedRect");function Ys(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r,label:f}=yield O(y,t,T(t)),a=Math.max(r.width+(t.padding??0)*2,t?.width??0),c=Math.max(r.height+(t.padding??0)*2,t?.height??0),s=c/4,e=.2*a,i=.2*c,h=c+s,{cssStyles:n}=t,p=w.svg(l),u=N(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=[{x:-a/2-a/2*.1,y:h/2},...ft(-a/2-a/2*.1,h/2,a/2+a/2*.1,h/2,s,.8),{x:a/2+a/2*.1,y:-h/2},{x:-a/2-a/2*.1,y:-h/2}],d=-a/2+a/2*.1,x=-h/2-i*.4,D=[{x:d+a-e,y:(x+c)*1.4},{x:d+a,y:x+c-i},{x:d+a,y:(x+c)*.9},...ft(d+a,(x+c)*1.3,d+a-e,(x+c)*1.5,-c*.03,.5)],S=z(m),$=p.path(S,u),v=z(D),B=p.path(v,rt(tt({},u),{fillStyle:"solid"})),k=l.insert(()=>B,":first-child");return k.insert(()=>$,":first-child"),k.attr("class","basic label-container"),n&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",n),o&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",o),k.attr("transform",`translate(0,${-s/2})`),f.attr("transform",`translate(${-a/2+(t.padding??0)-(r.x-(r.left??0))},${-c/2+(t.padding??0)-s/2-(r.y-(r.top??0))})`),A(t,k),t.intersect=function(M){return P.polygon(t,m,M)},l})}b(Ys,"taggedWaveEdgedRectangle");function qs(y,t){return C(this,null,function*(){let{labelStyles:g,nodeStyles:o}=R(t);t.labelStyle=g;let{shapeSvg:l,bbox:r}=yield O(y,t,T(t)),f=Math.max(r.width+t.padding,t?.width||0),a=Math.max(r.height+t.padding,t?.height||0),c=-f/2,s=-a/2,e=l.insert("rect",":first-child");return e.attr("class","text").attr("style",o).attr("rx",0).attr("ry",0).attr("x",c).attr("y",s).attr("width",f).attr("height",a),A(t,e),t.intersect=function(i){return P.rect(t,i)},l})}b(qs,"text");var Me=b((y,t,g,o,l,r)=>`M${y},${t} a${l},${r} 0,0,1 0,${-o} diff --git a/src/google/adk/cli/browser/chunk-WAKWL6X3.js b/src/google/adk/cli/browser/chunk-WAKWL6X3.js index 94e5a71b6c..d5964ad526 100644 --- a/src/google/adk/cli/browser/chunk-WAKWL6X3.js +++ b/src/google/adk/cli/browser/chunk-WAKWL6X3.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as F}from"./chunk-DMWOYWYQ.js";import{a as A}from"./chunk-T3Q3QCCV.js";import"./chunk-NQKWI5EB.js";import"./chunk-WR6HISGZ.js";import"./chunk-I4UDKKN5.js";import"./chunk-2DLZXFEQ.js";import"./chunk-JNY2YWG7.js";import"./chunk-XULIXUQL.js";import"./chunk-3NJNOY56.js";import"./chunk-NALL4A3P.js";import{a as E}from"./chunk-TPDTRWWV.js";import{l as w}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{A as y,N as $,R as B,S as C,T as S,U as D,V as T,W as P,X as z,r as x}from"./chunk-QFMJV7VH.js";import{g as h,i as u}from"./chunk-JRNAXTJ7.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import{a as m,j as v}from"./chunk-RMXJBC7V.js";var M=x.packet,W=class{constructor(){this.packet=[],this.setAccTitle=C,this.getAccTitle=S,this.setDiagramTitle=P,this.getDiagramTitle=z,this.getAccDescription=T,this.setAccDescription=D}static{h(this,"PacketDB")}getConfig(){let t=w(m(m({},M),y().packet));return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){B(),this.packet=[]}},Y=1e4,I=h((t,e)=>{F(t,e);let a=-1,o=[],n=1,{bitsPerRow:l}=e.getConfig();for(let{start:r,end:s,bits:d,label:c}of t.blocks){if(r!==void 0&&s!==void 0&&s{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*a)return[t,void 0];let o=e*a-1,n=e*a;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),_={parser:{yy:void 0},parse:h(t=>v(null,null,function*(){let e=yield A("packet",t),a=_.parser?.yy;if(!(a instanceof W))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");u.debug(e),I(e,a)}),"parse")},j=h((t,e,a,o)=>{let n=o.db,l=n.getConfig(),{rowHeight:r,paddingY:s,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),i=n.getDiagramTitle(),f=r+s,g=f*(p.length+1)-(i?0:r),k=d*c+2,b=E(e);b.attr("viewBox",`0 0 ${k} ${g}`),$(b,g,k,l.useMaxWidth);for(let[N,L]of p.entries())G(b,L,N,l);b.append("text").text(i).attr("x",k/2).attr("y",g-f/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),G=h((t,e,a,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:r,bitsPerRow:s,showBits:d})=>{let c=t.append("g"),p=a*(o+l)+l;for(let i of e){let f=i.start%s*r+1,g=(i.end-i.start+1)*r-n;if(c.append("rect").attr("x",f).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",f+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(i.label),!d)continue;let k=i.end===i.start,b=p-2;c.append("text").attr("x",f+(k?g/2:0)).attr("y",b).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(i.start),k||c.append("text").attr("x",f+g).attr("y",b).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(i.end)}},"drawWord"),H={draw:j},K={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},R=h(({packet:t}={})=>{let e=w(K,t);return` .packetByte { font-size: ${e.byteFontSize}; diff --git a/src/google/adk/cli/browser/chunk-WBLSVR3V.js b/src/google/adk/cli/browser/chunk-WBLSVR3V.js index 98bd99d4f6..288eb83480 100644 --- a/src/google/adk/cli/browser/chunk-WBLSVR3V.js +++ b/src/google/adk/cli/browser/chunk-WBLSVR3V.js @@ -1,2 +1,16 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as vt}from"./chunk-GP6TCC26.js";import{M as $,i as m,l as E,o as b,s as F}from"./chunk-QFMJV7VH.js";import{$ as J,L as _,O as A,P as N,Q as R,R as D,S as H,T as O,U as z,V as j,W as U,X as k,Y as X,Z as Y,_ as G,a as T,aa as q,ba as Z,ca as K,da as Q,ea as V,g as s,i as f}from"./chunk-JRNAXTJ7.js";import{K as M,V as L}from"./chunk-EGBSMT36.js";import{h as mt}from"./chunk-RMXJBC7V.js";var nt=mt(vt(),1);var yt="\u200B",xt={curveBasis:R,curveBasisClosed:D,curveBasisOpen:H,curveBumpX:A,curveBumpY:N,curveBundle:O,curveCardinalClosed:j,curveCardinalOpen:U,curveCardinal:z,curveCatmullRomClosed:X,curveCatmullRomOpen:Y,curveCatmullRom:k,curveLinear:_,curveLinearClosed:G,curveMonotoneX:J,curveMonotoneY:q,curveNatural:Z,curveStep:K,curveStepAfter:V,curveStepBefore:Q},pt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Mt=s(function(e,t){let r=rt(e,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let a=r.map(l=>l.args);F(a),n=b(n,[...a])}else n=r.args;if(!n)return;let i=E(e,t),o="config";return n[o]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[o],delete n[o]),n},"detectInit"),rt=s(function(e,t=null){try{let r=new RegExp(`[%]{2}(?![{]${pt.source})(?=[}][%]{2}).* `,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),f.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let n,i=[];for(;(n=m.exec(e))!==null;)if(n.index===m.lastIndex&&m.lastIndex++,n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t)){let o=n[1]?n[1]:n[2],a=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:o,args:a})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(r){return f.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),Ot=s(function(e){return e.replace(m,"")},"removeDirectives"),$t=s(function(e,t){for(let[r,n]of t.entries())if(n.match(e))return r;return-1},"isSubstringInArray");function it(e,t){if(!e)return t;let r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return xt[r]??t}s(it,"interpolateToCurve");function ot(e,t){let r=e.trim();if(r)return t.securityLevel!=="loose"?(0,nt.sanitizeUrl)(r):r}s(ot,"formatUrl");var wt=s((e,...t)=>{let r=e.split("."),n=r.length-1,i=r[n],o=window;for(let a=0;a{r+=S(i,t),t=i});let n=r/2;return B(e,n)}s(at,"traverseEdge");function st(e){return e.length===1?e[0]:at(e)}s(st,"calcLabelPosition");var tt=s((e,t=2)=>{let r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),B=s((e,t)=>{let r,n=t;for(let i of e){if(r){let o=S(i,r);if(o===0)return r;if(o=1)return{x:i.x,y:i.y};if(a>0&&a<1)return{x:tt((1-a)*r.x+a*i.x,5),y:tt((1-a)*r.y+a*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),bt=s((e,t,r)=>{f.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let i=B(t,25),o=e?10:5,a=Math.atan2(t[0].y-i.y,t[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(a)*o+(t[0].x+i.x)/2,l.y=-Math.cos(a)*o+(t[0].y+i.y)/2,l},"calcCardinalityPosition");function ct(e,t,r){let n=structuredClone(r);f.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();let i=25+e,o=B(n,i),a=10+e*.5,l=Math.atan2(n[0].y-o.y,n[0].x-o.x),c={x:0,y:0};return t==="start_left"?(c.x=Math.sin(l+Math.PI)*a+(n[0].x+o.x)/2,c.y=-Math.cos(l+Math.PI)*a+(n[0].y+o.y)/2):t==="end_right"?(c.x=Math.sin(l-Math.PI)*a+(n[0].x+o.x)/2-5,c.y=-Math.cos(l-Math.PI)*a+(n[0].y+o.y)/2-5):t==="end_left"?(c.x=Math.sin(l)*a+(n[0].x+o.x)/2-5,c.y=-Math.cos(l)*a+(n[0].y+o.y)/2-5):(c.x=Math.sin(l)*a+(n[0].x+o.x)/2,c.y=-Math.cos(l)*a+(n[0].y+o.y)/2),c}s(ct,"calcTerminalLabelPosition");function lt(e){let t="",r="";for(let n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}s(lt,"getStylesFromArray");var et=0,St=s(()=>(et++,"id-"+Math.random().toString(36).substr(2,12)+"-"+et),"generateId");function ut(e){let t="",r="0123456789abcdef",n=r.length;for(let i=0;iut(e.length),"random"),Ct=s(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Pt=s(function(e,t){let r=t.text.replace($.lineBreakRegex," "),[,n]=P(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",n),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),t.class!==void 0&&i.attr("class",t.class);let o=i.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),i},"drawSimpleText"),Wt=M((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),$.lineBreakRegex.test(e)))return e;let n=e.split(" ").filter(Boolean),i=[],o="";return n.forEach((a,l)=>{let c=v(`${a} `,r),u=v(o,r);if(c>t){let{hyphenatedStrings:g,remainingWord:h}=It(a,t,"-",r);i.push(o,...g),o=h}else u+c>=t?(i.push(o),o=a):o=[o,a].filter(Boolean).join(" ");l+1===n.length&&i.push(o)}),i.filter(a=>a!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),It=M((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...e],o=[],a="";return i.forEach((l,c)=>{let u=`${a}${l}`;if(v(u,n)>=t){let x=c+1,g=i.length===x,h=`${u}${r}`;o.push(g?u:h),a=""}else a=u}),{hyphenatedStrings:o,remainingWord:a}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function ht(e,t){return C(e,t).height}s(ht,"calculateTextHeight");function v(e,t){return C(e,t).width}s(v,"calculateTextWidth");var C=M((e,t)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,o]=P(r),a=["sans-serif",n],l=e.split($.lineBreakRegex),c=[],u=T("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let y=u.append("svg");for(let g of a){let h=0,d={width:0,height:0,lineHeight:0};for(let gt of l){let W=Ct();W.text=gt||yt;let I=Pt(y,W).style("font-size",o).style("font-weight",i).style("font-family",g),p=(I._groups||I)[0][0].getBBox();if(p.width===0&&p.height===0)throw new Error("svg element not in render tree");d.width=Math.round(Math.max(d.width,p.width)),h=Math.round(p.height),d.height+=h,d.lineHeight=Math.round(Math.max(d.lineHeight,h))}c.push(d)}y.remove();let x=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[x]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Lt=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{s(this,"InitIDGenerator")}},w,Tt=s(function(e){return w=w||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),w.innerHTML=e,unescape(w.textContent)},"entityDecode");function Et(e){return"str"in e}s(Et,"isDetailedError");var Ft=s((e,t,r,n)=>{if(!n)return;let i=e.node()?.getBBox();i&&e.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},"insertTitle"),P=s(e=>{if(typeof e=="number")return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function dt(e,t){return L({},e,t)}s(dt,"cleanAndMerge");var zt={assignWithDepth:b,wrapLabel:Wt,calculateTextHeight:ht,calculateTextWidth:v,calculateTextDimensions:C,cleanAndMerge:dt,detectInit:Mt,detectDirective:rt,isSubstringInArray:$t,interpolateToCurve:it,calcLabelPosition:st,calcCardinalityPosition:bt,calcTerminalLabelPosition:ct,formatUrl:ot,getStylesFromArray:lt,generateId:St,random:Bt,runFunc:wt,entityDecode:Tt,insertTitle:Ft,isLabelCoordinateInPath:ft,parseFontSize:P,InitIDGenerator:Lt},jt=s(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){let n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"\uFB02\xB0\xB0"+n+"\xB6\xDF":"\uFB02\xB0"+n+"\xB6\xDF"}),t},"encodeEntities"),Ut=s(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),kt=s((e,t,{counter:r=0,prefix:n,suffix:i},o)=>o||`${n?`${n}_`:""}${e}_${t}_${r}${i?`_${i}`:""}`,"getEdgeId");function _t(e){return e??null}s(_t,"handleUndefinedAttr");function ft(e,t){let r=Math.round(e.x),n=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,o=>Math.round(parseFloat(o)).toString());return i.includes(r.toString())||i.includes(n.toString())}s(ft,"isLabelCoordinateInPath");export{yt as a,Ot as b,it as c,lt as d,St as e,Bt as f,Wt as g,ht as h,v as i,Et as j,P as k,dt as l,zt as m,jt as n,Ut as o,kt as p,_t as q}; diff --git a/src/google/adk/cli/browser/chunk-WLB2FJ7K.js b/src/google/adk/cli/browser/chunk-WLB2FJ7K.js index 06877cfaca..3f825ef600 100644 --- a/src/google/adk/cli/browser/chunk-WLB2FJ7K.js +++ b/src/google/adk/cli/browser/chunk-WLB2FJ7K.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as ke,f as Ee}from"./chunk-NMKTPNXE.js";import{g as ve,h as ee,i as Ct}from"./chunk-WBLSVR3V.js";import{a as Fe}from"./chunk-GP6TCC26.js";import{G as te,M as Yt,N as be,S as ge,T as _e,U as xe,V as me,Y as Ot,o as ye}from"./chunk-QFMJV7VH.js";import{a as Dt,g as b,i as $t}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import{h as Ue}from"./chunk-RMXJBC7V.js";var Re=Ue(Fe(),1),Ut=(function(){var e=b(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],n=[1,63],r=[1,64],i=[1,65],u=[1,66],d=[1,67],y=[1,68],p=[1,69],k=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],rt=[1,46],nt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],bt=[1,59],gt=[1,60],wt=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],E=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],ce=[12,14,33,42],It=[12,14,33,42,76,77,79,80],vt=[12,33],Qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ht={trace:b(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:b(function(x,m,v,g,R,h,St){var f=h.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[f-3]);break;case 19:g.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:g.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),g.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:g.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:g.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:g.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:g.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:g.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:g.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:g.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:g.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:g.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:g.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:g.addContainer("container",...h[f]),this.$=h[f];break;case 48:g.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:g.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:g.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:g.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:g.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:g.addComponent("component",...h[f]),this.$=h[f];break;case 54:g.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:g.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:g.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:g.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:g.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:g.addRel("rel",...h[f]),this.$=h[f];break;case 61:g.addRel("birel",...h[f]),this.$=h[f];break;case 62:g.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:g.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:g.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:g.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:g.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),g.addRel("rel",...h[f]),this.$=h[f];break;case 68:g.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:g.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:g.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let kt={};kt[h[f-1].trim()]=h[f].trim(),this.$=kt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:n,36:r,37:i,38:u,39:d,40:y,41:p,43:23,44:k,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:rt,62:nt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:n,36:r,37:i,38:u,39:d,40:y,41:p,43:23,44:k,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:rt,62:nt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:n,36:r,37:i,38:u,39:d,40:y,41:p,43:23,44:k,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:rt,62:nt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:n,36:r,37:i,38:u,39:d,40:y,41:p,43:23,44:k,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:rt,62:nt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:n,36:r,37:i,38:u,39:d,40:y,41:p,43:23,44:k,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:rt,62:nt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{14:[1,74]},e(wt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:r,37:i,38:u,39:d,40:y,41:p,44:k,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:rt,62:nt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt}),e(wt,[2,14]),e(Wt,[2,16],{12:[1,76]}),e(wt,[2,36],{12:[1,77]}),e(Rt,[2,19]),e(Rt,[2,20]),{25:[1,78]},{27:[1,79]},e(Rt,[2,23]),{35:80,75:81,76:E,77:A,79:C,80:w},{35:86,75:81,76:E,77:A,79:C,80:w},{35:87,75:81,76:E,77:A,79:C,80:w},{35:88,75:81,76:E,77:A,79:C,80:w},{35:89,75:81,76:E,77:A,79:C,80:w},{35:90,75:81,76:E,77:A,79:C,80:w},{35:91,75:81,76:E,77:A,79:C,80:w},{35:92,75:81,76:E,77:A,79:C,80:w},{35:93,75:81,76:E,77:A,79:C,80:w},{35:94,75:81,76:E,77:A,79:C,80:w},{35:95,75:81,76:E,77:A,79:C,80:w},{35:96,75:81,76:E,77:A,79:C,80:w},{35:97,75:81,76:E,77:A,79:C,80:w},{35:98,75:81,76:E,77:A,79:C,80:w},{35:99,75:81,76:E,77:A,79:C,80:w},{35:100,75:81,76:E,77:A,79:C,80:w},{35:101,75:81,76:E,77:A,79:C,80:w},{35:102,75:81,76:E,77:A,79:C,80:w},{35:103,75:81,76:E,77:A,79:C,80:w},{35:104,75:81,76:E,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:E,77:A,79:C,80:w},{35:106,75:81,76:E,77:A,79:C,80:w},{35:107,75:81,76:E,77:A,79:C,80:w},{35:108,75:81,76:E,77:A,79:C,80:w},{35:109,75:81,76:E,77:A,79:C,80:w},{35:110,75:81,76:E,77:A,79:C,80:w},{35:111,75:81,76:E,77:A,79:C,80:w},{35:112,75:81,76:E,77:A,79:C,80:w},{35:113,75:81,76:E,77:A,79:C,80:w},{35:114,75:81,76:E,77:A,79:C,80:w},{35:115,75:81,76:E,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:n,36:r,37:i,38:u,39:d,40:y,41:p,43:23,44:k,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:rt,62:nt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:E,77:A,79:C,80:w},{35:120,75:81,76:E,77:A,79:C,80:w},{35:121,75:81,76:E,77:A,79:C,80:w},{35:122,75:81,76:E,77:A,79:C,80:w},{35:123,75:81,76:E,77:A,79:C,80:w},{35:124,75:81,76:E,77:A,79:C,80:w},{35:125,75:81,76:E,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(wt,[2,15]),e(Wt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(wt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:n,36:r,37:i,38:u,39:d,40:y,41:p,44:k,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:rt,62:nt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt}),e(Rt,[2,21]),e(Rt,[2,22]),e(T,[2,39]),e(ce,[2,71],{75:81,35:132,76:E,77:A,79:C,80:w}),e(It,[2,73]),{78:[1,133]},e(It,[2,75]),e(It,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Wt,[2,18]),e(wt,[2,38]),e(ce,[2,72]),e(It,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Qt,[2,25]),e(Qt,[2,26],{12:[1,138]}),e(Qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:b(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:b(function(x){var m=this,v=[0],g=[],R=[null],h=[],St=this.table,f="",kt=0,he=0,ue=0,Le=2,de=1,Ne=h.slice.call(arguments,1),D=Object.create(this.lexer),Et={yy:{}};for(var qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,qt)&&(Et.yy[qt]=this.yy[qt]);D.setInput(x,Et.yy),Et.yy.lexer=D,Et.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Gt=D.yylloc;h.push(Gt);var Ye=D.options&&D.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}b(je,"popStack");function fe(){var L;return L=g.pop()||D.lex()||de,typeof L!="number"&&(L instanceof Array&&(g=L,L=g.pop()),L=m.symbols_[L]||L),L}b(fe,"lex");for(var B,Kt,At,N,M0,Jt,Tt={},Lt,W,pe,Nt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((B===null||typeof B>"u")&&(B=fe()),N=St[At]&&St[At][B]),typeof N>"u"||!N.length||!N[0]){var Zt="";Nt=[];for(Lt in St[At])this.terminals_[Lt]&&Lt>Le&&Nt.push("'"+this.terminals_[Lt]+"'");D.showPosition?Zt="Parse error on line "+(kt+1)+`: `+D.showPosition()+` Expecting `+Nt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Zt="Parse error on line "+(kt+1)+": Unexpected "+(B==de?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Zt,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Gt,expected:Nt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+B);switch(N[0]){case 1:v.push(B),R.push(D.yytext),h.push(D.yylloc),v.push(N[1]),B=null,Kt?(B=Kt,Kt=null):(he=D.yyleng,f=D.yytext,kt=D.yylineno,Gt=D.yylloc,ue>0&&ue--);break;case 2:if(W=this.productions_[N[1]][1],Tt.$=R[R.length-W],Tt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},Ye&&(Tt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Jt=this.performAction.apply(Tt,[f,he,kt,Et.yy,N[1],R,h].concat(Ne)),typeof Jt<"u")return Jt;W&&(v=v.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),v.push(this.productions_[N[1]][0]),R.push(Tt.$),h.push(Tt._$),pe=St[v[v.length-2]][v[v.length-1]],v.push(pe);break;case 3:return!0}}return!0},"parse")},Me=(function(){var _t={EOF:1,parseError:b(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:b(function(x,m){return this.yy=m||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:b(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var m=x.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:b(function(x){var m=x.length,v=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===g.length?this.yylloc.first_column:0)+g[g.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-WR6HISGZ.js b/src/google/adk/cli/browser/chunk-WR6HISGZ.js index 7aae439561..1d0350f19a 100644 --- a/src/google/adk/cli/browser/chunk-WR6HISGZ.js +++ b/src/google/adk/cli/browser/chunk-WR6HISGZ.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as o,b as n,c as i,d as s,e as m,f as e,g as u,l as d,o as c,q as l}from"./chunk-NALL4A3P.js";var v=class extends l{static{e(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},C=class extends c{static{e(this,"PieValueConverter")}runCustomConverter(t,r,a){if(t.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},P={parser:{TokenBuilder:e(()=>new v,"TokenBuilder"),ValueConverter:e(()=>new C,"ValueConverter")}};function p(t=s){let r=i(n(t),u),a=i(o({shared:r}),d,P);return r.ServiceRegistry.register(a),{shared:r,Pie:a}}e(p,"createPieServices");export{P as a,p as b}; diff --git a/src/google/adk/cli/browser/chunk-WXI2IBAH.js b/src/google/adk/cli/browser/chunk-WXI2IBAH.js index 5a61e20bc3..cf2d7a03ce 100644 --- a/src/google/adk/cli/browser/chunk-WXI2IBAH.js +++ b/src/google/adk/cli/browser/chunk-WXI2IBAH.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{o as ze}from"./chunk-WBLSVR3V.js";import{A as ee,G as W,J as te,L as Ie,M as Re}from"./chunk-QFMJV7VH.js";import{a as P,g as b,i as E}from"./chunk-JRNAXTJ7.js";import{a as x,b as z,j as T}from"./chunk-RMXJBC7V.js";var dt=Object.freeze({left:0,top:0,width:16,height:16}),_=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ne=Object.freeze(x(x({},dt),_)),ve=Object.freeze(z(x({},ne),{body:"",hidden:!1}));var mt=Object.freeze({width:null,height:null}),Ae=Object.freeze(x(x({},mt),_));var re=(n,e,r,s="")=>{let t=n.split(":");if(n.slice(0,1)==="@"){if(t.length<2||t.length>3)return null;s=t.shift().slice(1)}if(t.length>3||!t.length)return null;if(t.length>1){let l=t.pop(),a=t.pop(),p={provider:t.length>0?t[0]:s,prefix:a,name:l};return e&&!G(p)?null:p}let o=t[0],i=o.split("-");if(i.length>1){let l={provider:s,prefix:i.shift(),name:i.join("-")};return e&&!G(l)?null:l}if(r&&s===""){let l={provider:s,prefix:"",name:o};return e&&!G(l,r)?null:l}return null},G=(n,e)=>n?!!((e&&n.prefix===""||n.prefix)&&n.name):!1;function Ee(n,e){let r={};!n.hFlip!=!e.hFlip&&(r.hFlip=!0),!n.vFlip!=!e.vFlip&&(r.vFlip=!0);let s=((n.rotate||0)+(e.rotate||0))%4;return s&&(r.rotate=s),r}function se(n,e){let r=Ee(n,e);for(let s in ve)s in _?s in n&&!(s in r)&&(r[s]=_[s]):s in e?r[s]=e[s]:s in n&&(r[s]=n[s]);return r}function Le(n,e){let r=n.icons,s=n.aliases||Object.create(null),t=Object.create(null);function o(i){if(r[i])return t[i]=[];if(!(i in t)){t[i]=null;let l=s[i]&&s[i].parent,a=l&&o(l);a&&(t[i]=[l].concat(a))}return t[i]}return(e||Object.keys(r).concat(Object.keys(s))).forEach(o),t}function Ce(n,e,r){let s=n.icons,t=n.aliases||Object.create(null),o={};function i(l){o=se(s[l]||t[l],o)}return i(e),r.forEach(i),se(n,o)}function ie(n,e){if(n.icons[e])return Ce(n,e,[]);let r=Le(n,[e])[e];return r?Ce(n,e,r):null}var kt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,xt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function oe(n,e,r){if(e===1)return n;if(r=r||100,typeof n=="number")return Math.ceil(n*e*r)/r;if(typeof n!="string")return n;let s=n.split(kt);if(s===null||!s.length)return n;let t=[],o=s.shift(),i=xt.test(o);for(;;){if(i){let l=parseFloat(o);isNaN(l)?t.push(o):t.push(Math.ceil(l*e*r)/r)}else t.push(o);if(o=s.shift(),o===void 0)return t.join("");i=!i}}function bt(n,e="defs"){let r="",s=n.indexOf("<"+e);for(;s>=0;){let t=n.indexOf(">",s),o=n.indexOf("",o);if(i===-1)break;r+=n.slice(t+1,o).trim(),n=n.slice(0,s).trim()+n.slice(i+1)}return{defs:r,content:n}}function wt(n,e){return n?""+n+""+e:e}function Pe(n,e,r){let s=bt(n);return wt(s.defs,e+s.content+r)}var yt=n=>n==="unset"||n==="undefined"||n==="none";function le(n,e){let r=x(x({},ne),n),s=x(x({},Ae),e),t={left:r.left,top:r.top,width:r.width,height:r.height},o=r.body;[r,s].forEach(k=>{let w=[],A=k.hFlip,j=k.vFlip,$=k.rotate;A?j?$+=2:(w.push("translate("+(t.width+t.left).toString()+" "+(0-t.top).toString()+")"),w.push("scale(-1 1)"),t.top=t.left=0):j&&(w.push("translate("+(0-t.left).toString()+" "+(t.height+t.top).toString()+")"),w.push("scale(1 -1)"),t.top=t.left=0);let S;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:S=t.height/2+t.top,w.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:w.unshift("rotate(180 "+(t.width/2+t.left).toString()+" "+(t.height/2+t.top).toString()+")");break;case 3:S=t.width/2+t.left,w.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}$%2===1&&(t.left!==t.top&&(S=t.left,t.left=t.top,t.top=S),t.width!==t.height&&(S=t.width,t.width=t.height,t.height=S)),w.length&&(o=Pe(o,'',""))});let i=s.width,l=s.height,a=t.width,p=t.height,c,h;i===null?(h=l===null?"1em":l==="auto"?p:l,c=oe(h,a/p)):(c=i==="auto"?a:i,h=l===null?oe(c,p/a):l==="auto"?p:l);let u={},g=(k,w)=>{yt(w)||(u[k]=w.toString())};g("width",c),g("height",h);let f=[t.left,t.top,a,p];return u.viewBox=f.join(" "),{attributes:u,viewBox:f,body:o}}var St=/\sid="(\S+)"/g,_e=new Map;function Tt(n){n=n.replace(/[0-9]+$/,"")||"a";let e=_e.get(n)||0;return _e.set(n,e+1),e?`${n}${e}`:n}function ae(n){let e=[],r;for(;r=St.exec(n);)e.push(r[1]);if(!e.length)return n;let s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(t=>{let o=Tt(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+s+"$3")}),n=n.replace(new RegExp(s,"g"),""),n}function ce(n,e){let r=n.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let s in e)r+=" "+s+'="'+e[s]+'"';return'"+n+""}function fe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var C=fe();function Oe(n){C=n}var F={exec:()=>null};function d(n,e=""){let r=typeof n=="string"?n:n.source,s={replace:(t,o)=>{let i=typeof o=="string"?o:o.source;return i=i.replace(y.caret,"$1"),r=r.replace(t,i),s},getRegex:()=>new RegExp(r,e)};return s}var $t=(()=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},It=/^(?:[ \t]*(?:\n|$))+/,Rt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,zt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,O=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ge=/(?:[*+-]|\d{1,9}[.)])/,We=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ge=d(We).replace(/bull/g,ge).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),At=d(We).replace(/bull/g,ge).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),de=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Et=/^[^\n]+/,me=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Lt=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",me).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ct=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ge).getRegex(),U="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ke=/|$))/,Pt=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ke).replace("tag",U).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),He=d(de).replace("hr",O).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",U).getRegex(),_t=d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",He).getRegex(),xe={blockquote:_t,code:Rt,def:Lt,fences:zt,heading:vt,hr:O,html:Pt,lheading:Ge,list:Ct,newline:It,paragraph:He,table:F,text:Et},je=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",O).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",U).getRegex(),jt=z(x({},xe),{lheading:At,table:je,paragraph:d(de).replace("hr",O).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",U).getRegex()}),Bt=z(x({},xe),{html:d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ke).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:F,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(de).replace("hr",O).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",Ge).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Dt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ze=/^( {2,}|\\)\n(?!\s*$)/,qt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",$t?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ue=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ht=d(Ue,"u").replace(/punct/g,Q).getRegex(),Zt=d(Ue,"u").replace(/punct/g,Ve).getRegex(),Qe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Nt=d(Qe,"gu").replace(/notPunctSpace/g,Ne).replace(/punctSpace/g,be).replace(/punct/g,Q).getRegex(),Vt=d(Qe,"gu").replace(/notPunctSpace/g,Wt).replace(/punctSpace/g,Ot).replace(/punct/g,Ve).getRegex(),Ut=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ne).replace(/punctSpace/g,be).replace(/punct/g,Q).getRegex(),Qt=d(/\\(punct)/,"gu").replace(/punct/g,Q).getRegex(),Kt=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Xt=d(ke).replace("(?:-->|$)","-->").getRegex(),Yt=d("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Xt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Z=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Jt=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Z).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ke=d(/^!?\[(label)\]\[(ref)\]/).replace("label",Z).replace("ref",me).getRegex(),Xe=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",me).getRegex(),en=d("reflink|nolink(?!\\()","g").replace("reflink",Ke).replace("nolink",Xe).getRegex(),Be=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,we={_backpedal:F,anyPunctuation:Qt,autolink:Kt,blockSkip:Gt,br:Ze,code:Mt,del:F,emStrongLDelim:Ht,emStrongRDelimAst:Nt,emStrongRDelimUnd:Ut,escape:Dt,link:Jt,nolink:Xe,punctuation:Ft,reflink:Ke,reflinkSearch:en,tag:Yt,text:qt,url:F},tn=z(x({},we),{link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",Z).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Z).getRegex()}),pe=z(x({},we),{emStrongRDelimAst:Vt,emStrongLDelim:Zt,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Be).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},De=n=>rn[n];function v(n,e){if(e){if(y.escapeTest.test(n))return n.replace(y.escapeReplace,De)}else if(y.escapeTestNoEncode.test(n))return n.replace(y.escapeReplaceNoEncode,De);return n}function Me(n){try{n=encodeURI(n).replace(y.percentDecode,"%")}catch(e){return null}return n}function qe(n,e){let r=n.replace(y.findPipe,(o,i,l)=>{let a=!1,p=i;for(;--p>=0&&l[p]==="\\";)a=!a;return a?"|":" |"}),s=r.split(y.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length0?-2:-1}function Fe(n,e,r,s,t){let o=e.href,i=e.title||null,l=n[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=!0;let a={type:n[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:i,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,a}function on(n,e,r){let s=n.match(r.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(` `).map(o=>{let i=o.match(r.other.beginningSpace);if(i===null)return o;let[l]=i;return l.length>=t.length?o.slice(t.length):o}).join(` diff --git a/src/google/adk/cli/browser/chunk-WZIWL22C.js b/src/google/adk/cli/browser/chunk-WZIWL22C.js index 76245bb8f4..1f2b9657d0 100644 --- a/src/google/adk/cli/browser/chunk-WZIWL22C.js +++ b/src/google/adk/cli/browser/chunk-WZIWL22C.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{m as Ie}from"./chunk-WBLSVR3V.js";import{a as Qe}from"./chunk-GP6TCC26.js";import{M as ce,N as le,R as ue,S as de,T as fe,U as he,V as me,W as ke,X as ye,Y as ot}from"./chunk-QFMJV7VH.js";import{A as we,B as _e,C as De,D as Se,E as Ce,F as Me,G as At,H as Ft,I as Ee,a as yt,c as ae,f as oe,g as c,i as it,k as ge,l as pe,m as ve,n as Te,t as be,u as Et,v as It,w as Lt,x as Yt,y as $t,z as xe}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import{e as xt,h as at}from"./chunk-RMXJBC7V.js";var Le=xt((Ot,Wt)=>{"use strict";(function(t,s){typeof Ot=="object"&&typeof Wt<"u"?Wt.exports=s():typeof define=="function"&&define.amd?define(s):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=s()})(Ot,function(){"use strict";var t="day";return function(s,n,a){var r=function(D){return D.add(4-D.isoWeekday(),t)},u=n.prototype;u.isoWeekYear=function(){return r(this).year()},u.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),t);var S,P,C,W,z=r(this),R=(S=this.isoWeekYear(),P=this.$u,C=(P?a.utc:a)().year(S).startOf("year"),W=4-C.isoWeekday(),C.isoWeekday()>4&&(W+=7),C.add(W,t));return z.diff(R,"week")+1},u.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var b=u.startOf;u.startOf=function(D,S){var P=this.$utils(),C=!!P.u(S)||S;return P.p(D)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):b.bind(this)(D,S)}}})});var Ye=xt((Pt,Vt)=>{"use strict";(function(t,s){typeof Pt=="object"&&typeof Vt<"u"?Vt.exports=s():typeof define=="function"&&define.amd?define(s):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=s()})(Pt,function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,a=/\d\d/,r=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,b={},D=function(x){return(x=+x)+(x>68?1900:2e3)},S=function(x){return function(k){this[x]=+k}},P=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=(function(k){if(!k||k==="Z")return 0;var F=k.match(/([+-]|\d\d)/g),Y=60*F[1]+(+F[2]||0);return Y===0?0:F[0]==="+"?-Y:Y})(x)}],C=function(x){var k=b[x];return k&&(k.indexOf?k:k.s.concat(k.f))},W=function(x,k){var F,Y=b.meridiem;if(Y){for(var G=1;G<=24;G+=1)if(x.indexOf(Y(G,0,k))>-1){F=G>12;break}}else F=x===(k?"pm":"PM");return F},z={A:[u,function(x){this.afternoon=W(x,!1)}],a:[u,function(x){this.afternoon=W(x,!0)}],Q:[n,function(x){this.month=3*(x-1)+1}],S:[n,function(x){this.milliseconds=100*+x}],SS:[a,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[r,S("seconds")],ss:[r,S("seconds")],m:[r,S("minutes")],mm:[r,S("minutes")],H:[r,S("hours")],h:[r,S("hours")],HH:[r,S("hours")],hh:[r,S("hours")],D:[r,S("day")],DD:[a,S("day")],Do:[u,function(x){var k=b.ordinal,F=x.match(/\d+/);if(this.day=F[0],k)for(var Y=1;Y<=31;Y+=1)k(Y).replace(/\[|\]/g,"")===x&&(this.day=Y)}],w:[r,S("week")],ww:[a,S("week")],M:[r,S("month")],MM:[a,S("month")],MMM:[u,function(x){var k=C("months"),F=(C("monthsShort")||k.map(function(Y){return Y.slice(0,3)})).indexOf(x)+1;if(F<1)throw new Error;this.month=F%12||F}],MMMM:[u,function(x){var k=C("months").indexOf(x)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,S("year")],YY:[a,function(x){this.year=D(x)}],YYYY:[/\d{4}/,S("year")],Z:P,ZZ:P};function R(x){var k,F;k=x,F=b&&b.formats;for(var Y=(x=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,f,y){var g=y&&y.toUpperCase();return f||F[y]||t[y]||F[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,p,o){return p||o.slice(1)})})).match(s),G=Y.length,X=0;X-1)return new Date((h==="X"?1e3:1)*l);var i=R(h)(l),O=i.year,e=i.month,_=i.day,A=i.hours,I=i.minutes,L=i.seconds,H=i.milliseconds,V=i.zone,N=i.week,U=new Date,st=_||(O||e?1:U.getDate()),rt=O||U.getFullYear(),lt=0;O&&!e||(lt=e>0?e-1:U.getMonth());var ut,dt=A||0,j=I||0,nt=L||0,K=H||0;return V?new Date(Date.UTC(rt,lt,st,dt,j,nt,K+60*V.offset*1e3)):m?new Date(Date.UTC(rt,lt,st,dt,j,nt,K)):(ut=new Date(rt,lt,st,dt,j,nt,K),N&&(ut=w(ut).week(N).toDate()),ut)}catch(q){return new Date("")}})(E,M,v,F),this.init(),g&&g!==!0&&(this.$L=this.locale(g).$L),y&&E!=this.format(M)&&(this.$d=new Date("")),b={}}else if(M instanceof Array)for(var T=M.length,p=1;p<=T;p+=1){d[1]=M[p-1];var o=F.apply(this,d);if(o.isValid()){this.$d=o.$d,this.$L=o.$L,this.init();break}p===T&&(this.$d=new Date(""))}else G.call(this,X)}}})});var $e=xt((Nt,Rt)=>{"use strict";(function(t,s){typeof Nt=="object"&&typeof Rt<"u"?Rt.exports=s():typeof define=="function"&&define.amd?define(s):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=s()})(Nt,function(){"use strict";return function(t,s){var n=s.prototype,a=n.format;n.format=function(r){var u=this,b=this.$locale();if(!this.isValid())return a.bind(this)(r);var D=this.$utils(),S=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(P){switch(P){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return b.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return b.ordinal(u.week(),"W");case"w":case"ww":return D.s(u.week(),P==="w"?1:2,"0");case"W":case"WW":return D.s(u.isoWeek(),P==="W"?1:2,"0");case"k":case"kk":return D.s(String(u.$H===0?24:u.$H),P==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return P}});return a.bind(this)(S)}}})});var Ae=xt((zt,Ht)=>{"use strict";(function(t,s){typeof zt=="object"&&typeof Ht<"u"?Ht.exports=s():typeof define=="function"&&define.amd?define(s):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=s()})(zt,function(){"use strict";var t,s,n=1e3,a=6e4,r=36e5,u=864e5,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D=31536e6,S=2628e6,P=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,C={years:D,months:S,days:u,hours:r,minutes:a,seconds:n,milliseconds:1,weeks:6048e5},W=function(E){return E instanceof G},z=function(E,v,d){return new G(E,d,v.$l)},R=function(E){return s.p(E)+"s"},x=function(E){return E<0},k=function(E){return x(E)?Math.ceil(E):Math.floor(E)},F=function(E){return Math.abs(E)},Y=function(E,v){return E?x(E)?{negative:!0,format:""+F(E)+v}:{negative:!1,format:""+E+v}:{negative:!1,format:""}},G=(function(){function E(d,M,$){var f=this;if(this.$d={},this.$l=$,d===void 0&&(this.$ms=0,this.parseFromMilliseconds()),M)return z(d*C[R(M)],this);if(typeof d=="number")return this.$ms=d,this.parseFromMilliseconds(),this;if(typeof d=="object")return Object.keys(d).forEach(function(T){f.$d[R(T)]=d[T]}),this.calMilliseconds(),this;if(typeof d=="string"){var y=d.match(P);if(y){var g=y.slice(2).map(function(T){return T!=null?Number(T):0});return this.$d.years=g[0],this.$d.months=g[1],this.$d.weeks=g[2],this.$d.days=g[3],this.$d.hours=g[4],this.$d.minutes=g[5],this.$d.seconds=g[6],this.calMilliseconds(),this}}return this}var v=E.prototype;return v.calMilliseconds=function(){var d=this;this.$ms=Object.keys(this.$d).reduce(function(M,$){return M+(d.$d[$]||0)*C[$]},0)},v.parseFromMilliseconds=function(){var d=this.$ms;this.$d.years=k(d/D),d%=D,this.$d.months=k(d/S),d%=S,this.$d.days=k(d/u),d%=u,this.$d.hours=k(d/r),d%=r,this.$d.minutes=k(d/a),d%=a,this.$d.seconds=k(d/n),d%=n,this.$d.milliseconds=d},v.toISOString=function(){var d=Y(this.$d.years,"Y"),M=Y(this.$d.months,"M"),$=+this.$d.days||0;this.$d.weeks&&($+=7*this.$d.weeks);var f=Y($,"D"),y=Y(this.$d.hours,"H"),g=Y(this.$d.minutes,"M"),T=this.$d.seconds||0;this.$d.milliseconds&&(T+=this.$d.milliseconds/1e3,T=Math.round(1e3*T)/1e3);var p=Y(T,"S"),o=d.negative||M.negative||f.negative||y.negative||g.negative||p.negative,l=y.format||g.format||p.format?"T":"",h=(o?"-":"")+"P"+d.format+M.format+f.format+l+y.format+g.format+p.format;return h==="P"||h==="-P"?"P0D":h},v.toJSON=function(){return this.toISOString()},v.format=function(d){var M=d||"YYYY-MM-DDTHH:mm:ss",$={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return M.replace(b,function(f,y){return y||String($[f])})},v.as=function(d){return this.$ms/C[R(d)]},v.get=function(d){var M=this.$ms,$=R(d);return $==="milliseconds"?M%=1e3:M=$==="weeks"?k(M/C[$]):this.$d[$],M||0},v.add=function(d,M,$){var f;return f=M?d*C[R(M)]:W(d)?d.$ms:z(d,this).$ms,z(this.$ms+f*($?-1:1),this)},v.subtract=function(d,M){return this.add(d,M,!0)},v.locale=function(d){var M=this.clone();return M.$l=d,M},v.clone=function(){return z(this.$ms,this)},v.humanize=function(d){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!d)},v.valueOf=function(){return this.asMilliseconds()},v.milliseconds=function(){return this.get("milliseconds")},v.asMilliseconds=function(){return this.as("milliseconds")},v.seconds=function(){return this.get("seconds")},v.asSeconds=function(){return this.as("seconds")},v.minutes=function(){return this.get("minutes")},v.asMinutes=function(){return this.as("minutes")},v.hours=function(){return this.get("hours")},v.asHours=function(){return this.as("hours")},v.days=function(){return this.get("days")},v.asDays=function(){return this.as("days")},v.weeks=function(){return this.get("weeks")},v.asWeeks=function(){return this.as("weeks")},v.months=function(){return this.get("months")},v.asMonths=function(){return this.as("months")},v.years=function(){return this.get("years")},v.asYears=function(){return this.as("years")},E})(),X=function(E,v,d){return E.add(v.years()*d,"y").add(v.months()*d,"M").add(v.days()*d,"d").add(v.hours()*d,"h").add(v.minutes()*d,"m").add(v.seconds()*d,"s").add(v.milliseconds()*d,"ms")};return function(E,v,d){t=d,s=d().$utils(),d.duration=function(f,y){var g=d.locale();return z(f,{$l:g},y)},d.isDuration=W;var M=v.prototype.add,$=v.prototype.subtract;v.prototype.add=function(f,y){return W(f)?X(this,f,1):M.bind(this)(f,y)},v.prototype.subtract=function(f,y){return W(f)?X(this,f,-1):$.bind(this)(f,y)}}})});var Pe=at(Qe(),1),Q=at(oe(),1),Ve=at(Le(),1),Ne=at(Ye(),1),Re=at($e(),1),ht=at(oe(),1),Ze=at(Ae(),1);var Bt=(function(){var t=c(function(p,o,l,h){for(l=l||{},h=p.length;h--;l[p[h]]=o);return l},"o"),s=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],a=[1,27],r=[1,28],u=[1,29],b=[1,30],D=[1,31],S=[1,32],P=[1,33],C=[1,34],W=[1,9],z=[1,10],R=[1,11],x=[1,12],k=[1,13],F=[1,14],Y=[1,15],G=[1,16],X=[1,19],E=[1,20],v=[1,21],d=[1,22],M=[1,23],$=[1,25],f=[1,35],y={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:c(function(o,l,h,m,w,i,O){var e=i.length-1;switch(w){case 1:return i[e-1];case 2:this.$=[];break;case 3:i[e-1].push(i[e]),this.$=i[e-1];break;case 4:case 5:this.$=i[e];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(i[e].substr(11)),this.$=i[e].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=i[e].substr(18);break;case 19:m.TopAxis(),this.$=i[e].substr(8);break;case 20:m.setAxisFormat(i[e].substr(11)),this.$=i[e].substr(11);break;case 21:m.setTickInterval(i[e].substr(13)),this.$=i[e].substr(13);break;case 22:m.setExcludes(i[e].substr(9)),this.$=i[e].substr(9);break;case 23:m.setIncludes(i[e].substr(9)),this.$=i[e].substr(9);break;case 24:m.setTodayMarker(i[e].substr(12)),this.$=i[e].substr(12);break;case 27:m.setDiagramTitle(i[e].substr(6)),this.$=i[e].substr(6);break;case 28:this.$=i[e].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=i[e].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(i[e].substr(8)),this.$=i[e].substr(8);break;case 33:m.addTask(i[e-1],i[e]),this.$="task";break;case 34:this.$=i[e-1],m.setClickEvent(i[e-1],i[e],null);break;case 35:this.$=i[e-2],m.setClickEvent(i[e-2],i[e-1],i[e]);break;case 36:this.$=i[e-2],m.setClickEvent(i[e-2],i[e-1],null),m.setLink(i[e-2],i[e]);break;case 37:this.$=i[e-3],m.setClickEvent(i[e-3],i[e-2],i[e-1]),m.setLink(i[e-3],i[e]);break;case 38:this.$=i[e-2],m.setClickEvent(i[e-2],i[e],null),m.setLink(i[e-2],i[e-1]);break;case 39:this.$=i[e-3],m.setClickEvent(i[e-3],i[e-1],i[e]),m.setLink(i[e-3],i[e-2]);break;case 40:this.$=i[e-1],m.setLink(i[e-1],i[e]);break;case 41:case 47:this.$=i[e-1]+" "+i[e];break;case 42:case 43:case 45:this.$=i[e-2]+" "+i[e-1]+" "+i[e];break;case 44:case 46:this.$=i[e-3]+" "+i[e-2]+" "+i[e-1]+" "+i[e];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:a,14:r,15:u,16:b,17:D,18:S,19:18,20:P,21:C,22:W,23:z,24:R,25:x,26:k,27:F,28:Y,29:G,30:X,31:E,33:v,35:d,36:M,37:24,38:$,40:f},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:n,13:a,14:r,15:u,16:b,17:D,18:S,19:18,20:P,21:C,22:W,23:z,24:R,25:x,26:k,27:F,28:Y,29:G,30:X,31:E,33:v,35:d,36:M,37:24,38:$,40:f},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:c(function(o,l){if(l.recoverable)this.trace(o);else{var h=new Error(o);throw h.hash=l,h}},"parseError"),parse:c(function(o){var l=this,h=[0],m=[],w=[null],i=[],O=this.table,e="",_=0,A=0,I=0,L=2,H=1,V=i.slice.call(arguments,1),N=Object.create(this.lexer),U={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(U.yy[st]=this.yy[st]);N.setInput(o,U.yy),U.yy.lexer=N,U.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var rt=N.yylloc;i.push(rt);var lt=N.options&&N.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(Z){h.length=h.length-2*Z,w.length=w.length-Z,i.length=i.length-Z}c(ut,"popStack");function dt(){var Z;return Z=m.pop()||N.lex()||H,typeof Z!="number"&&(Z instanceof Array&&(m=Z,Z=m.pop()),Z=l.symbols_[Z]||Z),Z}c(dt,"lex");for(var j,nt,K,q,Ri,Ct,ft={},Tt,tt,ne,bt;;){if(K=h[h.length-1],this.defaultActions[K]?q=this.defaultActions[K]:((j===null||typeof j>"u")&&(j=dt()),q=O[K]&&O[K][j]),typeof q>"u"||!q.length||!q[0]){var Mt="";bt=[];for(Tt in O[K])this.terminals_[Tt]&&Tt>L&&bt.push("'"+this.terminals_[Tt]+"'");N.showPosition?Mt="Parse error on line "+(_+1)+`: `+N.showPosition()+` Expecting `+bt.join(", ")+", got '"+(this.terminals_[j]||j)+"'":Mt="Parse error on line "+(_+1)+": Unexpected "+(j==H?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError(Mt,{text:N.match,token:this.terminals_[j]||j,line:N.yylineno,loc:rt,expected:bt})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+j);switch(q[0]){case 1:h.push(j),w.push(N.yytext),i.push(N.yylloc),h.push(q[1]),j=null,nt?(j=nt,nt=null):(A=N.yyleng,e=N.yytext,_=N.yylineno,rt=N.yylloc,I>0&&I--);break;case 2:if(tt=this.productions_[q[1]][1],ft.$=w[w.length-tt],ft._$={first_line:i[i.length-(tt||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(tt||1)].first_column,last_column:i[i.length-1].last_column},lt&&(ft._$.range=[i[i.length-(tt||1)].range[0],i[i.length-1].range[1]]),Ct=this.performAction.apply(ft,[e,A,_,U.yy,q[1],w,i].concat(V)),typeof Ct<"u")return Ct;tt&&(h=h.slice(0,-1*tt*2),w=w.slice(0,-1*tt),i=i.slice(0,-1*tt)),h.push(this.productions_[q[1]][0]),w.push(ft.$),i.push(ft._$),ne=O[h[h.length-2]][h[h.length-1]],h.push(ne);break;case 3:return!0}}return!0},"parse")},g=(function(){var p={EOF:1,parseError:c(function(l,h){if(this.yy.parser)this.yy.parser.parseError(l,h);else throw new Error(l)},"parseError"),setInput:c(function(o,l){return this.yy=l||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:c(function(o){var l=o.length,h=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===m.length?this.yylloc.first_column:0)+m[m.length-h.length].length-h[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-XE4A3JWW.js b/src/google/adk/cli/browser/chunk-XE4A3JWW.js index 611e9d0cbd..c3225324ae 100644 --- a/src/google/adk/cli/browser/chunk-XE4A3JWW.js +++ b/src/google/adk/cli/browser/chunk-XE4A3JWW.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as r,b as e}from"./chunk-2DLZXFEQ.js";import"./chunk-NALL4A3P.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import"./chunk-RMXJBC7V.js";export{r as GitGraphModule,e as createGitGraphServices}; diff --git a/src/google/adk/cli/browser/chunk-XULIXUQL.js b/src/google/adk/cli/browser/chunk-XULIXUQL.js index bc72b77899..6685e65451 100644 --- a/src/google/adk/cli/browser/chunk-XULIXUQL.js +++ b/src/google/adk/cli/browser/chunk-XULIXUQL.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as n,b as s,c as i,d as l,e as f,f as o,g as d,n as m,o as c,q as p}from"./chunk-NALL4A3P.js";var u=class extends p{static{o(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},v=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,g=class extends c{static{o(this,"TreemapValueConverter")}runCustomConverter(r,e,t){if(r.name==="NUMBER2")return parseFloat(e.replace(/,/g,""));if(r.name==="SEPARATOR")return e.substring(1,e.length-1);if(r.name==="STRING2")return e.substring(1,e.length-1);if(r.name==="INDENTATION")return e.length;if(r.name==="ClassDef"){if(typeof e!="string")return e;let a=v.exec(e);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}}};function T(r){let e=r.validation.TreemapValidator,t=r.validation.ValidationRegistry;if(t){let a={Treemap:e.checkSingleRoot.bind(e)};t.register(a,e)}}o(T,"registerValidationChecks");var h=class{static{o(this,"TreemapValidator")}checkSingleRoot(r,e){let t;for(let a of r.TreemapRows)a.item&&(t===void 0&&a.indent===void 0?t=0:a.indent===void 0?e("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):t!==void 0&&t>=parseInt(a.indent,10)&&e("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},C={parser:{TokenBuilder:o(()=>new u,"TokenBuilder"),ValueConverter:o(()=>new g,"ValueConverter")},validation:{TreemapValidator:o(()=>new h,"TreemapValidator")}};function V(r=l){let e=i(s(r),d),t=i(n({shared:e}),m,C);return e.ServiceRegistry.register(t),T(t),{shared:e,Treemap:t}}o(V,"createTreemapServices");export{C as a,V as b}; diff --git a/src/google/adk/cli/browser/chunk-Y7O3NHKW.js b/src/google/adk/cli/browser/chunk-Y7O3NHKW.js index 64e0fba907..a299f01a2a 100644 --- a/src/google/adk/cli/browser/chunk-Y7O3NHKW.js +++ b/src/google/adk/cli/browser/chunk-Y7O3NHKW.js @@ -1 +1,15 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{$a as s,Ca as o,Cc as _,Gb as u,Lb as g,Pa as r,Yb as y,Zb as C,eb as c,ob as a,pd as M,qd as v,ub as d,vb as l,wb as p,xb as m,yb as f,zb as h}from"./chunk-2SRK2U7X.js";import"./chunk-RMXJBC7V.js";function O(e,x){if(e&1&&u(0,0),e&2){let n=x.$implicit,i=g();m("surfaceId",i.surfaceId())("component",n)}}var D=(()=>{class e extends M{direction=_("vertical");static \u0275fac=(()=>{let n;return function(t){return(n||(n=o(e)))(t||e)}})();static \u0275cmp=s({type:e,selectors:[["a2ui-list"]],hostVars:1,hostBindings:function(i,t){i&2&&a("direction",t.direction())},inputs:{direction:[1,"direction"]},features:[c],decls:3,vars:4,consts:[["a2ui-renderer","",3,"surfaceId","component"]],template:function(i,t){i&1&&(f(0,"section"),l(1,O,1,2,"ng-container",0,d),h()),i&2&&(y(t.theme.additionalStyles==null?null:t.theme.additionalStyles.List),C(t.theme.components.List),r(),p(t.component().properties.children))},dependencies:[v],styles:['[_nghost-%COMP%]{display:block;flex:var(--weight);min-height:0;overflow:auto}[direction="vertical"][_nghost-%COMP%] section[_ngcontent-%COMP%]{display:grid}[direction="horizontal"][_nghost-%COMP%] section[_ngcontent-%COMP%]{display:flex;max-width:100%;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none}[direction="horizontal"][_nghost-%COMP%] section[_ngcontent-%COMP%] > [_ngcontent-%COMP%]::slotted(*){flex:1 0 fit-content;max-width:min(80%,400px)}']})}return e})();export{D as List}; diff --git a/src/google/adk/cli/browser/chunk-YVVLWU7S.js b/src/google/adk/cli/browser/chunk-YVVLWU7S.js index cc35b07e1f..9b1e5043df 100644 --- a/src/google/adk/cli/browser/chunk-YVVLWU7S.js +++ b/src/google/adk/cli/browser/chunk-YVVLWU7S.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + function Bs(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,a=Array(e);t=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,o=!1;return{s:function(){t=t.call(r)},n:function(){var l=t.next();return s=l.done,l},e:function(l){o=!0,i=l},f:function(){try{s||t.return==null||t.return()}finally{if(o)throw i}}}}function Jl(r,e,t){return(e=jl(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function ac(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function nc(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var a,n,i,s,o=[],l=!0,u=!1;try{if(i=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(a=i.call(t)).done)&&(o.push(a.value),o.length!==e);l=!0);}catch(v){u=!0,n=v}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(u)throw n}}return o}}function ic(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sc(){throw new TypeError(`Invalid attempt to spread non-iterable instance. diff --git a/src/google/adk/cli/browser/chunk-ZCQFE5RP.js b/src/google/adk/cli/browser/chunk-ZCQFE5RP.js index 7a40a20378..3d247fc29a 100644 --- a/src/google/adk/cli/browser/chunk-ZCQFE5RP.js +++ b/src/google/adk/cli/browser/chunk-ZCQFE5RP.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{O as ot,Q as ct,R as ht,Y as dt,c as st,d as at,e as lt}from"./chunk-QFMJV7VH.js";import{K as Q,a as V,g as s,h as it,i as S}from"./chunk-JRNAXTJ7.js";import"./chunk-RMXJBC7V.js";var X=(function(){var n=s(function(m,i,a,c){for(a=a||{},c=m.length;c--;a[m[c]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],d=[1,12],h=[1,13],g=[1,16],f=[1,17],p={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,c,u,y,o,E){var b=o.length-1;switch(y){case 1:return o[b-1];case 2:this.$=[];break;case 3:o[b-1].push(o[b]),this.$=o[b-1];break;case 4:case 5:this.$=o[b];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[b].substr(6)),this.$=o[b].substr(6);break;case 9:this.$=o[b].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[b].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[b].substr(8)),this.$=o[b].substr(8);break;case 15:u.addTask(o[b],0,""),this.$=o[b];break;case 16:u.addEvent(o[b].substr(2)),this.$=o[b];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:g,21:f},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:g,21:f},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=a,c}},"parseError"),parse:s(function(i){var a=this,c=[0],u=[],y=[null],o=[],E=this.table,b="",L=0,P=0,F=0,et=2,M=1,_=o.slice.call(arguments,1),x=Object.create(this.lexer),T={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(T.yy[$]=this.yy[$]);x.setInput(i,T.yy),T.yy.lexer=x,T.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var A=x.yylloc;o.push(A);var U=x.options&&x.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function It(I){c.length=c.length-2*I,y.length=y.length-I,o.length=o.length-I}s(It,"popStack");function nt(){var I;return I=u.pop()||x.lex()||M,typeof I!="number"&&(I instanceof Array&&(u=I,I=u.pop()),I=a.symbols_[I]||I),I}s(nt,"lex");for(var w,Z,C,N,Jt,J,z={},O,H,rt,j;;){if(C=c[c.length-1],this.defaultActions[C]?N=this.defaultActions[C]:((w===null||typeof w>"u")&&(w=nt()),N=E[C]&&E[C][w]),typeof N>"u"||!N.length||!N[0]){var K="";j=[];for(O in E[C])this.terminals_[O]&&O>et&&j.push("'"+this.terminals_[O]+"'");x.showPosition?K="Parse error on line "+(L+1)+`: `+x.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[w]||w)+"'":K="Parse error on line "+(L+1)+": Unexpected "+(w==M?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(K,{text:x.match,token:this.terminals_[w]||w,line:x.yylineno,loc:A,expected:j})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+w);switch(N[0]){case 1:c.push(w),y.push(x.yytext),o.push(x.yylloc),c.push(N[1]),w=null,Z?(w=Z,Z=null):(P=x.yyleng,b=x.yytext,L=x.yylineno,A=x.yylloc,F>0&&F--);break;case 2:if(H=this.productions_[N[1]][1],z.$=y[y.length-H],z._$={first_line:o[o.length-(H||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(H||1)].first_column,last_column:o[o.length-1].last_column},U&&(z._$.range=[o[o.length-(H||1)].range[0],o[o.length-1].range[1]]),J=this.performAction.apply(z,[b,P,L,T.yy,N[1],y,o].concat(_)),typeof J<"u")return J;H&&(c=c.slice(0,-1*H*2),y=y.slice(0,-1*H),o=o.slice(0,-1*H)),c.push(this.productions_[N[1]][0]),y.push(z.$),o.push(z._$),rt=E[c[c.length-2]][c[c.length-1]],c.push(rt);break;case 3:return!0}}return!0},"parse")},k=(function(){var m={EOF:1,parseError:s(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:s(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:s(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). diff --git a/src/google/adk/cli/browser/chunk-ZMOC4H7T.js b/src/google/adk/cli/browser/chunk-ZMOC4H7T.js index 6d51ff52b9..5e94c449d9 100644 --- a/src/google/adk/cli/browser/chunk-ZMOC4H7T.js +++ b/src/google/adk/cli/browser/chunk-ZMOC4H7T.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{g as f}from"./chunk-JRNAXTJ7.js";function Ae(e){return typeof e>"u"||e===null}f(Ae,"isNothing");function Oe(e){return typeof e=="object"&&e!==null}f(Oe,"isObject");function Ie(e){return Array.isArray(e)?e:Ae(e)?[]:[e]}f(Ie,"toArray");function ke(e,n){var i,l,r,u;if(n)for(u=Object.keys(n),i=0,l=u.length;ic&&(u=" ... ",n=l-c+u.length),i-l>c&&(o=" ...",i=l+c-o.length),{str:u+e.slice(n,i).replace(/\t/g,"\u2192")+o,pos:l-n+u.length}}f(W,"getLine");function G(e,n){return w.repeat(" ",n-e.length)+e}f(G,"padStart");function Re(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,l=[0],r=[],u,o=-1;u=i.exec(e.buffer);)r.push(u.index),l.push(u.index+u[0].length),e.position<=u.index&&o<0&&(o=l.length-2);o<0&&(o=l.length-1);var c="",a,t,d=Math.min(e.line+n.linesAfter,r.length).toString().length,p=n.maxLength-(n.indent+d+3);for(a=1;a<=n.linesBefore&&!(o-a<0);a++)t=W(e.buffer,l[o-a],r[o-a],e.position-(l[o]-l[o-a]),p),c=w.repeat(" ",n.indent)+G((e.line-a+1).toString(),d)+" | "+t.str+` diff --git a/src/google/adk/cli/browser/chunk-ZX24QP2W.js b/src/google/adk/cli/browser/chunk-ZX24QP2W.js index c14736cb7b..25d025dfb6 100644 --- a/src/google/adk/cli/browser/chunk-ZX24QP2W.js +++ b/src/google/adk/cli/browser/chunk-ZX24QP2W.js @@ -1,2 +1,16 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as g}from"./chunk-T3Q3QCCV.js";import"./chunk-NQKWI5EB.js";import"./chunk-WR6HISGZ.js";import"./chunk-I4UDKKN5.js";import"./chunk-2DLZXFEQ.js";import"./chunk-JNY2YWG7.js";import"./chunk-XULIXUQL.js";import"./chunk-3NJNOY56.js";import"./chunk-NALL4A3P.js";import{a as s}from"./chunk-TPDTRWWV.js";import{N as i}from"./chunk-QFMJV7VH.js";import{g as r,i as a}from"./chunk-JRNAXTJ7.js";import"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import{j as n}from"./chunk-RMXJBC7V.js";var v={parse:r(e=>n(null,null,function*(){let t=yield g("info",e);a.debug(t)}),"parse")},d={version:"11.13.0"},m=r(()=>d.version,"getVersion"),c={getVersion:m},f=r((e,t,p)=>{a.debug(`rendering info diagram `+e);let o=s(t);i(o,100,400,!0),o.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${p}`)},"draw"),u={draw:f},w={parser:v,db:c,renderer:u};export{w as diagram}; diff --git a/src/google/adk/cli/browser/main-3CUQG2IN.js b/src/google/adk/cli/browser/main-3CUQG2IN.js index 4be3757671..3bcd5d646e 100644 --- a/src/google/adk/cli/browser/main-3CUQG2IN.js +++ b/src/google/adk/cli/browser/main-3CUQG2IN.js @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import{a as yF}from"./chunk-TPDTRWWV.js";import{a as DF,b as vF}from"./chunk-ZMOC4H7T.js";import{a as RF}from"./chunk-F57TI45K.js";import"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import{a as _F,c as xF}from"./chunk-WXI2IBAH.js";import{b as bF,j as WD,l as MF,m as SI,n as SF,o as kF}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{A as MI,B as pF,C as AQ,E as fF,N as mF,P as wF,ba as eQ,ca as E3,g as gF,h as cF,j as CF,k as I3,l as jD,m as B3,n as dF,o as IF,q as h3,t as VD,u as BF,v as hF,w as EF,x as QF,y as qD,z as uF}from"./chunk-QFMJV7VH.js";import{a as zs,b as HD,d as zD,e as lF,g as we,i as qa,j as PD}from"./chunk-JRNAXTJ7.js";import{$ as _1,F as an,G as An,H as Ui,K as oF,N as $E,P as aF,R as YD,W as rF,X as sF,a as Fa,f as d3,g as eF,j as XE,m as Ji,q as tF,u as Tc,v as iF,z as nF}from"./chunk-ASJUXEUE.js";import"./chunk-EGBSMT36.js";import{$ as WE,$a as vA,$b as nA,$c as YN,A as Rc,Aa as Fn,Ab as lA,Ac as LN,B as JC,Ba as ii,Bb as Ln,Bc as Si,C as Nc,Ca as Li,Cb as Xn,Cc as ve,D as $p,Da as ce,Db as $n,Dc as Yo,E as Vi,Ea as Rg,Eb as vl,Ec as GN,F as EN,Fa as t3,Fb as bl,Fc as K0,G as Bt,Ga as i3,Gb as dn,Gc as Mt,H as QN,Ha as b1,Hb as aA,Hc as k1,I as v1,Ia as DN,Ib as Ma,Ic as Qe,J as aa,Ja as vN,Jb as U,Jc as yn,K as VE,Ka as Ng,Kb as yI,Kc as KN,L as Os,La as Fc,Lb as p,Lc as C3,M as Ro,Ma as mo,Mb as Ot,Mc as UN,N as qE,Na as Fg,Nb as Ze,Nc as Hs,O as xg,Oa as mI,Ob as ra,Oc as TD,P as A3,Pa as Q,Pb as Wt,Pc as TN,Q as oo,Qa as n3,Qb as se,Qc as OD,R as FD,Ra as ao,Rb as le,Rc as ON,S as YC,Sa as wo,Sb as c3,Sc as Gc,T as HC,Ta as zr,Tb as ls,Tc as JN,U as Js,Ua as on,Ub as br,Uc as Vl,V as Dl,Va as st,Vb as Bi,Vc as Kc,W as Yn,Wa as o3,Wb as ft,Wc as DI,X as Mi,Xa as Jo,Xb as _A,Xc as ql,Y as yt,Ya as GD,Yb as kN,Yc as vI,Z as uN,Za as bN,Zb as Ao,Zc as Uc,_ as mi,_a as a3,_b as D,_c as gs,a as Oo,aa as Nt,ab as et,ac as Ee,ad as HN,b as CN,ba as pN,bb as VA,bc as Ya,bd as bI,c as dN,ca as Va,cb as KD,cc as Ri,cd as li,d as Fi,da as jA,db as r3,dc as wi,dd as U0,e as IN,ea as At,eb as bt,ec as Ni,ed as JD,f as ne,fa as fN,fb as kt,fc as ro,fd as zN,g as BN,ga as MA,gb as s3,gc as so,gd as PN,h as gi,ha as Wo,hb as MN,hc as Ki,hd as jN,i as _g,ia as w,ib as M1,ic as zC,id as Mr,j as RD,ja as mN,jb as l3,jc as ZE,jd as VN,k as qp,ka as Hr,kb as UD,kc as _N,kd as qN,l as uI,la as vr,lb as SN,lc as pt,ld as jC,m as Br,ma as wN,mb as F0,mc as Lc,md as WN,n as jE,na as L,nb as g3,nc as jl,nd as ZN,o as pI,oa as G,ob as ie,oc as L0,od as XN,p as Yr,pa as Et,pb as wI,pc as mt,q as oe,qa as hr,qb as T,qc as Ft,r as Wp,ra as St,rb as S1,rc as G0,rd as $N,s as fI,sa as ci,sb as O,sc as PC,sd as AF,t as hN,ta as Er,tb as Ja,tc as xN,u as Zp,ua as yN,ub as ni,uc as RN,v as Se,va as FA,vb as ke,vc as wa,w as Dr,wa as We,wb as _e,wc as ye,x as xc,xa as e3,xb as H,xc as NN,y as ND,ya as LD,yb as I,yc as FN,z as Xp,za as mA,zb as h,zc as Ys}from"./chunk-2SRK2U7X.js";import{a as P,b as $A,c as Pp,e as jp,f as cAA,h as Vp,j as re,k as Ie}from"./chunk-RMXJBC7V.js";var kO=jp(CM=>{"use strict";var SO={b:"\b",f:"\f",n:` `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},MlA=97;CM.parse=function(i,e,A){var t={},n=0,o=0,a=0,r=A&&A.bigint&&typeof BigInt<"u";return{data:s("",!0),pointers:t};function s(j,X){l();var eA;S(j,"value");var Z=E();switch(Z){case"t":u("rue"),eA=!0;break;case"f":u("alse"),eA=!1;break;case"n":u("ull"),eA=null;break;case'"':eA=g();break;case"[":eA=d(j);break;case"{":eA=B(j);break;default:f(),"-0123456789".indexOf(Z)>=0?eA=C():x()}return S(j,"valueEnd"),l(),X&&aNumber.MAX_SAFE_INTEGER||eA="a"&&eA<="f"?X+=eA.charCodeAt()-MlA+10:eA>="0"&&eA<="9"?X+=+eA:F()}return String.fromCharCode(X)}function v(){for(var j="";i[a]>="0"&&i[a]<="9";)j+=E();if(j.length)return j;z(),x()}function S(j,X){k(j,X,M())}function k(j,X,eA){t[j]=t[j]||{},t[j][X]=eA}function M(){return{line:n,column:o,pos:a}}function x(){throw new SyntaxError("Unexpected token "+i[a]+" in JSON at position "+a)}function F(){f(),x()}function z(){if(a>=i.length)throw new SyntaxError("Unexpected end of JSON input")}};CM.stringify=function(i,e,A){if(!Q6(i))return;var t=0,n,o,a=typeof A=="object"?A.space:A;switch(typeof a){case"number":var r=a>10?10:a<0?0:Math.floor(a);a=r&&k(r," "),n=r,o=r;break;case"string":a=a.slice(0,10),n=0,o=0;for(var s=0;s",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(s){let i=this.getZoneWith(s);if(i)return i._properties[s]}getZoneWith(s){let i=this;for(;i;){if(i._properties.hasOwnProperty(s))return i;i=i._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,i){if(typeof s!="function")throw new Error("Expecting function got: "+s);let r=this._zoneDelegate.intercept(this,s,i),E=this;return function(){return E.runGuarded(r,this,arguments,i)}}run(s,i,r,E){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,i,r,E)}finally{b=b.parent}}runGuarded(s,i=null,r,E){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,i,r,E)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{b=b.parent}}runTask(s,i,r){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");let E=s,{type:x,data:{isPeriodic:ee=!1,isRefreshable:M=!1}={}}=s;if(s.state===q&&(x===U||x===k))return;let he=s.state!=A;he&&E._transitionTo(A,d);let _e=D;D=E,b={parent:b,zone:this};try{x==k&&s.data&&!ee&&!M&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,E,i,r)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{let Q=s.state;if(Q!==q&&Q!==X)if(x==U||ee||M&&Q===p)he&&E._transitionTo(d,A,p);else{let Te=E._zoneDelegates;this._updateTaskCount(E,-1),he&&E._transitionTo(q,A,q),M&&(E._zoneDelegates=Te)}b=b.parent,D=_e}}scheduleTask(s){if(s.zone&&s.zone!==this){let r=this;for(;r;){if(r===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);r=r.parent}}s._transitionTo(p,q);let i=[];s._zoneDelegates=i,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(r){throw s._transitionTo(X,p,q),this._zoneDelegate.handleError(this,r),r}return s._zoneDelegates===i&&this._updateTaskCount(s,1),s.state==p&&s._transitionTo(d,p),s}scheduleMicroTask(s,i,r,E){return this.scheduleTask(new g(F,s,i,r,E,void 0))}scheduleMacroTask(s,i,r,E,x){return this.scheduleTask(new g(k,s,i,r,E,x))}scheduleEventTask(s,i,r,E,x){return this.scheduleTask(new g(U,s,i,r,E,x))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");if(!(s.state!==d&&s.state!==A)){s._transitionTo(V,d,A);try{this._zoneDelegate.cancelTask(this,s)}catch(i){throw s._transitionTo(X,V),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(s,-1),s._transitionTo(q,V),s.runCount=-1,s}}_updateTaskCount(s,i){let r=s._zoneDelegates;i==-1&&(s._zoneDelegates=null);for(let E=0;EI.hasTask(i,r),onScheduleTask:(I,s,i,r)=>I.scheduleTask(i,r),onInvokeTask:(I,s,i,r,E,x)=>I.invokeTask(i,r,E,x),onCancelTask:(I,s,i,r)=>I.cancelTask(i,r)};class f{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(s,i,r){this._zone=s,this._parentDelegate=i,this._forkZS=r&&(r&&r.onFork?r:i._forkZS),this._forkDlgt=r&&(r.onFork?i:i._forkDlgt),this._forkCurrZone=r&&(r.onFork?this._zone:i._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:i._interceptZS),this._interceptDlgt=r&&(r.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:i._invokeZS),this._invokeDlgt=r&&(r.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:i._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:i._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:i._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:i._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let E=r&&r.onHasTask,x=i&&i._hasTaskZS;(E||x)&&(this._hasTaskZS=E?r:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,r.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),r.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),r.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(s,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,i):new e(s,i)}intercept(s,i,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,i,r):i}invoke(s,i,r,E,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,i,r,E,x):i.apply(r,E)}handleError(s,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,i):!0}scheduleTask(s,i){let r=i;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,i),r||(r=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==F)z(i);else throw new Error("Task is missing scheduleFn.");return r}invokeTask(s,i,r,E){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,i,r,E):i.callback.apply(r,E)}cancelTask(s,i){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");r=i.cancelFn(i)}return r}hasTask(s,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,i)}catch(r){this.handleError(s,r)}}_updateTaskCount(s,i){let r=this._taskCounts,E=r[s],x=r[s]=E+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(E==0||x==0){let ee={microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:s};this.hasTask(this._zone,ee)}}}class g{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(s,i,r,E,x,ee){if(this.type=s,this.source=i,this.data=E,this.scheduleFn=x,this.cancelFn=ee,!r)throw new Error("callback is not defined");this.callback=r;let M=this;s===U&&E&&E.useG?this.invoke=g.invokeTask:this.invoke=function(){return g.invokeTask.call(ce,M,this,arguments)}}static invokeTask(s,i,r){s||(s=this),K++;try{return s.runCount++,s.zone.runTask(s,i,r)}finally{K==1&&$(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,p)}_transitionTo(s,i,r){if(this._state===i||this._state===r)this._state=s,s==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${i}'${r?" or '"+r+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=te("setTimeout"),y=te("Promise"),w=te("then"),_=[],P=!1,L;function H(I){if(L||ce[y]&&(L=ce[y].resolve(0)),L){let s=L[w];s||(s=L.then),s.call(L,I)}else ce[T](I,0)}function z(I){K===0&&_.length===0&&H($),I&&_.push(I)}function $(){if(!P){for(P=!0;_.length;){let I=_;_=[];for(let s=0;sb,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:z,showUncaughtError:()=>!e[te("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:H},b={parent:null,zone:new e(null,null)},D=null,K=0;function W(){}return a("Zone","Zone"),e}function dt(){let t=globalThis,n=t[te("forceDuplicateZoneCheck")]===!0;if(t.Zone&&(n||typeof t.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return t.Zone??=ht(),t.Zone}var pe=Object.getOwnPropertyDescriptor,Me=Object.defineProperty,Ae=Object.getPrototypeOf,_t=Object.create,Tt=Array.prototype.slice,je="addEventListener",He="removeEventListener",Ne=te(je),Ze=te(He),ae="true",le="false",ve=te("");function Ve(t,n){return Zone.current.wrap(t,n)}function xe(t,n,a,e,c){return Zone.current.scheduleMacroTask(t,n,a,e,c)}var j=te,we=typeof window<"u",be=we?window:void 0,Y=we&&be||globalThis,Et="removeAttribute";function Fe(t,n){for(let a=t.length-1;a>=0;a--)typeof t[a]=="function"&&(t[a]=Ve(t[a],n+"_"+a));return t}function gt(t,n){let a=t.constructor.name;for(let e=0;e{let y=function(){return T.apply(this,Fe(arguments,a+"."+c))};return fe(y,T),y})(f)}}}function et(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var tt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in Y)&&typeof Y.process<"u"&&Y.process.toString()==="[object process]",Ge=!De&&!tt&&!!(we&&be.HTMLElement),nt=typeof Y.process<"u"&&Y.process.toString()==="[object process]"&&!tt&&!!(we&&be.HTMLElement),Ce={},kt=j("enable_beforeunload"),Xe=function(t){if(t=t||Y.event,!t)return;let n=Ce[t.type];n||(n=Ce[t.type]=j("ON_PROPERTY"+t.type));let a=this||t.target||Y,e=a[n],c;if(Ge&&a===be&&t.type==="error"){let f=t;c=e&&e.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&t.preventDefault()}else c=e&&e.apply(this,arguments),t.type==="beforeunload"&&Y[kt]&&typeof c=="string"?t.returnValue=c:c!=null&&!c&&t.preventDefault();return c};function Ye(t,n,a){let e=pe(t,n);if(!e&&a&&pe(a,n)&&(e={enumerable:!0,configurable:!0}),!e||!e.configurable)return;let c=j("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete e.writable,delete e.value;let f=e.get,g=e.set,T=n.slice(2),y=Ce[T];y||(y=Ce[T]=j("ON_PROPERTY"+T)),e.set=function(w){let _=this;if(!_&&t===Y&&(_=Y),!_)return;typeof _[y]=="function"&&_.removeEventListener(T,Xe),g?.call(_,null),_[y]=w,typeof w=="function"&&_.addEventListener(T,Xe,!1)},e.get=function(){let w=this;if(!w&&t===Y&&(w=Y),!w)return null;let _=w[y];if(_)return _;if(f){let P=f.call(this);if(P)return e.set.call(this,P),typeof w[Et]=="function"&&w.removeAttribute(n),P}return null},Me(t,n,e),t[c]=!0}function rt(t,n,a){if(n)for(let e=0;efunction(g,T){let y=a(g,T);return y.cbIdx>=0&&typeof T[y.cbIdx]=="function"?xe(y.name,T[y.cbIdx],y,c):f.apply(g,T)})}function fe(t,n){t[j("OriginalDelegate")]=n}var $e=!1,Le=!1;function yt(){if($e)return Le;$e=!0;try{let t=be.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(Le=!0)}catch{}return Le}function Je(t){return typeof t=="function"}function Ke(t){return typeof t=="number"}var pt={useG:!0},ne={},ot={},st=new RegExp("^"+ve+"(\\w+)(true|false)$"),it=j("propagationStopped");function ct(t,n){let a=(n?n(t):t)+le,e=(n?n(t):t)+ae,c=ve+a,f=ve+e;ne[t]={},ne[t][le]=c,ne[t][ae]=f}function vt(t,n,a,e){let c=e&&e.add||je,f=e&&e.rm||He,g=e&&e.listeners||"eventListeners",T=e&&e.rmAll||"removeAllListeners",y=j(c),w="."+c+":",_="prependListener",P="."+_+":",L=function(p,d,A){if(p.isRemoved)return;let V=p.callback;typeof V=="object"&&V.handleEvent&&(p.callback=k=>V.handleEvent(k),p.originalDelegate=V);let X;try{p.invoke(p,d,[A])}catch(k){X=k}let F=p.options;if(F&&typeof F=="object"&&F.once){let k=p.originalDelegate?p.originalDelegate:p.callback;d[f].call(d,A.type,k,F)}return X};function H(p,d,A){if(d=d||t.event,!d)return;let V=p||d.target||t,X=V[ne[d.type][A?ae:le]];if(X){let F=[];if(X.length===1){let k=L(X[0],V,d);k&&F.push(k)}else{let k=X.slice();for(let U=0;U{throw U})}}}let z=function(p){return H(this,p,!1)},$=function(p){return H(this,p,!0)};function J(p,d){if(!p)return!1;let A=!0;d&&d.useG!==void 0&&(A=d.useG);let V=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let F=!1;d&&d.rt!==void 0&&(F=d.rt);let k=p;for(;k&&!k.hasOwnProperty(c);)k=Ae(k);if(!k&&p[c]&&(k=p),!k||k[y])return!1;let U=d&&d.eventNameToString,S={},R=k[y]=k[c],b=k[j(f)]=k[f],D=k[j(g)]=k[g],K=k[j(T)]=k[T],W;d&&d.prepend&&(W=k[j(d.prepend)]=k[d.prepend]);function I(o,u){return u?typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}:o}let s=function(o){if(!S.isExisting)return R.call(S.target,S.eventName,S.capture?$:z,S.options)},i=function(o){if(!o.isRemoved){let u=ne[o.eventName],v;u&&(v=u[o.capture?ae:le]);let C=v&&o.target[v];if(C){for(let m=0;mre.zone.cancelTask(re);o.call(Ee,"abort",ie,{once:!0}),re.removeAbortListener=()=>Ee.removeEventListener("abort",ie)}if(S.target=null,me&&(me.taskData=null),Be&&(S.options.once=!0),typeof re.options!="boolean"&&(re.options=se),re.target=N,re.capture=Se,re.eventName=Z,B&&(re.originalDelegate=G),O?ge.unshift(re):ge.push(re),m)return N}};return k[c]=l(R,w,ee,M,F),W&&(k[_]=l(W,P,E,M,F,!0)),k[f]=function(){let o=this||t,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],C=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(V&&!V(b,m,o,arguments))return;let O=ne[u],N;O&&(N=O[C?ae:le]);let Z=N&&o[N];if(Z)for(let G=0;Gfunction(c,f){c[it]=!0,e&&e.apply(c,f)})}function Pt(t,n){n.patchMethod(t,"queueMicrotask",a=>function(e,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=j("zoneTask");function ke(t,n,a,e){let c=null,f=null;n+=e,a+=e;let g={};function T(w){let _=w.data;_.args[0]=function(){return w.invoke.apply(this,arguments)};let P=c.apply(t,_.args);return Ke(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Je(P.refresh)),w}function y(w){let{handle:_,handleId:P}=w.data;return f.call(t,_??P)}c=ue(t,n,w=>function(_,P){if(Je(P[0])){let L={isRefreshable:!1,isPeriodic:e==="Interval",delay:e==="Timeout"||e==="Interval"?P[1]||0:void 0,args:P},H=P[0];P[0]=function(){try{return H.apply(this,arguments)}finally{let{handle:A,handleId:V,isPeriodic:X,isRefreshable:F}=L;!X&&!F&&(V?delete g[V]:A&&(A[Re]=null))}};let z=xe(n,P[0],L,T,y);if(!z)return z;let{handleId:$,handle:J,isRefreshable:q,isPeriodic:p}=z.data;if($)g[$]=z;else if(J&&(J[Re]=z,q&&!p)){let d=J.refresh;J.refresh=function(){let{zone:A,state:V}=z;return V==="notScheduled"?(z._state="scheduled",A._updateTaskCount(z,1)):V==="running"&&(z._state="scheduling"),d.call(this)}}return J??$??z}else return w.apply(t,P)}),f=ue(t,a,w=>function(_,P){let L=P[0],H;Ke(L)?(H=g[L],delete g[L]):(H=L?.[Re],H?L[Re]=null:H=L),H?.type?H.cancelFn&&H.zone.cancelTask(H):w.apply(t,P)})}function Rt(t,n){let{isBrowser:a,isMix:e}=n.getGlobalObjects();if(!a&&!e||!t.customElements||!("customElements"in t))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,t.customElements,"customElements","define",c)}function Ct(t,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:e,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:g}=n.getGlobalObjects();for(let y=0;yf.target===t);if(e.length===0)return n;let c=e[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Qe(t,n,a,e){if(!t)return;let c=lt(t,n,a);rt(t,c,e)}function Ie(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Dt(t,n){if(De&&!nt||Zone[t.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,e=[];if(Ge){let c=window;e=e.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=[];Qe(c,Ie(c),a&&a.concat(f),Ae(c))}e=e.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[t.__symbol__("legacyPatch")];a&&a()}),t.__load_patch("timers",n=>{let e="clear";ke(n,"set",e,"Timeout"),ke(n,"set",e,"Interval"),ke(n,"set",e,"Immediate")}),t.__load_patch("requestAnimationFrame",n=>{ke(n,"request","cancel","AnimationFrame"),ke(n,"mozRequest","mozCancel","AnimationFrame"),ke(n,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(n,a)=>{let e=["alert","prompt","confirm"];for(let c=0;cfunction(w,_){return a.current.run(g,n,_,y)})}}),t.__load_patch("EventTarget",(n,a,e)=>{wt(n,e),Ct(n,e);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&e.patchEventTarget(n,e,[c.prototype])}),t.__load_patch("MutationObserver",(n,a,e)=>{ye("MutationObserver"),ye("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(n,a,e)=>{ye("IntersectionObserver")}),t.__load_patch("FileReader",(n,a,e)=>{ye("FileReader")}),t.__load_patch("on_property",(n,a,e)=>{Dt(e,n)}),t.__load_patch("customElements",(n,a,e)=>{Rt(n,e)}),t.__load_patch("XHR",(n,a)=>{w(n);let e=j("xhrTask"),c=j("xhrSync"),f=j("xhrListener"),g=j("xhrScheduled"),T=j("xhrURL"),y=j("xhrErrorBeforeScheduled");function w(_){let P=_.XMLHttpRequest;if(!P)return;let L=P.prototype;function H(R){return R[e]}let z=L[Ne],$=L[Ze];if(!z){let R=_.XMLHttpRequestEventTarget;if(R){let b=R.prototype;z=b[Ne],$=b[Ze]}}let J="readystatechange",q="scheduled";function p(R){let b=R.data,D=b.target;D[g]=!1,D[y]=!1;let K=D[f];z||(z=D[Ne],$=D[Ze]),K&&$.call(D,J,K);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[g]&&R.state===q){let s=D[a.__symbol__("loadfalse")];if(D.status!==0&&s&&s.length>0){let i=R.invoke;R.invoke=function(){let r=D[a.__symbol__("loadfalse")];for(let E=0;Efunction(R,b){return R[c]=b[2]==!1,R[T]=b[1],V.apply(R,b)}),X="XMLHttpRequest.send",F=j("fetchTaskAborting"),k=j("fetchTaskScheduling"),U=ue(L,"send",()=>function(R,b){if(a.current[k]===!0||R[c])return U.apply(R,b);{let D={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},K=xe(X,d,D,p,A);R&&R[y]===!0&&!D.aborted&&K.state===q&&K.invoke()}}),S=ue(L,"abort",()=>function(R,b){let D=H(R);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[F]===!0)return S.apply(R,b)})}}),t.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&>(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(n,a)=>{function e(c){return function(f){at(n,c).forEach(T=>{let y=n.PromiseRejectionEvent;if(y){let w=new y(c,{promise:f.promise,reason:f.rejection});T.invoke(w)}})}}n.PromiseRejectionEvent&&(a[j("unhandledPromiseRejectionHandler")]=e("unhandledrejection"),a[j("rejectionHandledHandler")]=e("rejectionhandled"))}),t.__load_patch("queueMicrotask",(n,a,e)=>{Pt(n,e)})}function Ot(t){t.__load_patch("ZoneAwarePromise",(n,a,e)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function g(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=e.symbol,y=[],w=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),L="__creationTrace__";e.onUnhandledError=h=>{if(e.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},e.microtaskDrainDone=()=>{for(;y.length;){let h=y.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){z(l)}}};let H=T("unhandledPromiseRejectionHandler");function z(h){e.onUnhandledError(h);try{let l=a[H];typeof l=="function"&&l.call(this,h)}catch{}}function $(h){return h&&typeof h.then=="function"}function J(h){return h}function q(h){return M.reject(h)}let p=T("state"),d=T("value"),A=T("finally"),V=T("parentPromiseValue"),X=T("parentPromiseState"),F="Promise.then",k=null,U=!0,S=!1,R=0;function b(h,l){return o=>{try{I(h,l,o)}catch(u){I(h,!1,u)}}}let D=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",W=T("currentTaskTrace");function I(h,l,o){let u=D();if(h===o)throw new TypeError(K);if(h[p]===k){let v=null;try{(typeof o=="object"||typeof o=="function")&&(v=o&&o.then)}catch(C){return u(()=>{I(h,!1,C)})(),h}if(l!==S&&o instanceof M&&o.hasOwnProperty(p)&&o.hasOwnProperty(d)&&o[p]!==k)i(o),I(h,o[p],o[d]);else if(l!==S&&typeof v=="function")try{v.call(o,u(b(h,l)),u(b(h,!1)))}catch(C){u(()=>{I(h,!1,C)})()}else{h[p]=l;let C=h[d];if(h[d]=o,h[A]===A&&l===U&&(h[p]=h[X],h[d]=h[V]),l===S&&o instanceof Error){let m=a.currentTask&&a.currentTask.data&&a.currentTask.data[L];m&&f(o,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let O=h[d],N=!!o&&A===o[A];N&&(o[V]=O,o[X]=C);let Z=l.run(m,void 0,N&&m!==q&&m!==J?[]:[O]);I(o,!0,Z)}catch(O){I(o,!1,O)}},o)}let E="function ZoneAwarePromise() { [native code] }",x=function(){},ee=n.AggregateError;class M{static toString(){return E}static resolve(l){return l instanceof M?l:I(new this(null),U,l)}static reject(l){return I(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new ee([],"All promises were rejected"));let o=[],u=0;try{for(let m of l)u++,o.push(M.resolve(m))}catch{return Promise.reject(new ee([],"All promises were rejected"))}if(u===0)return Promise.reject(new ee([],"All promises were rejected"));let v=!1,C=[];return new M((m,O)=>{for(let N=0;N{v||(v=!0,m(Z))},Z=>{C.push(Z),u--,u===0&&(v=!0,O(new ee(C,"All promises were rejected")))})})}static race(l){let o,u,v=new this((O,N)=>{o=O,u=N});function C(O){o(O)}function m(O){u(O)}for(let O of l)$(O)||(O=this.resolve(O)),O.then(C,m);return v}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,v,C=new this((Z,G)=>{u=Z,v=G}),m=2,O=0,N=[];for(let Z of l){$(Z)||(Z=this.resolve(Z));let G=O;try{Z.then(B=>{N[G]=o?o.thenCallback(B):B,m--,m===0&&u(N)},B=>{o?(N[G]=o.errorCallback(B),m--,m===0&&u(N)):v(B)})}catch(B){v(B)}m++,O++}return m-=2,m===0&&u(N),C}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[p]=k,o[d]=[];try{let u=D();l&&l(u(b(o,U)),u(b(o,S)))}catch(u){I(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let v=new u(x),C=a.current;return this[p]==k?this[d].push(C,v,l,o):r(this,C,v,l,o),v}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(x);u[A]=A;let v=a.current;return this[p]==k?this[d].push(v,u,l,l):r(this,v,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let he=n[_]=n.Promise;n.Promise=M;let _e=T("thenPatched");function Q(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,C){return new M((O,N)=>{u.call(this,O,N)}).then(v,C)},h[_e]=!0}e.patchThen=Q;function Te(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let v=u.constructor;return v[_e]||Q(v),u}}return he&&(Q(he),ue(n,"fetch",h=>Te(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=y,M})}function Nt(t){t.__load_patch("toString",n=>{let a=Function.prototype.toString,e=j("OriginalDelegate"),c=j("Promise"),f=j("Error"),g=function(){if(typeof this=="function"){let _=this[e];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};g[e]=a,Function.prototype.toString=g;let T=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:T.call(this)}})}function Zt(t,n,a,e,c){let f=Zone.__symbol__(e);if(n[f])return;let g=n[f]=n[e];n[e]=function(T,y,w){return y&&y.prototype&&c.forEach(function(_){let P=`${a}.${e}::`+_,L=y.prototype;try{if(L.hasOwnProperty(_)){let H=t.ObjectGetOwnPropertyDescriptor(L,_);H&&H.value?(H.value=t.wrapWithCurrentZone(H.value,P),t._redefineProperty(y.prototype,_,H)):L[_]&&(L[_]=t.wrapWithCurrentZone(L[_],P))}else L[_]&&(L[_]=t.wrapWithCurrentZone(L[_],P))}catch{}}),g.call(n,T,y,w)},t.attachOriginToPatched(n[e],g)}function Lt(t){t.__load_patch("util",(n,a,e)=>{let c=Ie(n);e.patchOnProperties=rt,e.patchMethod=ue,e.bindArguments=Fe,e.patchMacroTask=mt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),g=a.__symbol__("UNPATCHED_EVENTS");n[g]&&(n[f]=n[g]),n[f]&&(a[f]=a[g]=n[f]),e.patchEventPrototype=bt,e.patchEventTarget=vt,e.isIEOrEdge=yt,e.ObjectDefineProperty=Me,e.ObjectGetOwnPropertyDescriptor=pe,e.ObjectCreate=_t,e.ArraySlice=Tt,e.patchClass=ye,e.wrapWithCurrentZone=Ve,e.filterProperties=lt,e.attachOriginToPatched=fe,e._redefineProperty=Object.defineProperty,e.patchCallbacks=Zt,e.getGlobalObjects=()=>({globalSources:ot,zoneSymbolEventNames:ne,eventNames:c,isBrowser:Ge,isMix:nt,isNode:De,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:je,REMOVE_EVENT_LISTENER_STR:He})})}function It(t){Ot(t),Nt(t),Lt(t)}var ut=dt();It(ut);St(ut); diff --git a/tests/unittests/integrations/bigquery/test_data/ask_data_insights_penguins_highest_mass.yaml b/tests/unittests/integrations/bigquery/test_data/ask_data_insights_penguins_highest_mass.yaml index ad4fd43193..cc03384040 100644 --- a/tests/unittests/integrations/bigquery/test_data/ask_data_insights_penguins_highest_mass.yaml +++ b/tests/unittests/integrations/bigquery/test_data/ask_data_insights_penguins_highest_mass.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + description: "Tests a full, realistic stream about finding the penguin island with the highest body mass." user_question: "Penguins on which island have the highest average body mass?"