veadk-python 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of veadk-python might be problematic. Click here for more details.
- veadk/__init__.py +9 -3
- veadk/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/__pycache__/agent.cpython-310.pyc +0 -0
- veadk/__pycache__/runner.cpython-310.pyc +0 -0
- veadk/__pycache__/types.cpython-310.pyc +0 -0
- veadk/__pycache__/version.cpython-310.pyc +0 -0
- veadk/a2a/__pycache__/remote_ve_agent.cpython-310.pyc +0 -0
- veadk/a2a/__pycache__/ve_a2a_server.cpython-310.pyc +0 -0
- veadk/a2a/__pycache__/ve_agent_executor.cpython-310.pyc +0 -0
- veadk/a2a/remote_ve_agent.py +1 -1
- veadk/a2a/ve_a2a_server.py +0 -2
- veadk/agent.py +10 -7
- veadk/cli/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli_deploy.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli_init.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli_prompt.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli_studio.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/cli_web.cpython-310.pyc +0 -0
- veadk/cli/__pycache__/main.cpython-310.pyc +0 -0
- veadk/cli/{services/agentpilot/__init__.py → cli.py} +25 -2
- veadk/cli/cli_deploy.py +147 -0
- veadk/cli/cli_init.py +106 -0
- veadk/cli/cli_prompt.py +64 -0
- veadk/cli/cli_web.py +154 -0
- veadk/cloud/__pycache__/cloud_agent_engine.cpython-310.pyc +0 -0
- veadk/cloud/__pycache__/cloud_app.cpython-310.pyc +0 -0
- veadk/cloud/cloud_agent_engine.py +77 -42
- veadk/cloud/cloud_app.py +37 -6
- veadk/database/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/database/__pycache__/database_adapter.cpython-310.pyc +0 -0
- veadk/database/database_adapter.py +2 -2
- veadk/database/kv/redis_database.py +12 -9
- veadk/database/relational/mysql_database.py +10 -9
- veadk/database/vector/opensearch_vector_database.py +14 -7
- veadk/database/viking/viking_database.py +23 -17
- veadk/database/viking/viking_memory_db.py +9 -9
- veadk/evaluation/__pycache__/base_evaluator.cpython-310.pyc +0 -0
- veadk/evaluation/adk_evaluator/adk_evaluator.py +12 -17
- veadk/evaluation/base_evaluator.py +10 -9
- veadk/evaluation/utils/prometheus.py +1 -4
- veadk/integrations/ve_apig/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/integrations/ve_apig/__pycache__/ve_apig.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/__pycache__/types.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/__pycache__/ve_faas.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/__pycache__/ve_faas_utils.cpython-310.pyc +0 -0
- veadk/{cli/services/vefaas → integrations/ve_faas}/__pycache__/vefaas.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/template/cookiecutter.json +11 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/config.yaml.example +6 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/deploy.py +103 -0
- veadk/{cli/services/vefaas/template → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}}/src/__init__.py +0 -1
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/__pycache__/agent.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/__pycache__/app.cpython-310.pyc +0 -0
- veadk/{cli/services/veapig/__init__.py → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/agent.py} +10 -2
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/app.py +146 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/requirements.txt +1 -0
- veadk/{cli/services/vefaas/template → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}}/src/run.sh +10 -19
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name|replace('-', '_') }}/__init__.py +14 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name|replace('-', '_') }}/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name|replace('-', '_') }}/__pycache__/agent.cpython-310.pyc +0 -0
- veadk/{cli/services/vefaas/template/src/agent.py → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}/src/{{ cookiecutter.app_name|replace('-', '_') }}/agent.py } +8 -6
- veadk/{cli/services/vefaas/vefaas.py → integrations/ve_faas/ve_faas.py} +15 -6
- veadk/integrations/ve_prompt_pilot/__init__.py +13 -0
- veadk/{cli/services/agentpilot → integrations/ve_prompt_pilot}/__pycache__/agentpilot.cpython-310.pyc +0 -0
- veadk/{cli/services/agentpilot/agentpilot.py → integrations/ve_prompt_pilot/ve_prompt_pilot.py} +5 -6
- veadk/knowledgebase/__pycache__/knowledgebase.cpython-310.pyc +0 -0
- veadk/knowledgebase/knowledgebase.py +3 -5
- veadk/memory/__pycache__/long_term_memory.cpython-310.pyc +0 -0
- veadk/memory/__pycache__/short_term_memory.cpython-310.pyc +0 -0
- veadk/memory/__pycache__/short_term_memory_processor.cpython-310.pyc +0 -0
- veadk/memory/long_term_memory.py +5 -2
- veadk/memory/short_term_memory.py +3 -7
- veadk/memory/short_term_memory_processor.py +7 -2
- veadk/prompts/prompt_optimization.py +11 -19
- veadk/runner.py +85 -68
- veadk/tools/__pycache__/load_knowledgebase_tool.cpython-310.pyc +0 -0
- veadk/tools/builtin_tools/__pycache__/vesearch.cpython-310.pyc +0 -0
- veadk/tools/load_knowledgebase_tool.py +3 -2
- veadk/tracing/__pycache__/base_tracer.cpython-310.pyc +0 -0
- veadk/tracing/base_tracer.py +27 -15
- veadk/tracing/telemetry/__pycache__/opentelemetry_tracer.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/__pycache__/apmplus_exporter.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/__pycache__/base_exporter.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/__pycache__/cozeloop_exporter.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/__pycache__/inmemory_exporter.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/__pycache__/tls_exporter.cpython-310.pyc +0 -0
- veadk/tracing/telemetry/exporters/apmplus_exporter.py +0 -3
- veadk/tracing/telemetry/exporters/base_exporter.py +3 -0
- veadk/tracing/telemetry/exporters/cozeloop_exporter.py +0 -3
- veadk/tracing/telemetry/exporters/inmemory_exporter.py +13 -4
- veadk/tracing/telemetry/exporters/tls_exporter.py +2 -9
- veadk/tracing/telemetry/opentelemetry_tracer.py +14 -30
- veadk/types.py +20 -1
- veadk/utils/__pycache__/logger.cpython-310.pyc +0 -0
- veadk/utils/__pycache__/misc.cpython-310.pyc +0 -0
- veadk/utils/__pycache__/patches.cpython-310.pyc +0 -0
- veadk/utils/mcp_utils.py +1 -1
- veadk/utils/misc.py +31 -2
- veadk/utils/patches.py +0 -30
- veadk/version.py +1 -1
- {veadk_python-0.2.1.dist-info → veadk_python-0.2.2.dist-info}/METADATA +16 -5
- veadk_python-0.2.2.dist-info/RECORD +213 -0
- veadk_python-0.2.2.dist-info/entry_points.txt +2 -0
- veadk/cli/main.py +0 -379
- veadk/cli/services/veapig/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/cli/services/vefaas/__init__.py +0 -17
- veadk/cli/services/vefaas/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/cli/services/vefaas/template/README.md +0 -37
- veadk/cli/services/vefaas/template/config.yaml.example +0 -19
- veadk/cli/services/vefaas/template/deploy.py +0 -58
- veadk/cli/services/vefaas/template/src/__pycache__/agent.cpython-310.pyc +0 -0
- veadk/cli/services/vefaas/template/src/app.py +0 -70
- veadk/cli/services/vefaas/template/src/requirements.txt +0 -6
- veadk/cli/services/vefaas/template/src/studio_app.py +0 -47
- veadk/cli/services/vetls/__init__.py +0 -17
- veadk/cli/services/vetls/vetls.py +0 -87
- veadk/cli/studio/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/cli/studio/__pycache__/fast_api.cpython-310.pyc +0 -0
- veadk/cli/studio/__pycache__/models.cpython-310.pyc +0 -0
- veadk/cli/studio/__pycache__/studio_processor.cpython-310.pyc +0 -0
- veadk/cli/studio/fast_api.py +0 -392
- veadk/cli/studio/models.py +0 -76
- veadk/cli/studio/studio_processor.py +0 -127
- veadk/cli/studio/web/404.html +0 -1
- veadk/cli/studio/web/__pycache__/__init__.cpython-310.pyc +0 -0
- veadk/cli/studio/web/_next/static/chunks/1012.1c22f40693022876.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1017.577d2551c3a2b396.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1044.7c49605a0f9b5d5c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1067.71aee8d185b3a9d7.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1088.8f7f3c71458d301b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1092.7b553ab1ec1737bf.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1117.8c537e259adccbe2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1142.1faf8d46ccf4030c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1146.25bf08c82f4ad1c5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1192.55e7712b3dc8b6a8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1200.1038681512a9f69a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1265.e055670c82b2d131.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1275.322d8bf8a580b859.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/140.d7e90f5e12cf288c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1421.7fff0e9f0677f79b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1469.16c1e07a7c0f9817.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1480.3c94a6d6d61c4f56.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1507.4c7617217de3bef8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1523.1740f3d9d913fe76.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1526.5fb34657a70589b5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1563.6c364e96b33f3328.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/157.2e3f508bc115c15c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1577.b6cebda169ac9c75.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1622.a611b4dab478587d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1685.db5d4efe2f0e3767.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1687.a10254d4e1dd84c0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1826.da2ac0fcfb59cfae.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1832.f81112d6166a9563.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1851.1d0bdfdf5fa89313.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/189.c602a68aadf321e4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1899.dd303f08095745bc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/193.1e81c5b253db2ee7.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1936.8fad6d3898c86483.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1942.165056b632c269d4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/1974.ee28ba5ac111af70.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2.c2afe2e24520b5de.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2006.298ac00a777dc313.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2063.69ba443b7901194c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2067-e02b0bc96d886930.js +0 -91
- veadk/cli/studio/web/_next/static/chunks/2119.4595d21bc0340c5b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/212.0a8d6163667d9369.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2190.5549f7a57901bd46.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2193.51ce38cc9e965abd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2202.a6c08676680e55ad.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2247.af410bd18c38e538.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2313.6932520daf0fa88c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2316.c9eafa57971eebc8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2324.766859688506ac0d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2328.131b0296bc19ba4e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2332.b9b7ac0b386a4a28.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2344.cc417c70cb6dbc51.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2347.9f442b75b11de668.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2356.f6b4ac7eb50edb44.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2370.044b34646bc58363.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2378.2005af4d2bf100dd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2437.68534e42d45c5c61.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2449.db460ea54b851bc1.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2455.153b04863d2ae9dc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2484.139843b3f1cc8ea5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2500.e2b8da0d1401bd5f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2513.a7056ff98b04c4cd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2533.5e35d247414428d0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2541.3e5a23b461d7a9fd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2545.0e4e3a784391205b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2558.17eda1052d7c8c1f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2559.7432df2540cfff07.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2578.1be0687e71bc7731.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2601.aa7e57bdf472372c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/261-19b52c2c85aefb5d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2642.9ea0966ca6bd8ace.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2669.e90ab188be48154e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2737.4f5c7f7b9293ae65.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2804.b801cadc26133d92.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2817.8584109b4bc979e8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/282.cfff86fab979470f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2822.12cdf0520b2d321a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/288.5c1053dbdc74212b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2964.a531dbf5eb867f3d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/2f7605f3.0531565b22967bb4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3080.9aada68cdc9ad5c2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3090.a9e7f71df818f607.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3103.b7cdb76d87ac0fdd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/311.2737abd09304ba1b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3110.84511591e516221b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3126.307ac469edcf6ec9.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/320.a3c0085ebf05b7da.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/322.668c1a20cc012c68.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3341.a0f06b1edc2332fb.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3357.ced93e6bf8e56762.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3386.53f3aa4ff0dd0170.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3391.402e02fd7c297ff8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3392.5172b1d190ff0e8c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/33fb68d2.aacf24a5979288bd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3429.74dcaa985d188e43.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3433.737c3d948bdda1da.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3435.1798454b9a5b69ca.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3481.a916f933c4e534b8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3602.bdf28129f1569554.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3607.49cec7e9330d1f4d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3615.3280752d551adf2d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3721.f660b5b05621f5e4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3786.ae0824e683556d37.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/3805.ec0340f0f6e61bbc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4045.42a3c9fb7d932ebc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4052.86cc820c95ad25a8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4058.3cea468f5370b7c9.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4068.ff830b92579f6b7f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/411.5679da8e6a856022.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4118.e2544434642f6640.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4139.80b0aab26d9a4601.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/423.da4e0abf5fd408dc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4262.9d5532cb76a86371.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/431.ef6d705ac627958f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4337.3c94a6d6d61c4f56.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4357-39eb6b5934ac97db.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4382.64908590e0a18d66.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4489.7a9b45fb6f6bf491.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/450.76880cb957b128fa.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/452.14fb00ee415ad32b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4577.d1cbd95a87e2adb2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4626.0866c7ee38885775.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4627.3d7df52a668a6b57.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4713.3891f7d347513ef5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4749.25fd94a8ed476b13.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4836.afe027e38fb9a7e8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/483e0093.2a09b17ad5d1b3ed.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4852.cac6e9c5032df796.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4860.94324451a00fadc0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4869.091903cb36ad77ad.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4888.e248e212b002f5df.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/492.ac958937dd36300f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4958.85e0dbc8b2319776.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4968.1477e29640b2deb8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4980.1300ab7d9c76e523.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/4aa6d3c9.dade76a8ff4112d3.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5006.8ee1d611f529da11.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5018.c34d2a9f82e24c51.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5050.c06b2d8e12720555.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5084.9b554002148843ea.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5097.2e9a097ccfb70707.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5113.fa5291624248676b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5115.ff49cf5e2be16db4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/521.98b7995e15b59075.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5213.1a7618fcae8c5282.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/522.56063fbcf9aa8699.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5247.b304f94eb3132618.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5248.f9faaff2f0d7631f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/527-1c65afbb202752bd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/529.7d231c2076b6d77a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5305.9323b5f7efaa005e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5317.fce75000492e9db4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5326.3be5b04850f0a2f2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5329.415b43aacdd9a471.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5331.77f0493c99857944.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5341.1fff90ab37947f62.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/541.04d938e895b7f678.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5428.fa789e4b0d61cd0d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5460.cee07b9411c5c5ca.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5472.f645717ad2edd28f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5503.75093ef3870b655f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5567.44555d5da6ed19b7.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5572.3c35c26a4867ca56.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5579.b3be6028d1833118.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5631.b8a2c0dc65737269.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5656.b743b6ab9a61eec0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5677.c063822912e55a25.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5779.0b1a3c7d1c018a1d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5817.ae1fb69a154fbf4c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5860.7154866a5d2dd82f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5865.645e44e8e171ba9f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5906.30cce16ed88f920a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5942.cd6dfaad76581849.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/5958.e2f981fa3cba5d99.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/60f90b65.d526f39688baa769.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6128.3da302fb50769250.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/62.5408e55d383a8078.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/624.7c7198473a8877d8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6264.e7bdd878d9e7a249.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6266.97409ca00a3c32d9.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6269.668be917daafccaa.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/630.87a6f22ac3e8956b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6341.35afa02112051be8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6353.93869a804ffe525b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6375.46d2897cb2526abd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6395.f113970ceec6ba91.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/63d31579-18fb2181524a9c6f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6423.d4cf9eb5b2ae6336.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6437.5eeaa7320bce1872.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6438.1c8486cc62da4117.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6451.f56cce0a07138982.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6456.f263b33ea51e4f54.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6504.0e6ae8d5bb987be6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6560.b08504c0d99d71d4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6563.e6d3bdba9860590d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6621.639e4057d9c15bea.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6625.c0233245d2c1ef25.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6641.5487a2d68b0c52f2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6644.74de9f2de2dc75f5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6730.aac5bd02aab8258f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6824.8c40dbd3eb390403.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6831.74b4a9b75f4ff9d1.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/688.9a27292bd19bc993.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6899.ac4207b9a778bd0e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6901.4755ed550912589c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6910.5d45b17e287dba94.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6928.d0a540480df90930.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6958.c58e8e991b201429.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/6d60d248-1bbd761ee88ab2e4.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/70207789-862965aac548ab2a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7046.60a892c1e506cf5f.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7068.6639b51e828de233.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7172.aeda2e49d81fc0fd.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7185.0210768f3918ec41.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7200.86e672d8e2c1a920.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/730.2c5e46bf8fd29fcc.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7301.43929cd9c2a5d2ea.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7335.68692b193fa0dff6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7412.98554f6ee574e288.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7422.e4a69fce6694ba90.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7448.63e7b8d5fd090bd1.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7479.97f696c6ada04b29.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7482.ab6a217c34f6934a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7484.b91675bd38b250f8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7522.84dac217ae0701ac.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7540-38c13446d29f43f2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7556.ae47807e378de233.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/761.2ce77249f8d3a1ce.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7678.ceea70830f2dd7ff.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7684.c43e4b5ad1f9b0af.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7698.44201098b212aee8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/76ff44ea.8322bdedaee78e2d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7725.b15cb8b6e1d15403.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7855.513a507852c649f2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7910.266df3f992c16215.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7940.f490f3d5e6590e54.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/7960.491bd15bef82755c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8020.795778775ed5c387.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8107.fbb6017b3e909da5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8169.4d7fd139784eb935.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8196.6c5c3dfe86e1c3ca.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8257.ee682bc2599473cb.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8305.d2c965e56fe9350c.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8324.8c3edcc756f5e2f3.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8388.cc59fb03d62a71cf.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8394.d5ca17ce8f6fffb0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8419.b11c64d18dc580b5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8478.5f4272ae9afa4061.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8480.a071150cb4eddc29.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8535.0ab856b7bf0e161b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8571.8af7983b03c09f86.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8583.4afa8c68cb867b2d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8601.520cbfc8abbfb5f8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8656.5f8b6212d2b35257.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8665.7f24febc4a78ff5e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8687.c94010eb559245b6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8815.81a5c5700763ca02.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8878.28a43a5fe23f5bd0.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8884.e4e411c7978b2552.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8962.db5c7728bef5ff0b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/8984.dfcb15f115089c4a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9022.d161e32a6b1bcc61.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9099.8ba5be825d17456a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/914.72991ff6c9332951.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9217.40b78a38cadcd268.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/925.0cc74592f03b10e9.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9275.ac60c49c68c86e51.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/92a17e6d.da4fba322f70cd46.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/92b95f17.39f98387a9867b4a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9361.d3535e4d87c1c527.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9433.55eb6e4ea7edb262.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9436.5b2462fa3ddebb27.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9445.e29312f685c22eff.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9471.646bdfb962cdd5c2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9473.efa6db413edc23d1.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9484.e9f1cd4e3f8e75df.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9545.61026f3c11f914f2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9555.287e4e4a50087d62.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/963.da40bca273fb82c6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9636.4d3678b9a4e0b46e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9657.459d6300b0bc8ef8.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9676.cef4d87274c64417.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/97.15df9ee2f6270421.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9754.76a3ea33dc0e9a07.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9790.7e01549d70279760.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9871.994068e90ef076a5.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9887.0fbd7c3721a3c1d1.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9923.14c88b64d7749eaa.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/997.193727d4b2eede68.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9971.36f503837f73d3c2.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9976.ab4ec59ede08f398.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9990.13e025853b0250b6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/9997.a844d058b46bb680.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/app/_not-found/page-ce05b36a67c37396.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/app/layout-b0d50d105c55fd6d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/app/page-7b51d29c96f44f61.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/app/run/page-c2cd4dca690d6d29.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/c06218ab.b1da50a91b579a52.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/c911d7bd.bcca2e3dda67a7a6.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/d386b14e.c746c93eac03a58e.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/e925550e.ff706051f5223d26.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/fc645be4-662fd2da08676daa.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/framework-2b8e4864be10152d.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/main-33072985ea766514.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/main-app-4a8ccba13aa7606b.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/pages/_app-c0ae3ec92f260128.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/pages/_error-899a04d491d7df58.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- veadk/cli/studio/web/_next/static/chunks/webpack-14afc8861a1fe293.js +0 -1
- veadk/cli/studio/web/_next/static/css/366cfdd7fdd8bcac.css +0 -1
- veadk/cli/studio/web/_next/static/gvLvin_lQcpkhQupQqPu1/_buildManifest.js +0 -1
- veadk/cli/studio/web/_next/static/gvLvin_lQcpkhQupQqPu1/_ssgManifest.js +0 -1
- veadk/cli/studio/web/_next/static/media/569ce4b8f30dc480-s.p.woff2 +0 -0
- veadk/cli/studio/web/_next/static/media/747892c23ea88013-s.woff2 +0 -0
- veadk/cli/studio/web/_next/static/media/8d697b304b401681-s.woff2 +0 -0
- veadk/cli/studio/web/_next/static/media/93f479601ee12b01-s.p.woff2 +0 -0
- veadk/cli/studio/web/_next/static/media/9610d9e46709d722-s.woff2 +0 -0
- veadk/cli/studio/web/_next/static/media/ba015fad6dcf6784-s.woff2 +0 -0
- veadk/cli/studio/web/favicon.ico +0 -0
- veadk/cli/studio/web/file.svg +0 -1
- veadk/cli/studio/web/globe.svg +0 -1
- veadk/cli/studio/web/index.html +0 -1
- veadk/cli/studio/web/index.txt +0 -43
- veadk/cli/studio/web/next.svg +0 -1
- veadk/cli/studio/web/run.html +0 -1
- veadk/cli/studio/web/run.txt +0 -44
- veadk/cli/studio/web/veadk-logo.png +0 -0
- veadk/cli/studio/web/vercel.svg +0 -1
- veadk/cli/studio/web/window.svg +0 -1
- veadk/tracing/telemetry/exporters/apiserver_exporter.py +0 -60
- veadk_python-0.2.1.dist-info/RECORD +0 -534
- veadk_python-0.2.1.dist-info/entry_points.txt +0 -2
- /veadk/{cli/services/vefaas/template → integrations/ve_apig}/__init__.py +0 -0
- /veadk/{cli/services/veapig → integrations/ve_apig}/__pycache__/apig.cpython-310.pyc +0 -0
- /veadk/{cli/services/veapig/apig.py → integrations/ve_apig/ve_apig.py} +0 -0
- /veadk/{cli/services/veapig/apig_utils.py → integrations/ve_apig/ve_apig_utils.py} +0 -0
- /veadk/{cli/studio → integrations/ve_faas}/__init__.py +0 -0
- /veadk/{cli/services/vefaas → integrations/ve_faas}/__pycache__/vefaas_utils.cpython-310.pyc +0 -0
- /veadk/{cli/studio/web → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}}/__init__.py +0 -0
- /veadk/{cli/services/vefaas/template → integrations/ve_faas/template/{{cookiecutter.local_dir_name}}}/src/__pycache__/studio_app.cpython-310.pyc +0 -0
- /veadk/{cli/services/vefaas/vefaas_utils.py → integrations/ve_faas/ve_faas_utils.py} +0 -0
- /veadk/{cli/services/agentpilot → integrations/ve_prompt_pilot}/__pycache__/__init__.cpython-310.pyc +0 -0
- {veadk_python-0.2.1.dist-info → veadk_python-0.2.2.dist-info}/WHEEL +0 -0
- {veadk_python-0.2.1.dist-info → veadk_python-0.2.2.dist-info}/licenses/LICENSE +0 -0
- {veadk_python-0.2.1.dist-info → veadk_python-0.2.2.dist-info}/top_level.txt +0 -0
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2067],{2472:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},2865:(e,t,n)=>{"use strict";n.d(t,{Od:()=>l,Rb:()=>o,Tj:()=>s,bp:()=>h,wG:()=>c,xL:()=>u});var r=n(28577),i=n(6721),a=n(80606);let s=e=>(t,n,i,s)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise)throw new r.GT;if(l.issues.length){let t=new(s?.Err??e)(l.issues.map(e=>a.iR(e,o,r.$W())));throw a.gx(t,s?.callee),t}return l.value};i.Kd;let o=e=>async(t,n,i,s)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise&&(l=await l),l.issues.length){let t=new(s?.Err??e)(l.issues.map(e=>a.iR(e,o,r.$W())));throw a.gx(t,s?.callee),t}return l.value};i.Kd;let l=e=>(t,n,s)=>{let o=s?{...s,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise)throw new r.GT;return l.issues.length?{success:!1,error:new(e??i.a$)(l.issues.map(e=>a.iR(e,o,r.$W())))}:{success:!0,data:l.value}},u=l(i.Kd),c=e=>async(t,n,i)=>{let s=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},s);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>a.iR(e,s,r.$W())))}:{success:!0,data:o.value}},h=c(i.Kd)},4972:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},5993:e=>{e.exports=function(e,t){let n;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r=0;return function(...i){clearTimeout(n);let a=Date.now(),s=t-(a-r);s<=0?(r=a,e.apply(this,i)):n=setTimeout(()=>{r=Date.now(),e.apply(this,i)},s)}}},6721:(e,t,n)=>{"use strict";n.d(t,{JM:()=>l,Kd:()=>o,Wk:()=>u,a$:()=>s});var r=n(28577),i=n(80606);let a=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,i.k8,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},s=(0,r.xI)("$ZodError",a),o=(0,r.xI)("$ZodError",a,{Parent:Error});function l(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function u(e,t){let n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(let t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)r._errors.push(n(t));else{let e=r,i=0;for(;i<t.path.length;){let r=t.path[i];i===t.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(n(t))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r}},7557:(e,t,n)=>{"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{B:()=>r})},7600:(e,t,n)=>{"use strict";n.d(t,{z:()=>p,B:()=>f});var r=n(69005),i=n(33369);let a={damping:.7,stiffness:.05,mass:1.25},s=1e3/60,o=!1;function l(e,t){let n=(0,i.useCallback)(t=>(n.current=t,e(t)),t);return n}globalThis.document?.addEventListener("mousedown",()=>{o=!0}),globalThis.document?.addEventListener("mouseup",()=>{o=!1}),globalThis.document?.addEventListener("click",()=>{o=!1});let u=new Map;function c(...e){let t={...a},n=!1;for(let r of e){if("instant"===r){n=!0;continue}"object"==typeof r&&(n=!1,t.damping=r.damping??t.damping,t.stiffness=r.stiffness??t.stiffness,t.mass=r.mass??t.mass)}let r=JSON.stringify(t);return u.has(r)||u.set(r,Object.freeze(t)),n?"instant":u.get(r)}let h=(0,i.createContext)(null),d="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function p({instance:e,children:t,resize:n,initial:a,mass:u,damping:p,stiffness:f,targetScrollTop:m,contextRef:g,...y}){let b=(0,i.useRef)(null),v=((e={})=>{let[t,n]=(0,i.useState)(!1),[r,a]=(0,i.useState)(!1!==e.initial),[u,h]=(0,i.useState)(!1),d=(0,i.useRef)(null);d.current=e;let p=(0,i.useCallback)(()=>{if(!o)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(_.current)||_.current?.contains(t.commonAncestorContainer)},[]),f=(0,i.useCallback)(e=>{g.isAtBottom=e,a(e)},[]),m=(0,i.useCallback)(e=>{g.escapedFromLock=e,n(e)},[]),g=(0,i.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:r,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return _.current?.scrollTop??0},set scrollTop(scrollTop){_.current&&(_.current.scrollTop=scrollTop,g.ignoreScrollToTop=_.current.scrollTop)},get targetScrollTop(){if(!_.current||!x.current)return 0;return _.current.scrollHeight-1-_.current.clientHeight},get calculatedTargetScrollTop(){if(!_.current||!x.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(n?.targetScrollTop===t)return n.calculatedScrollTop;let r=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:_.current,contentElement:x.current}),t),0);return n={targetScrollTop:t,calculatedScrollTop:r},requestAnimationFrame(()=>{n=void 0}),r},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),y=(0,i.useCallback)((e={})=>{let t;"string"==typeof e&&(e={animation:e}),e.preserveScrollPosition||f(!0);let n=Date.now()+(Number(e.wait)||0),r=c(d.current,e.animation),{ignoreEscapes:i=!1}=e,a=g.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{t=Date.now()}):t=n+(e.duration??0);let o=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{if(!g.isAtBottom)return g.animation=void 0,!1;let{scrollTop:l}=g,u=performance.now(),h=(u-(g.lastTick??u))/s;if(g.animation||(g.animation={behavior:r,promise:e,ignoreEscapes:i}),g.animation.behavior===r&&(g.lastTick=u),p()||n>Date.now())return o();if(l<Math.min(a,g.calculatedTargetScrollTop)){if(g.animation?.behavior===r){if("instant"===r)return g.scrollTop=g.calculatedTargetScrollTop,o();g.velocity=(r.damping*g.velocity+r.stiffness*g.scrollDifference)/r.mass,g.accumulated+=g.velocity*h,g.scrollTop+=g.accumulated,g.scrollTop!==l&&(g.accumulated=0)}return o()}return t>Date.now()?(a=g.calculatedTargetScrollTop,o()):(g.animation=void 0,g.scrollTop<g.calculatedTargetScrollTop)?y({animation:c(d.current,d.current.resize),ignoreEscapes:i,duration:Math.max(0,t-Date.now())||void 0}):g.isAtBottom});return e.then(e=>(requestAnimationFrame(()=>{g.animation||(g.lastTick=void 0,g.velocity=0)}),e))};return(!0!==e.wait&&(g.animation=void 0),g.animation?.behavior===r)?g.animation.promise:o()},[f,p,g]),b=(0,i.useCallback)(()=>{m(!0),f(!1)},[m,f]),v=(0,i.useCallback)(({target:e})=>{if(e!==_.current)return;let{scrollTop:t,ignoreScrollToTop:n}=g,{lastScrollTop:r=t}=g;g.lastScrollTop=t,g.ignoreScrollToTop=void 0,n&&n>t&&(r=n),h(g.isNearBottom),setTimeout(()=>{if(g.resizeDifference||t===n)return;if(p()){m(!0),f(!1);return}let e=t>r,i=t<r;if(g.animation?.ignoreEscapes){g.scrollTop=r;return}i&&(m(!0),f(!1)),e&&m(!1),!g.escapedFromLock&&g.isNearBottom&&f(!0)},1)},[m,f,p,g]),k=(0,i.useCallback)(({target:e,deltaY:t})=>{let n=e;for(;!["scroll","auto"].includes(getComputedStyle(n).overflow);){if(!n.parentElement)return;n=n.parentElement}n===_.current&&t<0&&_.current.scrollHeight>_.current.clientHeight&&!g.animation?.ignoreEscapes&&(m(!0),f(!1))},[m,f,g]),_=l(e=>{_.current?.removeEventListener("scroll",v),_.current?.removeEventListener("wheel",k),e?.addEventListener("scroll",v,{passive:!0}),e?.addEventListener("wheel",k,{passive:!0})},[]),x=l(e=>{let t;g.resizeObserver?.disconnect(),e&&(g.resizeObserver=new ResizeObserver(([e])=>{let{height:n}=e.contentRect,r=n-(t??n);if(g.resizeDifference=r,g.scrollTop>g.targetScrollTop&&(g.scrollTop=g.targetScrollTop),h(g.isNearBottom),r>=0){let e=c(d.current,t?d.current.resize:d.current.initial);y({animation:e,wait:!0,preserveScrollPosition:!0,duration:"instant"===e?void 0:350})}else g.isNearBottom&&(m(!1),f(!0));t=n,requestAnimationFrame(()=>{setTimeout(()=>{g.resizeDifference===r&&(g.resizeDifference=0)},1)})}),g.resizeObserver?.observe(e))},[]);return{contentRef:x,scrollRef:_,scrollToBottom:y,stopScroll:b,isAtBottom:r||u,isNearBottom:u,escapedFromLock:t,state:g}})({mass:u,damping:p,stiffness:f,resize:n,initial:a,targetScrollTop:i.useCallback((e,t)=>{let n=C?.targetScrollTop??m;return n?.(e,t)??e},[m])}),{scrollRef:k,contentRef:_,scrollToBottom:x,stopScroll:w,isAtBottom:S,escapedFromLock:A,state:T}=e??v,C=(0,i.useMemo)(()=>({scrollToBottom:x,stopScroll:w,scrollRef:k,isAtBottom:S,escapedFromLock:A,contentRef:_,state:T,get targetScrollTop(){return b.current},set targetScrollTop(targetScrollTop){b.current=targetScrollTop}}),[x,S,_,k,w,A,T]);return(0,i.useImperativeHandle)(g,()=>C,[C]),d(()=>{k.current&&"visible"===getComputedStyle(k.current).overflow&&(k.current.style.overflow="auto")},[]),(0,r.jsx)(h.Provider,{value:C,children:(0,r.jsx)("div",{...y,children:"function"==typeof t?t(C):t})})}function f(){let e=(0,i.useContext)(h);if(!e)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}(p||(p={})).Content=function({children:e,...t}){let n=f();return(0,r.jsx)("div",{ref:n.scrollRef,style:{height:"100%",width:"100%"},children:(0,r.jsx)("div",{...t,ref:n.contentRef,children:"function"==typeof e?e(n):e})})}},9430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},9771:(e,t,n)=>{"use strict";function r(){}function i(){}n.d(t,{HB:()=>i,ok:()=>r})},9969:(e,t,n)=>{"use strict";n.d(t,{fd:()=>i,rs:()=>r}),Symbol("ZodOutput"),Symbol("ZodInput");class r{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&"object"==typeof n&&"id"in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}}let i=new r},10259:(e,t,n)=>{"use strict";n.d(t,{dc:()=>a,VG:()=>s});var r=n(21686);let i=[],a=!1;function s(e,t,n,s){let o;"function"==typeof t&&"function"!=typeof n?(s=n,n=t):o=t;let l=(0,r.C)(o),u=s?-1:1;(function e(r,o,c){let h=r&&"object"==typeof r?r:{};if("string"==typeof h.type){let e="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0;Object.defineProperty(d,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return d;function d(){var h;let d,p,f,m=i;if((!t||l(r,o,c[c.length-1]||void 0))&&(m=Array.isArray(h=n(r,c))?h:"number"==typeof h?[!0,h]:null==h?i:[h])[0]===a)return m;if("children"in r&&r.children&&r.children&&"skip"!==m[0])for(p=(s?r.children.length:-1)+u,f=c.concat(r);p>-1&&p<r.children.length;){if((d=e(r.children[p],p,f)())[0]===a)return d;p="number"==typeof d[1]?d[1]:p+u}return m}})(e,void 0,[])()}},14343:(e,t,n)=>{"use strict";n.d(t,{oz:()=>tq});var r={};n.r(r),n.d(r,{attentionMarkers:()=>eW,contentInitial:()=>eF,disable:()=>eJ,document:()=>eZ,flow:()=>eH,flowInitial:()=>eU,insideSpan:()=>eV,string:()=>eq,text:()=>eG});var i=n(9771),a=n(61453);let s=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l={};function u(e,t){return((t||l).jsx?o:s).test(e)}var c=n(53359),h=n(64913),d=n(57571);let p={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var f=n(76906),m=n(88271);let g=b("end"),y=b("start");function b(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function v(e){return e&&"object"==typeof e?"position"in e||"type"in e?_(e.position):"start"in e||"end"in e?_(e):"line"in e||"column"in e?k(e):"":""}function k(e){return x(e&&e.line)+":"+x(e&&e.column)}function _(e){return k(e&&e.start)+"-"+k(e&&e.end)}function x(e){return e&&"number"==typeof e?e:1}class w extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=s?s.line:void 0,this.name=v(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}w.prototype.file="",w.prototype.name="",w.prototype.reason="",w.prototype.message="",w.prototype.stack="",w.prototype.column=void 0,w.prototype.line=void 0,w.prototype.ancestors=void 0,w.prototype.cause=void 0,w.prototype.fatal=void 0,w.prototype.place=void 0,w.prototype.ruleId=void 0,w.prototype.source=void 0;let S={}.hasOwnProperty,A=new Map,T=/[A-Z]/g,C=new Set(["table","tbody","thead","tfoot","tr"]),P=new Set(["td","th"]),E="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function I(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=h.JW),e.ancestors.push(t);let i=R(e,t.tagName,!1),s=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&S.call(t.properties,r)){let s=function(e,t,n){let r=(0,d.I)(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?(0,a.A)(n):(0,f.A)(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return m(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new w("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=E+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)S.call(e,t)&&(n[function(e){let t=e.replace(T,$);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?p[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(s){let[r,a]=s;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof a&&P.has(t.tagName)?n=a:i[r]=a}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),o=z(e,t);return C.has(t.tagName)&&(o=o.filter(function(e){return"string"!=typeof e||!(0,c.m)(e)})),O(e,s,i,t),N(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return(0,i.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}L(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema;"svg"===t.name&&"html"===r.space&&(e.schema=h.JW),e.ancestors.push(t);let a=null===t.name?e.Fragment:R(e,t.name,!0),s=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type);let a=t.expression;(0,i.ok)("ObjectExpression"===a.type);let s=a.properties[0];(0,i.ok)("SpreadElement"===s.type),Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else L(e,t.position);else{let a,s=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type),a=e.evaluater.evaluateExpression(t.expression)}else L(e,t.position);else a=null===r.value||r.value;n[s]=a}return n}(e,t),o=z(e,t);return O(e,s,a,t),N(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);L(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return N(r,z(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function O(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function N(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function z(e,t){let n=[],r=-1,i=e.passKeys?new Map:A;for(;++r<t.children.length;){let a,s=t.children[r];if(e.passKeys){let e="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let o=I(e,s,a);void 0!==o&&n.push(o)}return n}function R(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),a=-1;for(;++a<n.length;){let t=u(n[a])?{type:"Identifier",name:n[a]}:{type:"Literal",value:n[a]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(a&&"Literal"===t.type),optional:!1}:t}(0,i.ok)(e,"always a result"),r=e}else r=u(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return S.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);L(e)}function L(e,t){let n=new w("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=E+"#cannot-handle-mdx-estrees-without-createevaluater",n}function $(e){return"-"+e.toLowerCase()}let j={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var M=n(69005);n(33369);var D=n(17582),B=n(76567);class Z{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&F(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),F(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),F(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);F(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);F(this.left,t.reverse())}}}function F(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function U(e){let t,n,r,i,a,s,o,l={},u=-1,c=new Z(e);for(;++u<c.length;){for(;u in l;)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(s=t[1]._tokenizer.events).length&&"lineEndingBlank"===s[r][1].type&&(r+=2),r<s.length&&"content"===s[r][1].type))for(;++r<s.length&&"content"!==s[r][1].type;)"chunkText"===s[r][1].type&&(s[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],a=e.get(t)[2],s=t-1,o=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],h={},d=-1,p=i,f=0,m=0,g=[0];for(;p;){for(;e.get(++s)[1]!==p;);o.push(s),!p._tokenizer&&(n=a.sliceStream(p),p.next||n.push(null),r&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++d<u.length;)"exit"===u[d][0]&&"enter"===u[d-1][0]&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(m=d+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),d=g.length;d--;){let t=u.slice(g[d],g[d+1]),n=o.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),d=-1;++d<c.length;)h[f+c[d][0]]=f+c[d][1],f+=c[d][1]-c[d][0]-1;return h}(c,u)),u=l[u],o=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(a=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,a))}}return(0,B.m)(e,0,1/0,c.slice(0)),!o}var H=n(22047),q=n(33203),G=n(44528);let V={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,q.N)(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,G.HP)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},W={tokenize:function(e){let t,n,r,i=this,a=[],s=0;return o;function o(t){if(s<a.length){let n=a[s];return i.containerState=n[1],e.attempt(n[0].continuation,l,u)(t)}return u(t)}function l(e){if(s++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,a=r;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){n=i.events[a][1].end;break}g(s);let o=r;for(;o<i.events.length;)i.events[o][1].end={...n},o++;return(0,B.m)(i.events,a+1,0,i.events.slice(r)),i.events.length=o,u(e)}return o(e)}function u(n){if(s===a.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return f(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(J,c,h)(n)}function c(e){return t&&y(),g(s),d(e)}function h(e){return i.parser.lazy[i.now().line]=s!==a.length,r=i.now().offset,f(e)}function d(t){return i.containerState={},e.attempt(J,p,f)(t)}function p(e){return s++,a.push([i.currentConstruct,i.containerState]),d(e)}function f(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return(0,G.HP)(n)?(e.consume(n),m(e.exit("chunkFlow")),s=0,i.interrupt=void 0,o):(e.consume(n),t)}(r)}function m(e,a){let o=i.sliceStream(e);if(a&&o.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(o),i.parser.lazy[e.start.line]){let e,n,a=t.events.length;for(;a--;)if(t.events[a][1].start.offset<r&&(!t.events[a][1].end||t.events[a][1].end.offset>r))return;let o=i.events.length,l=o;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(s),a=o;a<i.events.length;)i.events[a][1].end={...n},a++;(0,B.m)(i.events,l+1,0,i.events.slice(o)),i.events.length=a}}function g(t){let n=a.length;for(;n-- >t;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},J={tokenize:function(e,t,n){return(0,q.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var Q=n(56434);let K={resolve:function(e){return U(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,G.HP)(t)?e.check(X,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},X={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,q.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,G.HP)(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},Y={tokenize:function(e){let t=this,n=e.attempt(Q.B,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,(0,q.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(K,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},ee={resolveAll:ei()},et=er("string"),en=er("text");function er(e){return{resolveAll:ei("text"===e?ea:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,s);return a;function a(e){return l(e)?i(e):s(e)}function s(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function ei(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function ea(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],a=t.sliceStream(i),s=a.length,o=-1,l=0;for(;s--;){let e=a[s];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)l++,o--;if(o)break;o=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:i.start._bufferIndex+o,_index:i.start._index+s,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}let es={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){var s;return e.enter("thematicBreak"),r=s=a,function a(s){return s===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,G.On)(n)?(0,q.N)(e,a,"whitespace")(n):a(n))}(s)):i>=3&&(null===s||(0,G.HP)(s))?(e.exit("thematicBreak"),t(s)):n(s)}(s)}}},eo={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Q.B,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,q.N)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,G.On)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eu,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,q.N)(e,e.attempt(eo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,G.BM)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(es,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,G.BM)(i)&&++s<10?(e.consume(i),t):(!r.interrupt||s<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Q.B,r.interrupt?n:l,e.attempt(el,c,u))}function l(e){return r.containerState.initialBlankLine=!0,a++,c(e)}function u(t){return(0,G.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},el={partial:!0,tokenize:function(e,t,n){let r=this;return(0,q.N)(e,function(e){let i=r.events[r.events.length-1];return!(0,G.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eu={partial:!0,tokenize:function(e,t,n){let r=this;return(0,q.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},ec={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,G.On)(t)?(0,q.N)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(ec,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,G.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function eh(e,t,n,r,i,a,s,o,l){let u=l||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),h):null===t||32===t||41===t||(0,G.JQ)(t)?n(t):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),f(t))};function h(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(o),h(t)):null===t||60===t||(0,G.HP)(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(i){return!c&&(null===i||41===i||(0,G.Ee)(i))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,f):41===i?(e.consume(i),c--,f):null===i||32===i||40===i||(0,G.JQ)(i)?n(i):(e.consume(i),92===i?m:f)}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function ed(e,t,n,r,i,a){let s,o=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u};function u(h){return l>999||null===h||91===h||93===h&&!s||94===h&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(0,G.HP)(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(t){return null===t||91===t||93===t||(0,G.HP)(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!(0,G.On)(t)),92===t?h:c)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function ep(e,t,n,r,i,a){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,o):n(t)};function o(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===s?(e.exit(a),o(s)):null===t?n(t):(0,G.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,q.N)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===s||null===t||(0,G.HP)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===s||92===t?(e.consume(t),u):u(t)}}function ef(e,t){let n;return function r(i){return(0,G.HP)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,G.On)(i)?(0,q.N)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var em=n(7557);let eg={partial:!0,tokenize:function(e,t,n){return function(t){return(0,G.Ee)(t)?ef(e,r)(t):n(t)};function r(t){return ep(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,G.On)(t)?(0,q.N)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,G.HP)(e)?t(e):n(e)}}},ey={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,q.N)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):(0,G.HP)(n)?e.attempt(eb,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,G.HP)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},eb={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,G.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,q.N)(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):(0,G.HP)(e)?i(e):n(e)}}},ev={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var s;let o,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){o="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,s=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,G.On)(n)?(0,q.N)(e,a,"lineSuffix")(n):a(n))}(s)):n(t)};function a(r){return null===r||(0,G.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},ek=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],e_=["pre","script","style","textarea"],ex={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Q.B,t,n)}}},ew={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return(0,G.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},eS={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},eA={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),(0,G.On)(t)?(0,q.N)(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=o?(e.exit("codeFencedFenceSequence"),(0,G.On)(i)?(0,q.N)(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||(0,G.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},s=0,o=0;return function(t){var a=t;let u=i.events[i.events.length-1];return s=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),(0,G.On)(i)?(0,q.N)(e,l,"whitespace")(i):l(i))}(a)};function l(a){return null===a||(0,G.HP)(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(eS,c,f)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,G.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):(0,G.On)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,q.N)(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function u(t){return null===t||(0,G.HP)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,G.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(a,f,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return s>0&&(0,G.On)(t)?(0,q.N)(e,p,"linePrefix",s+1)(t):p(t)}function p(t){return null===t||(0,G.HP)(t)?e.check(eS,c,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,G.HP)(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},eT=document.createElement("i");function eC(e){let t="&"+e+";";eT.innerHTML=t;let n=eT.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let eP={name:"characterReference",tokenize:function(e,t,n){let r,i,a=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=G.lV,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=G.ok,u):(e.enter("characterReferenceValue"),r=7,i=G.BM,u(t))}function u(o){if(59===o&&s){let r=e.exit("characterReferenceValue");return i!==G.lV||eC(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&s++<r?(e.consume(o),u):n(o)}}},eE={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,G.ol)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},eI={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,q.N)(e,t,"linePrefix")}}};var eO=n(57343);let eN={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&(0,B.m)(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,s=e.length,o=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(i=s);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+o+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=(0,B.V)(a,e.slice(r+1,r+o+3)),a=(0,B.V)(a,[["enter",c,t]]),a=(0,B.V)(a,(0,eO.W)(t.parser.constructs.insideSpan.null,e.slice(r+o+4,i-3),t)),a=(0,B.V)(a,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),a=(0,B.V)(a,e.slice(i+1)),a=(0,B.V)(a,[["exit",l,t]]),(0,B.m)(e,r,e.length,a),e},tokenize:function(e,t,n){let r,i,a=this,s=a.events.length;for(;s--;)if(("labelImage"===a.events[s][1].type||"labelLink"===a.events[s][1].type)&&!a.events[s][1]._balanced){r=a.events[s][1];break}return function(t){return r?r._inactive?c(t):(i=a.parser.defined.includes((0,em.B)(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(ez,u,i?u:c)(t):91===t?e.attempt(eR,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(eL,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},ez={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,G.Ee)(t)?ef(e,i)(t):i(t)}function i(t){return 41===t?u(t):eh(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return(0,G.Ee)(t)?ef(e,o)(t):u(t)}function s(e){return n(e)}function o(t){return 34===t||39===t||40===t?ep(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return(0,G.Ee)(t)?ef(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},eR={tokenize:function(e,t,n){let r=this;return function(t){return ed.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,em.B)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},eL={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},e$={name:"labelStartImage",resolveAll:eN.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};var ej=n(89479);let eM={name:"attention",resolveAll:function(e,t){let n,r,i,a,s,o,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let h={...e[n][1].end},d={...e[c][1].start};eD(h,-o),eD(d,o),a={type:o>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:d},i={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:o>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[n][1].end={...a.start},e[c][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,B.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,B.V)(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=(0,B.V)(l,(0,eO.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=(0,B.V)(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=(0,B.V)(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,(0,B.m)(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=(0,ej.S)(i);return function(s){return n=s,e.enter("attentionSequence"),function s(o){if(o===n)return e.consume(o),s;let l=e.exit("attentionSequence"),u=(0,ej.S)(o),c=!u||2===u&&a||r.includes(o),h=!a||2===a&&u||r.includes(i);return l._open=!!(42===n?c:c&&(a||!h)),l._close=!!(42===n?h:h&&(u||!c)),t(o)}(s)}}};function eD(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let eB={name:"labelStartLink",resolveAll:eN.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},eZ={42:eo,43:eo,45:eo,48:eo,49:eo,50:eo,51:eo,52:eo,53:eo,54:eo,55:eo,56:eo,57:eo,62:ec},eF={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,ed.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function a(t){return(r=(0,em.B)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return(0,G.Ee)(t)?ef(e,o)(t):o(t)}function o(t){return eh(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(eg,u,u)(t)}function u(t){return(0,G.On)(t)?(0,q.N)(e,c,"whitespace")(t):c(t)}function c(a){return null===a||(0,G.HP)(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},eU={[-2]:ey,[-1]:ey,32:ey},eH={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},(0,B.m)(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var a;return e.enter("atxHeading"),a=i,e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||(0,G.Ee)(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,G.HP)(r)?(e.exit("atxHeading"),t(r)):(0,G.On)(r)?(0,q.N)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,G.Ee)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:es,45:[ev,es],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,a,s,o,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),i=!0,p):63===s?(e.consume(s),r=3,l.interrupt?t:N):(0,G.CW)(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)}function c(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,s=0,d):(0,G.CW)(i)?(e.consume(i),r=4,l.interrupt?t:N):n(i)}function h(r){return 45===r?(e.consume(r),l.interrupt?t:N):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(s++)?(e.consume(r),s===i.length)?l.interrupt?t:S:d:n(r)}function p(t){return(0,G.CW)(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||(0,G.Ee)(s)){let o=47===s,u=a.toLowerCase();return!o&&!i&&e_.includes(u)?(r=1,l.interrupt?t(s):S(s)):ek.includes(a.toLowerCase())?(r=6,o)?(e.consume(s),m):l.interrupt?t(s):S(s):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(s):i?function t(n){return(0,G.On)(n)?(e.consume(n),t):x(n)}(s):g(s))}return 45===s||(0,G.lV)(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),x):58===t||95===t||(0,G.CW)(t)?(e.consume(t),y):(0,G.On)(t)?(e.consume(t),g):x(t)}function y(t){return 45===t||46===t||58===t||95===t||(0,G.lV)(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),v):(0,G.On)(t)?(e.consume(t),b):g(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,k):(0,G.On)(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,G.Ee)(n)?b(n):(e.consume(n),t)}(t)}function k(t){return t===o?(e.consume(t),o=null,_):null===t||(0,G.HP)(t)?n(t):(e.consume(t),k)}function _(e){return 47===e||62===e||(0,G.On)(e)?g(e):n(e)}function x(t){return 62===t?(e.consume(t),w):n(t)}function w(t){return null===t||(0,G.HP)(t)?S(t):(0,G.On)(t)?(e.consume(t),w):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),E):62===t&&4===r?(e.consume(t),z):63===t&&3===r?(e.consume(t),N):93===t&&5===r?(e.consume(t),O):(0,G.HP)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(ex,R,A)(t)):null===t||(0,G.HP)(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),S)}function A(t){return e.check(ew,T,R)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||(0,G.HP)(t)?A(t):(e.enter("htmlFlowData"),S(t))}function P(t){return 45===t?(e.consume(t),N):S(t)}function E(t){return 47===t?(e.consume(t),a="",I):S(t)}function I(t){if(62===t){let n=a.toLowerCase();return e_.includes(n)?(e.consume(t),z):S(t)}return(0,G.CW)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),I):S(t)}function O(t){return 93===t?(e.consume(t),N):S(t)}function N(t){return 62===t?(e.consume(t),z):45===t&&2===r?(e.consume(t),N):S(t)}function z(t){return null===t||(0,G.HP)(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),z)}function R(n){return e.exit("htmlFlow"),t(n)}}},61:ev,95:es,96:eA,126:eA},eq={38:eP,92:eE},eG={[-5]:eI,[-4]:eI,[-3]:eI,33:e$,38:eP,42:eM,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,G.CW)(t)?(e.consume(t),a):64===t?n(t):o(t)}function a(t){return 43===t||45===t||46===t||(0,G.lV)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,s):(43===n||45===n||46===n||(0,G.lV)(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,G.JQ)(r)?n(r):(e.consume(r),s)}function o(t){return 64===t?(e.consume(t),l):(0,G.cx)(t)?(e.consume(t),o):n(t)}function l(i){return(0,G.lV)(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||(0,G.lV)(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a,s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),k):63===t?(e.consume(t),b):(0,G.CW)(t)?(e.consume(t),x):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):(0,G.CW)(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),h):(0,G.HP)(t)?(a=c,I(t)):(e.consume(t),c)}function h(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?E(e):45===e?h(e):c(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):(0,G.HP)(t)?(a=f,I(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?E(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?E(t):(0,G.HP)(t)?(a=y,I(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):(0,G.HP)(t)?(a=b,I(t)):(e.consume(t),b)}function v(e){return 62===e?E(e):b(e)}function k(t){return(0,G.CW)(t)?(e.consume(t),_):n(t)}function _(t){return 45===t||(0,G.lV)(t)?(e.consume(t),_):function t(n){return(0,G.HP)(n)?(a=t,I(n)):(0,G.On)(n)?(e.consume(n),t):E(n)}(t)}function x(t){return 45===t||(0,G.lV)(t)?(e.consume(t),x):47===t||62===t||(0,G.Ee)(t)?w(t):n(t)}function w(t){return 47===t?(e.consume(t),E):58===t||95===t||(0,G.CW)(t)?(e.consume(t),S):(0,G.HP)(t)?(a=w,I(t)):(0,G.On)(t)?(e.consume(t),w):E(t)}function S(t){return 45===t||46===t||58===t||95===t||(0,G.lV)(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),A):(0,G.HP)(n)?(a=t,I(n)):(0,G.On)(n)?(e.consume(n),t):w(n)}(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,T):(0,G.HP)(t)?(a=A,I(t)):(0,G.On)(t)?(e.consume(t),A):(e.consume(t),C)}function T(t){return t===r?(e.consume(t),r=void 0,P):null===t?n(t):(0,G.HP)(t)?(a=T,I(t)):(e.consume(t),T)}function C(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,G.Ee)(t)?w(t):(e.consume(t),C)}function P(e){return 47===e||62===e||(0,G.Ee)(e)?w(e):n(e)}function E(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return(0,G.On)(t)?(0,q.N)(e,N,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):N(t)}function N(t){return e.enter("htmlTextData"),a(t)}}}],91:eB,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,G.HP)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},eE],93:eN,95:eM,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),s(n))}(t)};function s(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),s):96===l?(i=e.enter("codeTextSequence"),r=0,function n(s){return 96===s?(e.consume(s),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(i.type="codeTextData",o(s))}(l)):(0,G.HP)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s):(e.enter("codeTextData"),o(l))}function o(t){return null===t||32===t||96===t||(0,G.HP)(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),o)}}}},eV={null:[eM,ee]},eW={null:[42,95]},eJ={null:[]},eQ=/[\0\t\n\r]/g;function eK(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let eX=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function eY(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return eK(n.slice(t?2:1),t?16:10)}return eC(n)||e}let e0={}.hasOwnProperty;function e1(e){return{line:e.line,column:e.column,offset:e.offset}}function e2(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+v({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+v({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+v({start:t.start,end:t.end})+") is still open")}function e4(e){let t=this;t.parser=function(n){var i,a;let s,o,l,u;return"string"!=typeof(i={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(a=i,i=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(b),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:s(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=eK(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=eC(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=e1(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,em.B)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(h),hardBreakTrailing:s(h),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(eX,eY),n.identifier=(0,em.B)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=e1(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,em.B)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(e0.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},s={stack:[r],tokenStack:[],config:t,enter:a,exit:o,buffer:i,resume:l,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,a,s,o=t-1,l=-1,u=!1;for(;++o<=n;){let t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||a||(a=o),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=o;for(i=void 0;s--;){let t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=s}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||o,0,["exit",r,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(o,0,["enter",i,t[2]]),o++,n++,a=void 0,s=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];e0.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},s),e[c][1])}if(s.tokenStack.length>0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||e2).call(s,void 0,e[0])}for(r.position={start:e1(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:e1(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:e1(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),o.call(this,t)}}function o(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||e2).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+v({start:e.start,end:e.end})+"): it’s not open");n.position.end=e1(e.end)}function l(){return(0,D.d)(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:e1(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=e1(e.end)}function h(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(a)(function(e){for(;!U(e););return e}((function(e){let t={constructs:(0,H.y)([r,...(e||{}).extensions||[]]),content:n(V),defined:[],document:n(W),flow:n(Y),lazy:{},string:n(et),text:n(en)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],s=[],o=[],l={attempt:f(function(e,t){m(e,t.from)}),check:f(p),consume:function(e){(0,G.HP)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),o.push(n),n},exit:function(e){let t=o.pop();return t.end=d(),u.events.push(["exit",t,u]),t},interrupt:f(p,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a,s=e[r];if("string"==typeof s)a=s;else switch(s){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":" ";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(s)}n=-2===s,i.push(a)}return i.join("")}(h(e),t)},sliceStream:h,write:function(e){return(s=(0,B.V)(s,e),function(){let e;for(;r._index<s.length;){let n=s[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==s[s.length-1])?[]:(m(t,0),u.events=(0,eO.W)(a,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function h(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,s)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}s>0&&n.push(e[a].slice(0,s))}return n}(s,e)}function d(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function p(e,t){t.restore()}function f(e,t){return function(n,i,a){var s;let c,h,p,f;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(s=n,function(e){let t=null!==e&&s[e],n=null!==e&&s.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,h=0,0===e.length)?a:y(e[h])}function y(e){return function(n){return(f=function(){let e=d(),t=u.previous,n=u.currentConstruct,i=u.events.length,a=Array.from(o);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,o=a,g()}}}(),p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,b,v)(n)}}function b(t){return e(p,f),i}function v(e){return(f.restore(),++h<c.length)?y(c[h]):a}}}function m(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&(0,B.m)(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(a).document().write((o=1,l="",u=!0,function(e,t,n){let r,i,a,c,h,d=[];for(e=l+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),a=0,l="",u&&(65279===e.charCodeAt(0)&&a++,u=void 0);a<e.length;){if(eQ.lastIndex=a,c=(r=eQ.exec(e))&&void 0!==r.index?r.index:e.length,h=e.charCodeAt(c),!r){l=e.slice(a);break}if(10===h&&a===c&&s)d.push(-3),s=void 0;else switch(s&&(d.push(-5),s=void 0),a<c&&(d.push(e.slice(a,c)),o+=c-a),h){case 0:d.push(65533),o++;break;case 9:for(i=4*Math.ceil(o/4),d.push(-2);o++<i;)d.push(-1);break;case 10:d.push(-4),o=1;break;default:s=!0,o=1}a=c+1}return n&&(s&&d.push(-5),l&&d.push(l),d.push(null)),d})(n,i,!0))))}}let e5="object"==typeof self?self:globalThis,e6=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,s]=t[i];switch(a){case 0:case -1:return n(s,i);case 1:{let e=n([],i);for(let t of s)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of s)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of s)e.add(r(t));return e}case 7:{let{name:e,message:t}=s;return n(new e5[e](t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{let{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(new e5[a](s),i)};return r})(new Map,e)(0),{toString:e3}={},{keys:e9}=Object,e8=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=e3.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},e7=([e,t])=>0===e&&("function"===t||"symbol"===t),te=(e,{json:t,lossy:n}={})=>{let r=[];return((e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[s,o]=e8(r);switch(s){case 0:{let t=r;switch(o){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+o);t=null;break;case"undefined":return i([-1],r)}return i([s,t],r)}case 1:{if(o){let e=r;return"DataView"===o?e=new Uint8Array(r.buffer):"ArrayBuffer"===o&&(e=new Uint8Array(r)),i([o,[...e]],r)}let e=[],t=i([s,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(o)switch(o){case"BigInt":return i([o,r.toString()],r);case"Boolean":case"Number":case"String":return i([o,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());let n=[],l=i([s,n],r);for(let t of e9(r))(e||!e7(e8(r[t])))&&n.push([a(t),a(r[t])]);return l}case 3:return i([s,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([s,{source:e,flags:t}],r)}case 5:{let t=[],n=i([s,t],r);for(let[n,i]of r)(e||!(e7(e8(n))||e7(e8(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([s,t],r);for(let n of r)(e||!e7(e8(n)))&&t.push(a(n));return n}}let{message:l}=r;return i([s,{name:o,message:l}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},tt="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?e6(te(e,t)):structuredClone(e):(e,t)=>e6(te(e,t));function tn(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),s="";if(37===a&&(0,G.lV)(e.charCodeAt(n+1))&&(0,G.lV)(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(s=String.fromCharCode(a,t),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tr(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ti(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var ta=n(47209);function ts(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function to(e){let t=e.spread;return null==t?e.children.length>1:t}function tl(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let tu={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=tn(i.toLowerCase()),s=e.footnoteOrder.indexOf(i),o=e.footnoteCounts.get(i);void 0===o?(o=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=s+1,o+=1,e.footnoteCounts.set(i,o);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ts(e,t);let i={src:tn(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:tn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ts(e,t);let i={href:tn(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:tn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=to(n[r])}return t}(n):to(t),a={},s=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){let e=r[o];(i||0!==o||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=y(t.children[1]),s=g(t.children[t.children.length-1]);a&&s&&(r.position={start:a,end:s}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,s=a?a.length:t.children.length,o=-1,l=[];for(;++o<s;){let n=t.children[o],r={},s=a?a[o]:void 0;s&&(r.align=s);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(tl(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(tl(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:tc,yaml:tc,definition:tc,footnoteDefinition:tc};function tc(){}let th={}.hasOwnProperty,td={};function tp(e,t){e.position&&(t.position=function(e){let t=y(e),n=g(e);if(t&&n)return{start:t,end:n}}(e))}function tf(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tt(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tm(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function tg(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ty(e,t){let n=function(e,t){let n=t||td,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=tg(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=tg(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:tf,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...tu,...n.handlers},one:function(e,t){let n=e.type,r=a.handlers[n];if(th.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tt(n);return r.children=a.all(e),r}return tt(e)}return(a.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(th.call(n,"hProperties")||th.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(a,e,t)},options:n,patch:tp,wrap:tm};return(0,ta.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),a=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tr,r=e.options.footnoteBackLabel||ti,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=e.all(i),s=String(i.identifier).toUpperCase(),u=tn(s.toLowerCase()),c=0,h=[],d=e.footnoteCounts.get(s);for(;void 0!==d&&++c<=d;){h.length>0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...h)}else a.push(...h);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(a,!0)};e.patch(i,f),o.push(f)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...tt(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&((0,i.ok)("children"in s),s.children.push({type:"text",value:"\n"},a)),s}function tb(e,t){return e&&"run"in e?async function(n,r){let i=ty(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ty(n,{file:r,...e||t})}}function tv(e){if(e)throw e}var tk=n(98735);function t_(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let tx={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');tw(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(tw(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;tw(e);let n=e.length,r=-1,i=0,a=-1,s=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?a<0?a=n:1!==s&&(s=1):a>-1&&(s=-1)}return a<0||r<0||0===s||1===s&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)tw(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){tw(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",a=0,s=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(s===l-1||1===o);else if(s!==l-1&&2===o){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),s=l,o=0;continue}}else if(i.length>0){i="",a=0,s=l,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),a=l-s-1;s=l,o=0}else 46===n&&o>-1?o++:o=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function tw(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let tS={cwd:function(){return"/"}};function tA(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let tT=["history","path","basename","stem","extname","dirname"];class tC{constructor(e){let t,n;t=e?tA(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":tS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<tT.length;){let e=tT[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)tT.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?tx.basename(this.path):void 0}set basename(e){tE(e,"basename"),tP(e,"basename"),this.path=tx.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?tx.dirname(this.path):void 0}set dirname(e){tI(this.basename,"dirname"),this.path=tx.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?tx.extname(this.path):void 0}set extname(e){if(tP(e,"extname"),tI(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=tx.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){tA(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!tA(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),tE(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?tx.basename(this.path,this.extname):void 0}set stem(e){tE(e,"stem"),tP(e,"stem"),this.path=tx.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new w(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function tP(e,t){if(e&&e.includes(tx.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+tx.sep+"`")}function tE(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function tI(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let tO=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},tN={}.hasOwnProperty;class tz extends tO{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(a,...s){let o=e[++n],l=-1;if(a)return void r(a);for(;++l<t.length;)(null===s[l]||void 0===s[l])&&(s[l]=t[l]);t=s,o?(function(e,t){let n;return function(...t){let a,s=e.length>t.length;s&&t.push(r);try{a=e.apply(this,t)}catch(e){if(s&&n)throw e;return r(e)}s||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(o,i)(...s):r(null,...s)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new tz,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(tk(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(tj("data",this.frozen),this.namespace[e]=t,this):tN.call(this.namespace,e)&&this.namespace[e]||void 0:e?(tj("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=tB(e),n=this.parser||this.Parser;return tL("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),tL("process",this.parser||this.Parser),t$("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){let s=tB(e),o=n.parse(s);function l(e,n){e||!n?a(e):r?r(n):((0,i.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,s,function(e,t,r){var i,a;if(e||!t||!r)return l(e);let s=n.stringify(t,r);"string"==typeof(i=s)||(a=i)&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?r.value=s:r.result=s,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),tL("processSync",this.parser||this.Parser),t$("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,tv(e),t=r}),tD("processSync","process",n),(0,i.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){tM(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,s){(0,i.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let o=tB(t);r.run(e,o,function(t,r,o){let l=r||e;t?s(t):a?a(l):((0,i.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,l,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){tv(e),n=t,r=!0}),tD("runSync","run",r),(0,i.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=tB(t),r=this.compiler||this.Compiler;return t$("stringify",r),tM(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(tj("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else if("object"==typeof e)Array.isArray(e)?a(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=tk(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)s(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;s(e,t)}else i(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,s=n[i][1];t_(s)&&t_(r)&&(r=tk(!0,s,r)),n[i]=[e,r,...a]}}}}let tR=new tz().freeze();function tL(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function t$(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function tj(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function tM(e){if(!t_(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function tD(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function tB(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new tC(e)}let tZ=[],tF={allowDangerousHtml:!0},tU=/^(https?|ircs?|mailto|xmpp)$/i,tH=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function tq(e){let t=function(e){let t=e.rehypePlugins||tZ,n=e.remarkPlugins||tZ,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tF}:tF;return tR().use(e4).use(n).use(tb,r).use(t)}(e),n=function(e){let t=e.children||"",n=new tC;return"string"==typeof t?n.value=t:(0,i.HB)("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,a=t.components,s=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||tG;for(let e of tH)Object.hasOwn(t,e.from)&&(0,i.HB)("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&s&&(0,i.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,ta.YR)(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in j)if(Object.hasOwn(j,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=j[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!s&&s.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,i)),a&&i&&"number"==typeof t)return l&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,a;let s;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=o,r=t.jsxDEV,s=function(e,t,i,a){let s=Array.isArray(i.children),o=y(e);return r(t,i,a,s,{columnNumber:o?o.column-1:void 0,fileName:n,lineNumber:o?o.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,s=function(e,t,n,r){let s=Array.isArray(n.children)?a:i;return r?s(t,n,r):s(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?h.JW:h.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=I(l,e,void 0);return u&&"string"!=typeof u?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}(e,{Fragment:M.Fragment,components:a,ignoreInvalidStyle:!0,jsx:M.jsx,jsxs:M.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function tG(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||tU.test(e.slice(0,t))?e:""}},17135:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),a="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;a?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(68088))},17582:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});let r={};function i(e,t){let n=t||r;return a(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function a(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return s(e.children,t,n)}return Array.isArray(e)?s(e,t,n):""}function s(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=a(e[i],t,n);return r.join("")}},17884:(e,t,n)=>{"use strict";function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(t,{xI:()=>ep});var i=r(),a={exec:()=>null};function s(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(o.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var o={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,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:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,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:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},l=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,u=/(?:[*+-]|\d{1,9}[.)])/,c=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,h=s(c).replace(/bull/g,u).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(),d=s(c).replace(/bull/g,u).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(),p=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,f=/(?!\s*\])(?:\\.|[^\[\]\\])+/,m=s(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",f).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),g=s(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,u).getRegex(),y="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",b=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,v=s("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",b).replace("tag",y).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),k=s(p).replace("hr",l).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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),_={blockquote:s(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",k).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:m,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:l,html:v,lheading:h,list:g,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:k,table:a,text:/^[^\n]+/},x=s("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",l).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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),w={..._,lheading:d,table:x,paragraph:s(p).replace("hr",l).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",x).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex()},S={..._,html:s(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",b).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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:a,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:s(p).replace("hr",l).replace("heading",` *#{1,6} *[^
|
|
2
|
-
]`).replace("lheading",h).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},A=/^( {2,}|\\)\n(?!\s*$)/,T=/[\p{P}\p{S}]/u,C=/[\s\p{P}\p{S}]/u,P=/[^\s\p{P}\p{S}]/u,E=s(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,C).getRegex(),I=/(?!~)[\p{P}\p{S}]/u,O=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,N=s(O,"u").replace(/punct/g,T).getRegex(),z=s(O,"u").replace(/punct/g,I).getRegex(),R="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",L=s(R,"gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,T).getRegex(),$=s(R,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,I).getRegex(),j=s("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,T).getRegex(),M=s(/\\(punct)/,"gu").replace(/punct/g,T).getRegex(),D=s(/^<(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(),B=s(b).replace("(?:--\x3e|$)","--\x3e").getRegex(),Z=s("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",B).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),F=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,U=s(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",F).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),H=s(/^!?\[(label)\]\[(ref)\]/).replace("label",F).replace("ref",f).getRegex(),q=s(/^!?\[(ref)\](?:\[\])?/).replace("ref",f).getRegex(),G=s("reflink|nolink(?!\\()","g").replace("reflink",H).replace("nolink",q).getRegex(),V={_backpedal:a,anyPunctuation:M,autolink:D,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:A,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:a,emStrongLDelim:N,emStrongRDelimAst:L,emStrongRDelimUnd:j,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:U,nolink:q,punctuation:E,reflink:H,reflinkSearch:G,tag:Z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:a},W={...V,link:s(/^!?\[(label)\]\((.*?)\)/).replace("label",F).getRegex(),reflink:s(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",F).getRegex()},J={...V,emStrongRDelimAst:$,emStrongLDelim:z,url:s(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Q={...J,br:s(A).replace("{2,}","*").getRegex(),text:s(J.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},K={normal:_,gfm:w,pedantic:S},X={normal:V,gfm:J,breaks:Q,pedantic:W},Y={"&":"&","<":"<",">":">",'"':""","'":"'"},ee=e=>Y[e];function et(e,t){if(t){if(o.escapeTest.test(e))return e.replace(o.escapeReplace,ee)}else if(o.escapeTestNoEncode.test(e))return e.replace(o.escapeReplaceNoEncode,ee);return e}function en(e){try{e=encodeURI(e).replace(o.percentDecode,"%")}catch{return null}return e}function er(e,t){let n=e.replace(o.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(o.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(o.slashPipe,"|");return n}function ei(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n)if(a!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function ea(e,t,n,r,i){let a=t.href,s=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}var es=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ei(e,`
|
|
3
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(`
|
|
4
|
-
`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
5
|
-
`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ei(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ei(t[0],`
|
|
6
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ei(t[0],`
|
|
7
|
-
`).split(`
|
|
8
|
-
`),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))a.push(e[s]),t=!0;else if(t)break;else a.push(e[s]);e=e.slice(s);let o=a.join(`
|
|
9
|
-
`),l=o.replace(this.rules.other.blockquoteSetextReplace,`
|
|
10
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
11
|
-
${o}`:o,r=r?`${r}
|
|
12
|
-
${l}`:l;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=u,0===e.length)break;let c=i.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let t=c.raw+`
|
|
13
|
-
`+e.join(`
|
|
14
|
-
`),a=this.blockquote(t);i[i.length-1]=a,n=n.substring(0,n.length-c.raw.length)+a.raw,r=r.substring(0,r.length-c.text.length)+a.text;break}if(c?.type==="list"){let t=c.raw+`
|
|
15
|
-
`+e.join(`
|
|
16
|
-
`),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-c.raw.length)+a.raw,r=r.substring(0,r.length-c.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split(`
|
|
17
|
-
`);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n=!1,r="",o="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split(`
|
|
18
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),u=e.split(`
|
|
19
|
-
`,1)[0],c=!l.trim(),h=0;if(this.options.pedantic?(h=2,o=l.trimStart()):c?h=t[1].length+1:(h=(h=t[2].search(this.rules.other.nonSpaceChar))>4?1:h,o=l.slice(h),h+=t[1].length),c&&this.rules.other.blankLine.test(u)&&(r+=u+`
|
|
20
|
-
`,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),a=this.rules.other.headingBeginRegex(h),s=this.rules.other.htmlBeginRegex(h);for(;e;){let d=e.split(`
|
|
21
|
-
`,1)[0],p;if(u=d,p=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting," "):u.replace(this.rules.other.tabCharGlobal," "),i.test(u)||a.test(u)||s.test(u)||t.test(u)||n.test(u))break;if(p.search(this.rules.other.nonSpaceChar)>=h||!u.trim())o+=`
|
|
22
|
-
`+p.slice(h);else{if(c||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;o+=`
|
|
23
|
-
`+u}c||u.trim()||(c=!0),r+=d+`
|
|
24
|
-
`,e=e.substring(d.length+1),l=p.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0));let d=null,p;this.options.gfm&&(d=this.rules.other.listIsTask.exec(o))&&(p="[ ] "!==d[0],o=o.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:r,task:!!d,checked:p,loose:!1,text:o,tokens:[]}),i.raw+=r}let o=i.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=er(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
25
|
-
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(er(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
26
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ei(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ea(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ea(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,s=n,o=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){s+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){o+=a;continue}if((s-=a)>0)continue;a=Math.min(a,a+s+o);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let u=l.slice(2,-2);return{type:"strong",raw:l,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},eo=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new es,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:o,block:K.normal,inline:X.normal};this.options.pedantic?(t.block=K.pedantic,t.inline=X.pedantic):this.options.gfm&&(t.block=K.gfm,this.options.breaks?t.inline=X.breaks:t.inline=X.gfm),this.tokenizer.rules=t}static get rules(){return{block:K,inline:X}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(o.carriageReturn,`
|
|
27
|
-
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(o.tabCharGlobal," ").replace(o.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=`
|
|
28
|
-
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=`
|
|
29
|
-
`+r.raw,n.text+=`
|
|
30
|
-
`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=`
|
|
31
|
-
`+r.raw,n.text+=`
|
|
32
|
-
`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type==="paragraph"?(a.raw+=`
|
|
33
|
-
`+r.raw,a.text+=`
|
|
34
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=`
|
|
35
|
-
`+r.raw,n.text+=`
|
|
36
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,a="";for(;e;){let r;if(i||(a=""),i=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if((r=this.tokenizer.escape(e))||(r=this.tokenizer.tag(e))||(r=this.tokenizer.link(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,n,a))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(a=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},el=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(o.notSpaceStart)?.[0],i=e.replace(o.endingNewline,"")+`
|
|
37
|
-
`;return r?'<pre><code class="language-'+et(r)+'">'+(n?i:et(i,!0))+`</code></pre>
|
|
38
|
-
`:"<pre><code>"+(n?i:et(i,!0))+`</code></pre>
|
|
39
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
40
|
-
${this.parser.parse(e)}</blockquote>
|
|
41
|
-
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
42
|
-
`}hr(e){return`<hr>
|
|
43
|
-
`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`>
|
|
44
|
-
`+r+"</"+i+`>
|
|
45
|
-
`}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+et(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
46
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
47
|
-
`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
48
|
-
<thead>
|
|
49
|
-
`+t+`</thead>
|
|
50
|
-
`+r+`</table>
|
|
51
|
-
`}tablerow({text:e}){return`<tr>
|
|
52
|
-
${e}</tr>
|
|
53
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
54
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${et(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=en(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+et(t)+'"'),a+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=en(e);if(null===i)return et(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${et(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:et(e.text)}},eu=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ec=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new el,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new eu}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let a=i,s=this.renderer.text(a);for(;r+1<e.length&&"text"===e[r+1].type;)a=e[++r],s+=`
|
|
55
|
-
`+this.renderer.text(a);t?n+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):n+=s;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},eh=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?eo.lex:eo.lexInline}provideParser(){return this.block?ec.parse:ec.parseInline}},ed=new class{defaults=r();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ec;Renderer=el;TextRenderer=eu;Lexer=eo;Tokenizer=es;Hooks=eh;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new el(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new es(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eh;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];eh.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then(e=>i.call(t,e));let n=r.call(t,e);return i.call(t,n)}:t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return eo.lex(e,t??this.defaults)}parser(e,t){return ec.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let s=i.hooks?i.hooks.provideLexer():e?eo.lex:eo.lexInline,o=i.hooks?i.hooks.provideParser():e?ec.parse:ec.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=s(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=o(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
56
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+et(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function ep(e,t){return ed.parse(e,t)}ep.options=ep.setOptions=function(e){return ed.setOptions(e),ep.defaults=ed.defaults,i=ep.defaults,ep},ep.getDefaults=r,ep.defaults=i,ep.use=function(...e){return ed.use(...e),ep.defaults=ed.defaults,i=ep.defaults,ep},ep.walkTokens=function(e,t){return ed.walkTokens(e,t)},ep.parseInline=ed.parseInline,ep.Parser=ec,ep.parser=ec.parse,ep.Renderer=el,ep.TextRenderer=eu,ep.Lexer=eo,ep.lexer=eo.lex,ep.Tokenizer=es,ep.Hooks=eh,ep.parse=ep,ep.options,ep.setOptions,ep.use,ep.walkTokens,ep.parseInline,ec.parse,eo.lex},20610:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},21043:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(a,l)).replace(r,o))}},21686:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});let r=function(e){var t,n;if(null==e)return a;if("function"==typeof e)return i(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,i(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,i(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function a(){return!0}},22047:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(76567);let i={}.hasOwnProperty;function a(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let a,s=(i.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(a in o){i.call(s,a)||(s[a]=[]);let e=o[a];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.m)(e,0,0,i)}(s[a],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},26020:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("corner-down-right",[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]])},28577:(e,t,n)=>{"use strict";function r(e,t,n){function r(n,r){var i;for(let a in Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r),s.prototype)a in n||Object.defineProperty(n,a,{value:s.prototype[a].bind(n)});n._zod.constr=s,n._zod.def=r}let i=n?.Parent??Object;class a extends i{}function s(e){var t;let i=n?.Parent?new a:this;for(let n of(r(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))n();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:t=>!!n?.Parent&&t instanceof n.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}n.d(t,{$W:()=>s,GT:()=>i,cr:()=>a,xI:()=>r}),Object.freeze({status:"aborted"}),Symbol("zod_brand");class i extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}let a={};function s(e){return e&&Object.assign(a,e),a}},28705:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(86385),i=n(52962);let a=Object.keys(i);class s extends r.R{constructor(e,t,n,r){let s=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++s<a.length;){let e=a[s];!function(e,t,n){n&&(e[t]=n)}(this,a[s],(n&i[e])===i[e])}}}s.prototype.defined=!0},33203:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(44528);function i(e,t,n,i){let a=i?i-1:1/0,s=0;return function(i){return(0,r.On)(i)?(e.enter(n),function i(o){return(0,r.On)(o)&&s++<a?(e.consume(o),i):(e.exit(n),t(o))}(i)):t(i)}}},33368:(e,t,n)=>{"use strict";n.d(t,{A:()=>eN});var r=n(58695),i=n(9771),a=n(44528),s=n(89444);let o="phrasing",l=["autolink","link","image","label"];function u(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function c(e){this.config.enter.autolinkProtocol.call(this,e)}function h(e){this.config.exit.autolinkProtocol.call(this,e)}function d(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,i.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function p(e){this.config.exit.autolinkEmail.call(this,e)}function f(e){this.exit(e)}function m(e){(0,s.T)(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,g],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,y]],{ignore:["link","linkReference"]})}function g(e,t,n,i,a){let s="";if(!b(a)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),a=(0,r.D)(e,"("),s=(0,r.D)(e,")");for(;-1!==i&&a>s;)e+=n.slice(0,i+1),i=(n=n.slice(i+1)).indexOf(")"),s++;return[e,n]}(n+i);if(!o[0])return!1;let l={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function y(e,t,n,r){return!(!b(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function b(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,a.Ny)(n)||(0,a.es)(n))&&(!t||47!==n)}var v=n(7557);function k(){this.buffer()}function _(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function x(){this.buffer()}function w(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function S(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.identifier=(0,v.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function A(e){this.exit(e)}function T(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.identifier=(0,v.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function C(e){this.exit(e)}function P(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]")}function E(e,t,n){return 0===t?e:I(e,t,n)}function I(e,t,n){return(n?"":" ")+e}P.peek=function(){return"["};let O=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function N(e){this.enter({type:"delete",children:[]},e)}function z(e){this.exit(e)}function R(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function L(e){return e.length}function $(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}R.peek=function(){return"~"};var j=n(89479);n(47209),n(10259);n(17582);function M(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e,t=n.unsafe[a],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}M.peek=function(){return"`"};(0,n(21686).C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let D={inlineCode:M,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),a=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let s=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?a:a+" ".repeat(s-a.length))+e});return l(),u}};function B(e){let t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Z(e){this.exit(e),this.data.inTable=void 0}function F(e){this.enter({type:"tableRow",children:[]},e)}function U(e){this.exit(e)}function H(e){this.enter({type:"tableCell",children:[]},e)}function q(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,G));let n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function G(e,t){return"|"===t?t:e}function V(e){let t=this.stack[this.stack.length-2];(0,i.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function W(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function J(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let l=D.listItem(e,t,n,{...r,...o.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),l}var Q=n(22047);let K={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},X={tokenize:function(e,t,n){let r,i,s;return o;function o(t){return 46===t||95===t?e.check(ee,u,l)(t):null===t||(0,a.Ee)(t)||(0,a.Ny)(t)||45!==t&&(0,a.es)(t)?u(t):(s=!0,e.consume(t),o)}function l(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function u(e){return i||r||!s?n(e):t(e)}},partial:!0},Y={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?s(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(ee,t,s)(o):null===o||(0,a.Ee)(o)||(0,a.Ny)(o)?t(o):(e.consume(o),i)}function s(t){return 41===t&&r++,e.consume(t),i}},partial:!0},ee={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),s):93===o?(e.consume(o),i):60===o||null===o||(0,a.Ee)(o)||(0,a.Ny)(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||(0,a.Ee)(e)||(0,a.Ny)(e)?t(e):r(e)}function s(t){return(0,a.CW)(t)?function t(i){return 59===i?(e.consume(i),r):(0,a.CW)(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},et={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,a.lV)(e)?n(e):t(e)}},partial:!0},en={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!eo.call(r,r.previous)||eh(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(K,e.attempt(X,e.attempt(Y,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:eo},er={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",s=!1;return function(t){return(72===t||104===t)&&el.call(r,r.previous)&&!eh(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if((0,a.CW)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),s)?u:(s=!0,l):n(t)}function u(t){return null===t||(0,a.JQ)(t)||(0,a.Ee)(t)||(0,a.Ny)(t)||(0,a.es)(t)?n(t):e.attempt(X,e.attempt(Y,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:el},ei={name:"emailAutolink",tokenize:function(e,t,n){let r,i,s=this;return function(t){return!ec(t)||!eu.call(s,s.previous)||eh(s.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return ec(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(et,u,l)(t):45===t||95===t||(0,a.lV)(t)?(i=!0,e.consume(t),o):u(t)}function l(t){return e.consume(t),r=!0,o}function u(o){return i&&r&&(0,a.CW)(s.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:eu},ea={},es=48;for(;es<123;)ea[es]=ei,58==++es?es=65:91===es&&(es=97);function eo(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,a.Ee)(e)}function el(e){return!(0,a.CW)(e)}function eu(e){return!(47===e||ec(e))}function ec(e){return 43===e||45===e||46===e||95===e||(0,a.lV)(e)}function eh(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}ea[43]=ei,ea[45]=ei,ea[46]=ei,ea[95]=ei,ea[72]=[ei,er],ea[104]=[ei,er],ea[87]=[ei,en],ea[119]=[ei,en];var ed=n(56434),ep=n(33203);let ef={tokenize:function(e,t,n){let r=this;return(0,ep.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function em(e,t,n){let r,i=this,a=i.events.length,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let o=(0,v.B)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===o.codePointAt(0)&&s.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function eg(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function ey(e,t,n){let r,i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(l){if(o>999||93===l&&!r||null===l||91===l||(0,a.Ee)(l))return n(l);if(93===l){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return s.includes((0,v.B)(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return(0,a.Ee)(l)||(r=!0),o++,e.consume(l),92===l?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,u):u(t)}}function eb(e,t,n){let r,i,s=this,o=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(l>999||93===t&&!i||null===t||91===t||(0,a.Ee)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,v.B)(s.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return(0,a.Ee)(t)||(i=!0),l++,e.consume(t),92===t?h:c}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),(0,ep.N)(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function ev(e,t,n){return e.check(ed.B,t,e.attempt(ef,t,n))}function ek(e){e.exit("gfmFootnoteDefinition")}var e_=n(76567),ex=n(57343);class ew{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function eS(e,t,n){let r,i=this,s=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?v:l;return a===v&&i.parser.lazy[i.now().line]?n(e):a(e)};function l(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),u(n)}function u(t){return null===t?n(t):(0,a.HP)(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):(0,a.On)(t)?(0,ep.N)(e,u,"whitespace")(t):(o+=1,r&&(r=!1,s+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),c(t))}function c(t){return null===t||124===t||(0,a.Ee)(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?h:c)}function h(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,a.On)(t))?(0,ep.N)(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):n(t)}function f(t){return(0,a.On)(t)?(0,ep.N)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(o+=1,g(t)):null===t||(0,a.HP)(t)?b(t):n(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(n))}(t)):n(t)}function y(t){return(0,a.On)(t)?(0,ep.N)(e,b,"whitespace")(t):b(t)}function b(i){if(124===i)return p(i);if(null===i||(0,a.HP)(i))return r&&s===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function v(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||(0,a.HP)(n)?(e.exit("tableRow"),t(n)):(0,a.On)(n)?(0,ep.N)(e,k,"whitespace")(n):(e.enter("data"),_(n))}function _(t){return null===t||124===t||(0,a.Ee)(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?x:_)}function x(t){return 92===t||124===t?(e.consume(t),_):_(t)}}function eA(e,t){let n,r,i,a=-1,s=!0,o=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,h=0,d=new ew;for(;++a<e.length;){let p=e[a],f=p[1];"enter"===p[0]?"tableHead"===f.type?(c=!1,0!==h&&(eC(d,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(a,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(s=!0,i=void 0,l=[0,0,0,0],u=[0,a+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(a,0,[["enter",r,t]])),o="tableDelimiterRow"===f.type?2:r?3:1):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(s=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],i=eT(d,t,l,o,void 0,i),l=[0,0,0,0]),u[2]=a)):"tableCellDivider"===f.type&&(s?s=!1:(0!==l[1]&&(u[0]=u[1],i=eT(d,t,l,o,void 0,i)),u=[(l=u)[1],a,0,0])):"tableHead"===f.type?(c=!0,h=a):"tableRow"===f.type||"tableDelimiterRow"===f.type?(h=a,0!==l[1]?(u[0]=u[1],i=eT(d,t,l,o,a,i)):0!==u[1]&&(i=eT(d,t,u,o,a,i)),o=0):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(u[3]=a)}for(0!==h&&eC(d,t,h,n,r),d.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,a))}return e}function eT(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},eP(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let s=eP(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=eP(t.events,n[2]),a=eP(t.events,n[3]),s={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(a.end=Object.assign({},eP(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function eC(e,t,n,r,i){let a=[],s=eP(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function eP(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let eE={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,a.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return(0,a.HP)(r)?t(r):(0,a.On)(r)?e.check({tokenize:eI},t,n)(r):n(r)}}};function eI(e,t,n){return(0,ep.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eO={};function eN(e){let t,n=e||eO,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push((0,Q.y)([{text:ea},{document:{91:{name:"gfmFootnoteDefinition",tokenize:eb,continuation:{tokenize:ev},exit:ek}},text:{91:{name:"gfmFootnoteCall",tokenize:ey},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:em,resolveTo:eg}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,s=0;return function(o){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function a(o){let l=(0,j.S)(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);let u=e.exit("strikethroughSequenceTemporary"),c=(0,j.S)(o);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],o=t.parser.constructs.insideSpan.null;o&&(0,e_.m)(s,s.length,0,(0,ex.W)(o,e.slice(r+1,n),t)),(0,e_.m)(s,s.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,e_.m)(e,r-1,n-r+3,s),n=r+s.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:eS,resolveAll:eA}}},{text:{91:eE}}])),a.push([{transforms:[m],enter:{literalAutolink:u,literalAutolinkEmail:c,literalAutolinkHttp:c,literalAutolinkWww:c},exit:{literalAutolink:f,literalAutolinkEmail:p,literalAutolinkHttp:h,literalAutolinkWww:d}},{enter:{gfmFootnoteCallString:k,gfmFootnoteCall:_,gfmFootnoteDefinitionLabelString:x,gfmFootnoteDefinition:w},exit:{gfmFootnoteCallString:S,gfmFootnoteCall:A,gfmFootnoteDefinitionLabelString:T,gfmFootnoteDefinition:C}},{canContainEols:["delete"],enter:{strikethrough:N},exit:{strikethrough:z}},{enter:{table:B,tableData:H,tableHeader:H,tableRow:F},exit:{codeText:q,table:Z,tableData:U,tableHeader:U,tableRow:U}},{exit:{taskListCheckValueChecked:V,taskListCheckValueUnchecked:V,paragraph:W}}]),s.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:o,notInConstruct:l},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:o,notInConstruct:l},{character:":",before:"[ps]",after:"\\/",inConstruct:o,notInConstruct:l}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let a=r.createTracker(i),s=a.move("[^"),o=r.enter("footnoteDefinition"),l=r.enter("label");return s+=a.move(r.safe(r.associationId(e),{before:s,after:"]"})),l(),s+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),s+=a.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,a.current()),t?I:E))),o(),s},footnoteReference:P},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:O}],handlers:{delete:R}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=D.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return o(function(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return s(),a}(e,n,r),e.align)},tableCell:s,tableRow:function(e,t,n,r){let i=o([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function s(e,t,n,r){let i=n.enter("tableCell"),s=n.enter("phrasing"),o=n.containerPhrasing(e,{...r,before:a,after:a});return s(),i(),o}function o(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||L,a=[],s=[],o=[],l=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],a=-1;for(e[c].length>u&&(u=e[c].length);++a<e[c].length;){var h;let s=null==(h=e[c][a])?"":String(h);if(!1!==n.alignDelimiters){let e=i(s);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(s)}s[c]=t,o[c]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<u;)a[d]=$(r[d]);else{let e=$(r);for(;++d<u;)a[d]=e}d=-1;let p=[],f=[];for(;++d<u;){let e=a[d],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length),s=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[d]&&(l[d]=i),f[d]=i),p[d]=s}s.splice(1,0,p),o.splice(1,0,f),c=-1;let m=[];for(;++c<s.length;){let e=s[c],t=o[c];d=-1;let r=[];for(;++d<u;){let i=e[d]||"",s="",o="";if(!1!==n.alignDelimiters){let e=l[d]-(t[d]||0),n=a[d];114===n?s=" ".repeat(e):99===n?e%2?(s=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=s=" ".repeat(e/2):o=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||d)&&r.push(" "),!1!==n.alignDelimiters&&r.push(s),r.push(i),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||d!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,a=[],o=t.enter("tableRow");for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:J}}]})}},35003:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},35976:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},37978:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(89444);function i(){return{type:"break"}}function a(){return function(e){(0,r.T)(e,[/\r?\n|\r/g,i])}}},39403:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},44528:(e,t,n)=>{"use strict";n.d(t,{BM:()=>o,CW:()=>r,Ee:()=>h,HP:()=>c,JQ:()=>s,Ny:()=>f,On:()=>d,cx:()=>a,es:()=>p,lV:()=>i,ok:()=>l,ol:()=>u});let r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),a=m(/[#-'*+\--9=?A-Z^-~]/);function s(e){return null!==e&&(e<32||127===e)}let o=m(/\d/),l=m(/[\dA-Fa-f]/),u=m(/[!-/:-@[-`{-~]/);function c(e){return null!==e&&e<-2}function h(e){return null!==e&&(e<0||32===e)}function d(e){return -2===e||-1===e||32===e}let p=m(/\p{P}|\p{S}/u),f=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},47209:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(10259);function i(e,t,n,i){let a,s,o;"function"==typeof t&&"function"!=typeof n?(s=void 0,o=t,a=n):(s=t,o=n,a=i),(0,r.VG)(e,s,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},a)}},51496:(e,t,n)=>{"use strict";n.d(t,{EB:()=>ty,YO:()=>tK,K3:()=>tR,zM:()=>tU,Ie:()=>ny,gM:()=>t6,Nl:()=>nb,RZ:()=>nm,eu:()=>nt,_H:()=>t1,ch:()=>tq,ai:()=>tD,Ik:()=>tY,lq:()=>ni,g1:()=>t8,re:()=>t0,Yj:()=>tg,KC:()=>t4,L5:()=>tV});var r=n(28577);let i=/^[cC][^\s-]{8,}$/,a=/^[0-9a-z]+$/,s=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,o=/^[0-9a-vA-V]{20}$/,l=/^[A-Za-z0-9]{27}$/,u=/^[a-zA-Z0-9_-]{21}$/,c=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,h=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,d=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,p=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,f=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,m=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,g=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,y=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,b=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,v=/^[A-Za-z0-9_-]*$/,k=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,_=/^\+(?:[0-9]){6,14}[0-9]$/,x="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",w=RegExp(`^${x}$`);function S(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let A=/^\d+$/,T=/^-?\d+(?:\.\d+)?/i,C=/true|false/i,P=/null/i,E=/^[^A-Z]*$/,I=/^[^a-z]*$/;var O=n(80606);let N=r.xI("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),z={number:"number",bigint:"bigint",object:"date"},R=r.xI("$ZodCheckLessThan",(e,t)=>{N.init(e,t);let n=z[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),L=r.xI("$ZodCheckGreaterThan",(e,t)=>{N.init(e,t);let n=z[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$=r.xI("$ZodCheckMultipleOf",(e,t)=>{N.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===O.LG(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),j=r.xI("$ZodCheckNumberFormat",(e,t)=>{N.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,a]=O.zH[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=A)}),e._zod.check=s=>{let o=s.value;if(n){if(!Number.isInteger(o))return void s.issues.push({expected:r,format:t.format,code:"invalid_type",input:o,inst:e});if(!Number.isSafeInteger(o))return void(o>0?s.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):s.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}))}o<i&&s.issues.push({origin:"number",input:o,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),o>a&&s.issues.push({origin:"number",input:o,code:"too_big",maximum:a,inst:e})}}),M=r.xI("$ZodCheckMaxLength",(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!O.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=O.Rc(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),D=r.xI("$ZodCheckMinLength",(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!O.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=O.Rc(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),B=r.xI("$ZodCheckLengthEquals",(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!O.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=O.Rc(r),s=i>t.length;n.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Z=r.xI("$ZodCheckStringFormat",(e,t)=>{var n,r;N.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),F=r.xI("$ZodCheckRegex",(e,t)=>{Z.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),U=r.xI("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=E),Z.init(e,t)}),H=r.xI("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=I),Z.init(e,t)}),q=r.xI("$ZodCheckIncludes",(e,t)=>{N.init(e,t);let n=O.$f(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),G=r.xI("$ZodCheckStartsWith",(e,t)=>{N.init(e,t);let n=RegExp(`^${O.$f(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),V=r.xI("$ZodCheckEndsWith",(e,t)=>{N.init(e,t);let n=RegExp(`.*${O.$f(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),W=r.xI("$ZodCheckOverwrite",(e,t)=>{N.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class J{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}var Q=n(2865);let K={major:4,minor:0,patch:0},X=r.xI("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=K;let i=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&i.unshift(e),i))for(let n of t._zod.onattach)n(e);if(0===i.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let i,a=O.QH(e);for(let s of t){if(s._zod.def.when){if(!s._zod.def.when(e))continue}else if(a)continue;let t=e.issues.length,o=s._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new r.GT;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(a||(a=O.QH(e,t)))});else{if(e.issues.length===t)continue;a||(a=O.QH(e,t))}}return i?i.then(()=>e):e};e._zod.run=(n,a)=>{let s=e._zod.parse(n,a);if(s instanceof Promise){if(!1===a.async)throw new r.GT;return s.then(e=>t(e,i,a))}return t(s,i,a)}}e["~standard"]={validate:t=>{try{let n=(0,Q.xL)(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return(0,Q.bp)(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),Y=r.xI("$ZodString",(e,t)=>{X.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)})(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ee=r.xI("$ZodStringFormat",(e,t)=>{Z.init(e,t),Y.init(e,t)}),et=r.xI("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=h),ee.init(e,t)}),en=r.xI("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=d(e))}else t.pattern??(t.pattern=d());ee.init(e,t)}),er=r.xI("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=p),ee.init(e,t)}),ei=r.xI("$ZodURL",(e,t)=>{ee.init(e,t),e._zod.check=n=>{try{let r=n.value,i=new URL(r),a=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:k.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!r.endsWith("/")&&a.endsWith("/")?n.value=a.slice(0,-1):n.value=a;return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ea=r.xI("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),ee.init(e,t)}),es=r.xI("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=u),ee.init(e,t)}),eo=r.xI("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=i),ee.init(e,t)}),el=r.xI("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=a),ee.init(e,t)}),eu=r.xI("$ZodULID",(e,t)=>{t.pattern??(t.pattern=s),ee.init(e,t)}),ec=r.xI("$ZodXID",(e,t)=>{t.pattern??(t.pattern=o),ee.init(e,t)}),eh=r.xI("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=l),ee.init(e,t)}),ed=r.xI("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=function(e){let t=S({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");let r=`${t}(?:${n.join("|")})`;return RegExp(`^${x}T(?:${r})$`)}(t)),ee.init(e,t)}),ep=r.xI("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=w),ee.init(e,t)}),ef=r.xI("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${S(t)}$`)),ee.init(e,t)}),em=r.xI("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=c),ee.init(e,t)}),eg=r.xI("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=f),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv4"})}),ey=r.xI("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=m),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),eb=r.xI("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=g),ee.init(e,t)}),ev=r.xI("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=y),ee.init(e,t),e._zod.check=n=>{let[r,i]=n.value.split("/");try{if(!i)throw Error();let e=Number(i);if(`${e}`!==i||e<0||e>128)throw Error();new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ek(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let e_=r.xI("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=b),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{ek(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),ex=r.xI("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=v),ee.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{!function(e){if(!v.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return ek(t.padEnd(4*Math.ceil(t.length/4),"="))}(n.value)&&n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),ew=r.xI("$ZodE164",(e,t)=>{t.pattern??(t.pattern=_),ee.init(e,t)}),eS=r.xI("$ZodJWT",(e,t)=>{ee.init(e,t),e._zod.check=n=>{!function(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(n.value,t.alg)&&n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),eA=r.xI("$ZodNumber",(e,t)=>{X.init(e,t),e._zod.pattern=e._zod.bag.pattern??T,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),n}}),eT=r.xI("$ZodNumber",(e,t)=>{j.init(e,t),eA.init(e,t)}),eC=r.xI("$ZodBoolean",(e,t)=>{X.init(e,t),e._zod.pattern=C,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),eP=r.xI("$ZodNull",(e,t)=>{X.init(e,t),e._zod.pattern=P,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}}),eE=r.xI("$ZodUnknown",(e,t)=>{X.init(e,t),e._zod.parse=e=>e}),eI=r.xI("$ZodNever",(e,t)=>{X.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function eO(e,t,n){e.issues.length&&t.issues.push(...O.lQ(n,e.issues)),t.value[n]=e.value}let eN=r.xI("$ZodArray",(e,t)=>{X.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let s=i[e],o=t.element._zod.run({value:s,issues:[]},r);o instanceof Promise?a.push(o.then(t=>eO(t,n,e))):eO(o,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function ez(e,t,n){e.issues.length&&t.issues.push(...O.lQ(n,e.issues)),t.value[n]=e.value}function eR(e,t,n,r){e.issues.length?void 0===r[n]?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...O.lQ(n,e.issues)):void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}let eL=r.xI("$ZodObject",(e,t)=>{let n,i;X.init(e,t);let a=O.PO(()=>{let e=Object.keys(t.shape);for(let n of e)if(!(t.shape[n]instanceof X))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=O.NM(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}});O.gJ(e._zod,"propValues",()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values)for(let e of(n[t]??(n[t]=new Set),r.values))n[t].add(e)}return n});let s=O.Gv,o=!r.cr.jitless,l=O.hI,u=o&&l.value,c=t.catchall;e._zod.parse=(r,l)=>{i??(i=a.value);let h=r.value;if(!s(h))return r.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),r;let d=[];if(o&&u&&l?.async===!1&&!0!==l.jitless)n||(n=(e=>{let t=new J(["shape","payload","ctx"]),n=a.value,r=e=>{let t=O.UQ(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),s=0;for(let e of n.keys)i[e]=`key_${s++}`;for(let e of(t.write("const newResult = {}"),n.keys))if(n.optionalKeys.has(e)){let n=i[e];t.write(`const ${n} = ${r(e)};`);let a=O.UQ(e);t.write(`
|
|
57
|
-
if (${n}.issues.length) {
|
|
58
|
-
if (input[${a}] === undefined) {
|
|
59
|
-
if (${a} in input) {
|
|
60
|
-
newResult[${a}] = undefined;
|
|
61
|
-
}
|
|
62
|
-
} else {
|
|
63
|
-
payload.issues = payload.issues.concat(
|
|
64
|
-
${n}.issues.map((iss) => ({
|
|
65
|
-
...iss,
|
|
66
|
-
path: iss.path ? [${a}, ...iss.path] : [${a}],
|
|
67
|
-
}))
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
} else if (${n}.value === undefined) {
|
|
71
|
-
if (${a} in input) newResult[${a}] = undefined;
|
|
72
|
-
} else {
|
|
73
|
-
newResult[${a}] = ${n}.value;
|
|
74
|
-
}
|
|
75
|
-
`)}else{let n=i[e];t.write(`const ${n} = ${r(e)};`),t.write(`
|
|
76
|
-
if (${n}.issues.length) payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
77
|
-
...iss,
|
|
78
|
-
path: iss.path ? [${O.UQ(e)}, ...iss.path] : [${O.UQ(e)}]
|
|
79
|
-
})));`),t.write(`newResult[${O.UQ(e)}] = ${n}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");let o=t.compile();return(t,n)=>o(e,t,n)})(t.shape)),r=n(r,l);else{r.value={};let e=i.shape;for(let t of i.keys){let n=e[t],i=n._zod.run({value:h[t],issues:[]},l),a="optional"===n._zod.optin&&"optional"===n._zod.optout;i instanceof Promise?d.push(i.then(e=>a?eR(e,r,t,h):ez(e,r,t))):a?eR(i,r,t,h):ez(i,r,t)}}if(!c)return d.length?Promise.all(d).then(()=>r):r;let p=[],f=i.keySet,m=c._zod,g=m.def.type;for(let e of Object.keys(h)){if(f.has(e))continue;if("never"===g){p.push(e);continue}let t=m.run({value:h[e],issues:[]},l);t instanceof Promise?d.push(t.then(t=>ez(t,r,e))):ez(t,r,e)}return(p.length&&r.issues.push({code:"unrecognized_keys",keys:p,input:h,inst:e}),d.length)?Promise.all(d).then(()=>r):r}});function e$(e,t,n,i){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>O.iR(e,i,r.$W())))}),t}let ej=r.xI("$ZodUnion",(e,t)=>{X.init(e,t),O.gJ(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),O.gJ(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),O.gJ(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),O.gJ(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>O.p6(e.source)).join("|")})$`)}}),e._zod.parse=(n,r)=>{let i=!1,a=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},r);if(t instanceof Promise)a.push(t),i=!0;else{if(0===t.issues.length)return t;a.push(t)}}return i?Promise.all(a).then(t=>e$(t,n,e,r)):e$(a,n,e,r)}}),eM=r.xI("$ZodDiscriminatedUnion",(e,t)=>{ej.init(e,t);let n=e._zod.parse;O.gJ(e._zod,"propValues",()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r))for(let r of(e[t]||(e[t]=new Set),n))e[t].add(r)}return e});let r=O.PO(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let s=i.value;if(!O.Gv(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;let o=r.value.get(s?.[t.discriminator]);return o?o._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:s,path:[t.discriminator],inst:e}),i)}}),eD=r.xI("$ZodIntersection",(e,t)=>{X.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>eB(e,t,n)):eB(e,i,a)}});function eB(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),O.QH(e))return e;let r=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(O.Qd(t)&&O.Qd(n)){let r=Object.keys(n),i=Object.keys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};a[r]=i.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}let eZ=r.xI("$ZodRecord",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let a=n.value;if(!O.Qd(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;let s=[];if(t.keyType._zod.values){let r,o=t.keyType._zod.values;for(let e of(n.value={},o))if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){let r=t.valueType._zod.run({value:a[e],issues:[]},i);r instanceof Promise?s.push(r.then(t=>{t.issues.length&&n.issues.push(...O.lQ(e,t.issues)),n.value[e]=t.value})):(r.issues.length&&n.issues.push(...O.lQ(e,r.issues)),n.value[e]=r.value)}for(let e in a)o.has(e)||(r=r??[]).push(e);r&&r.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:r})}else for(let o of(n.value={},Reflect.ownKeys(a))){if("__proto__"===o)continue;let l=t.keyType._zod.run({value:o,issues:[]},i);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(l.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:l.issues.map(e=>O.iR(e,i,r.$W())),input:o,path:[o],inst:e}),n.value[l.value]=l.value;continue}let u=t.valueType._zod.run({value:a[o],issues:[]},i);u instanceof Promise?s.push(u.then(e=>{e.issues.length&&n.issues.push(...O.lQ(o,e.issues)),n.value[l.value]=e.value})):(u.issues.length&&n.issues.push(...O.lQ(o,u.issues)),n.value[l.value]=u.value)}return s.length?Promise.all(s).then(()=>n):n}}),eF=r.xI("$ZodEnum",(e,t)=>{X.init(e,t);let n=O.w5(t.entries);e._zod.values=new Set(n),e._zod.pattern=RegExp(`^(${n.filter(e=>O.qQ.has(typeof e)).map(e=>"string"==typeof e?O.$f(e):e.toString()).join("|")})$`),e._zod.parse=(t,r)=>{let i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:n,input:i,inst:e}),t}}),eU=r.xI("$ZodLiteral",(e,t)=>{X.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?O.$f(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(n,r)=>{let i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),eH=r.xI("$ZodTransform",(e,t)=>{X.init(e,t),e._zod.parse=(e,n)=>{let i=t.transform(e.value,e);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(t=>(e.value=t,e));if(i instanceof Promise)throw new r.GT;return e.value=i,e}}),eq=r.xI("$ZodOptional",(e,t)=>{X.init(e,t),e._zod.optin="optional",e._zod.optout="optional",O.gJ(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),O.gJ(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${O.p6(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>"optional"===t.innerType._zod.optin?t.innerType._zod.run(e,n):void 0===e.value?e:t.innerType._zod.run(e,n)}),eG=r.xI("$ZodNullable",(e,t)=>{X.init(e,t),O.gJ(e._zod,"optin",()=>t.innerType._zod.optin),O.gJ(e._zod,"optout",()=>t.innerType._zod.optout),O.gJ(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${O.p6(e.source)}|null)$`):void 0}),O.gJ(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),eV=r.xI("$ZodDefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",O.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>eW(e,t)):eW(r,t)}});function eW(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let eJ=r.xI("$ZodPrefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",O.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),eQ=r.xI("$ZodNonOptional",(e,t)=>{X.init(e,t),O.gJ(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>eK(t,e)):eK(i,e)}});function eK(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let eX=r.xI("$ZodCatch",(e,t)=>{X.init(e,t),e._zod.optin="optional",O.gJ(e._zod,"optout",()=>t.innerType._zod.optout),O.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{let i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(i=>(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>O.iR(e,n,r.$W()))},input:e.value}),e.issues=[]),e)):(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>O.iR(e,n,r.$W()))},input:e.value}),e.issues=[]),e)}}),eY=r.xI("$ZodPipe",(e,t)=>{X.init(e,t),O.gJ(e._zod,"values",()=>t.in._zod.values),O.gJ(e._zod,"optin",()=>t.in._zod.optin),O.gJ(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(e,n)=>{let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>e0(e,t,n)):e0(r,t,n)}});function e0(e,t,n){return O.QH(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}let e1=r.xI("$ZodReadonly",(e,t)=>{X.init(e,t),O.gJ(e._zod,"propValues",()=>t.innerType._zod.propValues),O.gJ(e._zod,"values",()=>t.innerType._zod.values),O.gJ(e._zod,"optin",()=>t.innerType._zod.optin),O.gJ(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e2):e2(r)}});function e2(e){return e.value=Object.freeze(e.value),e}let e4=r.xI("$ZodLazy",(e,t)=>{X.init(e,t),O.gJ(e._zod,"innerType",()=>t.getter()),O.gJ(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),O.gJ(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),O.gJ(e._zod,"optin",()=>e._zod.innerType._zod.optin),O.gJ(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),e5=r.xI("$ZodCustom",(e,t)=>{N.init(e,t),X.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>e6(t,n,r,e));e6(i,n,r,e)}});function e6(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(O.sn(e))}}var e3=n(9969);function e9(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...O.A2(t)})}function e8(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...O.A2(t)})}function e7(e,t){return new R({check:"less_than",...O.A2(t),value:e,inclusive:!1})}function te(e,t){return new R({check:"less_than",...O.A2(t),value:e,inclusive:!0})}function tt(e,t){return new L({check:"greater_than",...O.A2(t),value:e,inclusive:!1})}function tn(e,t){return new L({check:"greater_than",...O.A2(t),value:e,inclusive:!0})}function tr(e,t){return new $({check:"multiple_of",...O.A2(t),value:e})}function ti(e,t){return new M({check:"max_length",...O.A2(t),maximum:e})}function ta(e,t){return new D({check:"min_length",...O.A2(t),minimum:e})}function ts(e,t){return new B({check:"length_equals",...O.A2(t),length:e})}function to(e){return new W({check:"overwrite",tx:e})}let tl=r.xI("ZodISODateTime",(e,t)=>{ed.init(e,t),ty.init(e,t)}),tu=r.xI("ZodISODate",(e,t)=>{ep.init(e,t),ty.init(e,t)}),tc=r.xI("ZodISOTime",(e,t)=>{ef.init(e,t),ty.init(e,t)}),th=r.xI("ZodISODuration",(e,t)=>{em.init(e,t),ty.init(e,t)});var td=n(74692);let tp=r.xI("ZodType",(e,t)=>(X.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,n)=>O.o8(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>td.qg(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>td.xL(e,t,n),e.parseAsync=async(t,n)=>td.EJ(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>td.bp(e,t,n),e.spa=e.safeParseAsync,e.refine=(t,n)=>e.check(function(e,t={}){return new ng({type:"custom",check:"custom",fn:e,...O.A2(t)})}(t,n)),e.superRefine=t=>e.check(function(e){let t=function(e){let t=new N({check:"custom"});return t._zod.check=e,t}(n=>(n.addIssue=e=>{"string"==typeof e?n.issues.push(O.sn(e,n.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=n.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),n.issues.push(O.sn(e)))},e(n.value,n)));return t}(t)),e.overwrite=t=>e.check(to(t)),e.optional=()=>ni(e),e.nullable=()=>ns(e),e.nullish=()=>ni(ns(e)),e.nonoptional=t=>{var n,r;return n=e,r=t,new nu({type:"nonoptional",innerType:n,...O.A2(r)})},e.array=()=>tK(e),e.or=t=>t4([e,t]),e.and=t=>new t3({type:"intersection",left:e,right:t}),e.transform=t=>nd(e,new nn({type:"transform",transform:t})),e.default=t=>(function(e,t){return new no({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})})(e,t),e.prefault=t=>(function(e,t){return new nl({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})})(e,t),e.catch=t=>(function(e,t){return new nc({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})})(e,t),e.pipe=t=>nd(e,t),e.readonly=()=>new np({type:"readonly",innerType:e}),e.describe=t=>{let n=e.clone();return e3.fd.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>e3.fd.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return e3.fd.get(e);let n=e.clone();return e3.fd.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),tf=r.xI("_ZodString",(e,t)=>{Y.init(e,t),tp.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(function(e,t){return new F({check:"string_format",format:"regex",...O.A2(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new q({check:"string_format",format:"includes",...O.A2(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new G({check:"string_format",format:"starts_with",...O.A2(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new V({check:"string_format",format:"ends_with",...O.A2(t),suffix:e})}(...t)),e.min=(...t)=>e.check(ta(...t)),e.max=(...t)=>e.check(ti(...t)),e.length=(...t)=>e.check(ts(...t)),e.nonempty=(...t)=>e.check(ta(1,...t)),e.lowercase=t=>e.check(new U({check:"string_format",format:"lowercase",...O.A2(t)})),e.uppercase=t=>e.check(new H({check:"string_format",format:"uppercase",...O.A2(t)})),e.trim=()=>e.check(to(e=>e.trim())),e.normalize=(...t)=>e.check(function(e){return to(t=>t.normalize(e))}(...t)),e.toLowerCase=()=>e.check(to(e=>e.toLowerCase())),e.toUpperCase=()=>e.check(to(e=>e.toUpperCase()))}),tm=r.xI("ZodString",(e,t)=>{Y.init(e,t),tf.init(e,t),e.email=t=>e.check(new tb({type:"string",format:"email",check:"string_format",abort:!1,...O.A2(t)})),e.url=t=>e.check(new t_({type:"string",format:"url",check:"string_format",abort:!1,...O.A2(t)})),e.jwt=t=>e.check(new tj({type:"string",format:"jwt",check:"string_format",abort:!1,...O.A2(t)})),e.emoji=t=>e.check(new tx({type:"string",format:"emoji",check:"string_format",abort:!1,...O.A2(t)})),e.guid=t=>e.check(e9(tv,t)),e.uuid=t=>e.check(new tk({type:"string",format:"uuid",check:"string_format",abort:!1,...O.A2(t)})),e.uuidv4=t=>e.check(new tk({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...O.A2(t)})),e.uuidv6=t=>e.check(new tk({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...O.A2(t)})),e.uuidv7=t=>e.check(new tk({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...O.A2(t)})),e.nanoid=t=>e.check(new tw({type:"string",format:"nanoid",check:"string_format",abort:!1,...O.A2(t)})),e.guid=t=>e.check(e9(tv,t)),e.cuid=t=>e.check(new tS({type:"string",format:"cuid",check:"string_format",abort:!1,...O.A2(t)})),e.cuid2=t=>e.check(new tA({type:"string",format:"cuid2",check:"string_format",abort:!1,...O.A2(t)})),e.ulid=t=>e.check(new tT({type:"string",format:"ulid",check:"string_format",abort:!1,...O.A2(t)})),e.base64=t=>e.check(e8(tz,t)),e.base64url=t=>e.check(new tL({type:"string",format:"base64url",check:"string_format",abort:!1,...O.A2(t)})),e.xid=t=>e.check(new tC({type:"string",format:"xid",check:"string_format",abort:!1,...O.A2(t)})),e.ksuid=t=>e.check(new tP({type:"string",format:"ksuid",check:"string_format",abort:!1,...O.A2(t)})),e.ipv4=t=>e.check(new tE({type:"string",format:"ipv4",check:"string_format",abort:!1,...O.A2(t)})),e.ipv6=t=>e.check(new tI({type:"string",format:"ipv6",check:"string_format",abort:!1,...O.A2(t)})),e.cidrv4=t=>e.check(new tO({type:"string",format:"cidrv4",check:"string_format",abort:!1,...O.A2(t)})),e.cidrv6=t=>e.check(new tN({type:"string",format:"cidrv6",check:"string_format",abort:!1,...O.A2(t)})),e.e164=t=>e.check(new t$({type:"string",format:"e164",check:"string_format",abort:!1,...O.A2(t)})),e.datetime=t=>e.check(function(e){return new tl({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...O.A2(e)})}(t)),e.date=t=>e.check(function(e){return new tu({type:"string",format:"date",check:"string_format",...O.A2(e)})}(t)),e.time=t=>e.check(function(e){return new tc({type:"string",format:"time",check:"string_format",precision:null,...O.A2(e)})}(t)),e.duration=t=>e.check(function(e){return new th({type:"string",format:"duration",check:"string_format",...O.A2(e)})}(t))});function tg(e){return new tm({type:"string",...O.A2(e)})}let ty=r.xI("ZodStringFormat",(e,t)=>{ee.init(e,t),tf.init(e,t)}),tb=r.xI("ZodEmail",(e,t)=>{er.init(e,t),ty.init(e,t)}),tv=r.xI("ZodGUID",(e,t)=>{et.init(e,t),ty.init(e,t)}),tk=r.xI("ZodUUID",(e,t)=>{en.init(e,t),ty.init(e,t)}),t_=r.xI("ZodURL",(e,t)=>{ei.init(e,t),ty.init(e,t)}),tx=r.xI("ZodEmoji",(e,t)=>{ea.init(e,t),ty.init(e,t)}),tw=r.xI("ZodNanoID",(e,t)=>{es.init(e,t),ty.init(e,t)}),tS=r.xI("ZodCUID",(e,t)=>{eo.init(e,t),ty.init(e,t)}),tA=r.xI("ZodCUID2",(e,t)=>{el.init(e,t),ty.init(e,t)}),tT=r.xI("ZodULID",(e,t)=>{eu.init(e,t),ty.init(e,t)}),tC=r.xI("ZodXID",(e,t)=>{ec.init(e,t),ty.init(e,t)}),tP=r.xI("ZodKSUID",(e,t)=>{eh.init(e,t),ty.init(e,t)}),tE=r.xI("ZodIPv4",(e,t)=>{eg.init(e,t),ty.init(e,t)}),tI=r.xI("ZodIPv6",(e,t)=>{ey.init(e,t),ty.init(e,t)}),tO=r.xI("ZodCIDRv4",(e,t)=>{eb.init(e,t),ty.init(e,t)}),tN=r.xI("ZodCIDRv6",(e,t)=>{ev.init(e,t),ty.init(e,t)}),tz=r.xI("ZodBase64",(e,t)=>{e_.init(e,t),ty.init(e,t)});function tR(e){return e8(tz,e)}let tL=r.xI("ZodBase64URL",(e,t)=>{ex.init(e,t),ty.init(e,t)}),t$=r.xI("ZodE164",(e,t)=>{ew.init(e,t),ty.init(e,t)}),tj=r.xI("ZodJWT",(e,t)=>{eS.init(e,t),ty.init(e,t)}),tM=r.xI("ZodNumber",(e,t)=>{eA.init(e,t),tp.init(e,t),e.gt=(t,n)=>e.check(tt(t,n)),e.gte=(t,n)=>e.check(tn(t,n)),e.min=(t,n)=>e.check(tn(t,n)),e.lt=(t,n)=>e.check(e7(t,n)),e.lte=(t,n)=>e.check(te(t,n)),e.max=(t,n)=>e.check(te(t,n)),e.int=t=>e.check(tZ(t)),e.safe=t=>e.check(tZ(t)),e.positive=t=>e.check(tt(0,t)),e.nonnegative=t=>e.check(tn(0,t)),e.negative=t=>e.check(e7(0,t)),e.nonpositive=t=>e.check(te(0,t)),e.multipleOf=(t,n)=>e.check(tr(t,n)),e.step=(t,n)=>e.check(tr(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function tD(e){return new tM({type:"number",checks:[],...O.A2(e)})}let tB=r.xI("ZodNumberFormat",(e,t)=>{eT.init(e,t),tM.init(e,t)});function tZ(e){return new tB({type:"number",check:"number_format",abort:!1,format:"safeint",...O.A2(e)})}let tF=r.xI("ZodBoolean",(e,t)=>{eC.init(e,t),tp.init(e,t)});function tU(e){return new tF({type:"boolean",...O.A2(e)})}let tH=r.xI("ZodNull",(e,t)=>{eP.init(e,t),tp.init(e,t)});function tq(e){return new tH({type:"null",...O.A2(e)})}let tG=r.xI("ZodUnknown",(e,t)=>{eE.init(e,t),tp.init(e,t)});function tV(){return new tG({type:"unknown"})}let tW=r.xI("ZodNever",(e,t)=>{eI.init(e,t),tp.init(e,t)});function tJ(e){return new tW({type:"never",...O.A2(e)})}let tQ=r.xI("ZodArray",(e,t)=>{eN.init(e,t),tp.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(ta(t,n)),e.nonempty=t=>e.check(ta(1,t)),e.max=(t,n)=>e.check(ti(t,n)),e.length=(t,n)=>e.check(ts(t,n)),e.unwrap=()=>e.element});function tK(e,t){return new tQ({type:"array",element:e,...O.A2(t)})}let tX=r.xI("ZodObject",(e,t)=>{eL.init(e,t),tp.init(e,t),O.gJ(e,"shape",()=>t.shape),e.keyof=()=>(function(e,t){return new t7({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...O.A2(void 0)})})(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:tV()}),e.loose=()=>e.clone({...e._zod.def,catchall:tV()}),e.strict=()=>e.clone({...e._zod.def,catchall:tJ()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>O.X$(e,t),e.merge=t=>O.h1(e,t),e.pick=t=>O.Up(e,t),e.omit=t=>O.cJ(e,t),e.partial=(...t)=>O.OH(nr,e,t[0]),e.required=(...t)=>O.mw(nu,e,t[0])});function tY(e,t){return new tX({type:"object",get shape(){return O.Vy(this,"shape",{...e}),this.shape},...O.A2(t)})}function t0(e,t){return new tX({type:"object",get shape(){return O.Vy(this,"shape",{...e}),this.shape},catchall:tJ(),...O.A2(t)})}function t1(e,t){return new tX({type:"object",get shape(){return O.Vy(this,"shape",{...e}),this.shape},catchall:tV(),...O.A2(t)})}let t2=r.xI("ZodUnion",(e,t)=>{ej.init(e,t),tp.init(e,t),e.options=t.options});function t4(e,t){return new t2({type:"union",options:e,...O.A2(t)})}let t5=r.xI("ZodDiscriminatedUnion",(e,t)=>{t2.init(e,t),eM.init(e,t)});function t6(e,t,n){return new t5({type:"union",options:t,discriminator:e,...O.A2(n)})}let t3=r.xI("ZodIntersection",(e,t)=>{eD.init(e,t),tp.init(e,t)}),t9=r.xI("ZodRecord",(e,t)=>{eZ.init(e,t),tp.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function t8(e,t,n){return new t9({type:"record",keyType:e,valueType:t,...O.A2(n)})}let t7=r.xI("ZodEnum",(e,t)=>{eF.init(e,t),tp.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new t7({...t,checks:[],...O.A2(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new t7({...t,checks:[],...O.A2(r),entries:i})}}),ne=r.xI("ZodLiteral",(e,t)=>{eU.init(e,t),tp.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function nt(e,t){return new ne({type:"literal",values:Array.isArray(e)?e:[e],...O.A2(t)})}let nn=r.xI("ZodTransform",(e,t)=>{eH.init(e,t),tp.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=r=>{"string"==typeof r?n.issues.push(O.sn(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),r.continue??(r.continue=!0),n.issues.push(O.sn(r)))};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),nr=r.xI("ZodOptional",(e,t)=>{eq.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ni(e){return new nr({type:"optional",innerType:e})}let na=r.xI("ZodNullable",(e,t)=>{eG.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ns(e){return new na({type:"nullable",innerType:e})}let no=r.xI("ZodDefault",(e,t)=>{eV.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),nl=r.xI("ZodPrefault",(e,t)=>{eJ.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType}),nu=r.xI("ZodNonOptional",(e,t)=>{eQ.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType}),nc=r.xI("ZodCatch",(e,t)=>{eX.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),nh=r.xI("ZodPipe",(e,t)=>{eY.init(e,t),tp.init(e,t),e.in=t.in,e.out=t.out});function nd(e,t){return new nh({type:"pipe",in:e,out:t})}let np=r.xI("ZodReadonly",(e,t)=>{e1.init(e,t),tp.init(e,t)}),nf=r.xI("ZodLazy",(e,t)=>{e4.init(e,t),tp.init(e,t),e.unwrap=()=>e._zod.def.getter()});function nm(e){return new nf({type:"lazy",getter:e})}let ng=r.xI("ZodCustom",(e,t)=>{e5.init(e,t),tp.init(e,t)});function ny(e,t){let n=O.A2(t);return n.abort??(n.abort=!0),new ng({type:"custom",check:"custom",fn:e??(()=>!0),...n})}function nb(e,t={error:`Input not instance of ${e.name}`}){let n=new ng({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...O.A2(t)});return n._zod.bag.Class=e,n}},51677:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},52962:(e,t,n)=>{"use strict";n.r(t),n.d(t,{boolean:()=>i,booleanish:()=>a,commaOrSpaceSeparated:()=>c,commaSeparated:()=>u,number:()=>o,overloadedBoolean:()=>s,spaceSeparated:()=>l});let r=0,i=h(),a=h(),s=h(),o=h(),l=h(),u=h(),c=h();function h(){return 2**++r}},53235:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},53359:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});let r=/[ \t\n\f\r]/g;function i(e){return"object"==typeof e?"text"===e.type&&a(e.value):a(e)}function a(e){return""===e.replace(r,"")}},54426:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>C});class r extends Error{response;request;options;constructor(e,t,n){let r=e.status||0===e.status?e.status:"",i=e.statusText||"",a=`${r} ${i}`.trim();super(`Request failed with ${a?`status code ${a}`:"an unknown error"}: ${t.method} ${t.url}`),this.name="HTTPError",this.response=e,this.request=t,this.options=n}}class i extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}let a=(()=>{let e=!1,t=!1,n="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&n)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),s="function"==typeof globalThis.AbortController,o="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,l="function"==typeof globalThis.ReadableStream,u="function"==typeof globalThis.FormData,c=["get","post","put","patch","head","delete"],h={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},d=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,p=Symbol("stop"),f={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0},m={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0},g=e=>null!==e&&"object"==typeof e,y=(...e)=>{for(let t of e)if((!g(t)||Array.isArray(t))&&void 0!==t)throw TypeError("The `options` argument must be an object");return _({},...e)},b=(e={},t={})=>{let n=new globalThis.Headers(e),r=t instanceof globalThis.Headers;for(let[e,i]of new globalThis.Headers(t).entries())r&&"undefined"===i||void 0===i?n.delete(e):n.set(e,i);return n};function v(e,t,n){return Object.hasOwn(t,n)&&void 0===t[n]?[]:_(e[n]??[],t[n]??[])}let k=(e={},t={})=>({beforeRequest:v(e,t,"beforeRequest"),beforeRetry:v(e,t,"beforeRetry"),afterResponse:v(e,t,"afterResponse"),beforeError:v(e,t,"beforeError")}),_=(...e)=>{let t={},n={},r={};for(let i of e)if(Array.isArray(i))Array.isArray(t)||(t=[]),t=[...t,...i];else if(g(i)){for(let[e,n]of Object.entries(i))g(n)&&e in t&&(n=_(t[e],n)),t={...t,[e]:n};g(i.hooks)&&(r=k(r,i.hooks),t.hooks=r),g(i.headers)&&(n=b(n,i.headers),t.headers=n)}return t},x={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3};async function w(e,t,n,r){return new Promise((a,s)=>{let o=setTimeout(()=>{n&&n.abort(),s(new i(e))},r.timeout);r.fetch(e,t).then(a).catch(s).then(()=>{clearTimeout(o)})})}async function S(e,{signal:t}){return new Promise((n,r)=>{function i(){clearTimeout(a),r(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",i,{once:!0}));let a=setTimeout(()=>{t?.removeEventListener("abort",i),n()},e)})}class A{static create(e,t){let n=new A(e,t),i=async()=>{if("number"==typeof n._options.timeout&&n._options.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await n._fetch();for(let t of n._options.hooks.afterResponse){let r=await t(n.request,n._options,n._decorateResponse(e.clone()));r instanceof globalThis.Response&&(e=r)}if(n._decorateResponse(e),!e.ok&&n._options.throwHttpErrors){let t=new r(e,n.request,n._options);for(let e of n._options.hooks.beforeError)t=await e(t);throw t}if(n._options.onDownloadProgress){if("function"!=typeof n._options.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!l)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return((e,t)=>{let n=Number(e.headers.get("content-length"))||0,r=0;return 204===e.status?(t&&t({percent:1,totalBytes:n,transferredBytes:r},new Uint8Array),new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers})):new Response(new ReadableStream({async start(i){let a=e.body.getReader();async function s(){let{done:e,value:o}=await a.read();if(e)return void i.close();t&&(r+=o.byteLength,t({percent:0===n?0:r/n,transferredBytes:r,totalBytes:n},o)),i.enqueue(o),await s()}t&&t({percent:0,transferredBytes:0,totalBytes:n},new Uint8Array),await s()}}),{status:e.status,statusText:e.statusText,headers:e.headers})})(e.clone(),n._options.onDownloadProgress)}return e},a=(n._options.retry.methods.includes(n.request.method.toLowerCase())?n._retry(i):i()).finally(async()=>{n.request.bodyUsed||await n.request.body?.cancel()});for(let[e,r]of Object.entries(h))a[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||r);let i=await a;if("json"===e){if(204===i.status||0===(await i.clone().arrayBuffer()).byteLength)return"";if(t.parseJson)return t.parseJson(await i.text())}return i[e]()};return a}request;abortController;_retryCount=0;_input;_options;constructor(e,t={}){if(this._input=e,this._options={...t,headers:b(this._input.headers,t.headers),hooks:k({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:(e=>c.includes(e)?e.toUpperCase():e)(t.method??this._input.method??"GET"),prefixUrl:String(t.prefixUrl||""),retry:((e={})=>{if("number"==typeof e)return{...x,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");return{...x,...e}})(t.retry),throwHttpErrors:!1!==t.throwHttpErrors,timeout:t.timeout??1e4,fetch:t.fetch??globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(s&&o){let e=this._options.signal??this._input.signal;this.abortController=new globalThis.AbortController,this._options.signal=e?AbortSignal.any([e,this.abortController.signal]):this.abortController.signal}if(a&&(this._options.duplex="half"),void 0!==this._options.json&&(this._options.body=this._options.stringifyJson?.(this._options.json)??JSON.stringify(this._options.json),this._options.headers.set("content-type",this._options.headers.get("content-type")??"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){let e="string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString(),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);(u&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(t,{...this.request}),this._options)}if(this._options.onUploadProgress){if("function"!=typeof this._options.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!a)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=((e,t)=>{let n=(e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[n,r]of e)t+=d,t+=new TextEncoder().encode(`Content-Disposition: form-data; name="${n}"`).length,t+="string"==typeof r?new TextEncoder().encode(r).length:r.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{}return 0})(e.body),r=0;return new Request(e,{duplex:"half",body:new ReadableStream({async start(i){let a=e.body instanceof ReadableStream?e.body.getReader():new Response("").body.getReader();async function s(){let{done:e,value:o}=await a.read();if(e){t&&t({percent:1,transferredBytes:r,totalBytes:Math.max(n,r)},new Uint8Array),i.close();return}r+=o.byteLength;let l=0===n?0:r/n;(n<r||1===l)&&(l=.99),t&&t({percent:Number(l.toFixed(2)),transferredBytes:r,totalBytes:n},o),i.enqueue(o),await s()}await s()}})})})(this.request,this._options.onUploadProgress))}}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount>this._options.retry.limit||e instanceof i)throw e;if(e instanceof r){if(!this._options.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this._options.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let n=this._options.retry.maxRetryAfter??e;return e<n?e:n}if(413===e.response.status)throw e}let t=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,t)}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(n){let t=Math.min(this._calculateRetryDelay(n),0x7fffffff);if(this._retryCount<1)throw n;for(let e of(await S(t,{signal:this._options.signal}),this._options.hooks.beforeRetry))if(await e({request:this.request,options:this._options,error:n,retryCount:this._retryCount})===p)return;return this._retry(e)}}async _fetch(){for(let e of this._options.hooks.beforeRequest){let t=await e(this.request,this._options);if(t instanceof Request){this.request=t;break}if(t instanceof Response)return t}let e=((e,t)=>{let n={};for(let r in t)r in m||r in f||r in e||(n[r]=t[r]);return n})(this.request,this._options),t=this.request;return(this.request=t.clone(),!1===this._options.timeout)?this._options.fetch(t,e):w(t,e,this.abortController,this._options)}}let T=e=>{let t=(t,n)=>A.create(t,y(e,n));for(let n of c)t[n]=(t,r)=>A.create(t,y(e,r,{method:n}));return t.create=e=>T(y(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),T(y(e,t))),t.stop=p,t},C=T()},56434:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(33203),i=n(44528);let a={partial:!0,tokenize:function(e,t,n){return function(t){return(0,i.On)(t)?(0,r.N)(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||(0,i.HP)(e)?t(e):n(e)}}}},57343:(e,t,n)=>{"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}n.d(t,{W:()=>r})},57571:(e,t,n)=>{"use strict";n.d(t,{I:()=>u});var r=n(28705),i=n(86385),a=n(59255);let s=/[A-Z]/g,o=/-[a-z]/g,l=/^data[-\w.:]+$/i;function u(e,t){let n=(0,a.S)(t),u=t,d=i.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&l.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(o,h);u="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!o.test(e)){let n=e.replace(s,c);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}d=r.E}return new d(u,t)}function c(e){return"-"+e.toLowerCase()}function h(e){return e.charAt(1).toUpperCase()}},57831:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),s=a[0],o=a[1],u=new i((s+o)*3/4-o),c=0,h=o>0?s-4:s;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===o&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===o&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],s=0,o=r-i;s<o;s+=16383)a.push(function(e,t,r){for(var i,a=[],s=t;s<r;s+=3)i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=a.length;s<o;++s)n[s]=a[s],r[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e){var r=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!o.isEncoding(i))throw TypeError("Unknown encoding: "+i);var a=0|p(r,i),l=s(a),u=l.write(r,i);return u!==a&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(E(e,ArrayBuffer)||e&&E(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(E(e,SharedArrayBuffer)||e&&E(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),o.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return o.from(c,t,n);var f=function(e){if(o.isBuffer(e)){var t=0|d(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(f)return f;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|d(e))}function h(e){for(var t=e.length<0?0:0|d(e.length),n=s(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,n){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return c(e)},o.allocUnsafeSlow=function(e){return c(e)};function d(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||E(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(e).length;default:if(i)return r?-1:A(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){var i,a,s,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=I[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=this,a=t,s=n,0===a&&s===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(a,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}(this,t,n);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(a=n*=1)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return y(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,s=1,o=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;s=2,o/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(a=n;a<o;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*s}else -1!==c&&(a-=a-c),c=-1}else for(n+l>o&&(n=o-l),a=n;a>=0;a--){for(var h=!0,d=0;d<l;d++)if(u(e,a+d)!==u(t,d)){h=!1;break}if(h)return a}return -1}o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(E(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),E(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=o.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(E(a,Uint8Array)&&(a=o.from(a)),!o.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=p,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):f.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(e,t,n,r,i){if(E(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,s=n-t,l=Math.min(a,s),u=this.slice(r,i),c=e.slice(t,n),h=0;h<l;++h)if(u[h]!==c[h]){a=u[h],s=c[h];break}return a<s?-1:+(s<a)},o.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},o.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},o.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)};function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,s,o,l,u=e[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],s=e[i+2],(192&a)==128&&(192&s)==128&&(l=(15&u)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],(192&a)==128&&(192&s)==128&&(192&o)==128&&(l=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}var d=r,p=d.length;if(p<=4096)return String.fromCharCode.apply(String,d);for(var f="",m=0;m<p;)f+=String.fromCharCode.apply(String,d.slice(m,m+=4096));return f}function v(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,i,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function _(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function x(e,t,n,r,a){return t*=1,n>>>=0,a||_(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function w(e,t,n,r,a){return t*=1,n>>>=0,a||_(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}o.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,s,o,l,u,c,h,d=this.length-t;if((void 0===n||n>d)&&(n=d),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var p=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var s=0;s<r;++s){var o,l=parseInt(t.substr(2*s,2),16);if((o=l)!=o)break;e[n+s]=l}return s}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,P(A(e,this.length-i),this,i,a);case"ascii":return s=t,o=n,P(T(e),this,s,o);case"latin1":case"binary":return function(e,t,n,r){return P(T(t),e,n,r)}(this,e,t,n);case"base64":return l=t,u=n,P(C(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,h=n,P(function(e,t){for(var n,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,h);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,o.prototype),r},o.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},o.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},o.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;k(this,e,t,n,i,0)}var a=1,s=0;for(this[t]=255&e;++s<n&&(a*=256);)this[t+s]=e/a&255;return t+n},o.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;k(this,e,t,n,i,0)}var a=n-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);k(this,e,t,n,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a<n&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);k(this,e,t,n,i-1,-i)}var a=n-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,n){return x(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return x(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return w(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return w(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},o.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=o.isBuffer(e)?e:o.from(e,r),l=s.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function A(e,t){t=t||1/0;for(var n,r=e.length,i=null,a=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319||s+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function T(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function C(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function E(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var I=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var a,s,o=8*i-r-1,l=(1<<o)-1,u=l>>1,c=-7,h=n?i-1:0,d=n?-1:1,p=e[t+h];for(h+=d,a=p&(1<<-c)-1,p>>=-c,c+=o;c>0;a=256*a+e[t+h],h+=d,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=r;c>0;s=256*s+e[t+h],h+=d,c-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),a-=u}return(p?-1:1)*s*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var s,o,l,u=8*a-i-1,c=(1<<u)-1,h=c>>1,d=5960464477539062e-23*(23===i),p=r?0:a-1,f=r?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=d/l:t+=d*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=c?(o=0,s=c):s+h>=1?(o=(t*l-1)*Math.pow(2,i),s+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+p]=255&o,p+=f,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;e[n+p]=255&s,p+=f,s/=256,u-=8);e[n+p-f]|=128*m}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},s=!0;try{t[e](a,a.exports,r),s=!1}finally{s&&delete n[e]}return a.exports}r.ab="//",e.exports=r(72)}()},58695:(e,t,n)=>{"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{D:()=>r})},59255:(e,t,n)=>{"use strict";function r(e){return e.toLowerCase()}n.d(t,{S:()=>r})},61453:(e,t,n)=>{"use strict";function r(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>r})},64200:(e,t,n)=>{"use strict";n.d(t,{Y_:()=>x});var r,i,a,s,o,l,u,c,h,d,p=n(33369),f=n(48702),m=n(5993),g=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},y=(e,t,n)=>(g(e,t,"read from private field"),n?n.call(e):t.get(e)),b=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},v=(e,t,n,r)=>(g(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),k=class{constructor(e=[]){b(this,r,void 0),b(this,i,"ready"),b(this,a,void 0),b(this,s,new Set),b(this,o,new Set),b(this,l,new Set),this.pushMessage=e=>{v(this,r,y(this,r).concat(e)),y(this,u).call(this)},this.popMessage=()=>{v(this,r,y(this,r).slice(0,-1)),y(this,u).call(this)},this.replaceMessage=(e,t)=>{v(this,r,[...y(this,r).slice(0,e),this.snapshot(t),...y(this,r).slice(e+1)]),y(this,u).call(this)},this.snapshot=e=>structuredClone(e),this["~registerMessagesCallback"]=(e,t)=>{let n=t?function(e,t){return null!=t?m(e,t):e}(e,t):e;return y(this,s).add(n),()=>{y(this,s).delete(n)}},this["~registerStatusCallback"]=e=>(y(this,o).add(e),()=>{y(this,o).delete(e)}),this["~registerErrorCallback"]=e=>(y(this,l).add(e),()=>{y(this,l).delete(e)}),b(this,u,()=>{y(this,s).forEach(e=>e())}),b(this,c,()=>{y(this,o).forEach(e=>e())}),b(this,h,()=>{y(this,l).forEach(e=>e())}),v(this,r,e)}get status(){return y(this,i)}set status(e){v(this,i,e),y(this,c).call(this)}get error(){return y(this,a)}set error(e){v(this,a,e),y(this,h).call(this)}get messages(){return y(this,r)}set messages(e){v(this,r,[...e]),y(this,u).call(this)}};r=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,o=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,h=new WeakMap;var _=class extends f.vl{constructor({messages:e,...t}){let n=new k(e);super({...t,state:n}),b(this,d,void 0),this["~registerMessagesCallback"]=(e,t)=>y(this,d)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>y(this,d)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>y(this,d)["~registerErrorCallback"](e),v(this,d,n)}};function x({experimental_throttle:e,resume:t=!1,...n}={}){let r=(0,p.useRef)("chat"in n?n.chat:new _(n));("chat"in n&&n.chat!==r.current||"id"in n&&r.current.id!==n.id)&&(r.current="chat"in n?n.chat:new _(n));let i="id"in n?n.id:null,a=(0,p.useCallback)(t=>r.current["~registerMessagesCallback"](t,e),[e,i]),s=(0,p.useSyncExternalStore)(a,()=>r.current.messages,()=>r.current.messages),o=(0,p.useSyncExternalStore)(r.current["~registerStatusCallback"],()=>r.current.status,()=>r.current.status),l=(0,p.useSyncExternalStore)(r.current["~registerErrorCallback"],()=>r.current.error,()=>r.current.error),u=(0,p.useCallback)(e=>{"function"==typeof e&&(e=e(r.current.messages)),r.current.messages=e},[r]);return(0,p.useEffect)(()=>{t&&r.current.resumeStream()},[t,r]),{id:r.current.id,messages:s,setMessages:u,sendMessage:r.current.sendMessage,regenerate:r.current.regenerate,clearError:r.current.clearError,stop:r.current.stop,error:l,resumeStream:r.current.resumeStream,status:o,addToolResult:r.current.addToolResult}}d=new WeakMap},64393:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var r=n(33369);let i=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e))},s=t=e(r,i,a);return a},a=e=>{let t=(e=>e?i(e):i)(e),n=e=>(function(e,t=e=>e){let n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},s=e=>e?a(e):a},64913:(e,t,n)=>{"use strict";n.d(t,{qy:()=>y,JW:()=>b});class r{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function i(e,t){let n={},i={};for(let t of e)Object.assign(n,t.property),Object.assign(i,t.normal);return new r(n,i,t)}r.prototype.normal={},r.prototype.property={},r.prototype.space=void 0;var a=n(59255),s=n(28705);function o(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new s.E(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[(0,a.S)(r)]=r,n[(0,a.S)(o.attribute)]=r}return new r(t,n,e.space)}var l=n(52962);let u=o({properties:{ariaActiveDescendant:null,ariaAtomic:l.booleanish,ariaAutoComplete:null,ariaBusy:l.booleanish,ariaChecked:l.booleanish,ariaColCount:l.number,ariaColIndex:l.number,ariaColSpan:l.number,ariaControls:l.spaceSeparated,ariaCurrent:null,ariaDescribedBy:l.spaceSeparated,ariaDetails:null,ariaDisabled:l.booleanish,ariaDropEffect:l.spaceSeparated,ariaErrorMessage:null,ariaExpanded:l.booleanish,ariaFlowTo:l.spaceSeparated,ariaGrabbed:l.booleanish,ariaHasPopup:null,ariaHidden:l.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l.spaceSeparated,ariaLevel:l.number,ariaLive:null,ariaModal:l.booleanish,ariaMultiLine:l.booleanish,ariaMultiSelectable:l.booleanish,ariaOrientation:null,ariaOwns:l.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:l.number,ariaPressed:l.booleanish,ariaReadOnly:l.booleanish,ariaRelevant:null,ariaRequired:l.booleanish,ariaRoleDescription:l.spaceSeparated,ariaRowCount:l.number,ariaRowIndex:l.number,ariaRowSpan:l.number,ariaSelected:l.booleanish,ariaSetSize:l.number,ariaSort:null,ariaValueMax:l.number,ariaValueMin:l.number,ariaValueNow:l.number,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function c(e,t){return t in e?e[t]:t}function h(e,t){return c(e,t.toLowerCase())}let d=o({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l.commaSeparated,acceptCharset:l.spaceSeparated,accessKey:l.spaceSeparated,action:null,allow:null,allowFullScreen:l.boolean,allowPaymentRequest:l.boolean,allowUserMedia:l.boolean,alt:null,as:null,async:l.boolean,autoCapitalize:null,autoComplete:l.spaceSeparated,autoFocus:l.boolean,autoPlay:l.boolean,blocking:l.spaceSeparated,capture:null,charSet:null,checked:l.boolean,cite:null,className:l.spaceSeparated,cols:l.number,colSpan:null,content:null,contentEditable:l.booleanish,controls:l.boolean,controlsList:l.spaceSeparated,coords:l.number|l.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l.boolean,defer:l.boolean,dir:null,dirName:null,disabled:l.boolean,download:l.overloadedBoolean,draggable:l.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l.boolean,formTarget:null,headers:l.spaceSeparated,height:l.number,hidden:l.overloadedBoolean,high:l.number,href:null,hrefLang:null,htmlFor:l.spaceSeparated,httpEquiv:l.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:l.boolean,inputMode:null,integrity:null,is:null,isMap:l.boolean,itemId:null,itemProp:l.spaceSeparated,itemRef:l.spaceSeparated,itemScope:l.boolean,itemType:l.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l.boolean,low:l.number,manifest:null,max:null,maxLength:l.number,media:null,method:null,min:null,minLength:l.number,multiple:l.boolean,muted:l.boolean,name:null,nonce:null,noModule:l.boolean,noValidate:l.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l.boolean,optimum:l.number,pattern:null,ping:l.spaceSeparated,placeholder:null,playsInline:l.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:l.boolean,referrerPolicy:null,rel:l.spaceSeparated,required:l.boolean,reversed:l.boolean,rows:l.number,rowSpan:l.number,sandbox:l.spaceSeparated,scope:null,scoped:l.boolean,seamless:l.boolean,selected:l.boolean,shadowRootClonable:l.boolean,shadowRootDelegatesFocus:l.boolean,shadowRootMode:null,shape:null,size:l.number,sizes:null,slot:null,span:l.number,spellCheck:l.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:l.number,step:null,style:null,tabIndex:l.number,target:null,title:null,translate:null,type:null,typeMustMatch:l.boolean,useMap:null,value:l.booleanish,width:l.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:l.spaceSeparated,axis:null,background:null,bgColor:null,border:l.number,borderColor:null,bottomMargin:l.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l.boolean,declare:l.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:l.number,leftMargin:l.number,link:null,longDesc:null,lowSrc:null,marginHeight:l.number,marginWidth:l.number,noResize:l.boolean,noHref:l.boolean,noShade:l.boolean,noWrap:l.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:l.number,rules:null,scheme:null,scrolling:l.booleanish,standby:null,summary:null,text:null,topMargin:l.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:l.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l.boolean,disableRemotePlayback:l.boolean,prefix:null,property:null,results:l.number,security:null,unselectable:null},space:"html",transform:h}),p=o({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:l.commaOrSpaceSeparated,accentHeight:l.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:l.number,amplitude:l.number,arabicForm:null,ascent:l.number,attributeName:null,attributeType:null,azimuth:l.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:l.number,by:null,calcMode:null,capHeight:l.number,className:l.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:l.number,diffuseConstant:l.number,direction:null,display:null,dur:null,divisor:l.number,dominantBaseline:null,download:l.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:l.number,enableBackground:null,end:null,event:null,exponent:l.number,externalResourcesRequired:null,fill:null,fillOpacity:l.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:l.commaSeparated,g2:l.commaSeparated,glyphName:l.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:l.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:l.number,horizOriginX:l.number,horizOriginY:l.number,id:null,ideographic:l.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:l.number,k:l.number,k1:l.number,k2:l.number,k3:l.number,k4:l.number,kernelMatrix:l.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:l.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:l.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:l.number,overlineThickness:l.number,paintOrder:null,panose1:null,path:null,pathLength:l.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:l.number,pointsAtY:l.number,pointsAtZ:l.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:l.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:l.commaOrSpaceSeparated,rev:l.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:l.commaOrSpaceSeparated,requiredFeatures:l.commaOrSpaceSeparated,requiredFonts:l.commaOrSpaceSeparated,requiredFormats:l.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:l.number,specularExponent:l.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:l.number,strikethroughThickness:l.number,string:null,stroke:null,strokeDashArray:l.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:l.number,strokeOpacity:l.number,strokeWidth:null,style:null,surfaceScale:l.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:l.commaOrSpaceSeparated,tabIndex:l.number,tableValues:null,target:null,targetX:l.number,targetY:l.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:l.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:l.number,underlineThickness:l.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:l.number,values:null,vAlphabetic:l.number,vMathematical:l.number,vectorEffect:null,vHanging:l.number,vIdeographic:l.number,version:null,vertAdvY:l.number,vertOriginX:l.number,vertOriginY:l.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:l.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:c}),f=o({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),m=o({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:h}),g=o({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),y=i([u,d,f,m,g],"html"),b=i([u,p,f,m,g],"svg")},68088:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,h=1;function d(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function p(){var e={line:c,column:h};return function(t){return t.position=new f(e),y(r),t}}function f(e){this.start=e,this.end={line:c,column:h},this.source=l.source}f.prototype.content=e;var m=[];function g(t){var n=Error(l.source+":"+c+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=h,n.source=e,l.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function b(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return h+=2,d(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}y(r);var k,_=[];for(b(_);k=function(){var e=p(),n=y(i);if(n){if(v(),!y(a))return g("property missing ':'");var r=y(s),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(o),l}}();)!1!==k&&(_.push(k),b(_));return _}},72771:(e,t,n)=>{"use strict";n.d(t,{k5:()=>c});var r=n(33369),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=r.createContext&&r.createContext(i),s=["attr","size","title"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){var r,i,a;r=e,i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e){return t=>r.createElement(h,o({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,u({key:n},t.attr),e(t.child)))}(e.child))}function h(e){var t=t=>{var n,{attr:i,size:a,title:l}=e,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,s),h=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:u(u({color:e.color||t.color},t.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==a?r.createElement(a.Consumer,null,e=>t(e)):t(i)}},73302:(e,t,n)=>{"use strict";let r,i;n.d(t,{mD:()=>tn,Z9:()=>ta,n_:()=>ts,hK:()=>e0,$C:()=>e1,_Z:()=>e8,hd:()=>e7,N8:()=>e9,ZZ:()=>e3,k5:()=>e6});var a,s,o,l,u=n(75565);class c extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}function h(e){}class d extends TransformStream{constructor({onError:e,onRetry:t,onComment:n}={}){let r;super({start(i){r=function(e){if("function"==typeof e)throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=h,onError:n=h,onRetry:r=h,onComment:i}=e,a="",s=!0,o,l="",u="";function d(e){if(""===e)return void(l.length>0&&t({id:o,event:u||void 0,data:l.endsWith(`
|
|
80
|
-
`)?l.slice(0,-1):l}),o=void 0,l="",u="");if(e.startsWith(":")){i&&i(e.slice(e.startsWith(": ")?2:1));return}let n=e.indexOf(":");if(-1!==n){let t=e.slice(0,n),r=" "===e[n+1]?2:1;p(t,e.slice(n+r),e);return}p(e,"",e)}function p(e,t,i){switch(e){case"event":u=t;break;case"data":l=`${l}${t}
|
|
81
|
-
`;break;case"id":o=t.includes("\0")?void 0:t;break;case"retry":/^\d+$/.test(t)?r(parseInt(t,10)):n(new c(`Invalid \`retry\` value: "${t}"`,{type:"invalid-retry",value:t,line:i}));break;default:n(new c(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:"unknown-field",field:e,value:t,line:i}))}}return{feed:function(e){let t=s?e.replace(/^\xEF\xBB\xBF/,""):e,[n,r]=function(e){let t=[],n="",r=0;for(;r<e.length;){let i=e.indexOf("\r",r),a=e.indexOf(`
|
|
82
|
-
`,r),s=-1;if(-1!==i&&-1!==a?s=Math.min(i,a):-1!==i?s=i:-1!==a&&(s=a),-1===s){n=e.slice(r);break}{let n=e.slice(r,s);t.push(n),"\r"===e[(r=s+1)-1]&&e[r]===`
|
|
83
|
-
`&&r++}}return[t,n]}(`${a}${t}`);for(let e of n)d(e);a=r,s=!1},reset:function(e={}){a&&e.consume&&d(a),s=!0,o=void 0,l="",u="",a=""}}}({onEvent:e=>{i.enqueue(e)},onError(t){"terminate"===e?i.error(t):"function"==typeof e&&e(t)},onRetry:t,onComment:n})},transform(e){r.feed(e)}})}}var p=n(9969),f=n(80606);class m{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??p.fd,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,t={path:[],schemaPath:[]}){var n;let r=e._zod.def,i=this.seen.get(e);if(i)return i.count++,t.schemaPath.includes(e)&&(i.cycle=t.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:t.path};this.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let n={...t,schemaPath:[...t.schemaPath,e],path:t.path},i=e._zod.parent;if(i)a.ref=i,this.process(i,n),this.seen.get(i).isParent=!0;else{let t=a.schema;switch(r.type){case"string":{t.type="string";let{minimum:n,maximum:r,format:i,patterns:s,contentEncoding:o}=e._zod.bag;if("number"==typeof n&&(t.minLength=n),"number"==typeof r&&(t.maxLength=r),i&&(t.format=({guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""})[i]??i,""===t.format&&delete t.format),o&&(t.contentEncoding=o),s&&s.size>0){let e=[...s];1===e.length?t.pattern=e[0].source:e.length>1&&(a.schema.allOf=[...e.map(e=>({..."draft-7"===this.target?{type:"string"}:{},pattern:e.source}))])}break}case"number":{let{minimum:n,maximum:r,format:i,multipleOf:a,exclusiveMaximum:s,exclusiveMinimum:o}=e._zod.bag;"string"==typeof i&&i.includes("int")?t.type="integer":t.type="number","number"==typeof o&&(t.exclusiveMinimum=o),"number"==typeof n&&(t.minimum=n,"number"==typeof o&&(o>=n?delete t.minimum:delete t.exclusiveMinimum)),"number"==typeof s&&(t.exclusiveMaximum=s),"number"==typeof r&&(t.maximum=r,"number"==typeof s&&(s<=r?delete t.maximum:delete t.exclusiveMaximum)),"number"==typeof a&&(t.multipleOf=a);break}case"boolean":case"success":t.type="boolean";break;case"bigint":if("throw"===this.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema");break;case"symbol":if("throw"===this.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema");break;case"null":t.type="null";break;case"any":case"unknown":break;case"undefined":if("throw"===this.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema");break;case"void":if("throw"===this.unrepresentable)throw Error("Void cannot be represented in JSON Schema");break;case"never":t.not={};break;case"date":if("throw"===this.unrepresentable)throw Error("Date cannot be represented in JSON Schema");break;case"array":{let{minimum:i,maximum:a}=e._zod.bag;"number"==typeof i&&(t.minItems=i),"number"==typeof a&&(t.maxItems=a),t.type="array",t.items=this.process(r.element,{...n,path:[...n.path,"items"]});break}case"object":{t.type="object",t.properties={};let e=r.shape;for(let r in e)t.properties[r]=this.process(e[r],{...n,path:[...n.path,"properties",r]});let i=new Set([...new Set(Object.keys(e))].filter(e=>{let t=r.shape[e]._zod;return"input"===this.io?void 0===t.optin:void 0===t.optout}));i.size>0&&(t.required=Array.from(i)),r.catchall?._zod.def.type==="never"?t.additionalProperties=!1:r.catchall?r.catchall&&(t.additionalProperties=this.process(r.catchall,{...n,path:[...n.path,"additionalProperties"]})):"output"===this.io&&(t.additionalProperties=!1);break}case"union":t.anyOf=r.options.map((e,t)=>this.process(e,{...n,path:[...n.path,"anyOf",t]}));break;case"intersection":{let e=this.process(r.left,{...n,path:[...n.path,"allOf",0]}),i=this.process(r.right,{...n,path:[...n.path,"allOf",1]}),a=e=>"allOf"in e&&1===Object.keys(e).length;t.allOf=[...a(e)?e.allOf:[e],...a(i)?i.allOf:[i]];break}case"tuple":{t.type="array";let i=r.items.map((e,t)=>this.process(e,{...n,path:[...n.path,"prefixItems",t]}));if("draft-2020-12"===this.target?t.prefixItems=i:t.items=i,r.rest){let e=this.process(r.rest,{...n,path:[...n.path,"items"]});"draft-2020-12"===this.target?t.items=e:t.additionalItems=e}r.rest&&(t.items=this.process(r.rest,{...n,path:[...n.path,"items"]}));let{minimum:a,maximum:s}=e._zod.bag;"number"==typeof a&&(t.minItems=a),"number"==typeof s&&(t.maxItems=s);break}case"record":t.type="object",t.propertyNames=this.process(r.keyType,{...n,path:[...n.path,"propertyNames"]}),t.additionalProperties=this.process(r.valueType,{...n,path:[...n.path,"additionalProperties"]});break;case"map":if("throw"===this.unrepresentable)throw Error("Map cannot be represented in JSON Schema");break;case"set":if("throw"===this.unrepresentable)throw Error("Set cannot be represented in JSON Schema");break;case"enum":{let e=(0,f.w5)(r.entries);e.every(e=>"number"==typeof e)&&(t.type="number"),e.every(e=>"string"==typeof e)&&(t.type="string"),t.enum=e;break}case"literal":{let e=[];for(let t of r.values)if(void 0===t){if("throw"===this.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof t)if("throw"===this.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else e.push(Number(t));else e.push(t);if(0===e.length);else if(1===e.length){let n=e[0];t.type=null===n?"null":typeof n,t.const=n}else e.every(e=>"number"==typeof e)&&(t.type="number"),e.every(e=>"string"==typeof e)&&(t.type="string"),e.every(e=>"boolean"==typeof e)&&(t.type="string"),e.every(e=>null===e)&&(t.type="null"),t.enum=e;break}case"file":{let n={type:"string",format:"binary",contentEncoding:"binary"},{minimum:r,maximum:i,mime:a}=e._zod.bag;void 0!==r&&(n.minLength=r),void 0!==i&&(n.maxLength=i),a?1===a.length?(n.contentMediaType=a[0],Object.assign(t,n)):t.anyOf=a.map(e=>({...n,contentMediaType:e})):Object.assign(t,n);break}case"transform":if("throw"===this.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema");break;case"nullable":t.anyOf=[this.process(r.innerType,n),{type:"null"}];break;case"nonoptional":case"promise":case"optional":this.process(r.innerType,n),a.ref=r.innerType;break;case"default":this.process(r.innerType,n),a.ref=r.innerType,t.default=JSON.parse(JSON.stringify(r.defaultValue));break;case"prefault":this.process(r.innerType,n),a.ref=r.innerType,"input"===this.io&&(t._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break;case"catch":{let e;this.process(r.innerType,n),a.ref=r.innerType;try{e=r.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}t.default=e;break}case"nan":if("throw"===this.unrepresentable)throw Error("NaN cannot be represented in JSON Schema");break;case"template_literal":{let n=e._zod.pattern;if(!n)throw Error("Pattern not found in template literal");t.type="string",t.pattern=n.source;break}case"pipe":{let e="input"===this.io?"transform"===r.in._zod.def.type?r.out:r.in:r.out;this.process(e,n),a.ref=e;break}case"readonly":this.process(r.innerType,n),a.ref=r.innerType,t.readOnly=!0;break;case"lazy":{let t=e._zod.innerType;this.process(t,n),a.ref=t;break}case"custom":if("throw"===this.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")}}}let o=this.metadataRegistry.get(e);return o&&Object.assign(a.schema,o),"input"===this.io&&function e(t,n){let r=n??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;switch(i.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":case"custom":case"success":case"catch":return!1;case"array":return e(i.element,r);case"object":for(let t in i.shape)if(e(i.shape[t],r))return!0;return!1;case"union":for(let t of i.options)if(e(t,r))return!0;return!1;case"intersection":return e(i.left,r)||e(i.right,r);case"tuple":for(let t of i.items)if(e(t,r))return!0;if(i.rest&&e(i.rest,r))return!0;return!1;case"record":case"map":return e(i.keyType,r)||e(i.valueType,r);case"set":return e(i.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":case"default":case"prefault":return e(i.innerType,r);case"lazy":return e(i.getter(),r);case"transform":return!0;case"pipe":return e(i.in,r)||e(i.out,r)}throw Error(`Unknown schema type: ${i.type}`)}(e)&&(delete a.schema.examples,delete a.schema.default),"input"===this.io&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,t){let n={cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0},r=this.seen.get(e);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let i=e=>{let t="draft-2020-12"===this.target?"$defs":"definitions";if(n.external){let r=n.external.registry.get(e[0])?.id,i=n.external.uri??(e=>e);if(r)return{ref:i(r)};let a=e[1].defId??e[1].schema.id??`schema${this.counter++}`;return e[1].defId=a,{defId:a,ref:`${i("__shared")}#/${t}/${a}`}}if(e[1]===r)return{ref:"#"};let i=`#/${t}/`,a=e[1].schema.id??`__schema${this.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if("throw"===n.cycles)for(let e of this.seen.entries()){let t=e[1];if(t.cycle)throw Error(`Cycle detected: #/${t.cycle?.join("/")}/<root>
|
|
84
|
-
|
|
85
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let t of this.seen.entries()){let r=t[1];if(e===t[0]){a(t);continue}if(n.external){let r=n.external.registry.get(t[0])?.id;if(e!==t[0]&&r){a(t);continue}}if(this.metadataRegistry.get(t[0])?.id||r.cycle||r.count>1&&"ref"===n.reused){a(t);continue}}let s=(e,t)=>{let n=this.seen.get(e),r=n.def??n.schema,i={...r};if(null===n.ref)return;let a=n.ref;if(n.ref=null,a){s(a,t);let e=this.seen.get(a).schema;e.$ref&&"draft-7"===t.target?(r.allOf=r.allOf??[],r.allOf.push(e)):(Object.assign(r,e),Object.assign(r,i))}n.isParent||this.override({zodSchema:e,jsonSchema:r,path:n.path??[]})};for(let e of[...this.seen.entries()].reverse())s(e[0],{target:this.target});let o={};if("draft-2020-12"===this.target?o.$schema="https://json-schema.org/draft/2020-12/schema":"draft-7"===this.target?o.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),n.external?.uri){let t=n.external.registry.get(e)?.id;if(!t)throw Error("Schema is missing an `id` property");o.$id=n.external.uri(t)}Object.assign(o,r.def);let l=n.external?.defs??{};for(let e of this.seen.entries()){let t=e[1];t.def&&t.defId&&(l[t.defId]=t.def)}n.external||Object.keys(l).length>0&&("draft-2020-12"===this.target?o.$defs=l:o.definitions=l);try{return JSON.parse(JSON.stringify(o))}catch(e){throw Error("Error converting schema to JSON.")}}}var g=n(74692);let y=Symbol("Let zodToJsonSchema decide on which parser to use"),b={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"};!function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(a||(a={})),(s||(s={})).mergeShapes=(e,t)=>({...e,...t});let v=a.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),k=e=>{switch(typeof e){case"undefined":return v.undefined;case"string":return v.string;case"number":return Number.isNaN(e)?v.nan:v.number;case"boolean":return v.boolean;case"function":return v.function;case"bigint":return v.bigint;case"symbol":return v.symbol;case"object":if(Array.isArray(e))return v.array;if(null===e)return v.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return v.promise;if("undefined"!=typeof Map&&e instanceof Map)return v.map;if("undefined"!=typeof Set&&e instanceof Set)return v.set;if("undefined"!=typeof Date&&e instanceof Date)return v.date;return v.object;default:return v.unknown}},_=a.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class x extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof x))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,a.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}x.create=e=>new x(e);let w=(e,t)=>{let n;switch(e.code){case _.invalid_type:n=e.received===v.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case _.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,a.jsonStringifyReplacer)}`;break;case _.unrecognized_keys:n=`Unrecognized key(s) in object: ${a.joinValues(e.keys,", ")}`;break;case _.invalid_union:n="Invalid input";break;case _.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${a.joinValues(e.options)}`;break;case _.invalid_enum_value:n=`Invalid enum value. Expected ${a.joinValues(e.options)}, received '${e.received}'`;break;case _.invalid_arguments:n="Invalid function arguments";break;case _.invalid_return_type:n="Invalid function return type";break;case _.invalid_date:n="Invalid date";break;case _.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:a.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case _.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case _.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case _.custom:n="Invalid input";break;case _.invalid_intersection_types:n="Intersection results could not be merged";break;case _.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case _.not_finite:n="Number must be finite";break;default:n=t.defaultError,a.assertNever(e)}return{message:n}};!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(o||(o={}));let S=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let o="";for(let e of r.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}};function A(e,t){let n=S({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,w,void 0].filter(e=>!!e)});e.common.issues.push(n)}class T{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return C;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return T.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return C;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let C=Object.freeze({status:"aborted"}),P=e=>({status:"dirty",value:e}),E=e=>({status:"valid",value:e}),I=e=>"undefined"!=typeof Promise&&e instanceof Promise;class O{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let N=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new x(e.common.issues);return this._error=t,this._error}}};function z(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??r??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??n??i.defaultError}},description:i}}class R{get description(){return this._def.description}_getType(e){return k(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:k(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new T,ctx:{common:e.parent.common,data:e.data,parsedType:k(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(I(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:k(e)},r=this._parseSync({data:e,path:n.path,parent:n});return N(n,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:k(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:t});return"valid"===n.status?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:k(e)},r=this._parse({data:e,path:n.path,parent:n});return N(n,await (I(r)?r:Promise.resolve(r)))}refine(e,t){return this._refinement((n,r)=>{let i=e(n),a=()=>r.addIssue({code:_.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(n):t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new eC({schema:this,typeName:l.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eP.create(this,this._def)}nullable(){return eE.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ec.create(this)}promise(){return eT.create(this,this._def)}or(e){return ed.create([this,e],this._def)}and(e){return em.create(this,e,this._def)}transform(e){return new eC({...z(this._def),schema:this,typeName:l.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eI({...z(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:l.ZodDefault})}brand(){return new ez({typeName:l.ZodBranded,type:this,...z(this._def)})}catch(e){return new eO({...z(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:l.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eR.create(this,e)}readonly(){return eL.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let L=/^c[^\s-]{8,}$/i,$=/^[0-9a-z]+$/,j=/^[0-9A-HJKMNP-TV-Z]{26}$/i,M=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,D=/^[a-z0-9_-]{21}$/i,B=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Z=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,F=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,U=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,H=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,G=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,V=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,W=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,J="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Q=RegExp(`^${J}$`);function K(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}class X extends R{_parse(e){var t,n,i,s;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==v.string){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.string,received:t.parsedType}),C}let l=new T;for(let u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(A(o=this._getOrReturnCtx(e,o),{code:_.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),l.dirty());else if("max"===u.kind)e.data.length>u.value&&(A(o=this._getOrReturnCtx(e,o),{code:_.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),l.dirty());else if("length"===u.kind){let t=e.data.length>u.value,n=e.data.length<u.value;(t||n)&&(o=this._getOrReturnCtx(e,o),t?A(o,{code:_.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):n&&A(o,{code:_.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),l.dirty())}else if("email"===u.kind)F.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"email",code:_.invalid_string,message:u.message}),l.dirty());else if("emoji"===u.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:_.invalid_string,message:u.message}),l.dirty());else if("uuid"===u.kind)M.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:_.invalid_string,message:u.message}),l.dirty());else if("nanoid"===u.kind)D.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:_.invalid_string,message:u.message}),l.dirty());else if("cuid"===u.kind)L.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:_.invalid_string,message:u.message}),l.dirty());else if("cuid2"===u.kind)$.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:_.invalid_string,message:u.message}),l.dirty());else if("ulid"===u.kind)j.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:_.invalid_string,message:u.message}),l.dirty());else if("url"===u.kind)try{new URL(e.data)}catch{A(o=this._getOrReturnCtx(e,o),{validation:"url",code:_.invalid_string,message:u.message}),l.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"regex",code:_.invalid_string,message:u.message}),l.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(A(o=this._getOrReturnCtx(e,o),{code:_.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),l.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(A(o=this._getOrReturnCtx(e,o),{code:_.invalid_string,validation:{startsWith:u.value},message:u.message}),l.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(A(o=this._getOrReturnCtx(e,o),{code:_.invalid_string,validation:{endsWith:u.value},message:u.message}),l.dirty()):"datetime"===u.kind?(function(e){let t=`${J}T${K(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)})(u).test(e.data)||(A(o=this._getOrReturnCtx(e,o),{code:_.invalid_string,validation:"datetime",message:u.message}),l.dirty()):"date"===u.kind?Q.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{code:_.invalid_string,validation:"date",message:u.message}),l.dirty()):"time"===u.kind?RegExp(`^${K(u)}$`).test(e.data)||(A(o=this._getOrReturnCtx(e,o),{code:_.invalid_string,validation:"time",message:u.message}),l.dirty()):"duration"===u.kind?Z.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"duration",code:_.invalid_string,message:u.message}),l.dirty()):"ip"===u.kind?(t=e.data,!(("v4"===(n=u.version)||!n)&&U.test(t)||("v6"===n||!n)&&q.test(t))&&1&&(A(o=this._getOrReturnCtx(e,o),{validation:"ip",code:_.invalid_string,message:u.message}),l.dirty())):"jwt"===u.kind?!function(e,t){if(!B.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,u.alg)&&(A(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:_.invalid_string,message:u.message}),l.dirty()):"cidr"===u.kind?(i=e.data,!(("v4"===(s=u.version)||!s)&&H.test(i)||("v6"===s||!s)&&G.test(i))&&1&&(A(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:_.invalid_string,message:u.message}),l.dirty())):"base64"===u.kind?V.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"base64",code:_.invalid_string,message:u.message}),l.dirty()):"base64url"===u.kind?W.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:_.invalid_string,message:u.message}),l.dirty()):a.assertNever(u);return{status:l.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:_.invalid_string,...o.errToObj(n)})}_addCheck(e){return new X({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...o.errToObj(e)})}url(e){return this._addCheck({kind:"url",...o.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...o.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...o.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...o.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...o.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...o.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...o.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...o.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...o.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...o.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...o.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...o.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...o.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...o.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...o.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...o.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...o.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...o.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...o.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...o.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...o.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...o.errToObj(t)})}nonempty(e){return this.min(1,o.errToObj(e))}trim(){return new X({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new X({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new X({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}X.create=e=>new X({checks:[],typeName:l.ZodString,coerce:e?.coerce??!1,...z(e)});class Y extends R{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==v.number){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.number,received:t.parsedType}),C}let n=new T;for(let r of this._def.checks)"int"===r.kind?a.isInteger(e.data)||(A(t=this._getOrReturnCtx(e,t),{code:_.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(A(t=this._getOrReturnCtx(e,t),{code:_.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(A(t=this._getOrReturnCtx(e,t),{code:_.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,r.value)&&(A(t=this._getOrReturnCtx(e,t),{code:_.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(A(t=this._getOrReturnCtx(e,t),{code:_.not_finite,message:r.message}),n.dirty()):a.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,n,r){return new Y({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.toString(r)}]})}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:o.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:o.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&a.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;else"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}}Y.create=e=>new Y({checks:[],typeName:l.ZodNumber,coerce:e?.coerce||!1,...z(e)});class ee extends R{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==v.bigint)return this._getInvalidInput(e);let n=new T;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(A(t=this._getOrReturnCtx(e,t),{code:_.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(A(t=this._getOrReturnCtx(e,t),{code:_.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(A(t=this._getOrReturnCtx(e,t),{code:_.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):a.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.bigint,received:t.parsedType}),C}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,n,r){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.toString(r)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ee.create=e=>new ee({checks:[],typeName:l.ZodBigInt,coerce:e?.coerce??!1,...z(e)});class et extends R{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==v.boolean){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.boolean,received:t.parsedType}),C}return E(e.data)}}et.create=e=>new et({typeName:l.ZodBoolean,coerce:e?.coerce||!1,...z(e)});class en extends R{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==v.date){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.date,received:t.parsedType}),C}if(Number.isNaN(e.data.getTime()))return A(this._getOrReturnCtx(e),{code:_.invalid_date}),C;let n=new T;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(A(t=this._getOrReturnCtx(e,t),{code:_.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(A(t=this._getOrReturnCtx(e,t),{code:_.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):a.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new en({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:o.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:o.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}en.create=e=>new en({checks:[],coerce:e?.coerce||!1,typeName:l.ZodDate,...z(e)});class er extends R{_parse(e){if(this._getType(e)!==v.symbol){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.symbol,received:t.parsedType}),C}return E(e.data)}}er.create=e=>new er({typeName:l.ZodSymbol,...z(e)});class ei extends R{_parse(e){if(this._getType(e)!==v.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.undefined,received:t.parsedType}),C}return E(e.data)}}ei.create=e=>new ei({typeName:l.ZodUndefined,...z(e)});class ea extends R{_parse(e){if(this._getType(e)!==v.null){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.null,received:t.parsedType}),C}return E(e.data)}}ea.create=e=>new ea({typeName:l.ZodNull,...z(e)});class es extends R{constructor(){super(...arguments),this._any=!0}_parse(e){return E(e.data)}}es.create=e=>new es({typeName:l.ZodAny,...z(e)});class eo extends R{constructor(){super(...arguments),this._unknown=!0}_parse(e){return E(e.data)}}eo.create=e=>new eo({typeName:l.ZodUnknown,...z(e)});class el extends R{_parse(e){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.never,received:t.parsedType}),C}}el.create=e=>new el({typeName:l.ZodNever,...z(e)});class eu extends R{_parse(e){if(this._getType(e)!==v.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.void,received:t.parsedType}),C}return E(e.data)}}eu.create=e=>new eu({typeName:l.ZodVoid,...z(e)});class ec extends R{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==v.array)return A(t,{code:_.invalid_type,expected:v.array,received:t.parsedType}),C;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(A(t,{code:e?_.too_big:_.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(A(t,{code:_.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(A(t,{code:_.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new O(t,e,t.path,n)))).then(e=>T.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new O(t,e,t.path,n)));return T.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new ec({...this._def,minLength:{value:e,message:o.toString(t)}})}max(e,t){return new ec({...this._def,maxLength:{value:e,message:o.toString(t)}})}length(e,t){return new ec({...this._def,exactLength:{value:e,message:o.toString(t)}})}nonempty(e){return this.min(1,e)}}ec.create=(e,t)=>new ec({type:e,minLength:null,maxLength:null,exactLength:null,typeName:l.ZodArray,...z(t)});class eh extends R{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=a.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==v.object){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.object,received:t.parsedType}),C}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof el&&"strip"===this._def.unknownKeys))for(let e in n.data)i.includes(e)||a.push(e);let s=[];for(let e of i){let t=r[e],i=n.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new O(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof el){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(A(n,{code:_.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new O(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>T.mergeObjectSync(t,e)):T.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return o.errToObj,new eh({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{let r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:o.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new eh({...this._def,unknownKeys:"strip"})}passthrough(){return new eh({...this._def,unknownKeys:"passthrough"})}extend(e){return new eh({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new eh({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:l.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new eh({...this._def,catchall:e})}pick(e){let t={};for(let n of a.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new eh({...this._def,shape:()=>t})}omit(e){let t={};for(let n of a.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new eh({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof eh){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=eP.create(e(i))}return new eh({...t._def,shape:()=>n})}if(t instanceof ec)return new ec({...t._def,type:e(t.element)});if(t instanceof eP)return eP.create(e(t.unwrap()));if(t instanceof eE)return eE.create(e(t.unwrap()));if(t instanceof eg)return eg.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let n of a.objectKeys(this.shape)){let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new eh({...this._def,shape:()=>t})}required(e){let t={};for(let n of a.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof eP;)e=e._def.innerType;t[n]=e}return new eh({...this._def,shape:()=>t})}keyof(){return ew(a.objectKeys(this.shape))}}eh.create=(e,t)=>new eh({shape:()=>e,unknownKeys:"strip",catchall:el.create(),typeName:l.ZodObject,...z(t)}),eh.strictCreate=(e,t)=>new eh({shape:()=>e,unknownKeys:"strict",catchall:el.create(),typeName:l.ZodObject,...z(t)}),eh.lazycreate=(e,t)=>new eh({shape:e,unknownKeys:"strip",catchall:el.create(),typeName:l.ZodObject,...z(t)});class ed extends R{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new x(e.ctx.common.issues));return A(t,{code:_.invalid_union,unionErrors:n}),C});{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new x(e));return A(t,{code:_.invalid_union,unionErrors:i}),C}}get options(){return this._def.options}}ed.create=(e,t)=>new ed({options:e,typeName:l.ZodUnion,...z(t)});let ep=e=>{if(e instanceof e_)return ep(e.schema);if(e instanceof eC)return ep(e.innerType());if(e instanceof ex)return[e.value];if(e instanceof eS)return e.options;if(e instanceof eA)return a.objectValues(e.enum);else if(e instanceof eI)return ep(e._def.innerType);else if(e instanceof ei)return[void 0];else if(e instanceof ea)return[null];else if(e instanceof eP)return[void 0,...ep(e.unwrap())];else if(e instanceof eE)return[null,...ep(e.unwrap())];else if(e instanceof ez)return ep(e.unwrap());else if(e instanceof eL)return ep(e.unwrap());else if(e instanceof eO)return ep(e._def.innerType);else return[]};class ef extends R{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==v.object)return A(t,{code:_.invalid_type,expected:v.object,received:t.parsedType}),C;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(A(t,{code:_.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),C)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=ep(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new ef({typeName:l.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...z(n)})}}class em extends R{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if("aborted"===e.status||"aborted"===r.status)return C;let i=function e(t,n){let r=k(t),i=k(n);if(t===n)return{valid:!0,data:t};if(r===v.object&&i===v.object){let r=a.objectKeys(n),i=a.objectKeys(t).filter(e=>-1!==r.indexOf(e)),s={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};s[r]=i.data}return{valid:!0,data:s}}if(r===v.array&&i===v.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}if(r===v.date&&i===v.date&&+t==+n)return{valid:!0,data:t};return{valid:!1}}(e.value,r.value);return i.valid?(("dirty"===e.status||"dirty"===r.status)&&t.dirty(),{status:t.value,value:i.data}):(A(n,{code:_.invalid_intersection_types}),C)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}em.create=(e,t,n)=>new em({left:e,right:t,typeName:l.ZodIntersection,...z(n)});class eg extends R{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==v.array)return A(n,{code:_.invalid_type,expected:v.array,received:n.parsedType}),C;if(n.data.length<this._def.items.length)return A(n,{code:_.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),C;!this._def.rest&&n.data.length>this._def.items.length&&(A(n,{code:_.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new O(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>T.mergeArray(t,e)):T.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new eg({...this._def,rest:e})}}eg.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eg({items:e,typeName:l.ZodTuple,rest:null,...z(t)})};class ey extends R{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==v.object)return A(n,{code:_.invalid_type,expected:v.object,received:n.parsedType}),C;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new O(n,e,n.path,e)),value:a._parse(new O(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?T.mergeObjectAsync(t,r):T.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new ey(t instanceof R?{keyType:e,valueType:t,typeName:l.ZodRecord,...z(n)}:{keyType:X.create(),valueType:e,typeName:l.ZodRecord,...z(t)})}}class eb extends R{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==v.map)return A(n,{code:_.invalid_type,expected:v.map,received:n.parsedType}),C;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new O(n,e,n.path,[a,"key"])),value:i._parse(new O(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return C;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return C;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}eb.create=(e,t,n)=>new eb({valueType:t,keyType:e,typeName:l.ZodMap,...z(n)});class ev extends R{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==v.set)return A(n,{code:_.invalid_type,expected:v.set,received:n.parsedType}),C;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(A(n,{code:_.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(A(n,{code:_.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return C;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let s=[...n.data.values()].map((e,t)=>i._parse(new O(n,e,n.path,t)));return n.common.async?Promise.all(s).then(e=>a(e)):a(s)}min(e,t){return new ev({...this._def,minSize:{value:e,message:o.toString(t)}})}max(e,t){return new ev({...this._def,maxSize:{value:e,message:o.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ev.create=(e,t)=>new ev({valueType:e,minSize:null,maxSize:null,typeName:l.ZodSet,...z(t)});class ek extends R{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==v.function)return A(t,{code:_.invalid_type,expected:v.function,received:t.parsedType}),C;function n(e,n){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,w,w].filter(e=>!!e),issueData:{code:_.invalid_arguments,argumentsError:n}})}function r(e,n){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,w,w].filter(e=>!!e),issueData:{code:_.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof eT){let e=this;return E(async function(...t){let s=new x([]),o=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(n(t,e)),s}),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw s.addIssue(r(l,e)),s})})}{let e=this;return E(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new x([n(t,s.error)]);let o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,i);if(!l.success)throw new x([r(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ek({...this._def,args:eg.create(e).rest(eo.create())})}returns(e){return new ek({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new ek({args:e||eg.create([]).rest(eo.create()),returns:t||eo.create(),typeName:l.ZodFunction,...z(n)})}}class e_ extends R{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}e_.create=(e,t)=>new e_({getter:e,typeName:l.ZodLazy,...z(t)});class ex extends R{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return A(t,{received:t.data,code:_.invalid_literal,expected:this._def.value}),C}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ew(e,t){return new eS({values:e,typeName:l.ZodEnum,...z(t)})}ex.create=(e,t)=>new ex({value:e,typeName:l.ZodLiteral,...z(t)});class eS extends R{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return A(t,{expected:a.joinValues(n),received:t.parsedType,code:_.invalid_type}),C}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return A(t,{received:t.data,code:_.invalid_enum_value,options:n}),C}return E(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eS.create(e,{...this._def,...t})}exclude(e,t=this._def){return eS.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eS.create=ew;class eA extends R{_parse(e){let t=a.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==v.string&&n.parsedType!==v.number){let e=a.objectValues(t);return A(n,{expected:a.joinValues(e),received:n.parsedType,code:_.invalid_type}),C}if(this._cache||(this._cache=new Set(a.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=a.objectValues(t);return A(n,{received:n.data,code:_.invalid_enum_value,options:e}),C}return E(e.data)}get enum(){return this._def.values}}eA.create=(e,t)=>new eA({values:e,typeName:l.ZodNativeEnum,...z(t)});class eT extends R{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==v.promise&&!1===t.common.async?(A(t,{code:_.invalid_type,expected:v.promise,received:t.parsedType}),C):E((t.parsedType===v.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eT.create=(e,t)=>new eT({type:e,typeName:l.ZodPromise,...z(t)});class eC extends R{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===l.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{A(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return C;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?C:"dirty"===r.status||"dirty"===t.value?P(r.value):r});{if("aborted"===t.value)return C;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?C:"dirty"===r.status||"dirty"===t.value?P(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?C:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?C:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type)if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>"valid"!==e.status?C:Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if("valid"!==e.status)return C;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}a.assertNever(r)}}eC.create=(e,t,n)=>new eC({schema:e,typeName:l.ZodEffects,effect:t,...z(n)}),eC.createWithPreprocess=(e,t,n)=>new eC({schema:t,effect:{type:"preprocess",transform:e},typeName:l.ZodEffects,...z(n)});class eP extends R{_parse(e){return this._getType(e)===v.undefined?E(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eP.create=(e,t)=>new eP({innerType:e,typeName:l.ZodOptional,...z(t)});class eE extends R{_parse(e){return this._getType(e)===v.null?E(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eE.create=(e,t)=>new eE({innerType:e,typeName:l.ZodNullable,...z(t)});class eI extends R{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===v.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eI.create=(e,t)=>new eI({innerType:e,typeName:l.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...z(t)});class eO extends R{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return I(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new x(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new x(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}eO.create=(e,t)=>new eO({innerType:e,typeName:l.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...z(t)});class eN extends R{_parse(e){if(this._getType(e)!==v.nan){let t=this._getOrReturnCtx(e);return A(t,{code:_.invalid_type,expected:v.nan,received:t.parsedType}),C}return{status:"valid",value:e.data}}}eN.create=e=>new eN({typeName:l.ZodNaN,...z(e)}),Symbol("zod_brand");class ez extends R{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eR extends R{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),P(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new eR({in:e,out:t,typeName:l.ZodPipeline})}}class eL extends R{_parse(e){let t=this._def.innerType._parse(e),n=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return I(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}eL.create=(e,t)=>new eL({innerType:e,typeName:l.ZodReadonly,...z(t)}),eh.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(l||(l={})),X.create,Y.create,eN.create,ee.create,et.create,en.create,er.create,ei.create,ea.create,es.create,eo.create,el.create,eu.create,ec.create,eh.create,eh.strictCreate,ed.create,ef.create,em.create,eg.create,ey.create,eb.create,ev.create,ek.create,e_.create,ex.create,eS.create,eA.create,eT.create,eC.create,eP.create,eE.create,eC.createWithPreprocess,eR.create;let e$=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")};function ej(e){if("openAi"!==e.target)return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:"relative"===e.$refStrategy?e$(t,e.currentPath):t.join("/")}}function eM(e,t,n,r){r?.errorMessages&&n&&(e.errorMessage={...e.errorMessage,[t]:n})}function eD(e,t,n,r,i){e[t]=n,eM(e,t,r,i)}function eB(e,t){return eK(e.type._def,t)}let eZ={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===i&&(i=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),i),ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function eF(e,t){let n={type:"string"};if(e.checks)for(let r of e.checks)switch(r.kind){case"min":eD(n,"minLength","number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,r.message,t);break;case"max":eD(n,"maxLength","number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case"email":switch(t.emailStrategy){case"format:email":eq(n,"email",r.message,t);break;case"format:idn-email":eq(n,"idn-email",r.message,t);break;case"pattern:zod":eG(n,eZ.email,r.message,t)}break;case"url":eq(n,"uri",r.message,t);break;case"uuid":eq(n,"uuid",r.message,t);break;case"regex":eG(n,r.regex,r.message,t);break;case"cuid":eG(n,eZ.cuid,r.message,t);break;case"cuid2":eG(n,eZ.cuid2,r.message,t);break;case"startsWith":eG(n,RegExp(`^${eU(r.value,t)}`),r.message,t);break;case"endsWith":eG(n,RegExp(`${eU(r.value,t)}$`),r.message,t);break;case"datetime":eq(n,"date-time",r.message,t);break;case"date":eq(n,"date",r.message,t);break;case"time":eq(n,"time",r.message,t);break;case"duration":eq(n,"duration",r.message,t);break;case"length":eD(n,"minLength","number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,r.message,t),eD(n,"maxLength","number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case"includes":eG(n,RegExp(eU(r.value,t)),r.message,t);break;case"ip":"v6"!==r.version&&eq(n,"ipv4",r.message,t),"v4"!==r.version&&eq(n,"ipv6",r.message,t);break;case"base64url":eG(n,eZ.base64url,r.message,t);break;case"jwt":eG(n,eZ.jwt,r.message,t);break;case"cidr":"v6"!==r.version&&eG(n,eZ.ipv4Cidr,r.message,t),"v4"!==r.version&&eG(n,eZ.ipv6Cidr,r.message,t);break;case"emoji":eG(n,eZ.emoji(),r.message,t);break;case"ulid":eG(n,eZ.ulid,r.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":eq(n,"binary",r.message,t);break;case"contentEncoding:base64":eD(n,"contentEncoding","base64",r.message,t);break;case"pattern:zod":eG(n,eZ.base64,r.message,t)}break;case"nanoid":eG(n,eZ.nanoid,r.message,t)}return n}function eU(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let n=0;n<e.length;n++)eH.has(e[n])||(t+="\\"),t+=e[n];return t}(e):e}let eH=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function eq(e,t,n,r){e.format||e.anyOf?.some(e=>e.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&r.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):eD(e,"format",t,n,r)}function eG(e,t,n,r){e.pattern||e.allOf?.some(e=>e.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&r.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.allOf.push({pattern:eV(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):eD(e,"pattern",eV(t,r),n,r)}function eV(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},r=n.i?e.source.toLowerCase():e.source,i="",a=!1,s=!1,o=!1;for(let e=0;e<r.length;e++){if(a){i+=r[e],a=!1;continue}if(n.i){if(s){if(r[e].match(/[a-z]/)){o?(i+=r[e],i+=`${r[e-2]}-${r[e]}`.toUpperCase(),o=!1):"-"===r[e+1]&&r[e+2]?.match(/[a-z]/)?(i+=r[e],o=!0):i+=`${r[e]}${r[e].toUpperCase()}`;continue}}else if(r[e].match(/[a-z]/)){i+=`[${r[e]}${r[e].toUpperCase()}]`;continue}}if(n.m){if("^"===r[e]){i+=`(^|(?<=[\r
|
|
86
|
-
]))`;continue}else if("$"===r[e]){i+=`($|(?=[\r
|
|
87
|
-
]))`;continue}}if(n.s&&"."===r[e]){i+=s?`${r[e]}\r
|
|
88
|
-
`:`[${r[e]}\r
|
|
89
|
-
]`;continue}i+=r[e],"\\"===r[e]?a=!0:s&&"]"===r[e]?s=!1:s||"["!==r[e]||(s=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}function eW(e,t){if("openAi"===t.target&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),"openApi3"===t.target&&e.keyType?._def.typeName===l.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((n,r)=>({...n,[r]:eK(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",r]})??ej(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let n={type:"object",additionalProperties:eK(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if("openApi3"===t.target)return n;if(e.keyType?._def.typeName===l.ZodString&&e.keyType._def.checks?.length){let{type:r,...i}=eF(e.keyType._def,t);return{...n,propertyNames:i}}if(e.keyType?._def.typeName===l.ZodEnum)return{...n,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===l.ZodBranded&&e.keyType._def.type._def.typeName===l.ZodString&&e.keyType._def.type._def.checks?.length){let{type:r,...i}=eB(e.keyType._def,t);return{...n,propertyNames:i}}return n}let eJ={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},eQ=(e,t)=>{let n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,n)=>eK(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0));return n.length?{anyOf:n}:void 0};function eK(e,t,n=!1){let r=t.seen.get(e);if(t.override){let i=t.override?.(e,t,r,n);if(i!==y)return i}if(r&&!n){let e=eX(r,t);if(void 0!==e)return e}let i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);let a=((e,t,n)=>{switch(t){case l.ZodString:return eF(e,n);case l.ZodNumber:var r,i,a,s,o,u,c,h,d,p=e,f=n;let m={type:"number"};if(!p.checks)return m;for(let e of p.checks)switch(e.kind){case"int":m.type="integer",eM(m,"type",e.message,f);break;case"min":"jsonSchema7"===f.target?e.inclusive?eD(m,"minimum",e.value,e.message,f):eD(m,"exclusiveMinimum",e.value,e.message,f):(e.inclusive||(m.exclusiveMinimum=!0),eD(m,"minimum",e.value,e.message,f));break;case"max":"jsonSchema7"===f.target?e.inclusive?eD(m,"maximum",e.value,e.message,f):eD(m,"exclusiveMaximum",e.value,e.message,f):(e.inclusive||(m.exclusiveMaximum=!0),eD(m,"maximum",e.value,e.message,f));break;case"multipleOf":eD(m,"multipleOf",e.value,e.message,f)}return m;case l.ZodObject:return function(e,t){let n="openAi"===t.target,r={type:"object",properties:{}},i=[],a=e.shape();for(let e in a){let s=a[e];if(void 0===s||void 0===s._def)continue;let o=function(e){try{return e.isOptional()}catch{return!0}}(s);o&&n&&("ZodOptional"===s._def.typeName&&(s=s._def.innerType),s.isNullable()||(s=s.nullable()),o=!1);let l=eK(s._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==l&&(r.properties[e]=l,o||i.push(e))}i.length&&(r.required=i);let s=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return eK(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==s&&(r.additionalProperties=s),r}(e,n);case l.ZodBigInt:var g=e,y=n;let b={type:"integer",format:"int64"};if(!g.checks)return b;for(let e of g.checks)switch(e.kind){case"min":"jsonSchema7"===y.target?e.inclusive?eD(b,"minimum",e.value,e.message,y):eD(b,"exclusiveMinimum",e.value,e.message,y):(e.inclusive||(b.exclusiveMinimum=!0),eD(b,"minimum",e.value,e.message,y));break;case"max":"jsonSchema7"===y.target?e.inclusive?eD(b,"maximum",e.value,e.message,y):eD(b,"exclusiveMaximum",e.value,e.message,y):(e.inclusive||(b.exclusiveMaximum=!0),eD(b,"maximum",e.value,e.message,y));break;case"multipleOf":eD(b,"multipleOf",e.value,e.message,y)}return b;case l.ZodBoolean:return{type:"boolean"};case l.ZodDate:return function e(t,n,r){let i=r??n.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((r,i)=>e(t,n,r))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var a=t,s=n;let o={type:"integer",format:"unix-time"};if("openApi3"===s.target)return o;for(let e of a.checks)switch(e.kind){case"min":eD(o,"minimum",e.value,e.message,s);break;case"max":eD(o,"maximum",e.value,e.message,s)}return o}}(e,n);case l.ZodUndefined:return{not:ej(n)};case l.ZodNull:return"openApi3"===n.target?{enum:["null"],nullable:!0}:{type:"null"};case l.ZodArray:var v=e,k=n;let _={type:"array"};return v.type?._def&&v.type?._def?.typeName!==l.ZodAny&&(_.items=eK(v.type._def,{...k,currentPath:[...k.currentPath,"items"]})),v.minLength&&eD(_,"minItems",v.minLength.value,v.minLength.message,k),v.maxLength&&eD(_,"maxItems",v.maxLength.value,v.maxLength.message,k),v.exactLength&&(eD(_,"minItems",v.exactLength.value,v.exactLength.message,k),eD(_,"maxItems",v.exactLength.value,v.exactLength.message,k)),_;case l.ZodUnion:case l.ZodDiscriminatedUnion:var x=e,w=n;if("openApi3"===w.target)return eQ(x,w);let S=x.options instanceof Map?Array.from(x.options.values()):x.options;if(S.every(e=>e._def.typeName in eJ&&(!e._def.checks||!e._def.checks.length))){let e=S.reduce((e,t)=>{let n=eJ[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e},[]);return{type:e.length>1?e:e[0]}}if(S.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=S.reduce((e,t)=>{let n=typeof t._def.value;switch(n){case"string":case"number":case"boolean":return[...e,n];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===S.length){let t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:S.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(S.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:S.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return eQ(x,w);case l.ZodIntersection:var A=e,T=n;let C=[eK(A.left._def,{...T,currentPath:[...T.currentPath,"allOf","0"]}),eK(A.right._def,{...T,currentPath:[...T.currentPath,"allOf","1"]})].filter(e=>!!e),P="jsonSchema2019-09"===T.target?{unevaluatedProperties:!1}:void 0,E=[];return C.forEach(e=>{if((!("type"in e)||"string"!==e.type)&&"allOf"in e)E.push(...e.allOf),void 0===e.unevaluatedProperties&&(P=void 0);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:n,...r}=e;t=r}else P=void 0;E.push(t)}}),E.length?{allOf:E,...P}:void 0;case l.ZodTuple:return r=e,i=n,r.rest?{type:"array",minItems:r.items.length,items:r.items.map((e,t)=>eK(e._def,{...i,currentPath:[...i.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:eK(r.rest._def,{...i,currentPath:[...i.currentPath,"additionalItems"]})}:{type:"array",minItems:r.items.length,maxItems:r.items.length,items:r.items.map((e,t)=>eK(e._def,{...i,currentPath:[...i.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case l.ZodRecord:return eW(e,n);case l.ZodLiteral:var I=e,O=n;let N=typeof I.value;return"bigint"!==N&&"number"!==N&&"boolean"!==N&&"string"!==N?{type:Array.isArray(I.value)?"array":"object"}:"openApi3"===O.target?{type:"bigint"===N?"integer":N,enum:[I.value]}:{type:"bigint"===N?"integer":N,const:I.value};case l.ZodEnum:return{type:"string",enum:Array.from(e.values)};case l.ZodNativeEnum:var z=e;let R=z.values,L=Object.keys(z.values).filter(e=>"number"!=typeof R[R[e]]).map(e=>R[e]),$=Array.from(new Set(L.map(e=>typeof e)));return{type:1===$.length?"string"===$[0]?"string":"number":["string","number"],enum:L};case l.ZodNullable:var j=e,M=n;if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(j.innerType._def.typeName)&&(!j.innerType._def.checks||!j.innerType._def.checks.length))return"openApi3"===M.target?{type:eJ[j.innerType._def.typeName],nullable:!0}:{type:[eJ[j.innerType._def.typeName],"null"]};if("openApi3"===M.target){let e=eK(j.innerType._def,{...M,currentPath:[...M.currentPath]});return e&&"$ref"in e?{allOf:[e],nullable:!0}:e&&{...e,nullable:!0}}let D=eK(j.innerType._def,{...M,currentPath:[...M.currentPath,"anyOf","0"]});return D&&{anyOf:[D,{type:"null"}]};case l.ZodOptional:var B=e,Z=n;if(Z.currentPath.toString()===Z.propertyPath?.toString())return eK(B.innerType._def,Z);let F=eK(B.innerType._def,{...Z,currentPath:[...Z.currentPath,"anyOf","1"]});return F?{anyOf:[{not:ej(Z)},F]}:ej(Z);case l.ZodMap:return a=e,"record"===(s=n).mapStrategy?eW(a,s):{type:"array",maxItems:125,items:{type:"array",items:[eK(a.keyType._def,{...s,currentPath:[...s.currentPath,"items","items","0"]})||ej(s),eK(a.valueType._def,{...s,currentPath:[...s.currentPath,"items","items","1"]})||ej(s)],minItems:2,maxItems:2}};case l.ZodSet:var U=e,H=n;let q={type:"array",uniqueItems:!0,items:eK(U.valueType._def,{...H,currentPath:[...H.currentPath,"items"]})};return U.minSize&&eD(q,"minItems",U.minSize.value,U.minSize.message,H),U.maxSize&&eD(q,"maxItems",U.maxSize.value,U.maxSize.message,H),q;case l.ZodLazy:return()=>e.getter()._def;case l.ZodPromise:return eK(e.type._def,n);case l.ZodNaN:case l.ZodNever:return"openAi"===(o=n).target?void 0:{not:ej({...o,currentPath:[...o.currentPath,"not"]})};case l.ZodEffects:return u=e,"input"===(c=n).effectStrategy?eK(u.schema._def,c):ej(c);case l.ZodAny:case l.ZodUnknown:return ej(n);case l.ZodDefault:return h=e,d=n,{...eK(h.innerType._def,d),default:h.defaultValue()};case l.ZodBranded:return eB(e,n);case l.ZodReadonly:case l.ZodCatch:return eK(e.innerType._def,n);case l.ZodPipeline:var G=e,V=n;if("input"===V.pipeStrategy)return eK(G.in._def,V);if("output"===V.pipeStrategy)return eK(G.out._def,V);let W=eK(G.in._def,{...V,currentPath:[...V.currentPath,"allOf","0"]}),J=eK(G.out._def,{...V,currentPath:[...V.currentPath,"allOf",W?"1":"0"]});return{allOf:[W,J].filter(e=>void 0!==e)};case l.ZodFunction:case l.ZodVoid:case l.ZodSymbol:default:return}})(e,e.typeName,t),s="function"==typeof a?eK(a(),t):a;if(s&&eY(e,t,s),t.postProcess){let n=t.postProcess(s,e,t);return i.jsonSchema=s,n}return i.jsonSchema=s,s}let eX=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:e$(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,n)=>t.currentPath[n]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),ej(t);return"seen"===t.$refStrategy?ej(t):void 0}},eY=(e,t,n)=>(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n);n(32931);var e0=({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{let i=()=>{let e=n.length,r=Array(t);for(let i=0;i<t;i++)r[i]=n[Math.random()*e|0];return r.join("")};if(null==e)return i;if(n.includes(r))throw new u.Di({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return()=>`${e}${r}${i()}`},e1=e0(),e2=/"__proto__"\s*:/,e4=/"constructor"\s*:/,e5=Symbol.for("vercel.ai.validator");async function e6({value:e,schema:t}){let n=await e3({value:e,schema:t});if(!n.success)throw u.iM.wrap({value:e,cause:n.error});return n.value}async function e3({value:e,schema:t}){var n;let r="object"==typeof t&&null!==t&&e5 in t&&!0===t[e5]&&"validate"in t?t:(n=t,{[e5]:!0,validate:async e=>{let t=await n["~standard"].validate(e);return null==t.issues?{success:!0,value:t.value}:{success:!1,error:new u.iM({value:e,cause:t.issues})}}});try{if(null==r.validate)return{success:!0,value:e,rawValue:e};let t=await r.validate(e);if(t.success)return{success:!0,value:t.value,rawValue:e};return{success:!1,error:u.iM.wrap({value:e,cause:t.error}),rawValue:e}}catch(t){return{success:!1,error:u.iM.wrap({value:e,cause:t}),rawValue:e}}}async function e9({text:e,schema:t}){try{let n=function(e){let{stackTraceLimit:t}=Error;Error.stackTraceLimit=0;try{let t=JSON.parse(e);return null===t||"object"!=typeof t||!1===e2.test(e)&&!1===e4.test(e)?t:function(e){let t=[e];for(;t.length;){let e=t;for(let n of(t=[],e)){if(Object.prototype.hasOwnProperty.call(n,"__proto__")||Object.prototype.hasOwnProperty.call(n,"constructor")&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let e in n){let r=n[e];r&&"object"==typeof r&&t.push(r)}}}return e}(t)}finally{Error.stackTraceLimit=t}}(e);if(null==t)return{success:!0,value:n,rawValue:n};return await e3({value:n,schema:t})}catch(t){return{success:!1,error:u.u6.isInstance(t)?t:new u.u6({text:e,cause:t}),rawValue:void 0}}}function e8({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new d).pipeThrough(new TransformStream({async transform({data:e},n){"[DONE]"!==e&&n.enqueue(await e9({text:e,schema:t}))}}))}async function e7(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}var te=Symbol.for("vercel.ai.schema");function tt(e,{validate:t}={}){return{[te]:!0,_type:void 0,[e5]:!0,jsonSchema:e,validate:t}}function tn(e){return null==e?tt({properties:{},additionalProperties:!1}):"object"==typeof e&&null!==e&&te in e&&!0===e[te]&&"jsonSchema"in e&&"validate"in e?e:function(e,t){var n;return"_zod"in e?tt(function(e,t){if(e instanceof p.rs){let n=new m(t),r={};for(let t of e._idmap.entries()){let[e,r]=t;n.process(r)}let i={},a={registry:e,uri:t?.uri,defs:r};for(let r of e._idmap.entries()){let[e,s]=r;i[e]=n.emit(s,{...t,external:a})}return Object.keys(r).length>0&&(i.__shared={["draft-2020-12"===n.target?"$defs":"definitions"]:r}),{schemas:i}}let n=new m(t);return n.process(e),n.emit(e,t)}(e,{target:"draft-7",io:"output",reused:"inline"}),{validate:async t=>{let n=await g.bp(e,t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}}):tt(((e,t)=>{let n=(e=>{let t,n="string"==typeof(t=e)?{...b,name:t}:{...b,...t},r=void 0!==n.name?[...n.basePath,n.definitionPath,n.name]:n.basePath;return{...n,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([e,t])=>[t._def,{def:t._def,path:[...n.basePath,n.definitionPath,e],jsonSchema:void 0}]))}})(t),r="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>({...e,[t]:eK(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0)??ej(n)}),{}):void 0,i="string"==typeof t?t:t?.nameStrategy==="title"?void 0:t?.name,a=eK(e._def,void 0===i?n:{...n,currentPath:[...n.basePath,n.definitionPath,i]},!1)??ej(n),s="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==s&&(a.title=s),n.flags.hasReferencedOpenAiAnyType&&(r||(r={}),r[n.openAiAnyTypeName]||(r[n.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:"relative"===n.$refStrategy?"1":[...n.basePath,n.definitionPath,n.openAiAnyTypeName].join("/")}}));let o=void 0===i?r?{...a,[n.definitionPath]:r}:a:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,i].join("/"),[n.definitionPath]:{...r,[i]:a}};return"jsonSchema7"===n.target?o.$schema="http://json-schema.org/draft-07/schema#":("jsonSchema2019-09"===n.target||"openAi"===n.target)&&(o.$schema="https://json-schema.org/draft/2019-09/schema#"),"openAi"===n.target&&("anyOf"in o||"oneOf"in o||"allOf"in o||"type"in o&&Array.isArray(o.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),o})(e,{$refStrategy:(n=void 0,"none"),target:"jsonSchema7"}),{validate:async t=>{let n=await e.safeParseAsync(t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}})}(e)}var{btoa:tr,atob:ti}=globalThis;function ta(e){let t=ti(e.replace(/-/g,"+").replace(/_/g,"/"));return Uint8Array.from(t,e=>e.codePointAt(0))}function ts(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCodePoint(e[n]);return tr(t)}},73570:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},74692:(e,t,n)=>{"use strict";n.d(t,{qg:()=>l,EJ:()=>u,xL:()=>c,bp:()=>h});var r=n(2865),i=n(6721),a=n(28577);let s=(e,t)=>{i.a$.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>i.Wk(e,t)},flatten:{value:t=>i.JM(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get:()=>0===e.issues.length}})};a.xI("ZodError",s);let o=a.xI("ZodError",s,{Parent:Error}),l=r.Tj(o),u=r.Rb(o),c=r.Od(o),h=r.wG(o)},75565:(e,t,n)=>{"use strict";n.d(t,{Di:()=>y,b8:()=>R,bD:()=>d,eM:()=>A,iM:()=>I,u1:()=>p,u6:()=>_});var r,i,a,s,o,l,u="vercel.ai.error",c=Symbol.for(u),h=class e extends Error{constructor({name:e,message:t,cause:n}){super(t),this[r]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,u)}static hasMarker(e,t){let n=Symbol.for(t);return null!=e&&"object"==typeof e&&n in e&&"boolean"==typeof e[n]&&!0===e[n]}};r=c;var d=h;function p(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}Symbol.for("vercel.ai.error.AI_APICallError"),Symbol.for("vercel.ai.error.AI_EmptyResponseBodyError");var f="AI_InvalidArgumentError",m=`vercel.ai.error.${f}`,g=Symbol.for(m),y=class extends d{constructor({message:e,cause:t,argument:n}){super({name:f,message:e,cause:t}),this[i]=!0,this.argument=n}static isInstance(e){return d.hasMarker(e,m)}};i=g,Symbol.for("vercel.ai.error.AI_InvalidPromptError"),Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var b="AI_JSONParseError",v=`vercel.ai.error.${b}`,k=Symbol.for(v),_=class extends d{constructor({text:e,cause:t}){super({name:b,message:`JSON parsing failed: Text: ${e}.
|
|
90
|
-
Error message: ${p(t)}`,cause:t}),this[a]=!0,this.text=e}static isInstance(e){return d.hasMarker(e,v)}};a=k,Symbol.for("vercel.ai.error.AI_LoadAPIKeyError"),Symbol.for("vercel.ai.error.AI_LoadSettingError"),Symbol.for("vercel.ai.error.AI_NoContentGeneratedError");var x="AI_NoSuchModelError",w=`vercel.ai.error.${x}`,S=Symbol.for(w),A=class extends d{constructor({errorName:e=x,modelId:t,modelType:n,message:r=`No such ${n}: ${t}`}){super({name:e,message:r}),this[s]=!0,this.modelId=t,this.modelType=n}static isInstance(e){return d.hasMarker(e,w)}};s=S,Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError");var T="AI_TypeValidationError",C=`vercel.ai.error.${T}`,P=Symbol.for(C),E=class e extends d{constructor({value:e,cause:t}){super({name:T,message:`Type validation failed: Value: ${JSON.stringify(e)}.
|
|
91
|
-
Error message: ${p(t)}`,cause:t}),this[o]=!0,this.value=e}static isInstance(e){return d.hasMarker(e,C)}static wrap({value:t,cause:n}){return e.isInstance(n)&&n.value===t?n:new e({value:t,cause:n})}};o=P;var I=E,O="AI_UnsupportedFunctionalityError",N=`vercel.ai.error.${O}`,z=Symbol.for(N),R=class extends d{constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:O,message:t}),this[l]=!0,this.functionality=e}static isInstance(e){return d.hasMarker(e,N)}};l=z},76567:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)(i=r.slice(s,s+1e4)).unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},76906:(e,t,n)=>{"use strict";function r(e){return e.join(" ").trim()}n.d(t,{A:()=>r})},78044:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},78264:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},80606:(e,t,n)=>{"use strict";function r(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function i(e,t){return"bigint"==typeof t?t.toString():t}function a(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function s(e){return null==e}function o(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function l(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}function u(e,t,n){Object.defineProperty(e,t,{get(){{let r=n();return e[t]=r,r}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function c(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function h(e){return JSON.stringify(e)}n.d(t,{$f:()=>y,A2:()=>v,Gv:()=>p,LG:()=>l,NM:()=>k,OH:()=>T,PO:()=>a,QH:()=>P,Qd:()=>m,Rc:()=>N,UQ:()=>h,Up:()=>x,Vy:()=>c,X$:()=>S,cJ:()=>w,cl:()=>s,gJ:()=>u,gx:()=>d,h1:()=>A,hI:()=>f,iR:()=>O,k8:()=>i,lQ:()=>E,mw:()=>C,o8:()=>b,p6:()=>o,qQ:()=>g,sn:()=>z,w5:()=>r,zH:()=>_});let d=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function p(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let f=a(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function m(e){if(!1===p(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!1!==p(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}let g=new Set(["string","number","symbol"]);function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function v(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function k(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let _={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function x(e,t){let n={},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(n[e]=r.shape[e])}return b(e,{...e._zod.def,shape:n,checks:[]})}function w(e,t){let n={...e._zod.def.shape},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return b(e,{...e._zod.def,shape:n,checks:[]})}function S(e,t){if(!m(t))throw Error("Invalid input to extend: expected a plain object");let n={...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return c(this,"shape",n),n},checks:[]};return b(e,n)}function A(e,t){return b(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return c(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function T(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return b(t,{...t._zod.def,shape:i,checks:[]})}function C(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(let t in r)i[t]=new e({type:"nonoptional",innerType:r[t]});return b(t,{...t._zod.def,shape:i,checks:[]})}function P(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function E(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function I(e){return"string"==typeof e?e:e?.message}function O(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=I(e.inst?._zod.def?.error?.(e))??I(t?.error?.(e))??I(n.customError?.(e))??I(n.localeError?.(e))??"Invalid input"),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function N(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function z(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}},81223:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(81258).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},86385:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});class r{constructor(e,t){this.attribute=t,this.property=e}}r.prototype.attribute="",r.prototype.booleanish=!1,r.prototype.boolean=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.commaSeparated=!1,r.prototype.defined=!1,r.prototype.mustUseProperty=!1,r.prototype.number=!1,r.prototype.overloadedBoolean=!1,r.prototype.property="",r.prototype.spaceSeparated=!1,r.prototype.space=void 0},88271:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(17135)),i=n(21043);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a},89444:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(10259),i=n(21686);function a(e,t,n){let a=(0,i.C)((n||{}).ignore||[]),s=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),o=-1;for(;++o<s.length;)(0,r.VG)(e,"text",l);function l(e,t){let n,r=-1;for(;++r<t.length;){let e=t[r],i=n?n.children:void 0;if(a(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=s[o][0],i=s[o][1],a=0,l=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let h=r.exec(e.value);for(;h;){let n=h.index,s={index:h.index,input:h.input,stack:[...t,e]},o=i(...h,s);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?c.push(...o):o&&c.push(o),a=n+h[0].length,u=!0),!r.global)break;h=r.exec(e.value)}return u?(a<e.value.length&&c.push({type:"text",value:e.value.slice(a)}),n.children.splice(l,1,...c)):c=[e],l+c.length}(e,t)}}},89479:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(44528);function i(e){return null===e||(0,r.Ee)(e)||(0,r.Ny)(e)?1:(0,r.es)(e)?2:void 0}},98735:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,h=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<p;++d)if(t=arguments[d],null!=t)for(n in t)r=l(h,n),h!==(i=l(t,n))&&(f&&i&&(s(i)||(u=a(i)))?(u?(u=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},o(h,{name:n,newValue:e(f,c,i)})):void 0!==i&&o(h,{name:n,newValue:i}));return h}},99224:(e,t,n)=>{"use strict";let r,i;n.d(t,{Yz:()=>t3});class a extends Error{constructor(e){super(e),this.name="ShikiError"}}var s=n(32931);function o(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var l=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,u=class{static hasCaptures(e){return null!==e&&(l.lastIndex=0,l.test(e))}static replaceCaptures(e,t,n){return e.replace(l,(e,r,i,a)=>{let s=n[parseInt(r||i,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function c(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function h(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function d(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var p=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},f=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let s=-1;if("string"==typeof a.settings.fontStyle){s=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let o=null;"string"==typeof a.settings.foreground&&h(a.settings.foreground)&&(o=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&h(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),u=a[a.length-1],c=null;a.length>1&&(c=a.slice(0,a.length-1)).reverse(),n[r++]=new y(u,c,e,s,o,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=c(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new v(t),s=new g(n,a.getId(r),a.getId(i)),o=new x(new _(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new f(a,s,o)}(e,t)}_cachedMatchRoot=new p(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],s=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],s=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new g(n.fontStyle,n.foreground,n.background):null}},m=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},g=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},y=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},b=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(b||{}),v=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},k=Object.freeze([]),_=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||k,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},x=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,s){let o,l,u;if(""===n)return void this._doInsertHere(t,r,i,a,s);let c=n.indexOf(".");-1===c?(o=n,l=""):(o=n.substring(0,c),l=n.substring(c+1)),this._children.hasOwnProperty(o)?u=this._children[o]:(u=new e(this._mainRule.clone(),_.cloneArr(this._rulesWithParentScopes)),this._children[o]=u),u.insert(t+1,l,r,i,a,s)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===c(s.parentScopes,t))return void s.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new _(e,t,n,r,i))}},w=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,i,a,s,o){let l=e.getLanguageId(t),u=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),d=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(u=r),null!==i&&(c=+!!i),-1!==a&&(h=a),0!==s&&(d=s),0!==o&&(p=o),(0|l|u<<8|c<<10|h<<11|d<<15|p<<24)>>>0}};function S(e,t){var n;let r,i,a=[],s=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),e}}),o=s.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=s.next()}let t=u();if(a.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return a;function l(){if("-"===o){o=s.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=u();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o);t=u()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(A(o)){let e=[];do e.push(o),o=s.next();while(A(o));return n=>t(e,n)}return null}function u(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function A(e){return!!e&&!!e.match(/[\w\.:]+/)}var T=(e=>(e[e.None=0]="None",e[e.NotBeginString=1]="NotBeginString",e[e.NotEndString=2]="NotEndString",e[e.NotBeginPosition=4]="NotBeginPosition",e[e.DebugCall=8]="DebugCall",e))(T||{});function C(e){"function"==typeof e.dispose&&e.dispose()}var P=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},E=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},I=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},O=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new P(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new I;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof P?z({baseGrammar:a,selfGrammar:i},r):N(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let s=n.injections(e.scopeName);if(s)for(let e of s)r.add(new P(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof P){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function N(e,t,n){t.repository&&t.repository[e]&&R([t.repository[e]],t,n)}function z(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&R(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&R(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function R(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?o({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&R(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=B(i);switch(a.kind){case 0:z({...t,selfGrammar:t.baseGrammar},n);break;case 1:z(t,n);break;case 2:N(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let r={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===a.kind?N(a.ruleName,r,n):z(r,n)}else 4===a.kind?n.add(new E(a.scopeName,a.ruleName)):n.add(new P(a.scopeName))}}}var L=class{kind=0},$=class{kind=1},j=class{constructor(e){this.ruleName=e}kind=2},M=class{constructor(e){this.scopeName=e}kind=3},D=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function B(e){if("$base"===e)return new L;if("$self"===e)return new $;let t=e.indexOf("#");return -1===t?new M(e):0===t?new j(e.substring(1)):new D(e.substring(0,t),e.substring(t+1))}var Z=/\\(\d+)/,F=/\\(\d+)/g;Symbol("RuleId");var U=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=u.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=u.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?u.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?u.replaceCaptures(this._contentName,e,t):this._contentName}},H=class extends U{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},q=class extends U{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Q(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new K,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},G=class extends U{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new K,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},V=class extends U{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,s,o,l,u){super(e,t,n,r),this._begin=new Q(i,this.id),this.beginCaptures=a,this._end=new Q(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new K,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},W=class extends U{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,s,o,l){super(e,t,n,r),this._begin=new Q(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=new Q(s,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new K,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new K,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},J=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new H(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new q(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=o({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new G(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new W(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new V(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let s=parseInt(a,10),o=0;t[a].patterns&&(o=e.getCompiledRuleId(t[a],n,r)),i[s]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,s=t.length;a<s;a++){let s=t[a],o=-1;if(s.include){let t=B(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(r[s.include],n,r);break;case 2:let i=r[t.ruleName];i&&(o=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,u=n.getExternalGrammar(a,r);if(u)if(l){let t=u.repository[l];t&&(o=e.getCompiledRuleId(t,n,u.repository))}else o=e.getCompiledRuleId(u.repository.$self,n,u.repository)}}else o=e.getCompiledRuleId(s,n,r);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof G||e instanceof V||e instanceof W)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Q=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=Z.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return F.lastIndex=0,this.source.replace(F,(e,t)=>d(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],s=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,s[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="",a[e+1]="",s[e+1]="A",o[e+1]="A"):"G"===r?(i[e+1]="",a[e+1]="G",s[e+1]="",o[e+1]="G"):(i[e+1]=r,a[e+1]=r,s[e+1]=r,o[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:s.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},K=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new X(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new X(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},X=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Y=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ee=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Y(e,8),this._embeddedLanguagesMatcher=new et(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Y(0,0);_getBasicScopeAttributes=new p(e=>new Y(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},et=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>d(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==s&&s.env.VSCODE_TEXTMATE_DEBUG;var en=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function er(e,t,n,r,i,a,s,o){let l=t.content.length,u=!1,c=-1;if(s){let s=function(e,t,n,r,i,a){let s=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof W&&o.push({rule:n,stack:t})}for(let p=o.pop();p;p=o.pop()){var l,u,c,h,d;let{ruleScanner:o,findOptions:f}=(l=p.rule,u=e,c=p.stack.endRule,h=n,d=r===s,{ruleScanner:l.compileWhileAG(u,c,h,d),findOptions:0}),m=o.findNextMatchSync(t,r,f);if(m){if(-2!==m.ruleId){i=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(a.produce(p.stack,m.captureIndices[0].start),ea(e,t,n,p.stack,a,p.rule.whileCaptures,m.captureIndices),a.produce(p.stack,m.captureIndices[0].end),s=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{i=p.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:n}}(e,t,n,r,i,a);i=s.stack,r=s.linePos,n=s.isFirstLine,c=s.anchorPosition}let h=Date.now();for(;!u;){if(0!==o&&Date.now()-h>o)return new en(i,!0);!function(){let s=function(e,t,n,r,i,a){let s=function(e,t,n,r,i,a){let{ruleScanner:s,findOptions:o}=ei(i.getRule(e),e,i.endRule,n,r===a),l=s.findNextMatchSync(t,r,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,n,r,i,a,s){let o,l=Number.MAX_VALUE,u=null,c=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,d=e.length;a<d;a++){let d=e[a];if(!d.matcher(h))continue;let{ruleScanner:p,findOptions:f}=ei(t.getRule(d.ruleId),t,null,r,i===s),m=p.findNextMatchSync(n,i,f);if(!m)continue;let g=m.captureIndices[0].start;if(!(g>=l)&&(l=g,u=m.captureIndices,o=m.ruleId,c=d.priority,l===i))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:o}:null}(o,e,t,n,r,i,a);if(!l)return s;if(!s)return l;let u=s.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:s}(e,t,n,r,i,c);if(!s){a.produce(i,l),u=!0;return}let o=s.captureIndices,h=s.matchedRuleId,d=!!o&&o.length>0&&o[0].end>r;if(-1===h){let s=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),ea(e,t,n,i,a,s.endCaptures,o),a.produce(i,o[0].end);let h=i;if(i=i.parent,c=h.getAnchorPos(),!d&&h.getEnterPos()===r){i=h,a.produce(i,l),u=!0;return}}else{let s=e.getRule(h);a.produce(i,o[0].start);let p=i,f=s.getName(t.content,o),m=i.contentNameScopesList.pushAttributed(f,e);if(i=i.push(h,r,c,o[0].end===l,null,m,m),s instanceof V){ea(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),c=o[0].end;let r=s.getContentName(t.content,o),h=m.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),s.endHasBackReferences&&(i=i.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(s instanceof W){ea(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),c=o[0].end;let r=s.getContentName(t.content,o),h=m.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),s.whileHasBackReferences&&(i=i.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(ea(e,t,n,i,a,s.captures,o),a.produce(i,o[0].end),i=i.pop(),!d){i=i.safePop(),a.produce(i,l),u=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new en(i,!1)}function ei(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function ea(e,t,n,r,i,a,s){if(0===a.length)return;let o=t.content,l=Math.min(a.length,s.length),u=[],c=s[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=s[t];if(0===h.length)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(r,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),a=r.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(o,s),c=a.pushAttributed(u,e),d=r.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,c),p=e.createOnigString(o.substring(0,h.end));er(e,p,n&&0===h.start,h.start,d,i,!1,0),C(p);continue}let d=l.getName(o,s);if(null!==d){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(d,e);u.push(new es(t,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var es=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function eo(e,t,n,r,i){let a=S(t,el),s=J.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:s,grammar:i,priority:n.priority})}function el(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var eu=class{constructor(e,t,n,r,i,a,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new ee(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=ec(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of S(e,el))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)eo(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&eo(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ec(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=J.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==ed.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=w.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?eh.createRootAndLookUpScopeName(s,a,this):eh.createRoot("unknown",a),t=new ed(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),s=a.content.length,o=new ef(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=er(this,a,i,0,t,o,!0,r);return C(a),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function ec(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var eh=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=m.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new m(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new m(null,t),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(n,i,s);return new e(null,a,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),w.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(t.tokenAttributes,i,s);return new e(t,a,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},ed=class e{constructor(e,t,n,r,i,a,s,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eh.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,s,o){return new e(this,t,n,r,i,a,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=eh.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,eh.fromExtension(r,n.contentNameScopesList))}},ep=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):S(e,el).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>S(e,el).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ef=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=w.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=w.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},em=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new eu(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},eg=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new em(f.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(f.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new ep(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new O(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},ey=ed.NULL;let eb=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var ev=n(64913);let ek={}.hasOwnProperty,e_=/["&'<>`]/g,ex=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ew=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eS=/[|\\{}()[\]^$+*?.]/g,eA=new WeakMap,eT=/[\dA-Fa-f]/,eC=/\d/,eP=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],eE={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},eI=["cent","copy","divide","gt","lt","not","para","times"],eO={}.hasOwnProperty,eN={};for(r in eE)eO.call(eE,r)&&(eN[eE[r]]=r);let ez=/[^\dA-Za-z]/;function eR(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!eT.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(eO.call(eN,i)){let e=eN[i],a="&"+e;return n&&eP.includes(e)&&!eI.includes(e)&&(!r||t&&61!==t&&ez.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!eC.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function eL(e,t){let n;var r,i=e,a=Object.assign({format:eR},t);if(i=i.replace(a.subset?(r=a.subset,(n=eA.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(eS,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),eA.set(r,n)),n):e_,s),a.subset||a.escapeOnly)return i;return i.replace(ex,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(ew,s);function s(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let e$=/^>|^->|<!--|-->|--!>|<!-$/g,ej=[">"],eM=["<",">"];var eD=n(58695),eB=n(61453),eZ=n(57571),eF=n(76906),eU=n(53359);let eH=eV(1),eq=eV(-1),eG=[];function eV(e){return function(t,n,r){let i=t?t.children:eG,a=(n||0)+e,s=i[a];if(!r)for(;s&&(0,eU.m)(s);)a+=e,s=i[a];return s}}let eW={}.hasOwnProperty;function eJ(e){return function(t,n,r){return eW.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let eQ=eJ({body:function(e,t,n){let r=eH(n,t);return!r||"comment"!==r.type},caption:eK,colgroup:eK,dd:function(e,t,n){let r=eH(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=eH(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:eK,html:function(e,t,n){let r=eH(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=eH(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=eH(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=eH(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=eH(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:eX,rt:eX,tbody:function(e,t,n){let r=eH(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:eY,tfoot:function(e,t,n){return!eH(n,t)},th:eY,thead:function(e,t,n){let r=eH(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=eH(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function eK(e,t,n){let r=eH(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,eU.m)(r.value.charAt(0)))}function eX(e,t,n){let r=eH(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function eY(e,t,n){let r=eH(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let e0=eJ({body:function(e){let t=eH(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,eU.m)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=eq(n,t),i=eH(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&eQ(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=eH(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=eq(n,t),i=eH(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&eQ(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),e1={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},e2=["<","&"];function e4(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:eL(e.value,Object.assign({},r.settings.characterReferences,{subset:e2}))}let e5=function(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&ek.call(t,e)){let n=String(t[e]);i=ek.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+eL(e.value,Object.assign({},r.settings.characterReferences,{subset:ej}))+">":"\x3c!--"+e.value.replace(e$,function(e){return eL(e,Object.assign({},r.settings.characterReferences,{subset:eM}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i,a=r.schema,s="svg"!==a.space&&r.settings.omitOptionalTags,o="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=ev.JW);let u=function(e,t){let n,r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r,i=(0,eZ.I)(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=+!e.settings.allowDangerousCharacters,o=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=eL(i.attribute,Object.assign({},e.settings.characterReferences,{subset:e1.name[a][s]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?eB.A:eF.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=eL(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:e1.unquoted[a][s]}))),r!==n&&(e.settings.quoteSmart&&(0,eD.D)(n,o)>(0,eD.D)(n,e.alternative)&&(o=e.alternative),r=o+eL(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?e1.single:e1.double)[a][s],attribute:!0}))+o),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),c=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,c&&(o=!1),!u&&s&&e0(e,t,n)||(l.push("<",e.tagName,u?" "+u:""),o&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),o||s&&eQ(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:e4(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:e4}}),e6={},e3={},e9=[];function e8(e,t,n){return e5(e,t,n,this)}function e7(e){let t=[],n=e&&e.children||e9,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function te(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function tt(e,t){return e&&t?.[e?.toLowerCase()]||e}async function tn(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function tr(e){return!e||["plaintext","txt","text","plain"].includes(e)}function ti(e){return"ansi"===e||tr(e)}function ta(e){return"none"===e}function ts(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function to(e,t=!1){let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}let tl="light-dark()",tu=["color","background-color"];function tc(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&b.Italic&&(t["font-style"]="italic"),e.fontStyle&b.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&b.Underline&&n.push("underline"),e.fontStyle&b.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function th(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let td=new WeakMap;function tp(e,t){td.set(e,t)}function tf(e){return td.get(e)}class tm{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new tm(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,ey])),e)}constructor(...e){if(2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t=this._stacks[e];let n=[],r=new Set;return!function e(t){if(r.has(t))return;r.add(t);let i=t?.nameScopesList?.scopeName;i&&n.push(i),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let tg=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new a(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new a(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);if(e.character<0||e.character>t.length)throw new a(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,offset:r.posToIndex(e.line,e.character)}}},r=function(e){let t=to(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new a(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,s=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,l=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||s||o||l){if(i&&s||o&&l||o&&n.start.offset===n.end.offset||s&&t.start.offset===t.end.offset)continue;throw new a(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length){var n=e,r=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);let i=Array.from(r instanceof Set?r:new Set(r)).sort((e,t)=>e-t);return i.length?n.map(e=>e.flatMap(e=>{let t=i.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r})):n}},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new a(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let o=r[e],l="",u=-1,c=-1;if(0===t&&(u=0),0===n&&(c=0),n===1/0&&(c=o.children.length),-1===u||-1===c)for(let e=0;e<o.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===u&&l.length===t&&(u=e+1),-1===c&&l.length===n&&(c=e+1);if(-1===u)throw new a(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===c)throw new a(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let h=o.children.slice(u,c);if(i.alwaysWrap||h.length!==o.children.length)if(i.alwaysWrap||1!==h.length||"element"!==h[0].type){let e={type:"element",tagName:"span",properties:{},children:h};s(e,i,"wrapper"),o.children.splice(u,h.length,e)}else s(h[0],i,"token");else s(o,i,"line")}function s(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&ts(e,t.properties.class),e=i(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let i=t.line+1;i<n.line;i++)o.unshift(()=>{var t;r[t=i]=s(r[t],e,"line")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}()];function ty(e){return[...e.transformers||[],...tg]}var tb=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tv={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tk(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var t_={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function tx(e,t,n={}){let{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(tr(r)||ta(i))return to(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:s,colorMap:o}=e.setTheme(i);if("ansi"===r)return function(e,t,n){let r,i,a,s=te(e,n),o=to(t),l=function(e=t_){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<tb.length;n++)t.push(e[tb[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(tb.map(t=>[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),u=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let s=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),o=s.sequence?e.substring(n,s.startPosition):e.substring(n);if(o.length>0&&t.push({value:o,foreground:r,background:i,decorations:new Set(a)}),s.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)tv[r]&&t.push({type:"setDecoration",value:tv[r]});else if(r<=29){let e=tv[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tb[r-30]}});else if(38===r){let n=tk(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tb[r-40]}});else if(48===r){let n=tk(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tb[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tb[r-100+8]}})}return t}(s.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=s.position}while(n<e.length);return t}});return o.map(t=>u.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,i=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,i=n.background?l.value(n.background):void 0),r=tt(r,s),i=tt(i,s),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}else if(t[2])return`#${t[1]}${t[2]}80`;else return`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`;let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let a=b.None;return n.decorations.has("bold")&&(a|=b.Bold),n.decorations.has("italic")&&(a|=b.Italic),n.decorations.has("underline")&&(a|=b.Underline),n.decorations.has("strikethrough")&&(a|=b.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:a}}))}(s,t,n);let l=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new a(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(s.name))throw new a(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}var u=t,c=l,h=s,d=o,p=n;let f=tw(u,c,h,d,p),m=new tm(tw(u,c,h,d,p).stateStack,c.name,h.name);return tp(f.tokens,m),f.tokens}function tw(e,t,n,r,i){let s=te(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=i,u=to(e),c=i.grammarState?function(e,t){if(!(e instanceof tm))throw new a("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??ey:null!=i.grammarContextCode?tw(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ey,h=[],d=[];for(let e=0,a=u.length;e<a;e++){let a,p,[f,m]=u[e];if(""===f){h=[],d.push([]);continue}if(o>0&&f.length>=o){h=[],d.push([{content:f,offset:m,color:"",fontStyle:0}]);continue}i.includeExplanation&&(a=t.tokenizeLine(f,c,l).tokens,p=0);let g=t.tokenizeLine2(f,c,l),y=g.tokens.length/2;for(let e=0;e<y;e++){let t=g.tokens[2*e],o=e+1<y?g.tokens[2*e+2]:f.length;if(t===o)continue;let l=g.tokens[2*e+1],u=tt(r[w.getForeground(l)],s),c=w.getFontStyle(l),d={content:f.substring(t,o),offset:m+t,color:u,fontStyle:c};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=a[p],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!tS(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tS(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}h.push(d)}d.push(h),h=[],c=g.ruleStack}return{tokens:d,stateStack:c}}function tS(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tA(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=tx(e,t,{...n,theme:r.theme}),a=tf(i);return{tokens:i,state:a,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let s=i.map(()=>0),o=i.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(a[t].push(n),s[t]+=1,o[t]=i[t][s[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...i.map(e=>e.tokens)),s=a[0].map((e,t)=>e.map((e,i)=>{let s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:o,offset:l,...u}=e[t][i];s.variants[r[n].color]=u}),s})),o=i[0].state?new tm(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return o&&tp(s,o),s}function tT(e,t,n){let r,i,s,o,l,u;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:h="--shiki-",colorsRendering:d="css-vars"}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===p.length)throw new a("`themes` option must not be empty");let f=tA(e,t,n);if(u=tf(f),c&&tl!==c&&!p.find(e=>e.color===c))throw new a(`\`themes\` option must contain the defaultColor key \`${c}\``);let m=p.map(t=>e.getTheme(t.theme)),g=p.map(e=>e.color);s=f.map(e=>e.map(e=>(function(e,t,n,r,i="css-vars"){let s={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>tc(e.variants[t])),l=new Set(o.flatMap(e=>Object.keys(e))),u={},c=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(let s of l){let l=e[s]||"inherit";if(0===n&&r&&tu.includes(s))if(r===tl&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new a('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let h=o[e][s]||"inherit",d=o[r][s]||"inherit";u[s]=`light-dark(${h}, ${d})`,"css-vars"===i&&(u[c(n,s)]=l)}else u[s]=l;else"css-vars"===i&&(u[c(n,s)]=l)}}),s.htmlStyle=u,s})(e,g,h,c,d))),u&&tp(s,u);let y=p.map(e=>te(e.theme,n));i=tC(p,m,y,h,c,"fg",d),r=tC(p,m,y,h,c,"bg",d),o=`shiki-themes ${m.map(e=>e.name).join(" ")}`,l=c?void 0:[i,r].join(";")}else if("theme"in n){let a=te(n.theme,n);s=tx(e,t,n);let l=e.getTheme(n.theme);r=tt(l.bg,a),i=tt(l.fg,a),o=l.name,u=tf(s)}else throw new a("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:r,themeName:o,rootStyle:l,grammarState:u}}function tC(e,t,n,r,i,s,o){return e.map((l,u)=>{let c=tt(t[u][s],n[u])||"inherit",h=`${r+l.color}${"bg"===s?"-bg":""}:${c}`;if(0===u&&i){if(i===tl&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new a('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=tt(t[r][s],n[r])||"inherit",l=tt(t[i][s],n[i])||"inherit";return`light-dark(${o}, ${l});${h}`}return c}return"css-vars"===o?h:null}).filter(e=>!!e).join(";")}function tP(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>tP(e,t,n),codeToTokens:(t,n)=>tT(e,t,n)}){let i=t;for(let e of ty(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:s,bg:o,themeName:l,rootStyle:u,grammarState:c}=tT(e,i,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:d=!1}=n;!0===h?a=a.map(e=>{let t=[],n="",r=0;return e.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&b.Underline||i.fontStyle&b.Strikethrough));s&&i.content.match(/^\s+$/)&&e[a+1]?(r||(r=i.offset),n+=i.content):n?(s?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=0,n=""):t.push(i)}),t}):"never"===h&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),d&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=th(e.htmlStyle||tc(e)),i=th(n.htmlStyle||tc(n)),a=e.fontStyle&&(e.fontStyle&b.Underline||e.fontStyle&b.Strikethrough),s=n.fontStyle&&(n.fontStyle&b.Underline||n.fontStyle&b.Strikethrough);a||s||r!==i?t.push({...n}):e.content+=n.content}return t}));let p={...r,get source(){return i}};for(let e of ty(n))a=e.tokens?.call(p,a)||a;return function(e,t,n,r=tf(e)){let i=ty(t),a=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...!1!==l&&null!=l?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:a},h=[],d={...n,structure:o,addClassToHast:ts,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return c},get lines(){return h}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=th(a.htmlStyle||tc(a));for(let s of(l&&(e.properties.style=l),i))e=s?.span?.call(d,e,t+1,r,n,a)||e;"inline"===o?s.children.push(e):"classic"===o&&n.children.push(e),r+=a.content.length}if("classic"===o){for(let e of i)n=e?.line?.call(d,n,t+1)||n;h.push(n),a.push(n)}}),"classic"===o){for(let e of i)c=e?.code?.call(d,c)||c;for(let e of(u.children.push(c),i))u=e?.pre?.call(d,u)||u;s.children.push(u)}let p=s;for(let e of i)p=e?.root?.call(d,p)||p;return r&&tp(p,r),p}(a,{...n,fg:s,bg:o,themeName:l,rootStyle:u},p,c)}let tE=function(e,t){let n=t||e6,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:e8,all:e7,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||eb,characterReferences:n.characterReferences||e3,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?ev.JW:ev.qy,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},tI={light:"#333333",dark:"#bbbbbb"},tO={light:"#fffffe",dark:"#1e1e1e"},tN="__shiki_resolved";function tz(e){if(e?.[tN])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?tI.light:tI.dark),n||(n="light"===t.type?tO.light:tO.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function s(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?s(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=s(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=s(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=s(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,tN,{enumerable:!1,writable:!1,value:!0}),t}async function tR(e){return Array.from(new Set((await Promise.all(e.filter(e=>!ti(e)).map(async e=>await tn(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tL(e){return(await Promise.all(e.map(async e=>ta(e)?null:tz(await tn(e))))).filter(e=>!!e)}class t$ extends Error{constructor(e){super(e),this.name="ShikiError"}}class tj extends eg{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tz(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=f.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new t$(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new t$(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class tM{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let tD=0;async function tB(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([tL(e.themes||[]),tR(e.langs||[]),e.engine]);return function(e){let t;tD+=1,!1!==e.warnings&&tD>=10&&tD%10==0&&console.warn(`[Shiki] ${tD} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new t$("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tz),a=new tj(new tM(e.engine,r),i,r,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=a.getTheme(e);if(!t)throw new t$(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){u(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(u(),e.flat(1)))a.loadTheme(t)}function u(){if(n)throw new t$("Shiki instance has been disposed")}function c(){n||(n=!0,a.dispose(),tD-=1)}return{setTheme:function(e){u();let n=s(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){u();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new t$(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),a.getLoadedThemes()},getLoadedLanguages:function(){return u(),a.getLoadedLanguages()},loadLanguage:async function(...e){return o(await tR(e))},loadLanguageSync:o,loadTheme:async function(...e){return u(),l(await tL(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:n,engine:r})}async function tZ(e){let t=await tB(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return tf(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:s=t.getLoadedThemes()[0]}=r;if(tr(i)||ta(s))throw new a("Plain language does not have grammar state");if("ansi"===i)throw new a("ANSI language does not have grammar state");let{theme:o,colorMap:l}=t.setTheme(s),u=t.getLanguage(i);return new tm(tw(n,u,o,l,r).stateStack,u.name,o.name)})(t,...e),codeToTokensBase:(e,n)=>tx(t,e,n),codeToTokensWithThemes:(e,n)=>tA(t,e,n),codeToTokens:(e,n)=>tT(t,e,n),codeToHast:(e,n)=>tP(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>tP(e,t,n),codeToTokens:(t,n)=>tT(e,t,n)},i=tE(tP(e,t,n,r));for(let e of ty(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let tF=[{id:"abap",name:"ABAP",import:()=>n.e(7412).then(n.bind(n,17412))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(9657).then(n.bind(n,19657))},{id:"ada",name:"Ada",import:()=>n.e(8196).then(n.bind(n,28196))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(8962)]).then(n.bind(n,28962))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(4619),n.e(7188),n.e(5865),n.e(5817),n.e(4118),n.e(7678)]).then(n.bind(n,48686))},{id:"apache",name:"Apache Conf",import:()=>n.e(2455).then(n.bind(n,74836))},{id:"apex",name:"Apex",import:()=>n.e(1942).then(n.bind(n,51942))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(3090),n.e(3341)]).then(n.bind(n,93341))},{id:"applescript",name:"AppleScript",import:()=>n.e(4713).then(n.bind(n,34713))},{id:"ara",name:"Ara",import:()=>n.e(1974).then(n.bind(n,31974))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(8687).then(n.bind(n,28687))},{id:"asm",name:"Assembly",import:()=>n.e(6641).then(n.bind(n,36641))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(4619),n.e(6408),n.e(2688),n.e(5865),n.e(2437)]).then(n.bind(n,42437))},{id:"awk",name:"AWK",import:()=>n.e(411).then(n.bind(n,10411))},{id:"ballerina",name:"Ballerina",import:()=>n.e(3392).then(n.bind(n,43392))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(193).then(n.bind(n,80193))},{id:"beancount",name:"Beancount",import:()=>n.e(2063).then(n.bind(n,22063))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(7068).then(n.bind(n,57068))},{id:"bibtex",name:"BibTeX",import:()=>n.e(7940).then(n.bind(n,97940))},{id:"bicep",name:"Bicep",import:()=>n.e(9445).then(n.bind(n,89445))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(3090),n.e(2316),n.e(5006)]).then(n.bind(n,95006))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(2559).then(n.bind(n,32559))},{id:"c",name:"C",import:()=>n.e(6451).then(n.bind(n,6451))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(157).then(n.bind(n,30157))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(4980),n.e(7960)]).then(n.bind(n,87960))},{id:"clarity",name:"Clarity",import:()=>n.e(5472).then(n.bind(n,45472))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(9436).then(n.bind(n,69436))},{id:"cmake",name:"CMake",import:()=>n.e(1469).then(n.bind(n,21469))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(3090),n.e(3721)]).then(n.bind(n,33721))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(3429).then(n.bind(n,33429))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(3126).then(n.bind(n,93126))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(4619),n.e(8478)]).then(n.bind(n,48478))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(5428).then(n.bind(n,75428))},{id:"coq",name:"Coq",import:()=>n.e(5631).then(n.bind(n,95631))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(7717),n.e(7779),n.e(2316),n.e(6451),n.e(4958)]).then(n.bind(n,10419))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(2316),n.e(6451),n.e(4627),n.e(1526)]).then(n.bind(n,81526))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(3103).then(n.bind(n,23103))},{id:"css",name:"CSS",import:()=>n.e(5865).then(n.bind(n,85865))},{id:"csv",name:"CSV",import:()=>n.e(492).then(n.bind(n,40492))},{id:"cue",name:"CUE",import:()=>n.e(1577).then(n.bind(n,91577))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(1563).then(n.bind(n,31563))},{id:"d",name:"D",import:()=>n.e(452).then(n.bind(n,60452))},{id:"dart",name:"Dart",import:()=>n.e(1117).then(n.bind(n,21117))},{id:"dax",name:"DAX",import:()=>n.e(6375).then(n.bind(n,26375))},{id:"desktop",name:"Desktop",import:()=>n.e(7448).then(n.bind(n,97448))},{id:"diff",name:"Diff",import:()=>n.e(6899).then(n.bind(n,46899))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(2202).then(n.bind(n,12202))},{id:"dotenv",name:"dotEnv",import:()=>n.e(6456).then(n.bind(n,96456))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(2006).then(n.bind(n,32006))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(4619),n.e(6408),n.e(5865),n.e(5817),n.e(5113)]).then(n.bind(n,15113))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(5247)]).then(n.bind(n,35247))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(6451),n.e(2964)]).then(n.bind(n,42964))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(6548).then(n.bind(n,59844))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(4619),n.e(6408),n.e(2688),n.e(3384),n.e(7717),n.e(7779),n.e(5865),n.e(5817),n.e(3090),n.e(2316),n.e(6451),n.e(4627),n.e(5503),n.e(6437),n.e(97)]).then(n.bind(n,20097))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(761),n.e(2247)]).then(n.bind(n,72247))},{id:"fennel",name:"Fennel",import:()=>n.e(730).then(n.bind(n,20730))},{id:"fish",name:"Fish",import:()=>n.e(4888).then(n.bind(n,34888))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(6128).then(n.bind(n,6128))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(2484),n.e(9976)]).then(n.bind(n,69976))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(2484).then(n.bind(n,82484))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(761),n.e(8020)]).then(n.bind(n,18020))},{id:"gdresource",name:"GDResource",import:()=>n.e(1687).then(n.bind(n,51687))},{id:"gdscript",name:"GDScript",import:()=>n.e(3602).then(n.bind(n,13602))},{id:"gdshader",name:"GDShader",import:()=>n.e(320).then(n.bind(n,80320))},{id:"genie",name:"Genie",import:()=>n.e(7684).then(n.bind(n,7684))},{id:"gherkin",name:"Gherkin",import:()=>n.e(5326).then(n.bind(n,45326))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(3080).then(n.bind(n,13080))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(4627),n.e(9275)]).then(n.bind(n,9275))},{id:"gleam",name:"Gleam",import:()=>n.e(8884).then(n.bind(n,28884))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(4619),n.e(6408),n.e(5865),n.e(5817),n.e(3481)]).then(n.bind(n,43481))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(4619),n.e(6408),n.e(5865),n.e(5817),n.e(423)]).then(n.bind(n,423))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(6451),n.e(9022)]).then(n.bind(n,69022))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(2313).then(n.bind(n,2313))},{id:"go",name:"Go",import:()=>n.e(7200).then(n.bind(n,17200))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(4619),n.e(6408),n.e(2688),n.e(3384),n.e(5503)]).then(n.bind(n,15503))},{id:"groovy",name:"Groovy",import:()=>n.e(1832).then(n.bind(n,51832))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(2316),n.e(2449)]).then(n.bind(n,32449))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5656)]).then(n.bind(n,55656))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(914)]).then(n.bind(n,70914))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(6560).then(n.bind(n,46560))},{id:"haxe",name:"Haxe",import:()=>n.e(7910).then(n.bind(n,67910))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(8601).then(n.bind(n,78601))},{id:"hjson",name:"Hjson",import:()=>n.e(9790).then(n.bind(n,59790))},{id:"hlsl",name:"HLSL",import:()=>n.e(5331).then(n.bind(n,15331))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817)]).then(n.bind(n,35817))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(8815)]).then(n.bind(n,8815))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(4619),n.e(6408),n.e(2688),n.e(3384),n.e(3090),n.e(4627),n.e(5503),n.e(9754)]).then(n.bind(n,19754))},{id:"hxml",name:"HXML",import:()=>n.e(6269).then(n.bind(n,16269))},{id:"hy",name:"Hy",import:()=>n.e(4139).then(n.bind(n,64139))},{id:"imba",name:"Imba",import:()=>n.e(9923).then(n.bind(n,89923))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(7698).then(n.bind(n,7698))},{id:"java",name:"Java",import:()=>n.e(3090).then(n.bind(n,43090))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>n.e(4619).then(n.bind(n,7383))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(311)]).then(n.bind(n,20311))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(4619),n.e(189)]).then(n.bind(n,80189))},{id:"json",name:"JSON",import:()=>n.e(8984).then(n.bind(n,18984))},{id:"json5",name:"JSON5",import:()=>n.e(7335).then(n.bind(n,97335))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(2193).then(n.bind(n,62193))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(4262).then(n.bind(n,24262))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(9871).then(n.bind(n,49871))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(431).then(n.bind(n,40431))},{id:"jsx",name:"JSX",import:()=>n.e(3384).then(n.bind(n,10883))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(4619),n.e(7717),n.e(7779),n.e(2316),n.e(6451),n.e(4980),n.e(5050),n.e(5317)]).then(n.bind(n,20163))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(2513).then(n.bind(n,92513))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(7172).then(n.bind(n,87172))},{id:"latex",name:"LaTeX",import:()=>Promise.all([n.e(5050),n.e(9636)]).then(n.bind(n,49636))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(4382).then(n.bind(n,84382))},{id:"less",name:"Less",import:()=>n.e(5329).then(n.bind(n,5329))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(2)]).then(n.bind(n,90002))},{id:"llvm",name:"LLVM IR",import:()=>n.e(9473).then(n.bind(n,29473))},{id:"log",name:"Log file",import:()=>n.e(4058).then(n.bind(n,44058))},{id:"logo",name:"Logo",import:()=>n.e(5567).then(n.bind(n,75567))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(6451),n.e(4626)]).then(n.bind(n,64626))},{id:"luau",name:"Luau",import:()=>n.e(541).then(n.bind(n,80541))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(1192).then(n.bind(n,61192))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(761).then(n.bind(n,60761))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(6408),n.e(5865),n.e(4118),n.e(5329),n.e(1826)]).then(n.bind(n,71826))},{id:"matlab",name:"MATLAB",import:()=>n.e(9433).then(n.bind(n,99433))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(761),n.e(2370)]).then(n.bind(n,82370))},{id:"mdx",name:"MDX",import:()=>n.e(8305).then(n.bind(n,88305))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(8169).then(n.bind(n,88169))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(7422).then(n.bind(n,47422))},{id:"mojo",name:"Mojo",import:()=>n.e(5779).then(n.bind(n,5779))},{id:"move",name:"Move",import:()=>n.e(4749).then(n.bind(n,74749))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(6266).then(n.bind(n,6266))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(1265).then(n.bind(n,21265))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(6451),n.e(6644)]).then(n.bind(n,46644))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(3090),n.e(6451),n.e(761),n.e(2324)]).then(n.bind(n,42324))},{id:"nix",name:"Nix",import:()=>n.e(2545).then(n.bind(n,72545))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(1067).then(n.bind(n,81067))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(5305).then(n.bind(n,85305))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(9080).then(n.bind(n,34313))},{id:"ocaml",name:"OCaml",import:()=>n.e(140).then(n.bind(n,80140))},{id:"pascal",name:"Pascal",import:()=>n.e(2578).then(n.bind(n,62578))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(3090),n.e(2316),n.e(5213)]).then(n.bind(n,65213))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(3090),n.e(2316),n.e(6928),n.e(1480)]).then(n.bind(n,46928))},{id:"plsql",name:"PL/SQL",import:()=>n.e(1936).then(n.bind(n,81936))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(997).then(n.bind(n,40997))},{id:"polar",name:"Polar",import:()=>n.e(5248).then(n.bind(n,25248))},{id:"postcss",name:"PostCSS",import:()=>n.e(1523).then(n.bind(n,41523))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(6563).then(n.bind(n,86563))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(2737).then(n.bind(n,12737))},{id:"prisma",name:"Prisma",import:()=>n.e(2558).then(n.bind(n,32558))},{id:"prolog",name:"Prolog",import:()=>n.e(9555).then(n.bind(n,49555))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(7185).then(n.bind(n,59566))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(288)]).then(n.bind(n,288))},{id:"puppet",name:"Puppet",import:()=>n.e(1092).then(n.bind(n,91092))},{id:"purescript",name:"PureScript",import:()=>n.e(6621).then(n.bind(n,96621))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(4980).then(n.bind(n,4980))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(4619),n.e(3110)]).then(n.bind(n,33110))},{id:"qmldir",name:"QML Directory",import:()=>n.e(2817).then(n.bind(n,72817))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(7855).then(n.bind(n,67855))},{id:"r",name:"R",import:()=>n.e(5050).then(n.bind(n,65050))},{id:"racket",name:"Racket",import:()=>n.e(2332).then(n.bind(n,82332))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(9217).then(n.bind(n,29217))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(3103),n.e(688)]).then(n.bind(n,50688))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(8878).then(n.bind(n,88878))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(4577).then(n.bind(n,24577))},{id:"rel",name:"Rel",import:()=>n.e(3805).then(n.bind(n,33805))},{id:"riscv",name:"RISC-V",import:()=>n.e(2601).then(n.bind(n,32601))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(4619),n.e(6408),n.e(2688),n.e(3384),n.e(7717),n.e(7779),n.e(5865),n.e(5817),n.e(3090),n.e(2316),n.e(6451),n.e(4627),n.e(5503),n.e(4980),n.e(6437),n.e(6423)]).then(n.bind(n,46423))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(4619),n.e(6408),n.e(2688),n.e(3384),n.e(7717),n.e(7779),n.e(5865),n.e(5817),n.e(3090),n.e(2316),n.e(6451),n.e(4627),n.e(5503),n.e(6437)]).then(n.bind(n,14930))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(212).then(n.bind(n,40212))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(2316),n.e(9971)]).then(n.bind(n,99971))},{id:"sass",name:"Sass",import:()=>n.e(1088).then(n.bind(n,91088))},{id:"scala",name:"Scala",import:()=>n.e(1142).then(n.bind(n,31142))},{id:"scheme",name:"Scheme",import:()=>n.e(8571).then(n.bind(n,88571))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(5865),n.e(4118)]).then(n.bind(n,94118))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(6901).then(n.bind(n,6901))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(1012).then(n.bind(n,11012))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(4627).then(n.bind(n,34627))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(4627),n.e(2328)]).then(n.bind(n,82328))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(2119).then(n.bind(n,72119))},{id:"solidity",name:"Solidity",import:()=>n.e(5097).then(n.bind(n,35097))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(4619),n.e(5865),n.e(5817),n.e(3607)]).then(n.bind(n,33607))},{id:"sparql",name:"SPARQL",import:()=>n.e(1017).then(n.bind(n,61017))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(6831).then(n.bind(n,36831))},{id:"sql",name:"SQL",import:()=>n.e(2316).then(n.bind(n,82316))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(9471).then(n.bind(n,19471))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(2316),n.e(3435)]).then(n.bind(n,53435))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(8388).then(n.bind(n,18388))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(4619),n.e(6408),n.e(5865),n.e(8107)]).then(n.bind(n,58107))},{id:"swift",name:"Swift",import:()=>n.e(8257).then(n.bind(n,38257))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(5084).then(n.bind(n,75084))},{id:"systemd",name:"Systemd Units",import:()=>n.e(925).then(n.bind(n,60925))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(529).then(n.bind(n,40529))},{id:"tasl",name:"Tasl",import:()=>n.e(522).then(n.bind(n,90522))},{id:"tcl",name:"Tcl",import:()=>n.e(1421).then(n.bind(n,91421))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(4619),n.e(5865),n.e(7200),n.e(5906)]).then(n.bind(n,65906))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(7484).then(n.bind(n,37484))},{id:"tex",name:"TeX",import:()=>Promise.all([n.e(5050),n.e(9099)]).then(n.bind(n,69099))},{id:"toml",name:"TOML",import:()=>n.e(6958).then(n.bind(n,6958))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(4619),n.e(6408),n.e(5865),n.e(5817),n.e(3090),n.e(2316),n.e(6451),n.e(1200)]).then(n.bind(n,31200))},{id:"tsv",name:"TSV",import:()=>n.e(8535).then(n.bind(n,48535))},{id:"tsx",name:"TSX",import:()=>n.e(2688).then(n.bind(n,36473))},{id:"turtle",name:"Turtle",import:()=>n.e(4968).then(n.bind(n,14968))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(4619),n.e(6408),n.e(2688),n.e(3384),n.e(7717),n.e(7779),n.e(5865),n.e(5817),n.e(3090),n.e(2316),n.e(6451),n.e(4627),n.e(5503),n.e(4980),n.e(4118),n.e(6437),n.e(6928),n.e(8665)]).then(n.bind(n,98665))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>n.e(6408).then(n.bind(n,47543))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(7479).then(n.bind(n,27479))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(7522).then(n.bind(n,67522))},{id:"v",name:"V",import:()=>n.e(62).then(n.bind(n,10062))},{id:"vala",name:"Vala",import:()=>n.e(624).then(n.bind(n,90624))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(7046).then(n.bind(n,37046))},{id:"verilog",name:"Verilog",import:()=>n.e(630).then(n.bind(n,60630))},{id:"vhdl",name:"VHDL",import:()=>n.e(9676).then(n.bind(n,9676))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(1146).then(n.bind(n,91146))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(4619),n.e(6408),n.e(5865),n.e(5817),n.e(4045)]).then(n.bind(n,84045))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(4619),n.e(6408),n.e(5865),n.e(5817),n.e(4045),n.e(6504)]).then(n.bind(n,76504))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(4619),n.e(6408),n.e(9566),n.e(5865),n.e(5817),n.e(4118),n.e(5329),n.e(4045),n.e(322)]).then(n.bind(n,77519))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(6264).then(n.bind(n,86264))},{id:"wasm",name:"WebAssembly",import:()=>n.e(2669).then(n.bind(n,85050))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(7556).then(n.bind(n,97556))},{id:"wgsl",name:"WGSL",import:()=>n.e(3433).then(n.bind(n,43433))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(2347).then(n.bind(n,92347))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(6824).then(n.bind(n,76824))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(1029).then(n.bind(n,80051))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(3090),n.e(4337)]).then(n.bind(n,89099))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(3090),n.e(9545)]).then(n.bind(n,49545))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(3391).then(n.bind(n,83391))},{id:"zenscript",name:"ZenScript",import:()=>n.e(2822).then(n.bind(n,56793))},{id:"zig",name:"Zig",import:()=>n.e(282).then(n.bind(n,282))}],tU=Object.fromEntries(tF.map(e=>[e.id,e.import])),tH=Object.fromEntries(tF.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),tq={...tU,...tH},tG=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(6438).then(n.bind(n,36438))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(2541).then(n.bind(n,52541))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(2378).then(n.bind(n,52378))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(1685).then(n.bind(n,21685))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(9361).then(n.bind(n,19361))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(8394).then(n.bind(n,8394))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(6353).then(n.bind(n,96353))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(7725).then(n.bind(n,67725))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(450).then(n.bind(n,50450))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(6625).then(n.bind(n,76625))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(4860).then(n.bind(n,34860))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(9990).then(n.bind(n,49990))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(2642).then(n.bind(n,2642))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(2190).then(n.bind(n,42190))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(5677).then(n.bind(n,75677))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(6730).then(n.bind(n,56730))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(4068).then(n.bind(n,54068))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(4836).then(n.bind(n,44836))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(2804).then(n.bind(n,32804))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(4052).then(n.bind(n,34052))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(5942).then(n.bind(n,75942))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(1507).then(n.bind(n,31507))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(5958).then(n.bind(n,65958))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(9484).then(n.bind(n,29484))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(4869).then(n.bind(n,64869))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(1622).then(n.bind(n,31622))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(9997).then(n.bind(n,59997))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(8419).then(n.bind(n,48419))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(5579).then(n.bind(n,25579))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(3786).then(n.bind(n,33786))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(9887).then(n.bind(n,89887))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(521).then(n.bind(n,70521))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(5341).then(n.bind(n,55341))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(963).then(n.bind(n,80963))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(2500).then(n.bind(n,62500))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(8324).then(n.bind(n,8324))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(5115).then(n.bind(n,15115))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(1899).then(n.bind(n,1899))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(3386).then(n.bind(n,23386))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(6395).then(n.bind(n,16395))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(3357).then(n.bind(n,63357))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(6341).then(n.bind(n,76341))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(8583).then(n.bind(n,48583))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(8656).then(n.bind(n,78656))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(5460).then(n.bind(n,65460))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(4489).then(n.bind(n,34489))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(5572).then(n.bind(n,15572))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(7301).then(n.bind(n,77301))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(8480).then(n.bind(n,18480))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(1851).then(n.bind(n,81851))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(5860).then(n.bind(n,65860))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(1044).then(n.bind(n,1044))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(2356).then(n.bind(n,72356))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(6910).then(n.bind(n,76910))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(4852).then(n.bind(n,14852))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(3615).then(n.bind(n,23615))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(2533).then(n.bind(n,52533))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(1275).then(n.bind(n,71275))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(2344).then(n.bind(n,32344))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(5018).then(n.bind(n,15018))}].map(e=>[e.id,e.import]));var tV=n(57831).Buffer;class tW extends Error{constructor(e){super(e),this.name="ShikiError"}}function tJ(){return"undefined"!=typeof performance?performance.now():Date.now()}let tQ=(e,t)=>e+(t-e%t)%t;async function tK(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let s="";for(;t<i;){let n=e[t++];if(!(128&n)){s+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){s+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)s+=String.fromCharCode(n);else{let e=n-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(r.HEAPU8,e,t):""}let o={emscripten_get_now:tJ,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let s=a*(1+.2/r);if(s=Math.min(s,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,tQ(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:o,wasi_snapshot_preview1:o});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=s}return await l(),r}var tX=Object.defineProperty,tY=(e,t,n)=>((e,t,n)=>t in e?tX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let t0=null;class t1{constructor(e){tY(this,"utf16Length"),tY(this,"utf8Length"),tY(this,"utf16Value"),tY(this,"utf8Value"),tY(this,"utf16OffsetToUtf8"),tY(this,"utf8OffsetToUtf16");let t=e.length,n=t1._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);let a=r?new Uint32Array(n+1):null;r&&(a[n]=t);let s=new Uint8Array(n),o=0;for(let n=0;n<t;n++){let l=e.charCodeAt(n),u=l,c=!1;if(l>=55296&&l<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(l-55296<<10)+65536|t-56320,c=!0)}r&&(i[n]=o,c&&(i[n+1]=o),u<=127?a[o+0]=n:u<=2047?(a[o+0]=n,a[o+1]=n):u<=65535?(a[o+0]=n,a[o+1]=n,a[o+2]=n):(a[o+0]=n,a[o+1]=n,a[o+2]=n,a[o+3]=n)),u<=127?s[o++]=u:(u<=2047?s[o++]=192|(1984&u)>>>6:(u<=65535?s[o++]=224|(61440&u)>>>12:(s[o++]=240|(1835008&u)>>>18,s[o++]=128|(258048&u)>>>12),s[o++]=128|(4032&u)>>>6),s[o++]=128|(63&u)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,s=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,s=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,s&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let t2=class e{constructor(t){if(tY(this,"id",++e.LAST_ID),tY(this,"_onigBinding"),tY(this,"content"),tY(this,"utf16Length"),tY(this,"utf8Length"),tY(this,"utf16OffsetToUtf8"),tY(this,"utf8OffsetToUtf16"),tY(this,"ptr"),!t0)throw new tW("Must invoke loadWasm first.");this._onigBinding=t0,this.content=t;let n=new t1(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=t0.omalloc(1e4)),e._sharedPtrInUse=!0,t0.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(t0)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};tY(t2,"LAST_ID",0),tY(t2,"_sharedPtr",0),tY(t2,"_sharedPtrInUse",!1);class t4{constructor(e){if(tY(this,"_onigBinding"),tY(this,"_ptr"),!t0)throw new tW("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new t1(e[r]);t[r]=i.createString(t0),n[r]=i.utf8Length}let r=t0.omalloc(4*e.length);t0.HEAPU32.set(t,r/4);let i=t0.omalloc(4*e.length);t0.HEAPU32.set(n,i/4);let a=t0.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)t0.ofree(t[n]);t0.ofree(i),t0.ofree(r),0===a&&function(e){throw new tW(e.UTF8ToString(e.getLastOnigError()))}(t0),this._onigBinding=t0,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new t2(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let s=i.HEAPU32,o=a/4,l=s[o++],u=s[o++],c=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(s[o++]),r=e.convertUtf8OffsetToUtf16(s[o++]);c[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:c}}}function t5(e){return t=>WebAssembly.instantiate(e,t)}async function t6(e){return e&&await (i||(i=async function(){t0=await tK(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,s;if(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):await (s=n,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==tV&&tV.isBuffer?.(i)||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await t5(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await t5(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new t4(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new t2(e)}}let{codeToHtml:t3}=function(e,t){let n,r=async function(t={}){if(!n)return n=e({...t,themes:t.themes||[],langs:t.langs||[]});{let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}};async function i(e,n){let i=await r({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),a=await t?.guessEmbeddedLanguages?.(e,n.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter:e=>r(e),codeToHtml:async(e,t)=>(await i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await r({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(function(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){function i(n){if("string"==typeof n){if(ti(n))return[];let r=t[n=e.langAlias?.[n]||n];if(!r)throw new a(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function s(e){if(ta(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new a(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>s(e)),l=(e.langs??[]).map(e=>i(e)),u=await tZ({engine:e.engine??r(),...e,themes:o,langs:l});return{...u,loadLanguage:(...e)=>u.loadLanguage(...e.map(i)),loadTheme:(...e)=>u.loadTheme(...e.map(s)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}({langs:tq,themes:tG,engine:()=>t6(Promise.all([n.e(7794),n.e(7482)]).then(n.bind(n,67482)))}),{guessEmbeddedLanguages:function(e,t,n){let r=new Set;for(let t of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(t[1]);for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(t[1]);for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(t[1]);if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}})}}]);
|