evalkit-py 0.2.0.dev12__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.
- evalkit/__init__.py +0 -0
- evalkit/api/__init__.py +0 -0
- evalkit/api/access.py +74 -0
- evalkit/api/agents.py +159 -0
- evalkit/api/app.py +360 -0
- evalkit/api/auth.py +225 -0
- evalkit/api/cli_dist.py +10 -0
- evalkit/api/datasets.py +169 -0
- evalkit/api/deps.py +79 -0
- evalkit/api/download.py +15 -0
- evalkit/api/evaluators.py +121 -0
- evalkit/api/experiments.py +616 -0
- evalkit/api/fixtures.py +95 -0
- evalkit/api/harness_check.py +48 -0
- evalkit/api/imports.py +180 -0
- evalkit/api/limits.py +84 -0
- evalkit/api/llm_providers.py +120 -0
- evalkit/api/mcp/__init__.py +0 -0
- evalkit/api/mcp/auth.py +100 -0
- evalkit/api/mcp/descriptions.py +336 -0
- evalkit/api/mcp/models.py +259 -0
- evalkit/api/mcp/server.py +101 -0
- evalkit/api/mcp/tools.py +844 -0
- evalkit/api/meta.py +19 -0
- evalkit/api/otel.py +350 -0
- evalkit/api/pull.py +197 -0
- evalkit/api/review.py +271 -0
- evalkit/api/runs.py +555 -0
- evalkit/api/server_keys.py +44 -0
- evalkit/api/tokens.py +51 -0
- evalkit/api/trace_imports.py +173 -0
- evalkit/api/trace_sources.py +49 -0
- evalkit/api/traces.py +196 -0
- evalkit/api/users.py +72 -0
- evalkit/api/workspaces.py +131 -0
- evalkit/bundled/contracts/atif-accepted.json +5 -0
- evalkit/bundled/contracts/custom-evaluator-api-v1.json +243 -0
- evalkit/bundled/contracts/harness-api-v1.json +938 -0
- evalkit/bundled/contracts/span-mapping-v1.json +314 -0
- evalkit/bundled/docs/concepts.md +26 -0
- evalkit/bundled/docs/config.md +38 -0
- evalkit/bundled/docs/harness-api.md +44 -0
- evalkit/bundled/docs/install.md +60 -0
- evalkit/bundled/docs/login.md +36 -0
- evalkit/bundled/docs/mappings.md +136 -0
- evalkit/bundled/docs/mcp.md +44 -0
- evalkit/bundled/docs/quickstart.md +142 -0
- evalkit/bundled/docs/sdk-runs.md +171 -0
- evalkit/bundled/docs/tracing.md +171 -0
- evalkit/bundled/docs/try-locally.md +288 -0
- evalkit/bundled/docs/workspaces.md +45 -0
- evalkit/bundled/skills/authoring-eval-cases/SKILL.md +387 -0
- evalkit/bundled/skills/authoring-eval-cases/references/overlays.md +83 -0
- evalkit/bundled/skills/authoring-eval-cases/references/tool-checks.md +71 -0
- evalkit/bundled/skills/connect-traces/SKILL.md +296 -0
- evalkit/bundled/skills/connect-traces/references/gen_ai.json +42 -0
- evalkit/bundled/skills/connect-traces/references/openinference.json +35 -0
- evalkit/bundled/skills/connect-traces/references/span-mapping-schema.md +88 -0
- evalkit/bundled/skills/eval-driven-development/SKILL.md +458 -0
- evalkit/bundled/skills/eval-driven-development/references/analyze-run.md +97 -0
- evalkit/bundled/skills/eval-driven-development/references/diagnose.md +130 -0
- evalkit/bundled/skills/eval-driven-development/references/synthesize-cases.md +87 -0
- evalkit/bundled/skills/eval-driven-development/references/synthesize.md +165 -0
- evalkit/bundled/skills/evalkit-deployment/SKILL.md +332 -0
- evalkit/bundled/skills/evalkit-deployment/config.example.yaml +49 -0
- evalkit/bundled/skills/evalkit-deployment/docker-compose.yml +51 -0
- evalkit/bundled/skills/evalkit-deployment/references/config-and-deploy.md +333 -0
- evalkit/bundled/skills/evalkit-deployment/references/harness-api.md +139 -0
- evalkit/bundled/skills/evalkit-deployment/try/.env.example +11 -0
- evalkit/bundled/skills/evalkit-deployment/try/agent.py +131 -0
- evalkit/bundled/skills/evalkit-deployment/try/cases/acme/balance-sheet/cases.yaml +25 -0
- evalkit/bundled/skills/evalkit-deployment/try/cases/acme/income-statement/cases.yaml +43 -0
- evalkit/bundled/skills/evalkit-deployment/try/config.yaml +17 -0
- evalkit/bundled/skills/evalkit-deployment/try/docker-compose.yml +82 -0
- evalkit/bundled/skills/evalkit-deployment/try/evalkit.yaml +4 -0
- evalkit/bundled/skills/evalkit-deployment/try/mapping.json +42 -0
- evalkit/bundled/skills/evalkit-deployment/try/run.py +33 -0
- evalkit/bundled/skills/evalkit-usage/SKILL.md +509 -0
- evalkit/bundled/skills/evalkit-usage/references/suite-fixtures.md +42 -0
- evalkit/bundled/ui/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- evalkit/bundled/ui/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- evalkit/bundled/ui/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- evalkit/bundled/ui/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- evalkit/bundled/ui/assets/abap-08VXUWAP.js +1 -0
- evalkit/bundled/ui/assets/apex-BWPQTe0t.js +1 -0
- evalkit/bundled/ui/assets/azcli-Bc_sGQ0U.js +1 -0
- evalkit/bundled/ui/assets/bat-i0X4ZdIN.js +1 -0
- evalkit/bundled/ui/assets/bicep-B5-_aFwp.js +2 -0
- evalkit/bundled/ui/assets/cameligo-DMUM7wLl.js +1 -0
- evalkit/bundled/ui/assets/clojure-Cm7r79vr.js +1 -0
- evalkit/bundled/ui/assets/codicon-DF1abBS2.ttf +0 -0
- evalkit/bundled/ui/assets/coffee-Ba7i2nA0.js +1 -0
- evalkit/bundled/ui/assets/cpp-C7h46wYY.js +1 -0
- evalkit/bundled/ui/assets/csharp-BKxtCVv1.js +1 -0
- evalkit/bundled/ui/assets/csp-bTuwJoIa.js +1 -0
- evalkit/bundled/ui/assets/css-DIMkf-bt.js +3 -0
- evalkit/bundled/ui/assets/css.worker-DwfUZ3fB.js +96 -0
- evalkit/bundled/ui/assets/cssMode-C97l1pbB.js +1 -0
- evalkit/bundled/ui/assets/cypher-CVaqCwHa.js +1 -0
- evalkit/bundled/ui/assets/dart-onAF5SnQ.js +1 -0
- evalkit/bundled/ui/assets/dockerfile-DZFCIeNp.js +1 -0
- evalkit/bundled/ui/assets/ecl-94qehhXe.js +1 -0
- evalkit/bundled/ui/assets/editor-DjpsE8to.css +1 -0
- evalkit/bundled/ui/assets/editor.api-NTesIxw5.js +908 -0
- evalkit/bundled/ui/assets/editor.worker-CRz__AKW.js +33 -0
- evalkit/bundled/ui/assets/elixir-6RTg0lbw.js +1 -0
- evalkit/bundled/ui/assets/flow9-C5_-GSwl.js +1 -0
- evalkit/bundled/ui/assets/freemarker2-BWqEFagp.js +3 -0
- evalkit/bundled/ui/assets/fsharp-C8Ef5oNN.js +1 -0
- evalkit/bundled/ui/assets/go-C-y9NEjX.js +1 -0
- evalkit/bundled/ui/assets/graphql-fmXr3nnJ.js +1 -0
- evalkit/bundled/ui/assets/handlebars-DkIF-whN.js +1 -0
- evalkit/bundled/ui/assets/hcl-CpzslTdj.js +1 -0
- evalkit/bundled/ui/assets/html-C_rpeQXJ.js +1 -0
- evalkit/bundled/ui/assets/html.worker-D9ugpX4y.js +509 -0
- evalkit/bundled/ui/assets/htmlMode-B0YIq3DF.js +1 -0
- evalkit/bundled/ui/assets/index-Cw-jBH6M.js +736 -0
- evalkit/bundled/ui/assets/index-DKtoQZtm.css +1 -0
- evalkit/bundled/ui/assets/ini-sBoK_t0W.js +1 -0
- evalkit/bundled/ui/assets/java-BEtHBSE6.js +1 -0
- evalkit/bundled/ui/assets/javascript-D4EGhYA6.js +1 -0
- evalkit/bundled/ui/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- evalkit/bundled/ui/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- evalkit/bundled/ui/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- evalkit/bundled/ui/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- evalkit/bundled/ui/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- evalkit/bundled/ui/assets/json.worker-CV9fqkUp.js +65 -0
- evalkit/bundled/ui/assets/jsonMode-pQjSfIH6.js +7 -0
- evalkit/bundled/ui/assets/julia-Bri6UV-V.js +1 -0
- evalkit/bundled/ui/assets/kotlin-BOotOW0E.js +1 -0
- evalkit/bundled/ui/assets/less-B9JPFI3C.js +2 -0
- evalkit/bundled/ui/assets/lexon-CfSJPG6W.js +1 -0
- evalkit/bundled/ui/assets/liquid-DbrvoYjD.js +1 -0
- evalkit/bundled/ui/assets/lspLanguageFeatures-D0B7cH6y.js +4 -0
- evalkit/bundled/ui/assets/lua-CsQS60Ue.js +1 -0
- evalkit/bundled/ui/assets/m3-D-oSqn_W.js +1 -0
- evalkit/bundled/ui/assets/markdown-Cimd5fb3.js +1 -0
- evalkit/bundled/ui/assets/mdx-B0HrujLR.js +1 -0
- evalkit/bundled/ui/assets/mips-CIPQ_RoX.js +1 -0
- evalkit/bundled/ui/assets/monacoEditor-DsoPncxW.js +68 -0
- evalkit/bundled/ui/assets/monacoEditor-n7clI0si.css +1 -0
- evalkit/bundled/ui/assets/msdax-DauUninz.js +1 -0
- evalkit/bundled/ui/assets/mysql-SOo6toE5.js +1 -0
- evalkit/bundled/ui/assets/objective-c-FvmIjYaQ.js +1 -0
- evalkit/bundled/ui/assets/pascal-DrH0SRf2.js +1 -0
- evalkit/bundled/ui/assets/pascaligo-D-ptJ9y-.js +1 -0
- evalkit/bundled/ui/assets/perl-oz_6vUea.js +1 -0
- evalkit/bundled/ui/assets/pgsql-DTj74zXo.js +1 -0
- evalkit/bundled/ui/assets/php-nr791fC2.js +1 -0
- evalkit/bundled/ui/assets/pla-CopQ2nXW.js +1 -0
- evalkit/bundled/ui/assets/postiats-43DmfD33.js +1 -0
- evalkit/bundled/ui/assets/powerquery-D3hlyOfw.js +1 -0
- evalkit/bundled/ui/assets/powershell-DmHpPYUd.js +1 -0
- evalkit/bundled/ui/assets/protobuf-C531GsRP.js +2 -0
- evalkit/bundled/ui/assets/pug-Z5eAx3Zn.js +1 -0
- evalkit/bundled/ui/assets/python-CieHVM9n.js +1 -0
- evalkit/bundled/ui/assets/qsharp-DkqhCAOL.js +1 -0
- evalkit/bundled/ui/assets/r-BwWrilGY.js +1 -0
- evalkit/bundled/ui/assets/razor-sLewSMyp.js +1 -0
- evalkit/bundled/ui/assets/redis-ClamHrr6.js +1 -0
- evalkit/bundled/ui/assets/redshift-DT7zqm-g.js +1 -0
- evalkit/bundled/ui/assets/restructuredtext-BYgofb2h.js +1 -0
- evalkit/bundled/ui/assets/ruby-DezsRK8O.js +1 -0
- evalkit/bundled/ui/assets/rust-DdL9SqIa.js +1 -0
- evalkit/bundled/ui/assets/sb-CcwsVR0C.js +1 -0
- evalkit/bundled/ui/assets/scala-DHpiXF5c.js +1 -0
- evalkit/bundled/ui/assets/scheme-BeGwcela.js +1 -0
- evalkit/bundled/ui/assets/scss-gp-XZpBa.js +3 -0
- evalkit/bundled/ui/assets/shell-CC2rA5mh.js +1 -0
- evalkit/bundled/ui/assets/solidity-BEEn4gHE.js +1 -0
- evalkit/bundled/ui/assets/sophia-CRfGWb83.js +1 -0
- evalkit/bundled/ui/assets/sparql-D_Lu-MrJ.js +1 -0
- evalkit/bundled/ui/assets/sql-NEE52Syq.js +1 -0
- evalkit/bundled/ui/assets/st-DbInun42.js +1 -0
- evalkit/bundled/ui/assets/swift-Bxkupp3x.js +1 -0
- evalkit/bundled/ui/assets/systemverilog-Bz4Y3fRF.js +1 -0
- evalkit/bundled/ui/assets/tcl-DISqw1ZD.js +1 -0
- evalkit/bundled/ui/assets/ts.worker-DIAQkoB3.js +67741 -0
- evalkit/bundled/ui/assets/tsMode-BcVQ1nu0.js +11 -0
- evalkit/bundled/ui/assets/twig-De2hgUGE.js +1 -0
- evalkit/bundled/ui/assets/typescript-CUvNWd9p.js +1 -0
- evalkit/bundled/ui/assets/typespec-B8J7ngcE.js +1 -0
- evalkit/bundled/ui/assets/vb-DV3o63ZY.js +1 -0
- evalkit/bundled/ui/assets/wgsl-DpFanUEy.js +298 -0
- evalkit/bundled/ui/assets/workers-CwpYQtzp.js +1 -0
- evalkit/bundled/ui/assets/xml-C1HnXMdF.js +1 -0
- evalkit/bundled/ui/assets/yaml-D7Ey3HQu.js +1 -0
- evalkit/bundled/ui/favicon.svg +6 -0
- evalkit/bundled/ui/index.html +14 -0
- evalkit/cli/__init__.py +0 -0
- evalkit/cli/admin_commands.py +590 -0
- evalkit/cli/client.py +67 -0
- evalkit/cli/init_server.py +165 -0
- evalkit/cli/local_run.py +195 -0
- evalkit/cli/main.py +1365 -0
- evalkit/cli/runs_commands.py +539 -0
- evalkit/cli/server_commands.py +130 -0
- evalkit/cli/skill_targets.py +43 -0
- evalkit/cli/tokens_commands.py +52 -0
- evalkit/cli/traces_commands.py +332 -0
- evalkit/cli/update.py +85 -0
- evalkit/client/__init__.py +0 -0
- evalkit/client/agents.py +25 -0
- evalkit/client/api.py +193 -0
- evalkit/client/blob.py +104 -0
- evalkit/client/connection.py +88 -0
- evalkit/client/evaluators.py +11 -0
- evalkit/client/sessions.py +17 -0
- evalkit/client/store.py +139 -0
- evalkit/client/summary.py +46 -0
- evalkit/client/sync.py +198 -0
- evalkit/config.py +227 -0
- evalkit/contracts/__init__.py +0 -0
- evalkit/contracts/atif.py +115 -0
- evalkit/contracts/cases.py +456 -0
- evalkit/contracts/custom_evaluator.py +58 -0
- evalkit/contracts/enums.py +86 -0
- evalkit/contracts/esf.py +120 -0
- evalkit/contracts/harness.py +281 -0
- evalkit/contracts/notes.json +4 -0
- evalkit/contracts/notes.py +7 -0
- evalkit/contracts/settings.py +41 -0
- evalkit/core/__init__.py +0 -0
- evalkit/core/access.py +75 -0
- evalkit/core/agents.py +65 -0
- evalkit/core/blob.py +46 -0
- evalkit/core/capabilities.py +36 -0
- evalkit/core/costmap.py +90 -0
- evalkit/core/custom_eval.py +50 -0
- evalkit/core/data/cost_map.json +81546 -0
- evalkit/core/endpoints.py +31 -0
- evalkit/core/evaluators/__init__.py +29 -0
- evalkit/core/evaluators/base.py +121 -0
- evalkit/core/evaluators/gauges.py +84 -0
- evalkit/core/evaluators/presentation.py +166 -0
- evalkit/core/evaluators/response_time.py +21 -0
- evalkit/core/evaluators/rubrics.py +494 -0
- evalkit/core/evaluators/tool_trajectory.py +187 -0
- evalkit/core/evaluators/trajectory_rubrics.py +198 -0
- evalkit/core/fixtures.py +57 -0
- evalkit/core/harness.py +227 -0
- evalkit/core/harness_check.py +191 -0
- evalkit/core/importer.py +257 -0
- evalkit/core/judge.py +78 -0
- evalkit/core/lint.py +265 -0
- evalkit/core/overlays.py +76 -0
- evalkit/core/paths.py +25 -0
- evalkit/core/promotion.py +94 -0
- evalkit/core/pull.py +198 -0
- evalkit/core/python_eval.py +59 -0
- evalkit/core/remote_evaluators.py +32 -0
- evalkit/core/review.py +220 -0
- evalkit/core/run_digest.py +421 -0
- evalkit/core/runner.py +995 -0
- evalkit/core/scorecard.py +255 -0
- evalkit/core/traces/__init__.py +0 -0
- evalkit/core/traces/convert.py +336 -0
- evalkit/core/traces/importer.py +113 -0
- evalkit/core/traces/mapping.py +385 -0
- evalkit/core/traces/poll.py +38 -0
- evalkit/core/traces/raw.py +21 -0
- evalkit/core/traces/sessions.py +172 -0
- evalkit/core/traces/settle.py +14 -0
- evalkit/core/traces/sources/__init__.py +19 -0
- evalkit/core/traces/sources/base.py +25 -0
- evalkit/core/traces/sources/phoenix.py +121 -0
- evalkit/core/trajectory.py +248 -0
- evalkit/core/workspace.py +30 -0
- evalkit/credentials.py +119 -0
- evalkit/db/__init__.py +0 -0
- evalkit/db/agents.py +289 -0
- evalkit/db/alembic/env.py +90 -0
- evalkit/db/alembic/script.py.mako +28 -0
- evalkit/db/alembic/versions/0011_baseline.py +1002 -0
- evalkit/db/alembic/versions/0012_ticket_token_kind.py +27 -0
- evalkit/db/alembic/versions/0013_keys_and_llm_providers.py +67 -0
- evalkit/db/cases.py +608 -0
- evalkit/db/crypto.py +12 -0
- evalkit/db/evaluators.py +156 -0
- evalkit/db/experiments.py +363 -0
- evalkit/db/fixture_blobs.py +91 -0
- evalkit/db/keys.py +78 -0
- evalkit/db/llm_providers.py +176 -0
- evalkit/db/locks.py +6 -0
- evalkit/db/mappings.py +168 -0
- evalkit/db/models.py +567 -0
- evalkit/db/promotion.py +271 -0
- evalkit/db/rekey.py +46 -0
- evalkit/db/review.py +250 -0
- evalkit/db/review_state.py +50 -0
- evalkit/db/runs.py +533 -0
- evalkit/db/scorecard.py +300 -0
- evalkit/db/session.py +71 -0
- evalkit/db/sessions.py +90 -0
- evalkit/db/spans.py +360 -0
- evalkit/db/store.py +209 -0
- evalkit/db/tokens.py +100 -0
- evalkit/db/trace_imports.py +308 -0
- evalkit/db/trace_sources.py +131 -0
- evalkit/db/users.py +186 -0
- evalkit/db/workspaces.py +232 -0
- evalkit/paths.py +33 -0
- evalkit/sdk/__init__.py +29 -0
- evalkit/sdk/binding.py +69 -0
- evalkit/sdk/evaluators.py +56 -0
- evalkit/sdk/runner.py +957 -0
- evalkit/sdk/tracing.py +166 -0
- evalkit/store/__init__.py +0 -0
- evalkit/store/base.py +354 -0
- evalkit/store/blob.py +69 -0
- evalkit/version.py +44 -0
- evalkit_py-0.2.0.dev12.dist-info/METADATA +205 -0
- evalkit_py-0.2.0.dev12.dist-info/RECORD +371 -0
- evalkit_py-0.2.0.dev12.dist-info/WHEEL +4 -0
- evalkit_py-0.2.0.dev12.dist-info/entry_points.txt +2 -0
- evalkit_py-0.2.0.dev12.dist-info/licenses/LICENSE +661 -0
|
@@ -0,0 +1,736 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monacoEditor-DsoPncxW.js","assets/editor.api-NTesIxw5.js","assets/editor-DjpsE8to.css","assets/monacoEditor-n7clI0si.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function ne(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function re(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,re(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+te(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(ee,`$&/`)+`/`),re(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+te(a,u),c+=re(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+te(a,u++),c+=re(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return re(ne(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ie(e,t,n){if(e==null)return e;var r=[],i=0;return re(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ae(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var oe=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function se(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,oe)}catch(e){oe(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ce(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else se(ce.bind(null,e))}var le={map:ie,forEach:function(e,t,n){ie(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ie(e,function(){t++}),t},toArray:function(e){return ie(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=le,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ce,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ae}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=se,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ee(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ee(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function ee(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ee(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),h=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),A=Symbol.for(`react.portal`),ee=Symbol.for(`react.fragment`),te=Symbol.for(`react.strict_mode`),ne=Symbol.for(`react.profiler`),re=Symbol.for(`react.consumer`),ie=Symbol.for(`react.context`),ae=Symbol.for(`react.forward_ref`),oe=Symbol.for(`react.suspense`),se=Symbol.for(`react.suspense_list`),ce=Symbol.for(`react.memo`),le=Symbol.for(`react.lazy`),ue=Symbol.for(`react.activity`),de=Symbol.for(`react.legacy_hidden`),fe=Symbol.for(`react.memo_cache_sentinel`),pe=Symbol.for(`react.view_transition`),me=Symbol.for(`react.recoverable`),he=Symbol.iterator;function ge(e){return typeof e!=`object`||!e?null:(e=he&&e[he]||e[`@@iterator`],typeof e==`function`?e:null)}var _e=Symbol.for(`react.client.reference`);function ve(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===_e?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ee:return`Fragment`;case ne:return`Profiler`;case te:return`StrictMode`;case oe:return`Suspense`;case se:return`SuspenseList`;case ue:return`Activity`;case pe:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case ie:return e.displayName||`Context`;case re:return(e._context.displayName||`Context`)+`.Consumer`;case ae:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ce:return t=e.displayName||null,t===null?ve(e.type)||`Memo`:t;case le:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}var ye=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,be=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xe={pending:!1,data:null,method:null,action:null},Se=[],Ce=-1;function we(e){return{current:e}}function Te(e){0>Ce||(e.current=Se[Ce],Se[Ce]=null,Ce--)}function Ee(e,t){Ce++,Se[Ce]=e.current,e.current=t}var De=we(null),Oe=we(null),ke=we(null),Ae=we(null);function je(e,t){switch(Ee(ke,t),Ee(Oe,e),Ee(De,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Dp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Dp(t),e=Op(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Te(De),Ee(De,e)}function Me(){Te(De),Te(Oe),Te(ke)}function Ne(e){var t=e.memoizedState;t!==null&&(Ch._currentValue=t.memoizedState,Ee(Ae,e)),t=De.current;var n=Op(t,e.type);t!==n&&(Ee(Oe,e),Ee(De,n))}function Pe(e){Oe.current===e&&(Te(De),Te(Oe)),Ae.current===e&&(Te(Ae),Ch._currentValue=xe)}var Fe,Ie;function Le(e){if(Fe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Fe=t&&t[1]||``,Ie=-1<e.stack.indexOf(`
|
|
3
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
+
`+Fe+e+Ie}var Re=!1;function ze(e,t){if(!e||Re)return``;Re=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
+
`),l=s.split(`
|
|
6
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Re=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Le(n):``}function Be(e,t){switch(e.tag){case 26:case 27:case 5:return Le(e.type);case 16:return Le(`Lazy`);case 13:return e.child!==t&&t!==null?Le(`Suspense Fallback`):Le(`Suspense`);case 19:return Le(`SuspenseList`);case 0:case 15:return ze(e.type,!1);case 11:return ze(e.type.render,!1);case 1:return ze(e.type,!0);case 31:return Le(`Activity`);case 30:return Le(`ViewTransition`);default:return``}}function Ve(e){try{var t=``,n=null;do t+=Be(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
+
Error generating stack: `+e.message+`
|
|
9
|
+
`+e.stack}}var He=Object.prototype.hasOwnProperty,Ue=t.unstable_scheduleCallback,We=t.unstable_cancelCallback,Ge=t.unstable_shouldYield,Ke=t.unstable_requestPaint,qe=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,Xe=t.unstable_UserBlockingPriority,Ze=t.unstable_NormalPriority,Qe=t.unstable_LowPriority,$e=t.unstable_IdlePriority,et=t.log,tt=t.unstable_setDisableYieldValue,nt=null,rt=null;function it(e){if(typeof et==`function`&&tt(e),rt&&typeof rt.setStrictMode==`function`)try{rt.setStrictMode(nt,e)}catch{}}var at=Math.clz32?Math.clz32:ct,ot=Math.log,st=Math.LN2;function ct(e){return e>>>=0,e===0?32:31-(ot(e)/st|0)|0}var lt=256,ut=262144,dt=4194304;function ft(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function pt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=ft(n))):i=ft(o):i=ft(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ft(n))):i=ft(o)):i=ft(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function mt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ht(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-at(n),i=1<<r;t|=e[r],n&=~i}return t}function gt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _t(){var e=dt;return dt<<=1,!(dt&62914560)&&(dt=4194304),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function bt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-at(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&xt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function xt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-at(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function St(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ct(e,t){var n=t&-t;return n=n&42?1:wt(n),(n&(e.suspendedLanes|t))===0?n:0}function wt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Tt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Et(){var e=be.p;return e===0?(e=window.event,e===void 0?32:zh(e.type)):e}function Dt(e,t){var n=be.p;try{return be.p=e,t()}finally{be.p=n}}var Ot=Math.random().toString(36).slice(2),kt=`__reactFiber$`+Ot,At=`__reactProps$`+Ot,jt=`__reactContainer$`+Ot,Mt=`__reactEvents$`+Ot,Nt=`__reactListeners$`+Ot,Pt=`__reactHandles$`+Ot,Ft=`__reactResources$`+Ot,It=`__reactMarker$`+Ot,Lt=`__reactLoad$`+Ot;function Rt(e){delete e[kt],delete e[At],delete e[Nt],delete e[Pt]}function zt(e){var t;if(t=e[kt])return t;for(var n=e.parentNode;n;){if(t=n[jt]||n[kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Om(e);e!==null;){if(n=e[kt])return n;e=Om(e)}return t}e=n,n=e.parentNode}return null}function Bt(e){if(e=e[kt]||e[jt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ht(e){var t=e[Ft];return t||=e[Ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ut(e){e[It]=!0}function Wt(e){e[Lt]=void 0}var Gt=new Set,Kt={};function qt(e,t){Jt(e,t),Jt(e+`Capture`,t)}function Jt(e,t){for(Kt[e]=t,e=0;e<t.length;e++)Gt.add(t[e])}var Yt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Xt={},Zt={};function Qt(e){return He.call(Zt,e)?!0:He.call(Xt,e)?!1:Yt.test(e)?Zt[e]=!0:(Xt[e]=!0,!1)}var $t=!1;function en(){var e=$t;return $t=!1,e}function tn(e,t,n){if(Qt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function nn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function rn(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function an(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function on(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function sn(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cn(e){if(!e._valueTracker){var t=on(e)?`checked`:`value`;e._valueTracker=sn(e,t,``+e[t])}}function ln(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=on(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var un=/[\n"\\]/g;function dn(e){return e.replace(un,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function fn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+an(t)):e.value!==``+an(t)&&(e.value=``+an(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):mn(e,an(n)):o===`number`&&e.value==t?mn(e,an(e.value)):mn(e,an(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+an(s):e.removeAttribute(`name`)}function pn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){cn(e);return}n=n==null?``:``+an(n),t=t==null?n:``+an(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),cn(e)}function mn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function hn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+an(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function gn(e,t,n){t!=null&&(t=``+an(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+an(n)}function _n(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ye(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=an(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),cn(e)}function vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function bn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||yn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function xn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,$t=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(bn(e,a,r),$t=!0)}else for(var o in t)t.hasOwnProperty(o)&&bn(e,o,t[o])}function Sn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Cn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`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`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`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`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`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`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),wn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Tn(e){return wn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function En(){}var Dn=null;function On(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kn=null,An=null;function jn(e){var t=Bt(e);if(t&&(e=t.stateNode)){var n=e[At]||null;a:switch(e=t.stateNode,t.type){case`input`:if(fn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+dn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[At]||null;if(!a)throw Error(i(90));fn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&ln(r)}break a;case`textarea`:gn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&hn(e,!!n.multiple,t,!1)}}}var Mn=!1;function Nn(e,t,n){if(Mn)return e(t,n);Mn=!0;try{return e(t)}finally{if(Mn=!1,(kn!==null||An!==null)&&($d(),kn&&(t=kn,e=An,An=kn=null,jn(t),e)))for(t=0;t<e.length;t++)jn(e[t])}}function Pn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[At]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Fn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,In=!1;if(Fn)try{var Ln={};Object.defineProperty(Ln,"passive",{get:function(){In=!0}}),window.addEventListener(`test`,Ln,Ln),window.removeEventListener(`test`,Ln,Ln)}catch{In=!1}var Rn=null,zn=null,Bn=null;function Vn(){if(Bn)return Bn;var e,t=zn,n=t.length,r,i=`value`in Rn?Rn.value:Rn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Bn=i.slice(e,1<r?1-r:void 0)}function Hn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Un(){return!0}function Wn(){return!1}function Gn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Un:Wn,this.isPropagationStopped=Wn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Un)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Un)},persist:function(){},isPersistent:Un}),t}var Kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qn=Gn(Kn),Jn=D({},Kn,{view:0,detail:0}),Yn=Gn(Jn),Xn,Zn,Qn,$n=D({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Qn&&(Qn&&e.type===`mousemove`?(Xn=e.screenX-Qn.screenX,Zn=e.screenY-Qn.screenY):Zn=Xn=0,Qn=e),Xn)},movementY:function(e){return`movementY`in e?e.movementY:Zn}}),er=Gn($n),tr=Gn(D({},$n,{dataTransfer:0})),nr=Gn(D({},Jn,{relatedTarget:0})),M=Gn(D({},Kn,{animationName:0,elapsedTime:0,pseudoElement:0})),rr=Gn(D({},Kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),ir=Gn(D({},Kn,{data:0})),ar={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},or={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},sr={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sr[e])?!!t[e]:!1}function lr(){return cr}var N=Gn(D({},Jn,{key:function(e){if(e.key){var t=ar[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Hn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?or[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lr,charCode:function(e){return e.type===`keypress`?Hn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Hn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),ur=Gn(D({},$n,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),dr=Gn(D({},Kn,{submitter:0})),fr=Gn(D({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lr})),pr=Gn(D({},Kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),mr=Gn(D({},$n,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),hr=Gn(D({},Kn,{newState:0,oldState:0,source:0})),gr=[9,13,27,32],_r=Fn&&`CompositionEvent`in window,vr=null;Fn&&`documentMode`in document&&(vr=document.documentMode);var yr=Fn&&`TextEvent`in window&&!vr,br=Fn&&(!_r||vr&&8<vr&&11>=vr),xr=` `,Sr=!1;function Cr(e,t){switch(e){case`keyup`:return gr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function wr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Tr=!1;function Er(e,t){switch(e){case`compositionend`:return wr(t);case`keypress`:return t.which===32?(Sr=!0,xr):null;case`textInput`:return e=t.data,e===xr&&Sr?null:e;default:return null}}function Dr(e,t){if(Tr)return e===`compositionend`||!_r&&Cr(e,t)?(e=Vn(),Bn=zn=Rn=null,Tr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return br&&t.locale!==`ko`?null:t.data;default:return null}}var Or={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Or[e.type]:t===`textarea`}function Ar(e,t,n,r){kn?An?An.push(r):An=[r]:kn=r,t=up(t,`onChange`),0<t.length&&(n=new qn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var jr=null,Mr=null;function Nr(e){np(e,0)}function Pr(e){if(ln(Vt(e)))return e}function Fr(e,t){if(e===`change`)return t}var Ir=!1;if(Fn){var Lr;if(Fn){var Rr=`oninput`in document;if(!Rr){var zr=document.createElement(`div`);zr.setAttribute(`oninput`,`return;`),Rr=typeof zr.oninput==`function`}Lr=Rr}else Lr=!1;Ir=Lr&&(!document.documentMode||9<document.documentMode)}function Br(){jr&&(jr.detachEvent(`onpropertychange`,Vr),Mr=jr=null)}function Vr(e){if(e.propertyName===`value`&&Pr(Mr)){var t=[];Ar(t,Mr,e,On(e)),Nn(Nr,t)}}function Hr(e,t,n){e===`focusin`?(Br(),jr=t,Mr=n,jr.attachEvent(`onpropertychange`,Vr)):e===`focusout`&&Br()}function Ur(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Pr(Mr)}function Wr(e,t){if(e===`click`)return Pr(t)}function Gr(e,t){if(e===`input`||e===`change`)return Pr(t)}function Kr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var qr=typeof Object.is==`function`?Object.is:Kr;function Jr(e,t){if(qr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!He.call(t,i)||!qr(e[i],t[i]))return!1}return!0}function Yr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zr(e,t){var n=Xr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Xr(n)}}function Qr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function P(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yr(e.document)}return t}function $r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var ei=Fn&&`documentMode`in document&&11>=document.documentMode,F=null,ti=null,ni=null,ri=!1;function ii(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ri||F==null||F!==Yr(r)||(r=F,`selectionStart`in r&&$r(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ni&&Jr(ni,r)||(ni=r,r=up(ti,`onSelect`),0<r.length&&(t=new qn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=F)))}function ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var oi={animationend:ai(`Animation`,`AnimationEnd`),animationiteration:ai(`Animation`,`AnimationIteration`),animationstart:ai(`Animation`,`AnimationStart`),transitionrun:ai(`Transition`,`TransitionRun`),transitionstart:ai(`Transition`,`TransitionStart`),transitioncancel:ai(`Transition`,`TransitionCancel`),transitionend:ai(`Transition`,`TransitionEnd`)},si={},ci={};Fn&&(ci=document.createElement(`div`).style,`AnimationEvent`in window||(delete oi.animationend.animation,delete oi.animationiteration.animation,delete oi.animationstart.animation),`TransitionEvent`in window||delete oi.transitionend.transition);function li(e){if(si[e])return si[e];if(!oi[e])return e;var t=oi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ci)return si[e]=t[n];return e}var ui=li(`animationend`),di=li(`animationiteration`),fi=li(`animationstart`),pi=li(`transitionrun`),mi=li(`transitionstart`),hi=li(`transitioncancel`),gi=li(`transitionend`),_i=new Map,vi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);vi.push(`scrollEnd`);function yi(e,t){_i.set(e,t),qt(t,[e])}var bi=0;function xi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Pd.identifierPrefix;var n=bi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function Si(e){if(e==null||typeof e==`string`)return e;var t=null,n=Hd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function Ci(e,t){return e=Si(e),t=Si(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var wi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Ti=[],Ei=0,Di=0;function Oi(){for(var e=Ei,t=Di=Ei=0;t<e;){var n=Ti[t];Ti[t++]=null;var r=Ti[t];Ti[t++]=null;var i=Ti[t];Ti[t++]=null;var a=Ti[t];if(Ti[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Mi(n,i,a)}}function ki(e,t,n,r){Ti[Ei++]=e,Ti[Ei++]=t,Ti[Ei++]=n,Ti[Ei++]=r,Di|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ai(e,t,n,r){return ki(e,t,n,r),Ni(e)}function ji(e,t){return ki(e,null,null,t),Ni(e)}function Mi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-at(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ni(e){if(50<Ud)throw Ud=0,Wd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pi={};function Fi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ii(e,t,n,r){return new Fi(e,t,n,r)}function Li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ri(e,t){var n=e.alternate;return n===null?(n=Ii(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function zi(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Bi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Li(r)&&(s=1);else if(typeof r==`string`)s=lh(e,n,De.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ue:return e=Ii(31,n,t,a),e.elementType=ue,e.lanes=o,e;case ee:return Vi(n.children,a,o,t);case te:s=8,a|=24;break;case ne:return e=Ii(12,n,t,a|2),e.elementType=ne,e.lanes=o,e;case oe:return e=Ii(13,n,t,a),e.elementType=oe,e.lanes=o,e;case se:return e=Ii(19,n,t,a),e.elementType=se,e.lanes=o,e;case de:case pe:return e=a|32,e=Ii(30,n,t,e),e.elementType=pe,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case ie:s=10;break a;case re:s=9;break a;case ae:s=11;break a;case ce:s=14;break a;case le:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ii(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Vi(e,t,n,r){return e=Ii(7,e,r,t),e.lanes=n,e}function Hi(e,t,n){return e=Ii(6,e,null,t),e.lanes=n,e}function Ui(e){var t=Ii(18,null,null,0);return t.stateNode=e,t}function Wi(e,t,n){return t=Ii(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gi=new WeakMap;function Ki(e,t){if(typeof e==`object`&&e){var n=Gi.get(e);return n===void 0?(t={value:e,source:t,stack:Ve(t)},Gi.set(e,t),t):n}return{value:e,source:t,stack:Ve(t)}}var qi=[],Ji=0,Yi=null,Xi=0,Zi=[],Qi=0,$i=null,ea=1,ta=``;function na(e,t){qi[Ji++]=Xi,qi[Ji++]=Yi,Yi=e,Xi=t}function ra(e,t,n){Zi[Qi++]=ea,Zi[Qi++]=ta,Zi[Qi++]=$i,$i=e;var r=ea;e=ta;var i=32-at(r)-1;r&=~(1<<i),n+=1;var a=32-at(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ea=1<<32-at(t)+i|n<<i|r,ta=a+e}else ea=1<<a|n<<i|r,ta=e}function ia(e){e.return!==null&&(na(e,1),ra(e,1,0))}function aa(e){for(;e===Yi;)Yi=qi[--Ji],qi[Ji]=null,Xi=qi[--Ji],qi[Ji]=null;for(;e===$i;)$i=Zi[--Qi],Zi[Qi]=null,ta=Zi[--Qi],Zi[Qi]=null,ea=Zi[--Qi],Zi[Qi]=null}function oa(e,t){Zi[Qi++]=ea,Zi[Qi++]=ta,Zi[Qi++]=$i,ea=t.id,ta=t.overflow,$i=e}var sa=null,ca=null,la=!1,ua=null,da=!1,fa=Error(i(519));function pa(e){throw ya(Ki(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),fa}function ma(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[kt]=e,t[At]=r,n){case`dialog`:rp(`cancel`,t),rp(`close`,t);break;case`iframe`:case`object`:case`embed`:rp(`load`,t);break;case`video`:case`audio`:for(n=0;n<ep.length;n++)rp(ep[n],t);break;case`source`:rp(`error`,t);break;case`img`:case`image`:case`link`:rp(`error`,t),rp(`load`,t);break;case`details`:rp(`toggle`,t);break;case`input`:rp(`invalid`,t),pn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:rp(`invalid`,t);break;case`textarea`:rp(`invalid`,t),_n(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||gp(t.textContent,n)?(r.popover!=null&&(rp(`beforetoggle`,t),rp(`toggle`,t)),r.onScroll!=null&&rp(`scroll`,t),r.onScrollEnd!=null&&rp(`scrollend`,t),r.onClick!=null&&(t.onclick=En),t=!0):t=!1,t||pa(e,!0)}function ha(e){for(sa=e.return;sa;)switch(sa.tag){case 5:case 31:case 13:da=!1;return;case 27:case 3:da=!0;return;default:sa=sa.return}}function ga(e){if(e!==sa)return!1;if(!la)return ha(e),la=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Ap(e.type,e.memoizedProps)),n=!n),n&&ca&&pa(e),ha(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ca=Dm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ca=Dm(e)}else t===27?(t=ca,zp(e.type)?(e=Em,Em=null,ca=e):ca=t):ca=sa?Tm(e.stateNode.nextSibling):null;return!0}function _a(){ca=sa=null,la=!1}function va(){var e=ua;return e!==null&&(Ed===null?Ed=e:Ed.push.apply(Ed,e),ua=null),e}function ya(e){ua===null?ua=[e]:ua.push(e)}var ba=we(null),xa=null,Sa=null;function Ca(e,t,n){Ee(ba,t._currentValue),t._currentValue=n}function wa(e){e._currentValue=ba.current,Te(ba)}function Ta(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ea(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ta(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ta(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ta(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Da(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;qr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Ae.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Ch]:e.push(Ch))}a=a.return}return e!==null&&Ea(t,e,n,r),t.flags|=262144,e!==null}function Oa(e){for(e=e.firstContext;e!==null;){if(!qr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ka(e){xa=e,Sa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Aa(e){return Ma(xa,e)}function ja(e,t){return xa===null&&ka(e),Ma(e,t)}function Ma(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Sa===null){if(e===null)throw Error(i(308));Sa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sa=Sa.next=t;return n}var Na=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Pa=t.unstable_scheduleCallback,Fa=t.unstable_NormalPriority,Ia={$$typeof:ie,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function La(){return{controller:new Na,data:new Map,refCount:0}}function Ra(e){e.refCount--,e.refCount===0&&Pa(Fa,function(){e.controller.abort()})}function I(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var za=null;function Ba(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Va=null,Ha=0,Ua=0,Wa=null;function Ga(e,t){if(Va===null){var n=Va=[];Ha=0,Ua=Yf(),Wa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ha++,t.then(Ka,Ka),t}function Ka(){if(--Ha===0&&(za=null,Va!==null)){Wa!==null&&(Wa.status=`fulfilled`);var e=Va;Va=null,Ua=0,Wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function qa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ja=j.S;j.S=function(e,t){if(kd=qe(),typeof t==`object`&&t&&typeof t.then==`function`&&Ga(e,t),za!==null)for(var n=Ff;n!==null;)I(n,za),n=n.next;if(n=e.types,n!==null){for(var r=Ff;r!==null;)I(r,n),r=r.next;if(Ua!==0){r=za,r===null&&(r=za=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ja!==null&&Ja(e,t)};var Ya=we(null);function Xa(){var e=Ya.current;return e===null?ud.pooledCache:e}function Za(e,t){t===null?Ee(Ya,Ya.current):Ee(Ya,t.pool)}function Qa(){var e=Xa();return e===null?null:{parent:Ia._currentValue,pool:e}}var $a=Error(i(460)),eo=Error(i(474)),to=Error(i(542)),no={then:function(){}};function ro(e){return e=e.status,e===`fulfilled`||e===`rejected`}function io(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(En,En),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,co(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(En,En);else{if(e=ud,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,co(e),e}throw oo=t,$a}}function ao(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(oo=e,$a):e}}var oo=null;function so(){if(oo===null)throw Error(i(459));var e=oo;return oo=null,e}function co(e){if(e===$a||e===to)throw Error(i(483))}var lo=null,uo=0;function fo(e){var t=uo;return uo+=1,lo===null&&(lo=[]),io(lo,e,t)}function po(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function mo(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ho(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Ri(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Hi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ee?(e=d(e,t,n.props.children,r,n.key),po(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===le&&ao(i)===t.type)?(t=a(t,n.props),po(t,n),t.return=e,t):(t=Bi(n.type,n.key,n.props,null,e.mode,r),po(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Wi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Vi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Hi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Bi(t.type,t.key,t.props,null,e.mode,n),po(n,t),n.return=e,n;case A:return t=Wi(t,e.mode,n),t.return=e,t;case le:return t=ao(t),f(e,t,n)}if(ye(t)||ge(t))return t=Vi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,fo(t),n);if(t.$$typeof===ie)return f(e,ja(e,t),n);mo(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case le:return n=ao(n),p(e,t,n,r)}if(ye(n)||ge(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,fo(n),r);if(n.$$typeof===ie)return p(e,t,ja(e,n),r);mo(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case le:return r=ao(r),m(e,t,n,r,i)}if(ye(r)||ge(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,fo(r),i);if(r.$$typeof===ie)return m(e,t,n,ja(t,r),i);mo(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),la&&na(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return la&&na(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),la&&na(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),la&&na(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return la&&na(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),la&&na(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ee&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ee){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),po(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===le&&ao(l)===r.type){n(e,r.sibling),c=a(r,o.props),po(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===ee?(c=Vi(o.props.children,e.mode,c,o.key),po(c,o),c.return=e,e=c):(c=Bi(o.type,o.key,o.props,null,e.mode,c),po(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Wi(o,e.mode,c),c.return=e,e=c}return s(e);case le:return o=ao(o),_(e,r,o,c)}if(ye(o))return h(e,r,o,c);if(ge(o)){if(l=ge(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,fo(o),c);if(o.$$typeof===ie)return _(e,r,ja(e,o),c);mo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Hi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{uo=0;var i=_(e,t,n,r);return lo=null,i}catch(t){if(t===$a||t===to)throw t;var a=Ii(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var go=ho(!0),_o=ho(!1),vo=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function So(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ld&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ni(e),Mi(e,null,n),t}return ki(e,r,t,n),Ni(e)}function Co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,St(e,n)}}function wo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var To=!1;function Eo(){if(To){var e=Wa;if(e!==null)throw e}}function Do(e,t,n,r){To=!1;var i=e.updateQueue;vo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(fd&f)===f:(r&f)===f){f!==0&&f===Ua&&(To=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:vo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),bd|=o,e.lanes=o,e.memoizedState=d}}function Oo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function ko(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Oo(n[e],t)}var Ao=we(null),jo=we(0);function Mo(e,t){e=vd,Ee(jo,e),Ee(Ao,t),vd=e|t.baseLanes}function No(){Ee(jo,vd),Ee(Ao,Ao.current)}function Po(){vd=jo.current,Te(Ao),Te(jo)}var Fo=we(null),Io=null;function Lo(e){var t=e.alternate;Ee(Ho,Ho.current&1),Ee(Fo,e),Io===null&&(t===null||Ao.current!==null||t.memoizedState!==null)&&(Io=e)}function Ro(e){Ee(Ho,Ho.current),Ee(Fo,e),Io===null&&(Io=e)}function zo(e){e.tag===22?(Ee(Ho,Ho.current),Ee(Fo,e),Io===null&&(Io=e)):Bo()}function Bo(){Ee(Ho,Ho.current),Ee(Fo,Fo.current)}function Vo(e){Te(Fo),Io===e&&(Io=null),Te(Ho)}var Ho=we(0);function Uo(e,t){Ee(Fo,Fo.current),Ee(Ho,t)}function Wo(e){Te(Ho),Te(Fo),Io===e&&(Io=null)}function Go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Sm(n)||Cm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ko=0,qo=null,Jo=null,Yo=null,Xo=!1,Zo=!1,Qo=!1,$o=0,es=0,ts=null,ns=0;function rs(){throw Error(i(321))}function is(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qr(e[n],t[n]))return!1;return!0}function as(e,t,n,r,i,a){return Ko=a,qo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Sc:Cc,Qo=!1,a=n(r,i),Qo=!1,Zo&&(a=ss(t,n,r,i)),os(e),a}function os(e){j.H=xc;var t=Jo!==null&&Jo.next!==null;if(Ko=0,Yo=Jo=qo=null,Xo=!1,es=0,ts=null,t)throw Error(i(300));e===null||Bc||(e=e.dependencies,e!==null&&Oa(e)&&(Bc=!0))}function ss(e,t,n,r){qo=e;var a=0;do{if(Zo&&(ts=null),es=0,Zo=!1,25<=a)throw Error(i(301));if(a+=1,Yo=Jo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=wc,o=t(n,r)}while(Zo);return o}function cs(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?hs(t):t,e=e.useState()[0],(Jo===null?null:Jo.memoizedState)!==e&&(qo.flags|=1024),t}function ls(){var e=$o!==0;return $o=0,e}function us(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ds(e){if(Xo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xo=!1}Ko=0,Yo=Jo=qo=null,Zo=!1,es=$o=0,ts=null}function fs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yo===null?qo.memoizedState=Yo=e:Yo=Yo.next=e,Yo}function ps(){if(Jo===null){var e=qo.alternate;e=e===null?null:e.memoizedState}else e=Jo.next;var t=Yo===null?qo.memoizedState:Yo.next;if(t!==null)Yo=t,Jo=e;else{if(e===null)throw qo.alternate===null?Error(i(467)):Error(i(310));Jo=e,e={memoizedState:Jo.memoizedState,baseState:Jo.baseState,baseQueue:Jo.baseQueue,queue:Jo.queue,next:null},Yo===null?qo.memoizedState=Yo=e:Yo=Yo.next=e}return Yo}function ms(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hs(e){var t=es;return es+=1,ts===null&&(ts=[]),e=io(ts,e,t),t=qo,(Yo===null?t.memoizedState:Yo.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Sc:Cc),e}function gs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return hs(e);if(e.$$typeof===me)return;if(e.$$typeof===ie)return Aa(e)}throw Error(i(438,String(e)))}function _s(e){var t=null,n=qo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=qo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ms(),qo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=fe;return t.index++,n}function vs(e,t){return typeof t==`function`?t(e):t}function ys(e){return bs(ps(),Jo,e)}function bs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Ko&f)===f:(fd&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ua&&(d=!0);else if((Ko&p)===p){u=u.next,p===Ua&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,qo.lanes|=p,bd|=p;f=u.action,Qo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,qo.lanes|=f,bd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!qr(o,e.memoizedState)&&(Bc=!0,d&&(n=Wa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function xs(e){var t=ps(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);qr(o,t.memoizedState)||(Bc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ss(e,t,n){var r=qo,a=ps(),o=la;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!qr((Jo||a).memoizedState,n);if(s&&(a.memoizedState=n,Bc=!0),a=a.queue,qs(Ts.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Yo!==null&&!!(Yo.memoizedState.tag&1),Hs(e?9:8,{destroy:void 0},ws.bind(null,r,a,n,t),null),e){if(r.flags|=2048,ud===null)throw Error(i(349));o||Ko&127||Cs(r,t,n)}return n}function Cs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=qo.updateQueue,t===null?(t=ms(),qo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ws(e,t,n,r){t.value=n,t.getSnapshot=r,Es(t)&&Ds(e)}function Ts(e,t,n){return n(function(){Es(t)&&Ds(e)})}function Es(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qr(e,n)}catch{return!0}}function Ds(e){var t=ji(e,2);t!==null&&Jd(t,e,2)}function Os(e){var t=fs();if(typeof e==`function`){var n=e;if(e=n(),Qo){it(!0);try{n()}finally{it(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vs,lastRenderedState:e},t}function ks(e,t,n,r){return e.baseState=n,bs(e,Jo,typeof r==`function`?r:vs)}function As(e,t,n,r,a){if(vc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};j.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,js(t,o)):(o.next=n.next,t.pending=n.next=o)}}function js(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=j.T,o={};o.types=a===null?null:a.types,j.T=o;try{var s=n(i,r),c=j.S;c!==null&&c(o,s),Ms(e,t,s)}catch(n){Ps(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),Ms(e,t,a)}catch(n){Ps(e,t,n)}}function Ms(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ns(e,t,n)},function(n){return Ps(e,t,n)}):Ns(e,t,n)}function Ns(e,t,n){t.status=`fulfilled`,t.value=n,Fs(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,js(e,n)))}function Ps(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Fs(t),t=t.next;while(t!==r)}e.action=null}function Fs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Is(e,t){return t}function Ls(e,t){if(la){var n=ud.formState;if(n!==null){a:{var r=qo;if(la){if(ca){b:{for(var i=ca,a=da;i.nodeType!==8;)if(!a||(i=Tm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ca=Tm(i.nextSibling),r=i.data===`F!`;break a}}pa(r)}r=!1}r&&(t=n[0])}}return n=fs(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Is,lastRenderedState:t},n.queue=r,n=hc.bind(null,qo,r),r.dispatch=n,r=Os(!1),a=_c.bind(null,qo,!1,r.queue),r=fs(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=As.bind(null,qo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Rs(e){return zs(ps(),Jo,e)}function zs(e,t,n){if(t=bs(e,t,Is)[0],e=ys(vs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=hs(t)}catch(e){throw e===$a?to:e}else r=t;t=ps();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(qo.flags|=2048,Hs(9,{destroy:void 0},Bs.bind(null,i,n),null)),[r,a,e]}function Bs(e,t){e.action=t}function Vs(e){var t=ps(),n=Jo;if(n!==null)return zs(t,n,e);ps(),t=t.memoizedState,n=ps();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Hs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=qo.updateQueue,t===null&&(t=ms(),qo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Us(){return ps().memoizedState}function Ws(e,t,n,r){var i=fs();qo.flags|=e,i.memoizedState=Hs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Gs(e,t,n,r){var i=ps();r=r===void 0?null:r;var a=i.memoizedState.inst;Jo!==null&&r!==null&&is(r,Jo.memoizedState.deps)?i.memoizedState=Hs(t,a,n,r):(qo.flags|=e,i.memoizedState=Hs(1|t,a,n,r))}function Ks(e,t){Ws(8390656,8,e,t)}function qs(e,t){Gs(2048,8,e,t)}function Js(e){qo.flags|=4;var t=qo.updateQueue;if(t===null)t=ms(),qo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ys(e){var t=ps().memoizedState;return Js({ref:t,nextImpl:e}),function(){if(ld&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Xs(e,t){return Gs(4,2,e,t)}function Zs(e,t){return Gs(4,4,e,t)}function Qs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $s(e,t,n){n=n==null?null:n.concat([e]),Gs(4,4,Qs.bind(null,t,e),n)}function ec(){}function tc(e,t){var n=ps();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&is(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function nc(e,t){var n=ps();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&is(t,r[1]))return r[0];if(r=e(),Qo){it(!0);try{e()}finally{it(!1)}}return n.memoizedState=[r,t],r}function rc(e,t,n){return n===void 0||Ko&1073741824&&!(fd&261930)?e.memoizedState=t:(e.memoizedState=n,e=Kd(),qo.lanes|=e,bd|=e,n)}function ic(e,t,n,r){return qr(n,t)?n:Ao.current===null?!(Ko&106)||Ko&1073741824&&!(fd&261930)?(Bc=!0,e.memoizedState=n):(e=Kd(),qo.lanes|=e,bd|=e,t):(e=rc(e,n,r),qr(e,t)||(Bc=!0),e)}function ac(e,t,n,r,i){var a=be.p;be.p=a!==0&&8>a?a:8;var o=j.T,s={};s.types=o===null?null:o.types,j.T=s,_c(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?gc(e,t,qa(c,r),Gd(e)):gc(e,t,r,Gd(e))}catch(n){gc(e,t,{then:function(){},status:`rejected`,reason:n},Gd())}finally{be.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function oc(){}function sc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=cc(e).queue;ac(e,a,t,xe,n===null?oc:function(){return lc(e),n(r)})}function cc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:xe,baseState:xe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vs,lastRenderedState:xe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function lc(e){var t=cc(e);t.next===null&&(t=e.alternate.memoizedState),gc(e,t.next.queue,{},Gd())}function uc(){return Aa(Ch)}function dc(){return ps().memoizedState}function fc(){return ps().memoizedState}function pc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Gd();e=xo(n);var r=So(t,e,n);r!==null&&(Jd(r,t,n),Co(r,t,n)),t={cache:La()},e.payload=t;return}t=t.return}}function mc(e,t,n){var r=Gd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},vc(e)?yc(t,n):(n=Ai(e,t,n,r),n!==null&&(Jd(n,e,r),bc(n,t,r)))}function hc(e,t,n){gc(e,t,n,Gd())}function gc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vc(e))yc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,qr(s,o))return ki(e,t,i,0),ud===null&&Oi(),!1}catch{}if(n=Ai(e,t,i,r),n!==null)return Jd(n,e,r),bc(n,t,r),!0}return!1}function _c(e,t,n,r){if(r={lane:2,revertLane:Yf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},vc(e)){if(t)throw Error(i(479))}else t=Ai(e,n,r,2),t!==null&&Jd(t,e,2)}function vc(e){var t=e.alternate;return e===qo||t!==null&&t===qo}function yc(e,t){Zo=Xo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,St(e,n)}}var xc={readContext:Aa,use:gs,useCallback:rs,useContext:rs,useEffect:rs,useImperativeHandle:rs,useLayoutEffect:rs,useInsertionEffect:rs,useMemo:rs,useReducer:rs,useRef:rs,useState:rs,useDebugValue:rs,useDeferredValue:rs,useTransition:rs,useSyncExternalStore:rs,useId:rs,useHostTransitionStatus:rs,useFormState:rs,useActionState:rs,useOptimistic:rs,useMemoCache:rs,useCacheRefresh:rs,useEffectEvent:rs},Sc={readContext:Aa,use:gs,useCallback:function(e,t){return fs().memoizedState=[e,t===void 0?null:t],e},useContext:Aa,useEffect:Ks,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ws(4194308,4,Qs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ws(4194308,4,e,t)},useInsertionEffect:function(e,t){Ws(4,2,e,t)},useMemo:function(e,t){var n=fs();t=t===void 0?null:t;var r=e();if(Qo){it(!0);try{e()}finally{it(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=fs();if(n!==void 0){var i=n(t);if(Qo){it(!0);try{n(t)}finally{it(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=mc.bind(null,qo,e),[r.memoizedState,e]},useRef:function(e){var t=fs();return e={current:e},t.memoizedState=e},useState:function(e){e=Os(e);var t=e.queue,n=hc.bind(null,qo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ec,useDeferredValue:function(e,t){return rc(fs(),e,t)},useTransition:function(){var e=Os(!1);return e=ac.bind(null,qo,e.queue,!0,!1),fs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=qo,a=fs();if(la){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),ud===null)throw Error(i(349));fd&127||Cs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ks(Ts.bind(null,r,o,e),[e]),r.flags|=2048,Hs(9,{destroy:void 0},ws.bind(null,r,o,n,t),null),n},useId:function(){var e=fs(),t=ud.identifierPrefix;if(la){var n=ta,r=ea;n=(r&~(1<<32-at(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=$o++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=ns++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:uc,useFormState:Ls,useActionState:Ls,useOptimistic:function(e){var t=fs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=_c.bind(null,qo,!0,n),n.dispatch=t,[e,t]},useMemoCache:_s,useCacheRefresh:function(){return fs().memoizedState=pc.bind(null,qo)},useEffectEvent:function(e){var t=fs(),n={impl:e};return t.memoizedState=n,function(){if(ld&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Cc={readContext:Aa,use:gs,useCallback:tc,useContext:Aa,useEffect:qs,useImperativeHandle:$s,useInsertionEffect:Xs,useLayoutEffect:Zs,useMemo:nc,useReducer:ys,useRef:Us,useState:function(){return ys(vs)},useDebugValue:ec,useDeferredValue:function(e,t){return ic(ps(),Jo.memoizedState,e,t)},useTransition:function(){var e=ys(vs)[0],t=ps().memoizedState;return[typeof e==`boolean`?e:hs(e),t]},useSyncExternalStore:Ss,useId:dc,useHostTransitionStatus:uc,useFormState:Rs,useActionState:Rs,useOptimistic:function(e,t){return ks(ps(),Jo,e,t)},useMemoCache:_s,useCacheRefresh:fc,useEffectEvent:Ys},wc={readContext:Aa,use:gs,useCallback:tc,useContext:Aa,useEffect:qs,useImperativeHandle:$s,useInsertionEffect:Xs,useLayoutEffect:Zs,useMemo:nc,useReducer:xs,useRef:Us,useState:function(){return xs(vs)},useDebugValue:ec,useDeferredValue:function(e,t){var n=ps();return Jo===null?rc(n,e,t):ic(n,Jo.memoizedState,e,t)},useTransition:function(){var e=xs(vs)[0],t=ps().memoizedState;return[typeof e==`boolean`?e:hs(e),t]},useSyncExternalStore:Ss,useId:dc,useHostTransitionStatus:uc,useFormState:Vs,useActionState:Vs,useOptimistic:function(e,t){var n=ps();return Jo===null?(n.baseState=e,[e,n.queue.dispatch]):ks(n,Jo,e,t)},useMemoCache:_s,useCacheRefresh:fc,useEffectEvent:Ys};function Tc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ec={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gd(),i=xo(r);i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Jd(t,e,r),Co(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gd(),i=xo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Jd(t,e,r),Co(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gd(),r=xo(n);r.tag=2,t!=null&&(r.callback=t),t=So(e,r,n),t!==null&&(Jd(t,e,n),Co(t,e,n))}};function Dc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Jr(n,r)||!Jr(i,a):!0}function Oc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ec.enqueueReplaceState(t,t.state,null)}function kc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ac(e){wi(e)}function jc(e){console.error(e)}function Mc(e){wi(e)}function Nc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Pc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Fc(e,t,n){return n=xo(n),n.tag=3,n.payload={element:null},n.callback=function(){Nc(e,t)},n}function Ic(e){return e=xo(e),e.tag=3,e}function Lc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Pc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Pc(t,n,r),typeof i!=`function`&&(Md===null?Md=new Set([this]):Md.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Rc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Da(t,n,a,!0),n=Fo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Io===null?sf():n.alternate===null&&yd===0&&(yd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===no?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),kf(e,r,a)),!1;case 22:return n.flags|=65536,r===no?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),kf(e,r,a)),!1}throw Error(i(435,n.tag))}return kf(e,r,a),sf(),!1}if(la)return t=Fo.current,t===null?(r!==fa&&(t=Error(i(423),{cause:r}),ya(Ki(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ki(r,n),a=Fc(e.stateNode,r,a),wo(e,a),yd!==4&&(yd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==fa&&(e=Error(i(422),{cause:r}),ya(Ki(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ki(o,n),Td===null?Td=[o]:Td.push(o),yd!==4&&(yd=2),t===null)return!0;r=Ki(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Fc(n.stateNode,r,e),wo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Md===null||!Md.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ic(a),Lc(a,e,n,r),wo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var zc=Error(i(461)),Bc=!1;function Vc(e,t,n,r){t.child=e===null?_o(t,null,n,r):go(t,e.child,n,r)}function Hc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ka(t),r=as(e,t,n,o,a,i),s=ls(),e!==null&&!Bc?(us(e,t,i),gl(e,t,i)):(la&&s&&ia(t),t.flags|=1,Vc(e,t,r,i),t.child)}function Uc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Wc(e,t,a,r,i)):(e=Bi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!_l(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Jr:n,n(o,r)&&e.ref===t.ref)return gl(e,t,i)}return t.flags|=1,e=Ri(a,r),e.ref=t.ref,e.return=t,t.child=e}function Wc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Jr(a,r)&&e.ref===t.ref){if(Bc=!1,t.pendingProps=r=a,_l(e,i))e.flags&131072&&(Bc=!0);else return t.lanes=e.lanes,gl(e,t,i)}}return Qc(e,t,n,r,i)}function Gc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return qc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Za(t,a===null?null:a.cachePool),a===null?No():Mo(t,a),zo(t);else return r=t.lanes=536870912,qc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Za(t,null),No(),Bo()):(Za(t,a.cachePool),Mo(t,a),Bo(),t.memoizedState=null);return Vc(e,t,i,n),t.child}function Kc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qc(e,t,n,r,i){var a=Xa();return a=a===null?null:{parent:Ia._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Za(t,null),No(),zo(t),e!==null&&Da(e,t,r,!0),t.childLanes=i,null}function Jc(e,t){return t=sl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Yc(e,t,n){return go(t,e.child,null,n),e=Jc(t,t.pendingProps),e.flags|=2,Vo(t),t.memoizedState=null,e}function Xc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(la){if(r.mode===`hidden`)return e=Jc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Kc(null,e);if(Ro(t),(e=ca)?(e=xm(e,da),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$i===null?null:{id:ea,overflow:ta},retryLane:536870912,hydrationErrors:null},n=Ui(e),n.return=t,t.child=n,sa=t,ca=null)):e=null,e===null)throw pa(t);return t.lanes=536870912,null}return Jc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Ro(t),a){if(t.flags&256)t.flags&=-257,t=Yc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Bc||Da(e,t,n,!1),a=(n&e.childLanes)!==0,Bc||a){if(Ao.current===null){if(r=ud,r!==null&&(s=Ct(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ji(e,s),Jd(r,e,s),zc;sf()}t=Yc(e,t,n)}else e=o.treeContext,ca=Tm(s.nextSibling),sa=t,la=!0,ua=null,da=!1,e!==null&&oa(t,e),t=Jc(t,r),t.flags|=134221824;return t}return e=Ri(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Zc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Qc(e,t,n,r,i){return ka(t),n=as(e,t,n,r,void 0,i),r=ls(),e!==null&&!Bc?(us(e,t,i),gl(e,t,i)):(la&&r&&ia(t),t.flags|=1,Vc(e,t,n,i),t.child)}function $c(e,t,n,r,i,a){return ka(t),t.updateQueue=null,n=ss(t,r,n,i),os(e),r=ls(),e!==null&&!Bc?(us(e,t,a),gl(e,t,a)):(la&&r&&ia(t),t.flags|=1,Vc(e,t,n,a),t.child)}function el(e,t,n,r,i){if(ka(t),t.stateNode===null){var a=Pi,o=n.contextType;typeof o==`object`&&o&&(a=Aa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ec,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},yo(t),o=n.contextType,a.context=typeof o==`object`&&o?Aa(o):Pi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Tc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ec.enqueueReplaceState(a,a.state,null),Do(t,r,a,i),Eo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=kc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Pi,typeof u==`object`&&u&&(o=Aa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Oc(t,a,r,o),vo=!1;var f=t.memoizedState;a.state=f,Do(t,r,a,i),Eo(),l=t.memoizedState,s||f!==l||vo?(typeof d==`function`&&(Tc(t,n,d,r),l=t.memoizedState),(c=vo||Dc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,bo(e,t),o=t.memoizedProps,u=kc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Pi,typeof l==`object`&&l&&(c=Aa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Oc(t,a,r,c),vo=!1,f=t.memoizedState,a.state=f,Do(t,r,a,i),Eo();var p=t.memoizedState;o!==d||f!==p||vo||e!==null&&e.dependencies!==null&&Oa(e.dependencies)?(typeof s==`function`&&(Tc(t,n,s,r),p=t.memoizedState),(u=vo||Dc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Oa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Zc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=go(t,e.child,null,i),t.child=go(t,null,n,i)):Vc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=gl(e,t,i),e}function tl(e,t,n,r){return _a(),t.flags|=256,Vc(e,t,n,r),t.child}var nl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rl(e){return{baseLanes:e,cachePool:Qa()}}function il(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Cd),e}function al(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Ho.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(la){if(i?Lo(t):Bo(),(e=ca)?(e=xm(e,da),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$i===null?null:{id:ea,overflow:ta},retryLane:536870912,hydrationErrors:null},n=Ui(e),n.return=t,t.child=n,sa=t,ca=null)):e=null,e===null)throw pa(t);return t.lanes=Cm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Bo(),i=t.mode,a=sl({mode:`hidden`,children:a},i),r=Vi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=rl(n),r.childLanes=il(e,o,n),t.memoizedState=nl,Kc(null,r)):(Lo(t),ol(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return ll(e,t,a,o,r,c,s,n)}return i?(Bo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ri(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Vi(i,a,n,null),i.flags|=2):i=Ri(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Kc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=rl(n):(a=i.cachePool,a===null?a=Qa():(s=Ia._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=il(e,o,n),t.memoizedState=nl,Kc(e.child,r)):(Lo(t),n=e.child,e=n.sibling,n=Ri(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function ol(e,t){return t=sl({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function sl(e,t){return e=Ii(22,e,null,t),e.lanes=0,e}function cl(e,t,n){return go(t,e.child,null,n),e=ol(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ll(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Lo(t),t.flags&=-257,cl(e,t,c)):t.memoizedState===null?(Bo(),o=a.fallback,s=t.mode,a=sl({mode:`visible`,children:a.children},s),o=Vi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,go(t,e.child,null,c),a=t.child,a.memoizedState=rl(c),a.childLanes=il(e,r,c),t.memoizedState=nl,Kc(null,a)):(Bo(),t.child=e.child,t.flags|=128,null);if(Lo(t),Cm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,ya({value:a,source:null,stack:null})),cl(e,t,c)}if(Bc||Da(e,t,c,!1),r=(c&e.childLanes)!==0,Bc||r){if(Ao.current!==null)return cl(e,t,c);if(r=ud,r!==null&&(a=Ct(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,ji(e,a),Jd(r,e,a),zc;return Sm(o)||sf(),cl(e,t,c)}return Sm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ca=Tm(o.nextSibling),sa=t,la=!0,ua=null,da=!1,e!==null&&oa(t,e),t=ol(t,a.children),t.flags|=134221824,t)}function ul(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ta(e.return,t,n)}function dl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Go(n)===null&&(t=e),e=e.sibling}return t}function fl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function pl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ml(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ho.current;if(t.flags&128)return Uo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Uo(t,o),i===`backwards`&&e!==null?(pl(e),Vc(e,t,r,n),pl(e)):Vc(e,t,r,n),r=la?Xi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ul(e,n,t);else if(e.tag===19)ul(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=dl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,pl(t)),fl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}fl(t,!0,n,null,a,r);break;case`together`:fl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=dl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),fl(t,!1,i,n,a,r)}return t.child}function hl(e,t,n){var r=t.pendingProps;return Ca(t,t.type,r.value),Vc(e,t,r.children,n),t.child}function gl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Da(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Ri(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ri(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _l(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Oa(e)))}function vl(e,t,n){switch(t.tag){case 3:je(t,t.stateNode.containerInfo),Ca(t,Ia,e.memoizedState.cache),_a();break;case 27:case 5:Ne(t);break;case 4:je(t,t.stateNode.containerInfo);break;case 10:Ca(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ro(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Lo(t),t.flags|=128,null;r=Da(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?al(e,t,n):(Lo(t),e=gl(e,t,n),e===null?null:e.sibling)}Lo(t);break;case 19:if(t.flags&128)return ml(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Da(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ml(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Uo(t,Ho.current),r)break;return null;case 22:return t.lanes=0,Gc(e,t,n,t.pendingProps);case 24:Ca(t,Ia,e.memoizedState.cache)}return gl(e,t,n)}function yl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Bc=!0;else{if(!_l(e,n)&&!(t.flags&128))return Bc=!1,vl(e,t,n);Bc=!!(e.flags&131072)}}else Bc=!1,la&&t.flags&1048576&&ra(t,Xi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ao(t.elementType),t.type=e,typeof e==`function`)Li(e)?(r=kc(e,r),t.tag=1,t=el(null,t,e,r,n)):(t.tag=0,t=Qc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===ae){t.tag=11,t=Hc(null,t,e,r,n);break a}if(a===ce){t.tag=14,t=Uc(null,t,e,r,n);break a}if(a===ie){t.tag=10,t.type=e,t=hl(null,t,n);break a}}throw t=ve(e)||e,Error(i(306,t,``))}}return t;case 0:return Qc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=kc(r,t.pendingProps),el(e,t,r,a,n);case 3:a:{if(je(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,bo(e,t),Do(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ca(t,Ia,r),r!==o.cache&&Ea(t,[Ia],n,!0),Eo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=tl(e,t,r,n);break a}if(r!==a){a=Ki(Error(i(424)),t),ya(a),t=tl(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ca=Tm(e.firstChild),sa=t,la=!0,ua=null,da=!0,n=_o(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(_a(),r===a){t=gl(e,t,n);break a}Vc(e,t,r,n)}t=t.child}return t;case 26:return Zc(e,t),e===null?(n=Ym(t.type,null,t.pendingProps,null))?t.memoizedState=n:la||(t.stateNode=kp(t.type,t.pendingProps,ke.current,t)):t.memoizedState=Ym(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&la&&(r=t.stateNode=jm(t.type,t.pendingProps,ke.current),sa=t,da=!0,a=ca,zp(t.type)?(Em=a,ca=Tm(r.firstChild)):ca=a),Vc(e,t,t.pendingProps.children,n),Zc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&la&&((a=r=ca)&&(r=ym(r,t.type,t.pendingProps,da),r===null?a=!1:(t.stateNode=r,sa=t,ca=Tm(r.firstChild),da=!1,a=!0)),a||pa(t)),Ne(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ap(a,o)?r=null:s!==null&&Ap(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=as(e,t,cs,null,null,n),Ch._currentValue=a),Zc(e,t),Vc(e,t,r,n),t.child;case 6:return e===null&&la&&((e=n=ca)&&(n=bm(n,t.pendingProps,da),n===null?e=!1:(t.stateNode=n,sa=t,ca=null,e=!0)),e||pa(t)),null;case 13:return al(e,t,n);case 4:return je(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):Vc(e,t,r,n),t.child;case 11:return Hc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Zc(e,t),Vc(e,t,r,n),t.child;case 8:return Vc(e,t,t.pendingProps.children,n),t.child;case 12:return Vc(e,t,t.pendingProps.children,n),t.child;case 10:return hl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ka(t),a=Aa(a),r=r(a),t.flags|=1,Vc(e,t,r,n),t.child;case 14:return Uc(e,t,t.type,t.pendingProps,n);case 15:return Wc(e,t,t.type,t.pendingProps,n);case 19:return ml(e,t,n);case 31:return Xc(e,t,n);case 22:return Gc(e,t,n,t.pendingProps);case 24:return ka(t),r=Aa(Ia),e===null?(a=Xa(),a===null&&(a=ud,o=La(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},yo(t),Ca(t,Ia,a)):((e.lanes&n)!==0&&(bo(e,t),Do(t,null,null,n),Eo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ca(t,Ia,r),r!==a.cache&&Ea(t,[Ia],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ca(t,Ia,r))),Vc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:la&&ia(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Zc(e,t),Vc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function bl(e){e.flags|=4}function xl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?uh(t,r):uh(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(rf())e.flags|=8192;else throw oo=no,eo}}else e.flags&=-16777217}function Sl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!dh(t)){if(rf())e.flags|=8192;else throw oo=no,eo}}function Cl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:_t(),e.lanes|=t,wd|=t)}function wl(e,t){if(!la)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Tl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function El(e,t,n){var r=t.pendingProps;switch(aa(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tl(t),null;case 1:return Tl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),wa(Ia),Me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ga(t)?bl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,va())),Tl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(bl(t),o===null?(Tl(t),xl(t,a,null,r,n)):(Tl(t),Sl(t,o))):o?o===e.memoizedState?(Tl(t),t.flags&=-16777217):(bl(t),Tl(t),Sl(t,o)):(e=e.memoizedProps,e!==r&&bl(t),Tl(t),xl(t,a,e,r,n)),null;case 27:if(Pe(t),n=ke.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&bl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Tl(t),t.subtreeFlags&=-33554433,null}e=De.current,ga(t)?ma(t,e):(e=jm(a,r,n),t.stateNode=e,bl(t))}return Tl(t),t.subtreeFlags&=-33554433,null;case 5:if(Pe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&bl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Tl(t),t.subtreeFlags&=-33554433,null}if(o=De.current,ga(t))ma(t,o);else{var s=Ep(ke.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[kt]=t,o[At]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(yp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&bl(t)}}return Tl(t),t.subtreeFlags&=-33554433,xl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&bl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ke.current,ga(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=sa,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[kt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||gp(e.nodeValue,n)),e||pa(t,!0)}else e=Ep(e).createTextNode(r),e[kt]=t,t.stateNode=e}return Tl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ga(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[kt]=t}else _a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Tl(t),e=!1}else n=va(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Vo(t),t):(Vo(t),null);if(t.flags&128)throw Error(i(558))}return Tl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ga(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[kt]=t}else _a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Tl(t),a=!1}else a=va(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Vo(t),t):(Vo(t),null)}return Vo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Cl(t,t.updateQueue),Tl(t),null);case 4:return Me(),e===null&&op(t.stateNode.containerInfo),t.flags|=67108864,Tl(t),null;case 10:return wa(t.type),Tl(t),null;case 19:if(Wo(t),r=t.memoizedState,r===null)return Tl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)wl(r,!1);else{if(yd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Go(e),o!==null){for(t.flags|=128,wl(r,!1),e=o.updateQueue,t.updateQueue=e,Cl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)zi(n,e),n=n.sibling;return Uo(t,Ho.current&1|2),la&&na(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&qe()>Ad&&(t.flags|=128,a=!0,wl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Go(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Cl(t,e),wl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!la)return Tl(t),null}else 2*qe()-r.renderingStartTime>Ad&&n!==536870912&&(t.flags|=128,a=!0,wl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=qe(),e.sibling=null,o=Ho.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||la?Uo(t,o):(n=o,Ee(Fo,t),Ee(Ho,n),Io===null&&(Io=t)),la&&na(t,r.treeForkCount),e}return Tl(t),null;case 22:case 23:return Vo(t),Po(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Tl(t),t.subtreeFlags&6&&(t.flags|=8192)):Tl(t),n=t.updateQueue,n!==null&&Cl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Te(Ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wa(Ia),Tl(t),null;case 25:return null;case 30:return t.flags|=33554432,Tl(t),null}throw Error(i(156,t.tag))}function Dl(e,t){switch(aa(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wa(Ia),Me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pe(t),null;case 31:if(t.memoizedState!==null){if(Vo(t),t.alternate===null)throw Error(i(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Me(),null;case 10:return wa(t.type),null;case 22:case 23:return Vo(t),Po(),e!==null&&Te(Ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wa(Ia),null;case 25:return null;default:return null}}function Ol(e,t){switch(aa(t),t.tag){case 3:wa(Ia),Me();break;case 26:case 27:case 5:Pe(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&Vo(t);break;case 13:Vo(t);break;case 19:Wo(t);break;case 10:wa(t.type);break;case 22:case 23:Vo(t),Po(),e!==null&&Te(Ya);break;case 24:wa(Ia)}}function kl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Of(t,t.return,e)}}function Al(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Of(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Of(t,t.return,e)}}function jl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ko(t,n)}catch(t){Of(e,e.return,t)}}}function Ml(e,t,n){n.props=kc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Of(e,t,n)}}function Nl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=xi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Xp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Zp(e);m(e.child,!1,mm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Of(e,t,n)}}function Pl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Of(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Of(e,t,n)}else n.current=null}}function Fl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)gm(e.stateNode,t[n])}function Il(e){for(var t=e.return;t!==null&&(zl(t)&&gm(e.stateNode,t.stateNode),!Rl(t));)t=t.return}function Ll(e){for(var t=e.return;t!==null&&(zl(t)&&_m(e.stateNode,t.stateNode),!Rl(t));)t=t.return}function Rl(e){return e.tag===5||e.tag===3||e.tag===27}function zl(e){return e&&e.tag===7&&e.stateNode!==null}function Bl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Of(e,e.return,t)}}function Vl(e,t,n){try{var r=e.stateNode;xp(r,e.type,n,t),r[At]=t}catch(t){Of(e,e.return,t)}}function Hl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zp(e.type)||e.tag===4}function Ul(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Hl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&zp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=En)),Fl(e,r),$t=!0;else if(i!==4&&(i===27&&(Fl(e,r),r=null,zp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Wl(e,t,n,r),e=e.sibling;e!==null;)Wl(e,t,n,r),e=e.sibling}function Gl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Fl(e,r),$t=!0;else if(i!==4&&(i===27&&(Fl(e,r),r=null,zp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Gl(e,t,n,r),e=e.sibling;e!==null;)Gl(e,t,n,r),e=e.sibling}function Kl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);yp(t,r,n),t[kt]=e,t[At]=n}catch(t){Of(e,e.return,t)}}var ql=!1,Jl=null;function Yl(e){(e.tag===30||e.subtreeFlags&33554432)&&(ql=!0)}var Xl=null;function Zl(){var e=Xl;return Xl=null,e}var Ql=0;function $l(e,t,n,r,i){return Ql=0,eu(e.child,t,n,r,i)}function eu(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Gp(o);r.push(s),s.view&&(a=!0)}else a||Gp(o).view&&(a=!0);ql=!0,Hp(o,Ql===0?t:t+`_`+Ql,n),Ql++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||eu(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function tu(e,t){for(;e!==null;)e.tag===5?Up(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||tu(e.child,t),e=e.sibling}function nu(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(nu(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=Ci(t.default,t.share),t!==`none`&&($l(e,n,t,null,!1)||tu(e.child,!1))}e=e.sibling}}function ru(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=xi(r,n),a=Ci(r.default,n.paired?r.share:r.enter);a===`none`?nu(e):$l(e,i,a,null,!1)?(nu(e),n.paired||t||qd(e,r.onEnter)):tu(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ru(e,t),e=e.sibling;else nu(e)}function iu(e){if(Jl!==null&&Jl.size!==0){var t=Jl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=Ci(n.default,n.share);if(a!==`none`&&($l(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,qd(e,n.onShare)):tu(e.child,!1)),t.delete(r),t.size===0)break}}}iu(e)}e=e.sibling}}}function au(e){if(e.tag===30){var t=e.memoizedProps,n=xi(t,e.stateNode),r=Jl===null?void 0:Jl.get(n),i=Ci(t.default,r===void 0?t.exit:t.share);i!==`none`&&($l(e,n,i,null,!1)?r===void 0?qd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Jl.delete(n),qd(e,t.onShare)):tu(e.child,!1)),Jl!==null&&iu(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)au(e),e=e.sibling;else Jl!==null&&iu(e)}function ou(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=xi(t,e.stateNode);t=Ci(t.default,t.update),e.flags&=-5,t!==`none`&&$l(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&ou(e);e=e.sibling}}function su(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,tu(e.child,!1))}su(e)}e=e.sibling}}function cu(e){if(e.tag===30)e.stateNode.paired=null,tu(e.child,!1),su(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)cu(e),e=e.sibling;else su(e)}function lu(e){for(e=e.child;e!==null;)e.tag===30?tu(e.child,!1):e.subtreeFlags&33554432&&lu(e),e=e.sibling}function uu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Ql<a.length){var l=a[Ql],u=Gp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Hp(c,Ql===0?n:n+`_`+Ql,i),s&&e.flags&4||(Xl===null&&(Xl=[]),Xl.push(c,Ql===0?r:r+`_`+Ql,t.memoizedProps)),Ql++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:uu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function du(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=xi(n,r),a=Ci(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Kp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Ql=0,i=uu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||qd(e,n.onUpdate))}else e.subtreeFlags&33554432&&du(e,t);e=e.sibling}}var fu=!1,pu=!1,mu=!1,hu=!1,gu=typeof WeakSet==`function`?WeakSet:Set,_u=null,vu=!1,yu=!1,bu=!1,xu=!1;function Su(e,t,n){if(e=e.containerInfo,wp=Mh,e=P(e),$r(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(Tp={focusedElem:e,selectionRange:r},Mh=!1,n=(n&335544064)===n,_u=t,t=n?9270:1024;_u!==null;){if(e=_u,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&au(r[a]);if(e.alternate===null&&e.flags&2)n&&Yl(e),Cu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&au(r),Cu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Yl(e),Cu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,_u=r):(n&&ou(e),Cu(n))}}Jl=null}function Cu(e){for(;_u!==null;){var t=_u,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=kc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){Of(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)vm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:vm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=xi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=Ci(a.default,a.update),a!==`none`&&$l(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,_u=r;break}_u=t.return}}function wu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Wu(e,n),r&4&&kl(5,n);break;case 1:if(Wu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Of(n,n.return,e)}else{var i=kc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Of(n,n.return,e)}}}r&64&&jl(n),r&512&&Nl(n,n.return);break;case 3:if(Wu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ko(e,t)}catch(e){Of(n,n.return,e)}}break;case 27:t===null&&r&4&&Kl(n);case 26:case 5:Wu(e,n),t===null&&r&4&&Bl(n),r&512&&Nl(n,n.return);break;case 12:Wu(e,n);break;case 31:Wu(e,n),r&4&&Nu(e,n);break;case 13:Wu(e,n),r&4&&Pu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Mf.bind(null,n),wm(e,n))));break;case 22:if(r=n.memoizedState!==null||fu,!r){var a=t!==null&&t.memoizedState!==null||pu;t=fu,i=pu,fu=r,(pu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ku(e,n,r)):Wu(e,n),fu=t,pu=i}break;case 30:Wu(e,n),r&512&&Nl(n,n.return);break;case 7:r&512&&Nl(n,n.return);default:Wu(e,n)}}function Tu(e,t){for(e=e.child;e!==null;)Eu(e,t),e=e.sibling}function Eu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){Of(e,e.return,t)}Du(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,$t=!0}catch(t){Of(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Vp(s,!0):Vp(e.stateNode,!1)}catch(t){Of(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&Tu(e,t);break;default:Tu(e,t)}}function Du(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:Eu(n,r);break a;case 22:n.memoizedState===null&&Du(n,r);break a;default:Du(n,r)}}e=e.sibling}}function Ou(e){var t=e.alternate;t!==null&&(e.alternate=null,Ou(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ku=null,Au=!1;function ju(e,t,n){for(n=n.child;n!==null;)Mu(e,t,n),n=n.sibling}function Mu(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount==`function`)try{rt.onCommitFiberUnmount(nt,n)}catch{}switch(n.tag){case 26:pu||Pl(n,t),ju(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!pu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:pu||Pl(n,t),Ll(n);var r=ku,i=Au;zp(n.type)&&(ku=n.stateNode,Au=!1),ju(e,t,n),Mm(n.stateNode,n.type,n.memoizedProps),ku=r,Au=i;break;case 5:pu||Pl(n,t),Ll(n);case 6:if(n.tag===6&&Ll(n),r=ku,i=Au,ku=null,ju(e,t,n),ku=r,Au=i,ku!==null){if(Au)try{(ku.nodeType===9?ku.body:ku.nodeName===`HTML`?ku.ownerDocument.body:ku).removeChild(n.stateNode),$t=!0}catch(e){Of(n,t,e)}else try{ku.removeChild(n.stateNode),$t=!0}catch(e){Of(n,t,e)}}break;case 18:ku!==null&&(Au?(e=ku,Bp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),ig(e)):Bp(ku,n.stateNode));break;case 4:r=ku,i=Au,ku=n.stateNode.containerInfo,Au=!0,ju(e,t,n),ku=r,Au=i;break;case 0:case 11:case 14:case 15:Al(2,n,t),pu||Al(4,n,t),ju(e,t,n);break;case 1:pu||(Pl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Ml(n,t,r)),ju(e,t,n);break;case 21:ju(e,t,n);break;case 22:pu=(r=pu)||n.memoizedState!==null,ju(e,t,n),pu=r;break;case 30:Pl(n,t),ju(e,t,n);break;case 7:pu||Pl(n,t),ju(e,t,n);break;default:ju(e,t,n)}}function Nu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ig(e)}catch(e){Of(t,t.return,e)}}}function Pu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ig(e)}catch(e){Of(t,t.return,e)}}function Fu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gu),t;default:throw Error(i(435,e.tag))}}function Iu(e,t){var n=Fu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Nf.bind(null,e,t);t.then(r,r)}})}function Lu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(zp(l.type)){ku=l.stateNode,Au=!1;break a}break;case 5:ku=l.stateNode,Au=!1;break a;case 3:case 4:ku=l.stateNode.containerInfo,Au=!0;break a}l=l.return}if(ku===null)throw Error(i(160));Mu(s,c,o),ku=null,Au=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zu(t,e,n),t=t.sibling}var Ru=null;function zu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Lu(t,e,n),Bu(e),a&4&&(Al(3,e,e.return),kl(3,e),Al(5,e,e.return));break;case 1:Lu(t,e,n),Bu(e),a&512&&(pu||r===null||Pl(r,r.return)),a&64&&fu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Ru,Lu(t,e,n),Bu(e),a&512&&(pu||r===null||Pl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(fu)e.stateNode=kp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[It]||r[kt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),yp(r,t,n),r[kt]=e,Ut(r),t=r;break a;case`link`:if(o=sh(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),yp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=sh(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),yp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[kt]=e,Ut(r),t=r}e.stateNode=t}}else fu||ch(o,e.type,e.stateNode)}else e.stateNode=nh(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Vl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||pu||t.parentNode.removeChild(t)):a.count--,n===null?fu||ch(o,e.type,e.stateNode):nh(o,n,e.memoizedProps))}break;case 27:Lu(t,e,n),Bu(e),a&512&&(pu||r===null||Pl(r,r.return)),r!==null&&a&4&&Vl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=mu,mu=!1,Lu(t,e,n),mu=o,Bu(e),a&512&&(pu||r===null||Pl(r,r.return)),e.flags&32){t=e.stateNode;try{vn(t,``),$t=!0}catch(t){Of(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Vl(e,t,r===null?t:r.memoizedProps)),a&1024&&(hu=!0);break;case 6:if(Lu(t,e,n),Bu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,$t=!0}catch(t){Of(e,e.return,t)}}break;case 3:if($t=!1,oh=null,o=Ru,Ru=Im(t.containerInfo),Lu(t,e,n),Ru=o,Bu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{ig(t.containerInfo)}catch(t){Of(e,e.return,t)}hu&&(hu=!1,Vu(e)),$t=!1;break;case 4:a=mu,mu=fu,r=en(),o=Ru,Ru=Im(e.stateNode.containerInfo),Lu(t,e,n),Bu(e),Ru=o,$t&&yu&&(bu=!0),$t=r,mu=a;break;case 12:Lu(t,e,n),Bu(e);break;case 31:Lu(t,e,n),Bu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Iu(e,t)));break;case 13:Lu(t,e,n),Bu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Od=qe()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Iu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=fu,l=pu,u=mu;fu=c||o,mu=u||o,pu=l||s,Lu(t,e,n),pu=l,mu=u,fu=c,Bu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||fu||pu||(t=s||pu,n=fu,r=pu,fu=o||fu,pu=t,Gu(e,2),fu=n,pu=r),!o&&mu||Tu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Iu(e,n))));break;case 19:Lu(t,e,n),Bu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Iu(e,t)));break;case 30:a&512&&(pu||r===null||Pl(r,r.return)),a=en(),o=yu,s=(n&335544064)===n,c=e.memoizedProps,yu=s&&Ci(c.default,c.update)!==`none`,Lu(t,e,n),Bu(e),s&&r!==null&&$t&&(e.flags|=4),yu=o,$t=a;break;case 21:break;case 7:a&512&&(pu||r===null||Pl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Lu(t,e,n),Bu(e)}}function Bu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Hl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(zl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Rl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Gl(e,Ul(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(vn(l,``),n.flags&=-33),Gl(e,Ul(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Wl(e,Ul(e),u,s);break;default:throw Error(i(161))}}catch(t){Of(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Mh=!0,t.reset(),Mh=!1),e=e.sibling}}function Hu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Uu(t,e),t=t.sibling;else du(t,!1)}function Uu(e,t){var n=e.alternate;if(n===null)ru(e,!1);else switch(e.tag){case 3:if(xu=vu=!1,Zl(),Hu(t,e),!vu&&!bu){if(e=Xl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Up(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),xu=!0}Xl=null;break;case 5:Hu(t,e);break;case 4:r=vu,vu=!1,Hu(t,e),vu&&(bu=!0),vu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Hu(t,e):ru(e,!1));break;case 30:r=vu,i=Zl(),vu=!1,Hu(t,e),vu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=xi(a,o),o=xi(n.memoizedProps,o);var s=Ci(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ql=0,t=uu(e,n,t,o,s,a,!0),Ql!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(qd(e,e.memoizedProps.onUpdate),Xl=i):i!==null&&(i.push.apply(i,Xl),Xl=i),vu=e.flags&32?!0:r;break;default:Hu(t,e)}}function Wu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wu(e,t.alternate,t),t=t.sibling}function Gu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Al(4,n,n.return),Gu(n,r);break;case 1:Pl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Ml(n,n.return,i),Gu(n,r);break;case 27:r&2&&Mm(n.stateNode,n.type,n.memoizedProps);case 5:Pl(n,n.return),n.tag!==5&&n.tag!==27||Ll(n),Gu(n,r);break;case 6:Ll(n);break;case 26:Pl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||pu||i.parentNode.removeChild(i),Gu(n,r);break;case 22:n.memoizedState===null&&Gu(n,r);break;case 30:Pl(n,n.return),Gu(n,r);break;case 7:Pl(n,n.return);default:Gu(n,r)}e=e.sibling}}function Ku(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Ku(i,a,n),kl(4,a);break;case 1:if(Ku(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Of(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Oo(l[i],c)}catch(e){Of(r,r.return,e)}}s&&o&64&&jl(a),Nl(a,a.return);break;case 27:n&2&&Kl(a);case 5:a.tag!==5&&a.tag!==27||Il(a),Ku(i,a,n),s&&r===null&&o&4&&Bl(a),Nl(a,a.return);break;case 6:Il(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||fu||ch(Im(c.ownerDocument),a.type,c),Ku(i,a,n),s&&r===null&&o&4&&Bl(a),Nl(a,a.return);break;case 12:Ku(i,a,n);break;case 31:Ku(i,a,n),s&&o&4&&Nu(i,a);break;case 13:Ku(i,a,n),s&&o&4&&Pu(i,a);break;case 22:a.memoizedState===null&&Ku(i,a,n),Nl(a,a.return);break;case 30:Ku(i,a,n),Nl(a,a.return);break;case 7:Nl(a,a.return);default:Ku(i,a,n)}t=t.sibling}}function qu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ra(n))}function Ju(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ra(e))}function Yu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Xu(e,t,n,r),t=t.sibling;else i&&lu(t)}function Xu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&cu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Yu(e,t,n,r),a&2048&&kl(9,t);break;case 1:Yu(e,t,n,r);break;case 3:Yu(e,t,n,r),i&&xu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Ra(a)));break;case 12:if(a&2048){Yu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){Of(t,t.return,e)}}else Yu(e,t,n,r);break;case 31:Yu(e,t,n,r);break;case 13:Yu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&cu(t),o._visibility&2?Yu(e,t,n,r):(o._visibility|=2,Zu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&cu(s),o._visibility&2?Yu(e,t,n,r):Qu(e,t)),a&2048&&qu(s,t);break;case 24:Yu(e,t,n,r),a&2048&&Ju(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(tu(a.child,!0),tu(t.child,!0))),Yu(e,t,n,r);break;default:Yu(e,t,n,r)}}function Zu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Zu(a,o,s,c,i),kl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Zu(a,o,s,c,i)):u._visibility&2?Zu(a,o,s,c,i):Qu(a,o),i&&l&2048&&qu(o.alternate,o);break;case 24:Zu(a,o,s,c,i),i&&l&2048&&Ju(o.alternate,o);break;default:Zu(a,o,s,c,i)}t=t.sibling}}function Qu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Qu(n,r),i&2048&&qu(r.alternate,r);break;case 24:Qu(n,r),i&2048&&Ju(r.alternate,r);break;default:Qu(n,r)}t=t.sibling}}var $u=8192;function ed(e,t,n){if(e.subtreeFlags&$u)for(e=e.child;e!==null;)td(e,t,n),e=e.sibling}function td(e,t,n){switch(e.tag){case 26:ed(e,t,n),e.flags&$u&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&ph(n,e)):mh(n,Ru,e.memoizedState,e.memoizedProps));break;case 5:ed(e,t,n),e.flags&$u&&(e=e.stateNode,(t&335544128)===t&&ph(n,e));break;case 3:case 4:var r=Ru;Ru=Im(e.stateNode.containerInfo),ed(e,t,n),Ru=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=$u,$u=16777216,ed(e,t,n),$u=r):ed(e,t,n));break;case 30:if((e.flags&$u)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Jl===null&&(Jl=new Map),Jl.set(r,i)}ed(e,t,n);break;default:ed(e,t,n)}}function nd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function rd(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];_u=r,od(r,e)}nd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)id(e),e=e.sibling}function id(e){switch(e.tag){case 0:case 11:case 15:rd(e),e.flags&2048&&Al(9,e,e.return);break;case 3:rd(e);break;case 12:rd(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ad(e)):rd(e);break;default:rd(e)}}function ad(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];_u=r,od(r,e)}nd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Al(8,t,t.return),ad(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ad(t));break;default:ad(t)}e=e.sibling}}function od(e,t){for(;_u!==null;){var n=_u;switch(n.tag){case 0:case 11:case 15:Al(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ra(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,_u=r;else a:for(n=e;_u!==null;){r=_u;var i=r.sibling,a=r.return;if(Ou(r),r===n){_u=null;break a}if(i!==null){i.return=a,_u=i;break a}_u=a}}}var sd={getCacheForType:function(e){var t=Aa(Ia),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Aa(Ia).controller.signal}},cd=typeof WeakMap==`function`?WeakMap:Map,ld=0,ud=null,dd=null,fd=0,pd=0,md=null,hd=!1,gd=!1,_d=!1,vd=0,yd=0,bd=0,xd=0,Sd=0,Cd=0,wd=0,Td=null,Ed=null,Dd=!1,Od=0,kd=0,Ad=1/0,jd=null,Md=null,Nd=0,Pd=null,Fd=null,Id=0,Ld=0,Rd=null,zd=null,Bd=null,Vd=null,Hd=null,Ud=0,Wd=null;function Gd(){return ld&2&&fd!==0?fd&-fd:j.T===null?Et():Yf()}function Kd(){if(Cd===0){if(!(fd&536870912)||la){var e=ut;ut<<=1,!(ut&3932160)&&(ut=262144),Cd=e}else Cd=536870912}return e=Fo.current,e!==null&&(e.flags|=32),Cd}function qd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Xp(xi(e.memoizedProps,n))),Vd===null&&(Vd=[]),Vd.push(t.bind(null,r))}}function Jd(e,t,n){(e===ud&&(pd===2||pd===9)||e.cancelPendingCommit!==null)&&(tf(e,0),Qd(e,fd,Cd,!1)),yt(e,n),ld&2&&e===ud||(e===ud&&(!(ld&2)&&(xd|=n),yd===4&&Qd(e,fd,Cd,!1)),Vf(e))}function Yd(e,t,n){if(ld&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||mt(e,t),a=r?uf(e,t):cf(e,t,!0),o=r;do{if(a===0){gd&&!r&&Qd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Zd(n))a=cf(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Td;var l=c.current.memoizedState.isDehydrated;if(l&&(tf(c,s).flags|=256),s=cf(c,s,!1),s!==2&&s!==6){if(_d&&!l){c.errorRecoveryDisabledLanes|=o,xd|=o,a=4;break a}o=Ed,Ed=a,o!==null&&(Ed===null?Ed=o:Ed.push.apply(Ed,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){tf(e,0),Qd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Qd(r,t,Cd,!hd);break a;case 2:Ed=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Od+300-qe(),10<a)){if(Qd(r,t,Cd,!hd),pt(r,0,!0)!==0)break a;Id=t,r.timeoutHandle=Np(Xd.bind(null,r,n,Ed,jd,Dd,t,Cd,xd,wd,hd,o,`Throttled`,-0,0),a);break a}Xd(r,n,Ed,jd,Dd,t,Cd,xd,wd,hd,o,null,-0,0)}break}}while(1);Vf(e)}function Xd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},Jl=null,td(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=vh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?Od-qe():(a&4194048)===a?kd-qe():0,m=gh(d,m),m!==null)?(Id=a,e.cancelPendingCommit=m(_f.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Qd(e,a,o,!l)):_f(e,t,a,n,r,i,o,s,c,l,u,d)}function Zd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!qr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qd(e,t,n,r){t=ht(e,t),t&=~Sd,t&=~xd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-at(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&xt(e,n,t)}function $d(){return ld&6?!0:(Hf(0,!1),!1)}function ef(){if(dd!==null){if(pd===0)var e=dd.return;else e=dd,Sa=xa=null,ds(e),lo=null,uo=0,e=dd;for(;e!==null;)Ol(e.alternate,e),e=e.return;dd=null}}function tf(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Pp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Id=0,ef(),ud=e,dd=n=Ri(e.current,null),fd=t,pd=0,md=null,hd=!1,gd=mt(e,t),_d=!1,wd=Cd=Sd=xd=bd=yd=0,Ed=Td=null,Dd=!1,vd=ht(e,t),Oi(),n}function nf(e,t){qo=null,j.H=xc,t===$a||t===to?(t=so(),pd=3):t===eo?(t=so(),pd=4):pd=t===zc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,md=t,dd===null&&(yd=1,Nc(e,Ki(t,e.current)))}function rf(){var e=Fo.current;return e===null?!0:(fd&4194048)===fd?Io===null:(fd&62914560)===fd||fd&536870912?e===Io:!1}function af(){var e=j.H;return j.H=xc,e===null?xc:e}function of(){var e=j.A;return j.A=sd,e}function sf(){yd=4,hd||(fd&4194048)!==fd&&Fo.current!==null||(gd=!0),!(bd&134217727)&&!(xd&134217727)||ud===null||Qd(ud,fd,Cd,!1)}function cf(e,t,n){var r=ld;ld|=2;var i=af(),a=of();(ud!==e||fd!==t)&&(jd=null,tf(e,t)),t=!1;var o=yd;a:do try{if(pd!==0&&dd!==null){var s=dd,c=md;switch(pd){case 8:ef(),o=6;break a;case 3:case 2:case 9:case 6:Fo.current===null&&(t=!0);var l=pd;if(pd=0,md=null,mf(e,s,c,l),n&&gd){o=0;break a}break;default:l=pd,pd=0,md=null,mf(e,s,c,l)}}lf(),o=yd;break}catch(t){nf(e,t)}while(1);return t&&e.shellSuspendCounter++,Sa=xa=null,ld=r,j.H=i,j.A=a,dd===null&&(ud=null,fd=0,Oi()),o}function lf(){for(;dd!==null;)ff(dd)}function uf(e,t){var n=ld;ld|=2;var r=af(),a=of();ud!==e||fd!==t?(jd=null,Ad=qe()+500,tf(e,t)):gd=mt(e,t);a:do try{if(pd!==0&&dd!==null){t=dd;var o=md;b:switch(pd){case 1:pd=0,md=null,mf(e,t,o,1);break;case 2:case 9:if(ro(o)){pd=0,md=null,pf(t);break}t=function(){pd!==2&&pd!==9||ud!==e||(pd=7),Vf(e)},o.then(t,t);break a;case 3:pd=7;break a;case 4:pd=5;break a;case 7:ro(o)?(pd=0,md=null,pf(t)):(pd=0,md=null,mf(e,t,o,7));break;case 5:var s=null;switch(dd.tag){case 26:s=dd.memoizedState;case 5:case 27:var c=dd;if(s?dh(s):c.stateNode.complete){pd=0,md=null;var l=c.sibling;if(l!==null)dd=l;else{var u=c.return;u===null?dd=null:(dd=u,hf(u))}break b}}pd=0,md=null,mf(e,t,o,5);break;case 6:pd=0,md=null,mf(e,t,o,6);break;case 8:ef(),yd=6;break a;default:throw Error(i(462))}}df();break}catch(t){nf(e,t)}while(1);return Sa=xa=null,j.H=r,j.A=a,ld=n,dd===null?(ud=null,fd=0,Oi(),yd):0}function df(){for(;dd!==null&&!Ge();)ff(dd)}function ff(e){var t=yl(e.alternate,e,vd);e.memoizedProps=e.pendingProps,t===null?hf(e):dd=t}function pf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=$c(n,t,t.pendingProps,t.type,void 0,fd);break;case 11:t=$c(n,t,t.pendingProps,t.type.render,t.ref,fd);break;case 5:ds(t);var r=t;r===sa&&(la?(ha(r),r.tag===5&&r.stateNode!=null&&(ca=r.stateNode)):(ha(r),la=!0));default:Ol(n,t),t=dd=zi(t,vd),t=yl(n,t,vd)}e.memoizedProps=e.pendingProps,t===null?hf(e):dd=t}function mf(e,t,n,r){Sa=xa=null,ds(t),lo=null,uo=0;var i=t.return;try{if(Rc(e,i,t,n,fd)){yd=1,Nc(e,Ki(n,e.current)),dd=null;return}}catch(t){if(i!==null)throw dd=i,t;yd=1,Nc(e,Ki(n,e.current)),dd=null;return}t.flags&32768?(la||r===1?e=!0:gd||fd&536870912?e=!1:(hd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Fo.current,r!==null&&r.tag===13&&(r.flags|=16384))),gf(t,e)):hf(t)}function hf(e){var t=e;do{if(t.flags&32768){gf(t,hd);return}e=t.return;var n=El(t.alternate,t,vd);if(n!==null){dd=n;return}if(t=t.sibling,t!==null){dd=t;return}dd=t=e}while(t!==null);yd===0&&(yd=5)}function gf(e,t){do{var n=Dl(e.alternate,e);if(n!==null){n.flags&=32767,dd=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){dd=e;return}dd=e=n}while(e!==null);yd=6,dd=null}function _f(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do Tf();while(Nd!==0);if(ld&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===ud&&(dd=ud=null,fd=0),Fd=t,Pd=e,Id=n,Rd=a,zd=r,vf(e,t,n,s,c,l,f)}}function vf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Ld=s,s|=Di,bt(e,n,s,r,i,a),Vd=null,(n&335544064)===n?(Hd=Ba(e),r=10262):(Hd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Pf(Ze,function(){return Ef(),null})):(e.callbackNode=null,e.callbackPriority=0),ql=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=j.T,j.T=null,i=be.p,be.p=2,a=ld,ld|=4;try{Su(e,t,n)}finally{ld=a,be.p=i,j.T=r}}Nd=1,ql?Bd=Jp(o,e.containerInfo,Hd,xf,Sf,bf,Cf,Ef,yf,null,null):(xf(),Sf(),Cf())}function yf(e){if(Nd!==0){var t=Pd.onRecoverableError;t(e,{componentStack:null})}}function bf(){Nd===3&&(Nd=0,Uu(Fd,Pd),Nd=4)}function xf(){if(Nd===1){Nd=0;var e=Pd,t=Fd,n=Id,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=j.T,j.T=null;var i=be.p;be.p=2;var a=ld;ld|=4;try{yu=bu=!1,zu(t,e,n),n=Tp;var o=P(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Qr(s.ownerDocument.documentElement,s)){if(c!==null&&$r(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Zr(s,h),v=Zr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Mh=!!wp,Tp=wp=null}finally{ld=a,be.p=i,j.T=r}}e.current=t,Nd=2}}function Sf(){if(Nd===2){Nd=0;var e=Pd,t=Fd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=be.p;be.p=2;var i=ld;ld|=4;try{wu(e,t.alternate,t)}finally{ld=i,be.p=r,j.T=n}}Nd=3}}function Cf(){if(Nd===4||Nd===3){Nd=0;var e=Bd;Bd=null,Ke();var t=Pd,n=Fd,r=Id,i=zd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Nd=5:(Nd=0,Fd=Pd=null,wf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Md=null),Tt(r),n=n.stateNode,rt&&typeof rt.onCommitFiberRoot==`function`)try{rt.onCommitFiberRoot(nt,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=j.T,a=be.p,be.p=2,j.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{j.T=n,be.p=a}}if(i=Vd,o=Hd,Hd=null,i!==null&&(Vd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Id&3&&Tf(),Vf(t),a=t.pendingLanes,r&261930&&a&42?t===Wd?Ud++:(Ud=0,Wd=t):(Ud=0,Wd=null),Hf(0,!1)}}function wf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ra(t)))}function Tf(){return Bd!==null&&(Bd.skipTransition(),Bd=null),xf(),Sf(),Cf(),Ef()}function Ef(){if(Nd!==5)return!1;var e=Pd,t=Ld;Ld=0;var n=Tt(Id),r=j.T,a=be.p;try{be.p=32>n?32:n,j.T=null,n=Rd,Rd=null;var o=Pd,s=Id;if(Nd=0,Fd=Pd=null,Id=0,ld&6)throw Error(i(331));var c=ld;if(ld|=4,id(o.current),Xu(o,o.current,s,n),ld=c,Hf(0,!1),rt&&typeof rt.onPostCommitFiberRoot==`function`)try{rt.onPostCommitFiberRoot(nt,o)}catch{}return!0}finally{be.p=a,j.T=r,wf(e,t)}}function Df(e,t,n){t=Ki(n,t),t=Fc(e.stateNode,t,2),e=So(e,t,2),e!==null&&(yt(e,2),Vf(e))}function Of(e,t,n){if(e.tag===3)Df(e,e,n);else for(;t!==null;){if(t.tag===3){Df(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Md===null||!Md.has(r))){e=Ki(n,e),n=Ic(2),r=So(t,n,2),r!==null&&(Lc(n,r,t,e),yt(r,2),Vf(r));break}}t=t.return}}function kf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cd;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(_d=!0,i.add(n),e=Af.bind(null,e,t,n),t.then(e,e))}function Af(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ud===e&&(fd&n)===n&&(yd===4||yd===3&&(fd&62914560)===fd&&300>qe()-Od?ld&2?Sd|=n:tf(e,0):Sd|=n,wd===fd&&(wd=0)),Vf(e)}function jf(e,t){t===0&&(t=_t()),e=ji(e,t),e!==null&&(yt(e,t),Vf(e))}function Mf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jf(e,n)}function Nf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),jf(e,n)}function Pf(e,t){return Ue(e,t)}var Ff=null,If=null,Lf=!1,Rf=!1,zf=!1,Bf=0;function Vf(e){e!==If&&e.next===null&&(If===null?Ff=If=e:If=If.next=e),Rf=!0,Lf||(Lf=!0,Jf())}function Hf(e,t){if(!zf&&Rf){zf=!0;do for(var n=!1,r=Ff;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-at(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,qf(r,a))}else a=fd,a=pt(r,r===ud?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||mt(r,a)||(n=!0,qf(r,a))}r=r.next}while(n);zf=!1}}function Uf(){Wf()}function Wf(){Rf=Lf=!1;var e=0;Bf!==0&&Mp()&&(e=Bf);for(var t=qe(),n=null,r=Ff;r!==null;){var i=r.next,a=Gf(r,t);a===0?(r.next=null,n===null?Ff=i:n.next=i,i===null&&(If=n)):(n=r,(e!==0||a&3)&&(Rf=!0)),r=i}Nd!==0&&Nd!==5||Hf(e,!1),Bf!==0&&(Bf=0)}function Gf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-at(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=gt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ud,n=fd,n=pt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(pd===2||pd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&We(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||mt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&We(r),Tt(n)){case 2:case 8:n=Xe;break;case 32:n=Ze;break;case 268435456:n=$e;break;default:n=Ze}return r=Kf.bind(null,e),n=Ue(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&We(r),e.callbackPriority=2,e.callbackNode=null,2}function Kf(e,t){if(Nd!==0&&Nd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Tf()&&e.callbackNode!==n)return null;var r=fd;return r=pt(e,e===ud?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Yd(e,r,t),Gf(e,qe()),e.callbackNode!=null&&e.callbackNode===n?Kf.bind(null,e):null)}function qf(e,t){if(Tf())return null;Yd(e,t,!0)}function Jf(){Lp(function(){ld&6?Ue(Ye,Uf):Wf()})}function Yf(){if(Bf===0){var e=Ua;e===0&&(e=lt,lt<<=1,!(lt&261888)&&(lt=256)),Bf=e}return Bf}function Xf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Tn(e)}function Zf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Xf((i[At]||null).action),o=r.submitter;o&&(t=(t=o[At]||null)?Xf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new qn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Bf!==0){var e=new FormData(i,o);sc(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),sc(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Qf=0;Qf<vi.length;Qf++){var $f=vi[Qf];yi($f.toLowerCase(),`on`+($f[0].toUpperCase()+$f.slice(1)))}yi(ui,`onAnimationEnd`),yi(di,`onAnimationIteration`),yi(fi,`onAnimationStart`),yi(`dblclick`,`onDoubleClick`),yi(`focusin`,`onFocus`),yi(`focusout`,`onBlur`),yi(pi,`onTransitionRun`),yi(mi,`onTransitionStart`),yi(hi,`onTransitionCancel`),yi(gi,`onTransitionEnd`),Jt(`onMouseEnter`,[`mouseout`,`mouseover`]),Jt(`onMouseLeave`,[`mouseout`,`mouseover`]),Jt(`onPointerEnter`,[`pointerout`,`pointerover`]),Jt(`onPointerLeave`,[`pointerout`,`pointerover`]),qt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),qt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),qt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),qt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),qt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),qt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ep=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),tp=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(ep));function np(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){wi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){wi(e)}i.currentTarget=null,a=c}}}}function rp(e,t){var n=t[Mt];n===void 0&&(n=t[Mt]=new Set);var r=e+`__bubble`;n.has(r)||(sp(t,e,2,!1),n.add(r))}function ip(e,t,n){var r=0;t&&(r|=4),sp(n,e,r,t)}var ap=`_reactListening`+Math.random().toString(36).slice(2);function op(e){if(!e[ap]){e[ap]=!0,Gt.forEach(function(t){t!==`selectionchange`&&(tp.has(t)||ip(t,!1,e),ip(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ap]||(t[ap]=!0,ip(`selectionchange`,!1,t))}}function sp(e,t,n,r){switch(zh(t)){case 2:var i=Nh;break;case 8:i=Ph;break;default:i=Fh}n=i.bind(null,t,n,e),i=void 0,!In||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function cp(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=zt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Nn(function(){var r=a,i=On(n),s=[];a:{var c=_i.get(e);if(c!==void 0){var l=qn,u=e;switch(e){case`keypress`:if(Hn(n)===0)break a;case`keydown`:case`keyup`:l=N;break;case`focusin`:u=`focus`,l=nr;break;case`focusout`:u=`blur`,l=nr;break;case`beforeblur`:case`afterblur`:l=nr;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=er;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=tr;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=fr;break;case ui:case di:case fi:l=M;break;case gi:l=pr;break;case`scroll`:case`scrollend`:l=Yn;break;case`wheel`:l=mr;break;case`copy`:case`cut`:case`paste`:l=rr;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=ur;break;case`submit`:l=dr;break;case`toggle`:case`beforetoggle`:l=hr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Pn(m,p),g!=null&&d.push(lp(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==Dn&&(u=n.relatedTarget||n.fromElement)&&(zt(u)||u[jt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?zt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=er,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=ur,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Vt(c),h=l==null?u:Vt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,zt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,dp):null,c!==null&&fp(s,u,c,d,!1),l!==null&&f!==null&&fp(s,f,l,d,!0)))}a:{if(c=r?Vt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Fr;else if(kr(c)){if(Ir)_=Gr;else{_=Ur;var v=Hr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Sn(r.elementType)&&(_=Fr):_=Wr;if(_&&=_(e,r)){Ar(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Vt(r):window,e){case`focusin`:(kr(v)||v.contentEditable===`true`)&&(F=v,ti=r,ni=null);break;case`focusout`:ni=ti=F=null;break;case`mousedown`:ri=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ri=!1,ii(s,n,i);break;case`selectionchange`:if(ei)break;case`keydown`:case`keyup`:ii(s,n,i)}var y;if(_r)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Tr?Cr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(br&&n.locale!==`ko`&&(Tr||b!==`onCompositionStart`?b===`onCompositionEnd`&&Tr&&(y=Vn()):(Rn=i,zn=`value`in Rn?Rn.value:Rn.textContent,Tr=!0)),v=up(r,b),0<v.length&&(b=new ir(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=wr(n),y!==null&&(b.data=y)))),(y=yr?Er(e,n):Dr(e,n))&&(b=up(r,`onBeforeInput`),0<b.length&&(v=new ir(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Zf(s,e,r,n,i)}np(s,t)})}function lp(e,t,n){return{instance:e,listener:t,currentTarget:n}}function up(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Pn(e,n),i!=null&&r.unshift(lp(e,i,a)),i=Pn(e,t),i!=null&&r.push(lp(e,i,a))),e.tag===3)return r;e=e.return}return[]}function dp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fp(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Pn(n,a),l!=null&&o.unshift(lp(n,l,c))):i||(l=Pn(n,a),l!=null&&o.push(lp(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var pp=/\r\n?/g,mp=/\u0000|\uFFFD/g;function hp(e){return(typeof e==`string`?e:``+e).replace(pp,`
|
|
10
|
+
`).replace(mp,``)}function gp(e,t){return t=hp(t),hp(e)===t}function _p(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||vn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&vn(e,``+r);else return;break;case`className`:nn(e,`class`,r);break;case`tabIndex`:nn(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:nn(e,n,r);break;case`style`:xn(e,r,o);return;case`data`:if(t!==`object`){nn(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Tn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&_p(e,t,`name`,a.name,a,null),_p(e,t,`formEncType`,a.formEncType,a,null),_p(e,t,`formMethod`,a.formMethod,a,null),_p(e,t,`formTarget`,a.formTarget,a,null)):(_p(e,t,`encType`,a.encType,a,null),_p(e,t,`method`,a.method,a,null),_p(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Tn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=En);return;case`onScroll`:r!=null&&rp(`scroll`,e);return;case`onScrollEnd`:r!=null&&rp(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Tn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:rp(`beforetoggle`,e),rp(`toggle`,e),tn(e,`popover`,r);break;case`xlinkActuate`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:rn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:rn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:rn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:tn(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=Cn.get(n)||n,tn(e,n,r);else return}$t=!0}function vp(e,t,n,r,a,o){switch(n){case`style`:xn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)vn(e,r);else if(typeof r==`number`||typeof r==`bigint`)vn(e,``+r);else return;break;case`onScroll`:r!=null&&rp(`scroll`,e);return;case`onScrollEnd`:r!=null&&rp(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=En);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[At]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}$t=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):tn(e,n,r)}return}$t=!0}function yp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:rp(`error`,e),rp(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:_p(e,t,o,s,n,null)}}a&&_p(e,t,`srcSet`,n.srcSet,n,null),r&&_p(e,t,`src`,n.src,n,null);return;case`input`:rp(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:_p(e,t,r,d,n,null)}}pn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in rp(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:_p(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&hn(e,!!r,n,!0):hn(e,!!r,t,!1);return;case`textarea`:for(s in rp(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:_p(e,t,s,c,n,null)}_n(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:_p(e,t,l,r,n,null)}return;case`dialog`:rp(`beforetoggle`,e),rp(`toggle`,e),rp(`cancel`,e),rp(`close`,e);break;case`iframe`:case`object`:rp(`load`,e);break;case`video`:case`audio`:for(r=0;r<ep.length;r++)rp(ep[r],e);break;case`image`:rp(`error`,e),rp(`load`,e);break;case`details`:rp(`toggle`,e);break;case`embed`:case`source`:case`link`:rp(`error`,e),rp(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:_p(e,t,u,r,n,null)}return;default:if(Sn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&vp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&_p(e,t,c,r,n,null))}var bp={};function xp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||_p(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&($t=!0),o=m;break;case`name`:m!==f&&($t=!0),a=m;break;case`checked`:m!==f&&($t=!0),u=m;break;case`defaultChecked`:m!==f&&($t=!0),d=m;break;case`value`:m!==f&&($t=!0),s=m;break;case`defaultValue`:m!==f&&($t=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&_p(e,t,p,m,r,f)}}fn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||_p(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&($t=!0),p=o;break;case`defaultValue`:o!==l&&($t=!0),c=o;break;case`multiple`:o!==l&&($t=!0),s=o;default:o!==l&&_p(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?hn(e,!!n,n?[]:``,!1):hn(e,!!n,t,!0)):hn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:_p(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&($t=!0),p=a;break;case`defaultValue`:a!==o&&($t=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&_p(e,t,s,a,r,o)}gn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:_p(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&($t=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:_p(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&_p(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:_p(e,t,u,p,r,m)}return;default:if(Sn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&vp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||vp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&_p(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||_p(e,t,f,p,r,m)}function Sp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Cp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Sp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Sp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var wp=null,Tp=null;function Ep(e){return e.nodeType===9?e:e.ownerDocument}function Dp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Op(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function kp(e,t,n,r){return n=Ep(n).createElement(e),n[kt]=r,n[At]=t,yp(n,e,t),Ut(n),n}function Ap(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jp=null;function Mp(){var e=window.event;return e&&e.type===`popstate`?e!==jp&&(jp=e,!0):(jp=null,!1)}var Np=typeof setTimeout==`function`?setTimeout:void 0,Pp=typeof clearTimeout==`function`?clearTimeout:void 0,Fp=typeof Promise==`function`?Promise:void 0,Ip=typeof requestAnimationFrame==`function`?requestAnimationFrame:Np,Lp=typeof queueMicrotask==`function`?queueMicrotask:Fp===void 0?Np:function(e){return Fp.resolve(null).then(e).catch(Rp)};function Rp(e){setTimeout(function(){throw e})}function zp(e){return e===`head`}function Bp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),ig(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Nm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Nm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[It]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Nm(e.ownerDocument.body)}n=i}while(n);ig(t)}function Vp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Hp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Up(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Wp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Gp(e){return Wp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Wp(t,n,e)}function L(e){return e.documentElement.clientHeight}function qp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Jp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(L(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=fh(f),u>hh){s.length=o;break}f=new Promise(qp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Yp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Yp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Yp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Yp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Xp(e){return{name:e,group:new Yp(`group`,e),imagePair:new Yp(`image-pair`,e),old:new Yp(`old`,e),new:new Yp(`new`,e)}}function Zp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Zp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(nm(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=em(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Qp,e,s,r)}this._eventListeners=a}};function Qp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Zp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=nm(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=em(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,$p,e,n,i),r.splice(t,1),a!==null&&a()}};function $p(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function em(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function tm(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function nm(e,t,n,r){if(e.length===0)return-1;r=tm(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&tm(a.optionsOrUseCapture)===r)return i}return-1}Zp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,em(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,em(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Zp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,rm,e,void 0,void 0)};function rm(e,t){return e.tag!==6&&(e=b(e),km(e,t))}Zp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,im,t,void 0,void 0);for(var n=t.length-1;0<=n&&!rm(t[n],e);n--);};function im(e,t){return t.push(e),!1}Zp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=Ep(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,am,e,void 0,void 0))};function am(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Zp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,om,e,void 0,void 0)};function om(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Zp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,sm,e,void 0,void 0);for(var n=t=0;n<cm.length;n++){var r=cm[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):cm[t++]=r}cm.length=t}};function sm(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var cm=[],lm=!1;function um(e,t,n){cm.push({fragmentInstance:e,observer:t,instance:n}),lm||(lm=!0,Am(function(){lm=!1;var e=cm;cm=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Zp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,dm,e,void 0,void 0),e};function dm(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Zp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Zp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,im,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||fm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function fm(e,t,n,r,i){var a=zt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(m(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(m(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function pm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Zp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,im,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),pm(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),pm(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function mm(e,t){return e=b(e),hm(e,t),!1}function hm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function gm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,em(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<cm.length;i++){var a=cm[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(cm[r++]=a)}cm.length=r,n.observe(e)}),hm(e,t))}function _m(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,em(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?um(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function vm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:vm(n),Rt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function ym(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[It])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=Tm(e.nextSibling),e===null)break}return null}function bm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=Tm(e.nextSibling),e===null))return null;return e}function xm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=Tm(e.nextSibling),e===null))return null;return e}function Sm(e){return e.data===`$?`||e.data===`$~`}function Cm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function wm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function Tm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var Em=null;function Dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return Tm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function Om(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function km(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function Am(e){Ip(function(){Ip(function(t){return e(t)})})}function jm(e,t,n){switch(t=Ep(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Mm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&_p(e,t,r,null,bp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===En&&(e.onclick=null),Rt(e)}function Nm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rt(e)}var Pm=new Map,Fm=new Set;function Im(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Lm=be.d;be.d={f:Rm,r:zm,D:Hm,C:Um,L:Wm,m:Gm,X:qm,S:Km,M:Jm};function Rm(){var e=Lm.f(),t=$d();return e||t}function zm(e){var t=Bt(e);t!==null&&t.tag===5&&t.type===`form`?lc(t):Lm.r(e)}var Bm=typeof document>`u`?null:document;function Vm(e,t,n){var r=Bm;if(r&&typeof t==`string`&&t){var i=dn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Fm.has(i)||(Fm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),yp(t,`link`,e),Ut(t),r.head.appendChild(t)))}}function Hm(e){Lm.D(e),Vm(`dns-prefetch`,e,null)}function Um(e,t){Lm.C(e,t),Vm(`preconnect`,e,t)}function Wm(e,t,n){Lm.L(e,t,n);var r=Bm;if(r&&e&&t){var i=`link[rel="preload"][as="`+dn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+dn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+dn(n.imageSizes)+`"]`)):i+=`[href="`+dn(e)+`"]`;var a=i;switch(t){case`style`:a=Xm(e);break;case`script`:a=eh(e)}if(!(Pm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Pm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Zm(a))||t===`script`&&r.querySelector(th(a))))){var o=r.createElement(`link`);yp(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Wt(o)}),Ut(o),r.head.appendChild(o)}}}function Gm(e,t){Lm.m(e,t);var n=Bm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+dn(r)+`"][href="`+dn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=eh(e)}if(!Pm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Pm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(th(a)))return}r=n.createElement(`link`),yp(r,`link`,e),Ut(r),n.head.appendChild(r)}}}function Km(e,t,n){Lm.S(e,t,n);var r=Bm;if(r&&e){var i=Ht(r).hoistableStyles,a=Xm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Zm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Pm.get(a))&&ih(e,n);var c=o=r.createElement(`link`);Ut(c),yp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,rh(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function qm(e,t){Lm.X(e,t);var n=Bm;if(n&&e){var r=Ht(n).hoistableScripts,i=eh(e),a=r.get(i);a||(a=n.querySelector(th(i)),a||(e=D({src:e,async:!0},t),(t=Pm.get(i))&&ah(e,t),a=n.createElement(`script`),Ut(a),yp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Jm(e,t){Lm.M(e,t);var n=Bm;if(n&&e){var r=Ht(n).hoistableScripts,i=eh(e),a=r.get(i);a||(a=n.querySelector(th(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Pm.get(i))&&ah(e,t),a=n.createElement(`script`),Ut(a),yp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ym(e,t,n,r){var a=(a=ke.current)?Im(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Xm(n.href),t=Ht(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Xm(n.href);var o=Ht(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Zm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Pm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Pm.set(e,o)),$m(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=eh(n),t=Ht(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Xm(e){return`href="`+dn(e)+`"`}function Zm(e){return`link[rel="stylesheet"][`+e+`]`}function Qm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function $m(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Wt.bind(null,t),yp(t,`link`,n),Ut(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function eh(e){return`[src="`+dn(e)+`"]`}function th(e){return`script[async]`+e}function nh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+dn(n.href)+`"]`);if(r)return t.instance=r,Ut(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ut(r),yp(r,`style`,a),rh(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Xm(n.href);var o=e.querySelector(Zm(a));if(o)return t.state.loading|=4,t.instance=o,Ut(o),o;r=Qm(n),(a=Pm.get(a))&&ih(r,a),o=(e.ownerDocument||e).createElement(`link`),Ut(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),yp(o,`link`,r),t.state.loading|=4,rh(o,n.precedence,e),t.instance=o;case`script`:return o=eh(n.src),(a=e.querySelector(th(o)))?(t.instance=a,Ut(a),a):(r=n,(a=Pm.get(o))&&(r=D({},n),ah(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ut(a),yp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,rh(r,n.precedence,e));return t.instance}function rh(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ih(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function ah(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var oh=null;function sh(e,t,n){if(oh===null){var r=new Map,i=oh=new Map;i.set(n,r)}else i=oh,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[It]||a[kt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function ch(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function lh(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function uh(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function dh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function fh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function ph(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=fh(t),e.suspenseyImages.push(t)),e=yh.bind(e),t.decode().then(e,e))}function mh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Xm(r.href),a=t.querySelector(Zm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=vh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ut(a);return}a=t.ownerDocument||t,r=Qm(r),(i=Pm.get(i))&&ih(r,i),a=a.createElement(`link`),Ut(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),yp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=vh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var hh=0;function gh(e,t){return e.stylesheets&&e.count===0&&xh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&xh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&hh===0&&(hh=62500*Cp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>hh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function _h(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)xh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function vh(){this.count--,_h(this)}function yh(){this.imgCount--,_h(this)}var bh=null;function xh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bh=new Map,t.forEach(Sh,e),bh=null,vh.call(e))}function Sh(e,t){if(!(t.state.loading&4)){var n=bh.get(e);if(n)var r=n.get(null);else{n=new Map,bh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=vh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Ch={$$typeof:ie,Provider:null,Consumer:null,_currentValue:xe,_currentValue2:xe,_threadCount:0};function wh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=vt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.hiddenUpdates=vt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function Th(e,t,n,r,i,a,o,s,c,l,u,d){return e=new wh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ii(3,null,null,t),e.current=a,a.stateNode=e,t=La(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},yo(a),e}function Eh(e){return e?(e=Pi,e):Pi}function Dh(e,t,n,r,i,a){i=Eh(i),r.context===null?r.context=i:r.pendingContext=i,r=xo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=So(e,r,t),n!==null&&(Jd(n,e,t),Co(n,e,t))}function Oh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function kh(e,t){Oh(e,t),(e=e.alternate)&&Oh(e,t)}function Ah(e){if(e.tag===13||e.tag===31){var t=ji(e,67108864);t!==null&&Jd(t,e,67108864),kh(e,67108864)}}function jh(e){if(e.tag===13||e.tag===31){var t=Gd();t=wt(t);var n=ji(e,t);n!==null&&Jd(n,e,t),kh(e,t)}}var Mh=!0;function Nh(e,t,n,r){var i=j.T;j.T=null;var a=be.p;try{be.p=2,Fh(e,t,n,r)}finally{be.p=a,j.T=i}}function Ph(e,t,n,r){var i=j.T;j.T=null;var a=be.p;try{be.p=8,Fh(e,t,n,r)}finally{be.p=a,j.T=i}}function Fh(e,t,n,r){if(Mh){var i=Ih(r);if(i===null)cp(e,t,r,Lh,n),Jh(e,r);else if(Xh(i,e,t,n,r))r.stopPropagation();else if(Jh(e,r),t&4&&-1<qh.indexOf(e)){for(;i!==null;){var a=Bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ft(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-at(o);s.entanglements[1]|=c,o&=~c}Vf(a),!(ld&6)&&(Ad=qe()+500,Hf(0,!1))}}break;case 31:case 13:s=ji(a,2),s!==null&&Jd(s,a,2),$d(),kh(a,2)}if(a=Ih(r),a===null&&cp(e,t,r,Lh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else cp(e,t,r,null,n)}}function Ih(e){return e=On(e),Rh(e)}var Lh=null;function Rh(e){if(Lh=null,e=zt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Lh=e,null}function zh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Je()){case Ye:return 2;case Xe:return 8;case Ze:case Qe:return 32;case $e:return 268435456;default:return 32}default:return 32}}var Bh=!1,Vh=null,Hh=null,Uh=null,Wh=new Map,Gh=new Map,Kh=[],qh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Jh(e,t){switch(e){case`focusin`:case`focusout`:Vh=null;break;case`dragenter`:case`dragleave`:Hh=null;break;case`mouseover`:case`mouseout`:Uh=null;break;case`pointerover`:case`pointerout`:Wh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Gh.delete(t.pointerId)}}function Yh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Bt(t),t!==null&&Ah(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Xh(e,t,n,r,i){switch(t){case`focusin`:return Vh=Yh(Vh,e,t,n,r,i),!0;case`dragenter`:return Hh=Yh(Hh,e,t,n,r,i),!0;case`mouseover`:return Uh=Yh(Uh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Wh.set(a,Yh(Wh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Gh.set(a,Yh(Gh.get(a)||null,e,t,n,r,i)),!0}return!1}function Zh(e){var t=zt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Dt(e.priority,function(){jh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Dt(e.priority,function(){jh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ih(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Dn=r,n.target.dispatchEvent(r),Dn=null}else return t=Bt(n),t!==null&&Ah(t),e.blockedOn=n,!1;t.shift()}return!0}function $h(e,t,n){Qh(e)&&n.delete(t)}function eg(){Bh=!1,Vh!==null&&Qh(Vh)&&(Vh=null),Hh!==null&&Qh(Hh)&&(Hh=null),Uh!==null&&Qh(Uh)&&(Uh=null),Wh.forEach($h),Gh.forEach($h)}function tg(e,n){e.blockedOn===n&&(e.blockedOn=null,Bh||(Bh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,eg)))}var ng=null;function rg(e){ng!==e&&(ng=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ng===e&&(ng=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Rh(r||n)===null)continue;break}var a=Bt(n);a!==null&&(e.splice(t,3),t-=3,sc(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function ig(e){function t(t){return tg(t,e)}Vh!==null&&tg(Vh,e),Hh!==null&&tg(Hh,e),Uh!==null&&tg(Uh,e),Wh.forEach(t),Gh.forEach(t);for(var n=0;n<Kh.length;n++){var r=Kh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Kh.length&&(n=Kh[0],n.blockedOn===null);)Zh(n),n.blockedOn===null&&Kh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[At]||null;if(typeof a==`function`)o||rg(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[At]||null)s=o.formAction;else if(Rh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),rg(n)}}}function ag(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function og(e){this._internalRoot=e}sg.prototype.render=og.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;Dh(n,Gd(),e,t,null,null)},sg.prototype.unmount=og.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dh(e.current,2,null,e,null,null),$d(),t[jt]=null}};function sg(e){this._internalRoot=e}sg.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kh.length&&t!==0&&t<Kh[n].priority;n++);Kh.splice(n,0,e),n===0&&Zh(e)}};var cg=n.version;if(cg!==`19.3.1`)throw Error(i(527,cg,`19.3.1`));be.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var lg={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:j,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var ug=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ug.isDisabled&&ug.supportsFiber)try{nt=ug.inject(lg),rt=ug}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ac,s=jc,c=Mc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Th(e,1,!1,null,null,n,r,null,o,s,c,ag),e[jt]=t.current,op(e),new og(t)}})),_=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=l(d(),1),y=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,b=/^[\\/]{2}/;function x(e,t){return t+e.replace(/\\/g,`/`)}var S=`popstate`;function C(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function w(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return k(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:A(t)}return te(t,n,null,e)}function T(e,t){if(e===!1||e==null)throw Error(t)}function E(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function D(){return Math.random().toString(36).substring(2,10)}function O(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function k(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?ee(t):t,state:n,key:t&&t.key||r||D(),mask:i}}function A({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function ee(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function te(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=C(e)?e:k(h.location,e,t);n&&n(r,e),l=u()+1;let d=O(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=C(e)?e:k(h.location,e,t);n&&n(r,e),l=u();let i=O(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ne(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(S,d),c=e,()=>{i.removeEventListener(S,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ne(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),T(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:A(t);return i=i.replace(/ $/,`%20`),!n&&b.test(i)&&(i=r+i),new URL(i,r)}function re(e,t,n=`/`){return ie(e,t,n,!1)}function ie(e,t,n,r,i){let a=Se((typeof t==`string`?ee(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ae(e),s=null,c=xe(a);for(let e=0;s==null&&e<o.length;++e)s=ve(o[e],c,r);return s}function ae(e){let t=oe(e);return ce(t),t}function oe(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;T(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ae([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(T(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),oe(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:ge(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=be(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of se(e.path))a(e,t,!0,n)}),t}function se(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=se(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ce(e){e.sort((e,t)=>e.score===t.score?_e(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var le=/^:[\w-]+$/,ue=3,de=2,fe=1,pe=10,me=-2,he=e=>e===`*`;function ge(e,t){let n=e.split(`/`),r=n.length;return n.some(he)&&(r+=me),t&&(r+=de),n.filter(e=>!he(e)).reduce((e,t)=>e+(le.test(t)?ue:t===``?fe:pe),r)}function _e(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function ve(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?j(u,l,s.matcher,s.compiledParams):ye(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=ye({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Ae([a,d.pathname]),pathnameBase:Me(Ae([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ae([a,d.pathnameBase]))}return o}function ye(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=be(e.path,e.caseSensitive,e.end);return j(e,t,n,r)}function j(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function be(e,t=!1,n=!0){E(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function xe(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return E(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Se(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Ce(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?ee(e):e,a;return n?(n=ke(n),a=n.startsWith(`/`)?we(n.substring(1),`/`):we(n,t)):a=t,{pathname:a,search:Ne(r),hash:Pe(i)}}function we(e,t){let n=je(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Te(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ee(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function De(e){let t=Ee(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Oe(e,t,n,r=!1){let i;typeof e==`string`?i=ee(e):(i={...e},T(!i.pathname||!i.pathname.includes(`?`),Te(`?`,`pathname`,`search`,i)),T(!i.pathname||!i.pathname.includes(`#`),Te(`#`,`pathname`,`hash`,i)),T(!i.search||!i.search.includes(`#`),Te(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Ce(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var ke=e=>e.replace(/[\\/]{2,}/g,`/`),Ae=e=>ke(e.join(`/`)),je=e=>e.replace(/\/+$/,``),Me=e=>je(e).replace(/^\/*/,`/`),Ne=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Pe=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Fe=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ie(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Le(e){return Ae(e.map(e=>e.route.path).filter(Boolean))||`/`}var Re=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function ze(e,t){let n=e;if(typeof n!=`string`||!y.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Re)try{let e=new URL(window.location.href),r=b.test(n)?new URL(x(n,e.protocol)):new URL(n),a=Se(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{E(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Be=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Be);var Ve=[`GET`,...Be];new Set(Ve);var He=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Ue(e){try{return He.includes(new URL(e).protocol)}catch{return!1}}var We=v.createContext(null);We.displayName=`DataRouter`;var Ge=v.createContext(null);Ge.displayName=`DataRouterState`;var Ke=v.createContext(!1);function qe(){return v.useContext(Ke)}var Je=v.createContext({isTransitioning:!1});Je.displayName=`ViewTransition`;var Ye=v.createContext(new Map);Ye.displayName=`Fetchers`;var Xe=v.createContext(null);Xe.displayName=`Await`;var Ze=v.createContext(null);Ze.displayName=`Navigation`;var Qe=v.createContext(null);Qe.displayName=`Location`;var $e=v.createContext({outlet:null,matches:[],isDataRoute:!1});$e.displayName=`Route`;var et=v.createContext(null);et.displayName=`RouteError`;var tt=`REACT_ROUTER_ERROR`,nt=`REDIRECT`,rt=`ROUTE_ERROR_RESPONSE`;function it(e){if(e.startsWith(`${tt}:${nt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function at(e){if(e.startsWith(`${tt}:${rt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Fe(t.status,t.statusText,t.data)}catch{}}function ot(e,{relative:t}={}){T(st(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=v.useContext(Ze),{hash:i,pathname:a,search:o}=gt(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ae([n,a])),r.createHref({pathname:s,search:o,hash:i})}function st(){return v.useContext(Qe)!=null}function ct(){return T(st(),`useLocation() may be used only in the context of a <Router> component.`),v.useContext(Qe).location}var lt=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function ut(e){v.useContext(Ze).static||v.useLayoutEffect(e)}function dt(){let{isDataRoute:e}=v.useContext($e);return e?Nt():ft()}function ft(){T(st(),`useNavigate() may be used only in the context of a <Router> component.`);let e=v.useContext(We),{basename:t,navigator:n}=v.useContext(Ze),{matches:r}=v.useContext($e),{pathname:i}=ct(),a=JSON.stringify(De(r)),o=v.useRef(!1);return ut(()=>{o.current=!0}),v.useCallback((r,s={})=>{if(E(o.current,lt),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Oe(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ae([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var pt=v.createContext(null);function mt(e){let t=v.useContext($e).outlet;return v.useMemo(()=>t&&v.createElement(pt.Provider,{value:e},t),[t,e])}function ht(){let{matches:e}=v.useContext($e);return e[e.length-1]?.params??{}}function gt(e,{relative:t}={}){let{matches:n}=v.useContext($e),{pathname:r}=ct(),i=JSON.stringify(De(n));return v.useMemo(()=>Oe(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function _t(e,t){return vt(e,t)}function vt(e,t,n){T(st(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=v.useContext(Ze),{matches:i}=v.useContext($e),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Ft(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
11
|
+
|
|
12
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=ct(),d;if(t){let e=typeof t==`string`?ee(t):t;T(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):re(e,{pathname:p});E(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),E(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Tt(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ae([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ae([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?v.createElement(Qe.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function yt(){let e=Mt(),t=Ie(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=v.createElement(v.Fragment,null,v.createElement(`p`,null,`💿 Hey developer 👋`),v.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,v.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,v.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),v.createElement(v.Fragment,null,v.createElement(`h2`,null,`Unexpected Application Error!`),v.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?v.createElement(`pre`,{style:i},n):null,o)}var bt=v.createElement(yt,null),xt=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=at(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:v.createElement($e.Provider,{value:this.props.routeContext},v.createElement(et.Provider,{value:e,children:this.props.component}));return this.context?v.createElement(Ct,{error:e},t):t}};xt.contextType=Ke;var St=new WeakMap;function Ct({children:e,error:t}){let{basename:n}=v.useContext(Ze);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=it(t.digest);if(e){let r=St.get(t);if(r)throw r;let i=ze(e.location,n),a=i.absoluteURL||i.to;if(Ue(a))throw Error(`Invalid redirect location`);if(Re&&!St.get(t)){if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw St.set(t,n),n}}return v.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function wt({routeContext:e,match:t,children:n}){let r=v.useContext(We);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement($e.Provider,{value:e},n)}function Tt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);T(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Le(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||bt,o&&(s<0&&c===0?(Ft(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?v.createElement(n.route.Component,null):n.route.element?n.route.element:e,v.createElement(wt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?v.createElement(xt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Et(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dt(e){let t=v.useContext(We);return T(t,Et(e)),t}function Ot(e){let t=v.useContext(Ge);return T(t,Et(e)),t}function kt(e){let t=v.useContext($e);return T(t,Et(e)),t}function At(e){let t=kt(e),n=t.matches[t.matches.length-1];return T(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function jt(){return At(`useRouteId`)}function Mt(){let e=v.useContext(et),t=Ot(`useRouteError`),n=At(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Nt(){let{router:e}=Dt(`useNavigate`),t=At(`useNavigate`),n=v.useRef(!1);return ut(()=>{n.current=!0}),v.useCallback(async(r,i={})=>{E(n.current,lt),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Pt={};function Ft(e,t,n){!t&&!Pt[e]&&(Pt[e]=!0,E(!1,n))}v.memo(It);function It({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return vt(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Lt({to:e,replace:t,state:n,relative:r}){T(st(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=v.useContext(Ze);E(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=v.useContext($e),{pathname:o}=ct(),s=dt(),c=Oe(e,De(a),o,r===`path`),l=JSON.stringify(c);return v.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function Rt(e){return mt(e.context)}function zt(e){T(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Bt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){T(!st(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=v.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=ee(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=v.useMemo(()=>{let e=Se(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return E(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:v.createElement(Ze.Provider,{value:c},v.createElement(Qe.Provider,{children:t,value:h}))}function Vt({children:e,location:t}){return _t(Ht(e),t)}v.Component;function Ht(e,t=[]){let n=[];return v.Children.forEach(e,(e,r)=>{if(!v.isValidElement(e))return;let i=[...t,r];if(e.type===v.Fragment){n.push.apply(n,Ht(e.props.children,i));return}T(e.type===zt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),T(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Ht(e.props.children,i)),n.push(a)}),n}var Ut=`get`,Wt=`application/x-www-form-urlencoded`;function Gt(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Kt(e){return Gt(e)&&e.tagName.toLowerCase()===`button`}function qt(e){return Gt(e)&&e.tagName.toLowerCase()===`form`}function Jt(e){return Gt(e)&&e.tagName.toLowerCase()===`input`}function Yt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Xt(e,t){return e.button===0&&(!t||t===`_self`)&&!Yt(e)}function Zt(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Qt(e,t){let n=Zt(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var $t=null;function en(){if($t===null)try{new FormData(document.createElement(`form`),0),$t=!1}catch{$t=!0}return $t}var tn=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function nn(e){return e!=null&&!tn.has(e)?(E(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wt}"`),null):e}function rn(e,t){let n,r,i,a,o;if(qt(e)){let o=e.getAttribute(`action`);r=o?Se(o,t):null,n=e.getAttribute(`method`)||Ut,i=nn(e.getAttribute(`enctype`))||Wt,a=new FormData(e)}else if(Kt(e)||Jt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Se(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Ut,i=nn(e.getAttribute(`formenctype`))||nn(o.getAttribute(`enctype`))||Wt,a=new FormData(o,e),!en()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Gt(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Ut,r=null,i=Wt,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function an(e,t){if(e===!1||e==null)throw Error(t)}function on(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Se(i.pathname,t)===`/`?`${je(t)}/_root.${r}`:`${je(i.pathname)}.${r}`,i}async function sn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function cn(e){return e!=null&&typeof e.page==`string`}function ln(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function un(e,t,n){return hn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await sn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(ln).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function dn(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function fn(e,t,{includeHydrateFallback:n}={}){return pn(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function pn(e){return[...new Set(e)]}function mn(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function hn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!cn(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(mn(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function gn(){let e=v.useContext(We);return an(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function _n(){let e=v.useContext(Ge);return an(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var vn=v.createContext(void 0);vn.displayName=`FrameworkContext`;function yn(){let e=v.useContext(vn);return an(e,`You must render this element inside a <HydratedRouter> element`),e}function bn(e,t){let n=v.useContext(vn),[r,i]=v.useState(!1),[a,o]=v.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=v.useRef(null);v.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),v.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:xn(s,p),onBlur:xn(c,m),onMouseEnter:xn(l,p),onMouseLeave:xn(u,m),onTouchStart:xn(d,p)}]:[a,f,{}]:[!1,f,{}]}function xn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Sn({page:e,...t}){let n=qe(),{nonce:r}=yn(),{router:i}=gn(),a=v.useMemo(()=>re(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?v.createElement(wn,{page:e,matches:a,...t}):v.createElement(Tn,{page:e,matches:a,...t})):null}function Cn(e){let{manifest:t,routeModules:n}=yn(),[r,i]=v.useState([]);return v.useEffect(()=>{let r=!1;return un(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function wn({page:e,matches:t,...n}){let r=ct(),{future:i}=yn(),{basename:a}=gn(),o=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=on(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return v.createElement(v.Fragment,null,o.map(e=>v.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Tn({page:e,matches:t,...n}){let r=ct(),{future:i,manifest:a,routeModules:o}=yn(),{basename:s}=gn(),{loaderData:c,matches:l}=_n(),u=v.useMemo(()=>dn(e,t,l,a,r,`data`),[e,t,l,a,r]),d=v.useMemo(()=>dn(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=on(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=v.useMemo(()=>fn(d,a),[d,a]),m=Cn(d);return v.createElement(v.Fragment,null,f.map(e=>v.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>v.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>v.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function En(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}v.Component;var Dn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Dn&&(window.__reactRouterVersion=`7.18.2`)}catch{}function On({basename:e,children:t,useTransitions:n,window:r}){let i=v.useRef();i.current??=w({window:r,v5Compat:!0});let a=i.current,[o,s]=v.useState({action:a.action,location:a.location}),c=v.useCallback(e=>{n===!1?s(e):v.startTransition(()=>s(e))},[n]);return v.useLayoutEffect(()=>a.listen(c),[a,c]),v.createElement(Bt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var kn=v.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=v.useContext(Ze),b=typeof l==`string`&&y.test(l),x=ze(l,h);l=x.to;let S=ot(l,{relative:r}),C=ct(),w=null;if(o){let e=Oe(o,[],C.mask?C.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ae([h,e.pathname])),w=g.createHref(e)}let[T,E,D]=bn(n,p),O=Pn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function k(t){e&&e(t),t.defaultPrevented||O(t)}let A=!(x.isExternal||i),ee=v.createElement(`a`,{...p,...D,href:(A?w:void 0)||x.absoluteURL||S,onClick:A?k:e,ref:En(m,E),target:c,"data-discover":!b&&t===`render`?`true`:void 0});return T&&!b?v.createElement(v.Fragment,null,ee,v.createElement(Sn,{page:S})):ee});kn.displayName=`Link`;var An=v.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=gt(a,{relative:c.relative}),d=ct(),f=v.useContext(Ge),{navigator:p,basename:m}=v.useContext(Ze),h=f!=null&&Bn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&m&&(y=Se(y,m)||y);let b=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=_===g||!r&&_.startsWith(g)&&_.charAt(b)===`/`,S=y!=null&&(y===g||!r&&y.startsWith(g)&&y.charAt(g.length)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return v.createElement(kn,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});An.displayName=`NavLink`;var jn=v.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Ut,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=v.useContext(Ze),g=Rn(),_=zn(s,{relative:l}),b=o.toLowerCase()===`get`?`get`:`post`,x=typeof s==`string`&&y.test(s);return v.createElement(`form`,{ref:m,method:b,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?v.startTransition(()=>p()):p()},...p,"data-discover":!x&&e===`render`?`true`:void 0})});jn.displayName=`Form`;function Mn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nn(e){let t=v.useContext(We);return T(t,Mn(e)),t}function Pn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=dt(),d=ct(),f=gt(e,{relative:o});return v.useCallback(p=>{if(Xt(p,t)){p.preventDefault();let t=n===void 0?A(d)===A(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?v.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Fn(e){E(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=v.useRef(Zt(e)),n=v.useRef(!1),r=ct(),i=v.useMemo(()=>Qt(r.search,n.current?null:t.current),[r.search]),a=dt();return[i,v.useCallback((e,t)=>{let r=Zt(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var In=0,Ln=()=>`__${String(++In)}__`;function Rn(){let{router:e}=Nn(`useSubmit`),{basename:t}=v.useContext(Ze),n=jt(),r=e.fetch,i=e.navigate;return v.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=rn(e,t);if(a.navigate===!1){let e=a.fetcherKey||Ln();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function zn(e,{relative:t}={}){let{basename:n}=v.useContext(Ze),r=v.useContext($e);T(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...gt(e||`.`,{relative:t})},o=ct();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ae([n,a.pathname])),A(a)}function Bn(e,{relative:t}={}){let n=v.useContext(Je);T(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Nn(`useViewTransitionState`),i=gt(e,{relative:t});if(!n.isTransitioning)return!1;let a=Se(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Se(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ye(i.pathname,o)!=null||ye(i.pathname,a)!=null}var Vn=_(),Hn=``,Un=`evalkit.token`,Wn=typeof localStorage<`u`?localStorage:null,Gn=Wn?.getItem(Un)??null;function Kn(e){Gn=e,e===null?Wn?.removeItem(Un):Wn?.setItem(Un,e)}var qn=class extends Error{status;constructor(e,t){super(t),this.status=e}},Jn=class extends qn{constructor(e){super(404,e)}};function Yn(e){return e instanceof Jn}function Xn(e){return e instanceof qn&&[400,404,422].includes(e.status)}function Zn(e){return/^\d+$/.test(e)}function Qn(e){return typeof e==`string`?e:Array.isArray(e)?e.map(e=>e&&typeof e==`object`&&`msg`in e?String(e.msg):String(e)).join(`; `):JSON.stringify(e)}var $n=0;function er(){return Date.now()+$n}function tr(e){let t=e?Date.parse(e):NaN;isNaN(t)||($n=t-Date.now())}async function nr(e,t){let n=new Headers(t?.headers);Gn&&n.set(`Authorization`,`Bearer ${Gn}`);let r=await fetch(`${Hn}/api${e}`,{...t,headers:n});return tr(r.headers.get(`Date`)),r}async function M(e,t){let n=await nr(e,t);if(!n.ok){let e=Qn((await n.json().catch(()=>({}))).detail??n.statusText);throw n.status===404?new Jn(e):new qn(n.status,e)}return n.json()}async function rr(e,t,n){return M(e,{method:t,headers:{"content-type":`application/json`},body:n===void 0?void 0:JSON.stringify(n)})}async function ir(e){let t=await nr(e);if(!t.ok)throw new qn(t.status,t.statusText);return URL.createObjectURL(await t.blob())}async function ar(e){let{ticket:t}=await rr(`/auth/download-ticket`,`POST`),n=document.createElement(`a`);n.href=`${Hn}/api${e}${e.includes(`?`)?`&`:`?`}ticket=${encodeURIComponent(t)}`,n.target=`_blank`,n.rel=`noopener`,n.click()}var or=e=>{let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r&&t.set(n,r);let n=t.toString();return n?`?${n}`:``};async function sr(e,t){let n=await fetch(`${Hn}/api/auth/login`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({username:e,password:t})}),r=await n.json().catch(()=>({}));if(!n.ok)throw new qn(n.status,String(r.detail??`login failed`));Kn(String(r.token))}async function cr(){await nr(`/auth/logout`,{method:`POST`}).catch(()=>{}),Kn(null)}var lr=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),N=o(((e,t)=>{t.exports=lr()}))();function ur(){let[e]=Fn(),t=dt(),[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(!1),u=e.get(`next`)??`/`,d=u.startsWith(`/login`)?`/`:u;return(0,N.jsx)(`div`,{className:`flex min-h-dvh items-center justify-center bg-canvas`,children:(0,N.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault(),l(!0),s(null);try{await sr(n,i),t(d,{replace:!0})}catch(e){s(e instanceof Error?e.message:String(e))}finally{l(!1)}},className:`card w-84 p-6`,children:[(0,N.jsx)(`h1`,{className:`page-title`,children:`Evalkit`}),(0,N.jsx)(`p`,{className:`mt-1 mb-5 text-meta text-ink-3`,children:`Sign in with your evalkit account.`}),(0,N.jsxs)(`label`,{className:`mb-3 block text-micro font-semibold tracking-wide text-ink-2 uppercase`,children:[`Username`,(0,N.jsx)(`input`,{className:`input mt-1 block w-full`,value:n,onChange:e=>r(e.target.value),autoFocus:!0,required:!0})]}),(0,N.jsxs)(`label`,{className:`mb-5 block text-micro font-semibold tracking-wide text-ink-2 uppercase`,children:[`Password`,(0,N.jsx)(`input`,{className:`input mt-1 block w-full`,type:`password`,value:i,onChange:e=>a(e.target.value),required:!0})]}),o&&(0,N.jsx)(`div`,{className:`mb-3 text-meta text-err-text`,children:o}),(0,N.jsx)(`button`,{className:`btn btn-primary w-full justify-center`,disabled:c,children:c?`Signing in…`:`Sign in`})]})})}function dr(e){let t=e.indexOf(`@`);return t<0?{name:e,workspace:``}:{name:e.slice(0,t),workspace:e.slice(t+1)}}function fr(e,t){let n=e=>e.name===t?0:e.type===`shared`?1:2;return[...e].sort((e,t)=>n(e)-n(t)||e.name.localeCompare(t.name))}function pr(e,t){let n=e.name===t?`yours`:e.type===`shared`?`shared`:`personal · read-only`;return e.archived?`${n} · archived`:n}function mr(e,t){return e.type===`personal`&&e.name!==t}var hr=[`datasets`,`experiments`,`reviews`,`runs`,`agents`,`workspace`];function gr(e){let t=e.split(`/`)[1]??``;return hr.includes(t)?t===`workspace`?e:`/${t}`:null}function _r(e){let t=e?.trim();return t&&/^https?:\/\//i.test(t)?t:null}var vr={accent_color:null,agents:[],agent_repos:{}},yr=null;async function br(){yr||(yr=await M(`/meta`).catch(()=>vr),xr(yr.accent_color))}function xr(e){if(typeof document>`u`)return;let t=document.documentElement;e?(t.style.setProperty(`--accent`,e),t.dataset.accent=``):(t.style.removeProperty(`--accent`),delete t.dataset.accent)}function Sr(){return yr??vr}function Cr(e,t){if(!e||!t)return null;let n=_r(Sr().agent_repos[e]);return n?`${n}/commit/${encodeURIComponent(t)}`:null}var wr=(0,v.createContext)(null);function Tr(){let e=(0,v.useContext)(wr);if(!e)throw Error(`useMe outside AuthGate`);return e}function Er(){let e=ct(),[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(`loading`),[a,o]=(0,v.useState)(null);if((0,v.useEffect)(()=>{M(`/auth/me`).then(async e=>{await br(),n(e),i(`ok`)}).catch(e=>{e instanceof qn&&e.status===401?i(`unauthorized`):(o(String(e)),i(`error`))})},[]),(0,v.useEffect)(()=>{document.title=`Evalkit`},[]),r===`loading`)return(0,N.jsx)(`div`,{className:`pane-status`,children:`Checking session…`});if(r===`unauthorized`){let t=encodeURIComponent(e.pathname+e.search);return(0,N.jsx)(Lt,{to:`/login?next=${t}`,replace:!0})}return r===`error`?(0,N.jsx)(`div`,{className:`pane-status error`,children:a}):(0,N.jsx)(wr.Provider,{value:t,children:(0,N.jsx)(Rt,{})})}var Dr=`evalkit.workspace`,Or=1500,kr=(0,v.createContext)(null);function Ar(){let e=(0,v.useContext)(kr);if(!e)throw Error(`useWorkspace outside WorkspaceGate`);return e}function jr(e){let{select:t}=Ar();(0,v.useEffect)(()=>{e&&t(e)},[e])}function Mr(){let{select:e}=Ar(),{pathname:t,search:n}=ct(),r=dt();return i=>{e(i);let a=gr(t);a&&(a!==t||n)&&r(a)}}function Nr(){let e=Tr(),[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(()=>localStorage.getItem(Dr)),[a,o]=(0,v.useState)(null),s=(0,v.useRef)([]),c=(0,v.useCallback)(()=>M(`/workspaces?include_archived=true`).then(t=>{let r=fr(t,e.personal_workspace);return s.current=r,n(r),r}),[e.personal_workspace]);(0,v.useEffect)(()=>{c().catch(e=>o(String(e)))},[c]);let[l,u]=(0,v.useState)(null),d=(0,v.useCallback)(e=>{s.current.some(t=>t.name===e)&&(localStorage.setItem(Dr,e),i(t=>(t!==null&&t!==e&&u(Date.now()),e)))},[]);if(a)return(0,N.jsx)(`div`,{className:`pane-status error`,children:a});if(!t)return(0,N.jsx)(`div`,{className:`pane-status`,children:`Loading…`});let f=t.find(e=>e.name===r)??t.find(t=>t.name===e.personal_workspace)??t[0];return f?(0,N.jsx)(kr.Provider,{value:{workspace:f,workspaces:t,select:d,reload:c,switchedAt:l},children:(0,N.jsx)(Rt,{})}):(0,N.jsxs)(`div`,{className:`pane-status`,children:[`No workspaces yet. An admin creates one with`,` `,(0,N.jsx)(`span`,{className:`font-mono`,children:`evalkit workspaces create <name>`}),`.`]})}function Pr({n:e}){return(0,N.jsx)(`div`,{className:`rows`,children:Array.from({length:e},(e,t)=>(0,N.jsxs)(`div`,{className:`row grid-cols-[1fr_auto]`,children:[(0,N.jsx)(`span`,{className:`skeleton h-4`,style:{width:`${40+t*13%45}%`}}),(0,N.jsx)(`span`,{className:`skeleton h-3 w-28`})]},t))})}function Fr({ds:e}){return(0,N.jsxs)(kn,{to:`/datasets/${encodeURIComponent(e.ref)}`,className:`row grid-cols-[minmax(0,1fr)_auto]`,children:[(0,N.jsx)(`span`,{className:`row-strong`,children:e.name}),(0,N.jsx)(`span`,{className:`chip muted`,children:e.kind})]})}function Ir({agent:e}){return(0,N.jsxs)(kn,{to:`/agents/${encodeURIComponent(e.ref)}/overview`,className:`row grid-cols-[minmax(0,1fr)_auto]`,children:[(0,N.jsx)(`span`,{className:`row-strong`,children:e.name}),(0,N.jsx)(`span`,{className:`row-meta truncate`,children:e.harness_url??`workspace agent · runs from its owner's CLI`})]})}function Lr(){let{workspace:e}=Ar(),[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(null);(0,v.useEffect)(()=>{let t=!1,r=or({workspace:e.name}),a=e=>e instanceof Error?e.message:String(e);return n(null),o(null),i(null),c(null),M(`/datasets${r}`).then(e=>{t||n([...e].sort((e,t)=>e.name.localeCompare(t.name)))}).catch(e=>!t&&i(a(e))),M(`/agents${r}`).then(e=>{t||o([...e].sort((e,t)=>e.name.localeCompare(t.name)))}).catch(e=>!t&&c(a(e))),()=>{t=!0}},[e.name]);let l=!t&&!r||!a&&!s,u=!t?.length&&!a?.length;return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-3`,children:[(0,N.jsxs)(`h1`,{className:`page-title`,children:[`@`,e.name]}),(0,N.jsx)(`span`,{className:`chip muted`,children:e.type}),(0,N.jsx)(kn,{to:`/datasets`,className:`btn btn-quiet ml-auto text-brand`,children:`All datasets →`}),(0,N.jsx)(kn,{to:`/agents`,className:`btn btn-quiet text-brand`,children:`All agents →`})]}),r&&(0,N.jsx)(`div`,{className:`pane-status error`,children:r}),s&&(0,N.jsx)(`div`,{className:`pane-status error`,children:s}),l&&(0,N.jsx)(`div`,{className:`card`,children:(0,N.jsx)(Pr,{n:8})}),!l&&(0,N.jsxs)(`div`,{className:`grid gap-x-5 gap-y-2 lg:grid-cols-2`,children:[!!t?.length&&(0,N.jsxs)(`section`,{className:`min-w-0`,children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Datasets`}),(0,N.jsx)(`div`,{className:`card rows`,children:t.map(e=>(0,N.jsx)(Fr,{ds:e},e.ref))})]}),!!a?.length&&(0,N.jsxs)(`section`,{className:`min-w-0`,children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Agents`}),(0,N.jsx)(`div`,{className:`card rows`,children:a.map(e=>(0,N.jsx)(Ir,{agent:e},e.ref))})]}),u&&(0,N.jsx)(`div`,{className:`card pane-status lg:col-span-2`,children:e.type===`shared`?(0,N.jsxs)(N.Fragment,{children:[`No datasets or agents yet — run`,` `,(0,N.jsxs)(`span`,{className:`font-mono`,children:[`evalkit sync <dir> --workspace `,e.name]}),` `,`or add an agent.`]}):(0,N.jsxs)(N.Fragment,{children:[`Nothing here yet — run`,` `,(0,N.jsx)(`span`,{className:`font-mono`,children:`evalkit run <dataset> --agent <agent>`}),` `,`from a repo with an evalkit.yaml.`]})})]})]})}function Rr(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function zr(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Br=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hr={};function Ur(e,t){return((t||Hr).jsx?Vr:Br).test(e)}var Wr=/[ \t\n\f\r]/g;function Gr(e){return typeof e==`object`?e.type===`text`&&Kr(e.value):Kr(e)}function Kr(e){return e.replace(Wr,``)===``}var qr=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};qr.prototype.normal={},qr.prototype.property={},qr.prototype.space=void 0;function Jr(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new qr(n,r,t)}function Yr(e){return e.toLowerCase()}var Xr=class{constructor(e,t){this.attribute=t,this.property=e}};Xr.prototype.attribute=``,Xr.prototype.booleanish=!1,Xr.prototype.boolean=!1,Xr.prototype.commaOrSpaceSeparated=!1,Xr.prototype.commaSeparated=!1,Xr.prototype.defined=!1,Xr.prototype.mustUseProperty=!1,Xr.prototype.number=!1,Xr.prototype.overloadedBoolean=!1,Xr.prototype.property=``,Xr.prototype.spaceSeparated=!1,Xr.prototype.space=void 0;var Zr=s({boolean:()=>P,booleanish:()=>$r,commaOrSpaceSeparated:()=>ri,commaSeparated:()=>ni,number:()=>F,overloadedBoolean:()=>ei,spaceSeparated:()=>ti}),Qr=0,P=ii(),$r=ii(),ei=ii(),F=ii(),ti=ii(),ni=ii(),ri=ii();function ii(){return 2**++Qr}var ai=Object.keys(Zr),oi=class extends Xr{constructor(e,t,n,r){let i=-1;if(super(e,t),si(this,`space`,r),typeof n==`number`)for(;++i<ai.length;){let e=ai[i];si(this,ai[i],(n&Zr[e])===Zr[e])}}};oi.prototype.defined=!0;function si(e,t,n){n&&(e[t]=n)}function ci(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new oi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Yr(r)]=r,n[Yr(a.attribute)]=r}return new qr(t,n,e.space)}var li=ci({properties:{ariaActiveDescendant:null,ariaAtomic:$r,ariaAutoComplete:null,ariaBusy:$r,ariaChecked:$r,ariaColCount:F,ariaColIndex:F,ariaColSpan:F,ariaControls:ti,ariaCurrent:null,ariaDescribedBy:ti,ariaDetails:null,ariaDisabled:$r,ariaDropEffect:ti,ariaErrorMessage:null,ariaExpanded:$r,ariaFlowTo:ti,ariaGrabbed:$r,ariaHasPopup:null,ariaHidden:$r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ti,ariaLevel:F,ariaLive:null,ariaModal:$r,ariaMultiLine:$r,ariaMultiSelectable:$r,ariaOrientation:null,ariaOwns:ti,ariaPlaceholder:null,ariaPosInSet:F,ariaPressed:$r,ariaReadOnly:$r,ariaRelevant:null,ariaRequired:$r,ariaRoleDescription:ti,ariaRowCount:F,ariaRowIndex:F,ariaRowSpan:F,ariaSelected:$r,ariaSetSize:F,ariaSort:null,ariaValueMax:F,ariaValueMin:F,ariaValueNow:F,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function ui(e,t){return t in e?e[t]:t}function di(e,t){return ui(e,t.toLowerCase())}var fi=ci({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ni,acceptCharset:ti,accessKey:ti,action:null,allow:null,allowFullScreen:P,allowPaymentRequest:P,allowUserMedia:P,alpha:P,alt:null,as:null,async:P,autoCapitalize:null,autoComplete:ti,autoFocus:P,autoPlay:P,blocking:ti,capture:null,charSet:null,checked:P,cite:null,className:ti,closedBy:null,colorSpace:null,cols:F,colSpan:F,command:null,commandFor:null,content:null,contentEditable:$r,controls:P,controlsList:ti,coords:F|ni,crossOrigin:null,data:null,dateTime:null,decoding:null,default:P,defer:P,dir:null,dirName:null,disabled:P,download:ei,draggable:$r,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:P,formTarget:null,headers:ti,height:F,hidden:ei,high:F,href:null,hrefLang:null,htmlFor:ti,httpEquiv:ti,id:null,imageSizes:null,imageSrcSet:null,inert:P,inputMode:null,integrity:null,is:null,isMap:P,itemId:null,itemProp:ti,itemRef:ti,itemScope:P,itemType:ti,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:P,low:F,manifest:null,max:null,maxLength:F,media:null,method:null,min:null,minLength:F,multiple:P,muted:P,name:null,nonce:null,noModule:P,noValidate:P,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:P,optimum:F,pattern:null,ping:ti,placeholder:null,playsInline:P,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:P,referrerPolicy:null,rel:ti,required:P,reversed:P,rows:F,rowSpan:F,sandbox:ti,scope:null,scoped:P,seamless:P,selected:P,shadowRootClonable:P,shadowRootCustomElementRegistry:P,shadowRootDelegatesFocus:P,shadowRootMode:null,shadowRootSerializable:P,shape:null,size:F,sizes:null,slot:null,span:F,spellCheck:$r,src:null,srcDoc:null,srcLang:null,srcSet:null,start:F,step:null,style:null,tabIndex:F,target:null,title:null,translate:null,type:null,typeMustMatch:P,useMap:null,value:$r,width:F,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ti,axis:null,background:null,bgColor:null,border:F,borderColor:null,bottomMargin:F,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:P,declare:P,event:null,face:null,frame:null,frameBorder:null,hSpace:F,leftMargin:F,link:null,longDesc:null,lowSrc:null,marginHeight:F,marginWidth:F,noResize:P,noHref:P,noShade:P,noWrap:P,object:null,profile:null,prompt:null,rev:null,rightMargin:F,rules:null,scheme:null,scrolling:$r,standby:null,summary:null,text:null,topMargin:F,valueType:null,version:null,vAlign:null,vLink:null,vSpace:F,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:P,disablePictureInPicture:P,disableRemotePlayback:P,exportParts:ni,part:ti,prefix:null,property:null,results:F,security:null,unselectable:null},space:`html`,transform:di}),pi=ci({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`,maskType:`mask-type`,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:ri,accentHeight:F,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:F,amplitude:F,arabicForm:null,ascent:F,attributeName:null,attributeType:null,azimuth:F,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:F,by:null,calcMode:null,capHeight:F,className:ti,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:F,diffuseConstant:F,direction:null,display:null,dur:null,divisor:F,dominantBaseline:null,download:P,dx:null,dy:null,edgeMode:null,editable:null,elevation:F,enableBackground:null,end:null,event:null,exponent:F,externalResourcesRequired:null,fill:null,fillOpacity:F,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:ni,g2:ni,glyphName:ni,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:F,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:F,horizOriginX:F,horizOriginY:F,id:null,ideographic:F,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:F,k:F,k1:F,k2:F,k3:F,k4:F,kernelMatrix:ri,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:F,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:F,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:F,overlineThickness:F,paintOrder:null,panose1:null,path:null,pathLength:F,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ti,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:F,pointsAtY:F,pointsAtZ:F,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ri,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ri,rev:ri,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ri,requiredFeatures:ri,requiredFonts:ri,requiredFormats:ri,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:F,specularExponent:F,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:F,strikethroughThickness:F,string:null,stroke:null,strokeDashArray:ri,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:F,strokeOpacity:F,strokeWidth:null,style:null,surfaceScale:F,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ri,tabIndex:F,tableValues:null,target:null,targetX:F,targetY:F,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ri,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:F,underlineThickness:F,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:F,values:null,vAlphabetic:F,vMathematical:F,vectorEffect:null,vHanging:F,vIdeographic:F,version:null,vertAdvY:F,vertOriginX:F,vertOriginY:F,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:F,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:ui}),mi=ci({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),hi=ci({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:di}),gi=ci({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),_i={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`},vi=/[A-Z]/g,yi=/-[a-z]/g,bi=/^data[-\w.:]+$/i;function xi(e,t){let n=Yr(t),r=t,i=Xr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&bi.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(yi,Ci);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!yi.test(e)){let n=e.replace(vi,Si);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=oi}return new i(r,t)}function Si(e){return`-`+e.toLowerCase()}function Ci(e){return e.charAt(1).toUpperCase()}var wi=Jr([li,fi,mi,hi,gi],`html`),Ti=Jr([li,pi,mi,hi,gi],`svg`);function Ei(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Di(e){return e.join(` `).trim()}var Oi=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
13
|
+
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){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 h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),ki=o(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(Oi());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),Ai=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),ji=o(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(ki()),i=Ai();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),Mi=Pi(`end`),Ni=Pi(`start`);function Pi(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Fi(e){let t=Ni(e),n=Mi(e);if(t&&n)return{start:t,end:n}}function Ii(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Ri(e.position):`start`in e||`end`in e?Ri(e):`line`in e||`column`in e?Li(e):``}function Li(e){return zi(e&&e.line)+`:`+zi(e&&e.column)}function Ri(e){return Li(e&&e.start)+`-`+Li(e&&e.end)}function zi(e){return e&&typeof e==`number`?e:1}var Bi=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(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}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?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 o=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=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Ii(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&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Bi.prototype.file=``,Bi.prototype.name=``,Bi.prototype.reason=``,Bi.prototype.message=``,Bi.prototype.stack=``,Bi.prototype.column=void 0,Bi.prototype.line=void 0,Bi.prototype.ancestors=void 0,Bi.prototype.cause=void 0,Bi.prototype.fatal=void 0,Bi.prototype.place=void 0,Bi.prototype.ruleId=void 0,Bi.prototype.source=void 0;var Vi=l(ji(),1),Hi={}.hasOwnProperty,Ui=new Map,Wi=/[A-Z]/g,Gi=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Ki=new Set([`td`,`th`]),qi=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Ji(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=aa(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=ia(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Ti:wi,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Yi(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Yi(e,t,n){if(t.type===`element`)return Xi(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Zi(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return $i(e,t,n);if(t.type===`mdxjsEsm`)return Qi(e,t);if(t.type===`root`)return ea(e,t,n);if(t.type===`text`)return ta(e,t)}function Xi(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Ti,e.schema=i),e.ancestors.push(t);let a=da(e,t.tagName,!1),o=oa(e,t),s=ca(e,t);return Gi.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Gr(e)})),na(e,o,a,t),ra(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Zi(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}fa(e,t.position)}function Qi(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fa(e,t.position)}function $i(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Ti,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:da(e,t.name,!0),o=sa(e,t),s=ca(e,t);return na(e,o,a,t),ra(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ea(e,t,n){let r={};return ra(r,ca(e,t)),e.create(t,e.Fragment,r,n)}function ta(e,t){return t.value}function na(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ra(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ia(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function aa(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Ni(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function oa(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Hi.call(t.properties,i)){let a=la(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Ki.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function sa(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else fa(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else fa(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function ca(e,t){let n=[],r=-1,i=e.passKeys?new Map:Ui;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Yi(e,a,o);s!==void 0&&n.push(s)}return n}function la(e,t,n){let r=xi(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?zr(n):Di(n)),r.property===`style`){let t=typeof n==`object`?n:ua(e,String(n));return e.stylePropertyNameCase===`css`&&(t=pa(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?_i[r.property]||r.property:r.attribute,n]}}function ua(e,t){try{return(0,Vi.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Bi("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=qi+`#cannot-parse-style-attribute`,r}}function da(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Ur(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Ur(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Hi.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);fa(e)}function fa(e,t){let n=new Bi("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=qi+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function pa(e){let t={},n;for(n in e)Hi.call(e,n)&&(t[ma(n)]=e[n]);return t}function ma(e){let t=e.replace(Wi,ha);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function ha(e){return`-`+e.toLowerCase()}var ga={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`]},_a={};function va(e,t){let n=t||_a;return ya(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function ya(e,t,n){if(xa(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return ba(e.children,t,n)}return Array.isArray(e)?ba(e,t,n):``}function ba(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ya(e[i],t,n);return r.join(``)}function xa(e){return!!(e&&typeof e==`object`)}var Sa=document.createElement(`i`);function Ca(e){let t=`&`+e+`;`;Sa.innerHTML=t;let n=Sa.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function wa(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Ta(e,t){return e.length>0?(wa(e,e.length,0,t),e):t}var Ea={}.hasOwnProperty;function Da(e){let t={},n=-1;for(;++n<e.length;)Oa(t,e[n]);return t}function Oa(e,t){let n;for(n in t){let r=(Ea.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Ea.call(r,a)||(r[a]=[]);let e=i[a];ka(r[a],Array.isArray(e)?e:e?[e]:[])}}}function ka(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);wa(e,0,0,r)}function Aa(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function ja(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Ma=Ua(/[A-Za-z]/),Na=Ua(/[\dA-Za-z]/),Pa=Ua(/[#-'*+\--9=?A-Z^-~]/);function Fa(e){return e!==null&&(e<32||e===127)}var Ia=Ua(/\d/),La=Ua(/[\dA-Fa-f]/),Ra=Ua(/[!-/:-@[-`{-~]/);function I(e){return e!==null&&e<-2}function za(e){return e!==null&&(e<0||e===32)}function Ba(e){return e===-2||e===-1||e===32}var Va=Ua(/\p{P}|\p{S}/u),Ha=Ua(/\s/);function Ua(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Wa(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Na(e.charCodeAt(n+1))&&Na(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Ga(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Ba(r)?(e.enter(n),s(r)):t(r)}function s(r){return Ba(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Ka={tokenize:qa};function qa(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Ga(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return I(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Ja={tokenize:Xa},Ya={tokenize:Za};function Xa(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return wa(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ya,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Ya,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return I(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;wa(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Za(e,t,n){return Ga(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Qa(e){if(e===null||za(e)||Ha(e))return 1;if(Va(e))return 2}function $a(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}var eo={name:`attention`,resolveAll:to,tokenize:no};function to(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};ro(d,-c),ro(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Ta(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=Ta(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=Ta(l,$a(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Ta(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=Ta(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,wa(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function no(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Qa(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Qa(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function ro(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var io={name:`autolink`,tokenize:ao};function ao(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Ma(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Na(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Na(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Fa(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Pa(t)?(e.consume(t),l):n(t)}function u(e){return Na(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Na(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var oo={partial:!0,tokenize:so};function so(e,t,n){return r;function r(t){return Ba(t)?Ga(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||I(e)?t(e):n(e)}}var co={continuation:{tokenize:uo},exit:fo,name:`blockQuote`,tokenize:lo};function lo(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Ba(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function uo(e,t,n){let r=this;return i;function i(t){return Ba(t)?Ga(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(co,t,n)(r)}}function fo(e){e.exit(`blockQuote`)}var po={name:`characterEscape`,tokenize:mo};function mo(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Ra(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var ho={name:`characterReference`,tokenize:go};function go(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Na,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=La,u):(e.enter(`characterReferenceValue`),a=7,o=Ia,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Na&&!Ca(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var _o={partial:!0,tokenize:bo},vo={concrete:!0,name:`codeFenced`,tokenize:yo};function yo(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Ba(t)?Ga(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||I(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(_o,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||I(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Ba(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Ga(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||I(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||I(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Ba(t)?Ga(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||I(t)?e.check(_o,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||I(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Ba(t)?Ga(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Ba(t)?Ga(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||I(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function bo(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var xo={name:`codeIndented`,tokenize:Co},So={partial:!0,tokenize:wo};function Co(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Ga(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):I(t)?e.attempt(So,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||I(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function wo(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):I(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Ga(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):I(e)?i(e):n(e)}}var To={name:`codeText`,previous:Do,resolve:Eo,tokenize:Oo};function Eo(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Do(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Oo(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):I(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||I(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var ko=class{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=t??1/0;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){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Ao(this.left,n),i.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),Ao(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ao(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);Ao(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Ao(this.left,t.reverse())}}}};function Ao(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 jo(e){let t={},n=-1,r,i,a,o,s,c,l,u=new ko(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Mo(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return wa(e,0,1/0,u.slice(0)),!l}function Mo(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var No={resolve:Fo,tokenize:Io},Po={partial:!0,tokenize:Lo};function Fo(e){return jo(e),e}function Io(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):I(t)?e.check(Po,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Lo(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Ga(e,a,`linePrefix`)}function a(i){if(i===null||I(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Ro(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Fa(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||I(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||za(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Fa(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function zo(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):I(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||I(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Ba(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Bo(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):I(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Ga(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||I(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Vo(e,t){let n;return r;function r(i){return I(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Ba(i)?Ga(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Ho={name:`definition`,tokenize:Wo},Uo={partial:!0,tokenize:Go};function Wo(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return zo.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=ja(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return za(t)?Vo(e,l)(t):l(t)}function l(t){return Ro(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Uo,d,d)(t)}function d(t){return Ba(t)?Ga(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||I(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Go(e,t,n){return r;function r(t){return za(t)?Vo(e,i)(t):n(t)}function i(t){return Bo(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Ba(t)?Ga(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||I(e)?t(e):n(e)}}var Ko={name:`hardBreakEscape`,tokenize:qo};function qo(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return I(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Jo={name:`headingAtx`,resolve:Yo,tokenize:Xo};function Yo(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},wa(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Xo(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||za(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||I(n)?(e.exit(`atxHeading`),t(n)):Ba(n)?Ga(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||za(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Zo=`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`.split(`.`),Qo=[`pre`,`script`,`style`,`textarea`],$o={concrete:!0,name:`htmlFlow`,resolveTo:ns,tokenize:rs},es={partial:!0,tokenize:as},ts={partial:!0,tokenize:is};function ns(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(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}function rs(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ae):Ma(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Ma(a)?(e.consume(a),i=4,r.interrupt?t:ae):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ae):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return Ma(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||za(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Qo.includes(l)?(i=1,r.interrupt?t(s):O(s)):Zo.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Na(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return Ba(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||Ma(t)?(e.consume(t),b):Ba(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||Na(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Ba(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Ba(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||I(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||za(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Ba(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||I(t)?O(t):Ba(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),te):t===60&&i===1?(e.consume(t),ne):t===62&&i===4?(e.consume(t),oe):t===63&&i===3?(e.consume(t),ae):t===93&&i===5?(e.consume(t),ie):I(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(es,se,k)(t)):t===null||I(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(ts,A,se)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ee}function ee(t){return t===null||I(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function te(t){return t===45?(e.consume(t),ae):O(t)}function ne(t){return t===47?(e.consume(t),o=``,re):O(t)}function re(t){if(t===62){let n=o.toLowerCase();return Qo.includes(n)?(e.consume(t),oe):O(t)}return Ma(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),re):O(t)}function ie(t){return t===93?(e.consume(t),ae):O(t)}function ae(t){return t===62?(e.consume(t),oe):t===45&&i===2?(e.consume(t),ae):O(t)}function oe(t){return t===null||I(t)?(e.exit(`htmlFlowData`),se(t)):(e.consume(t),oe)}function se(n){return e.exit(`htmlFlow`),t(n)}}function is(e,t,n){let r=this;return i;function i(t){return I(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function as(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(oo,t,n)}}var os={name:`htmlText`,tokenize:ss};function ss(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Ma(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Ma(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):I(t)?(o=d,ne(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?te(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):I(t)?(o=h,ne(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?te(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?te(t):I(t)?(o=v,ne(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):I(t)?(o=y,ne(t)):(e.consume(t),y)}function b(e){return e===62?te(e):y(e)}function x(t){return Ma(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Na(t)?(e.consume(t),S):C(t)}function C(t){return I(t)?(o=C,ne(t)):Ba(t)?(e.consume(t),C):te(t)}function w(t){return t===45||Na(t)?(e.consume(t),w):t===47||t===62||za(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),te):t===58||t===95||Ma(t)?(e.consume(t),E):I(t)?(o=T,ne(t)):Ba(t)?(e.consume(t),T):te(t)}function E(t){return t===45||t===46||t===58||t===95||Na(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):I(t)?(o=D,ne(t)):Ba(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):I(t)?(o=O,ne(t)):Ba(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,ee):t===null?n(t):I(t)?(o=k,ne(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||za(t)?T(t):(e.consume(t),A)}function ee(e){return e===47||e===62||za(e)?T(e):n(e)}function te(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ne(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),re}function re(t){return Ba(t)?Ga(e,ie,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ie(t)}function ie(t){return e.enter(`htmlTextData`),o(t)}}var cs={name:`labelEnd`,resolveAll:fs,resolveTo:ps,tokenize:ms},ls={tokenize:hs},us={tokenize:gs},ds={tokenize:_s};function fs(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&wa(e,0,e.length,n),e}function ps(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=Ta(s,e.slice(a+1,a+r+3)),s=Ta(s,[[`enter`,u,t]]),s=Ta(s,$a(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Ta(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=Ta(s,e.slice(o+1)),s=Ta(s,[[`exit`,c,t]]),wa(e,a,e.length,s),e}function ms(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(ja(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(ls,u,o?u:d)(t):t===91?e.attempt(us,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(ds,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function hs(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return za(t)?Vo(e,a)(t):a(t)}function a(t){return t===41?u(t):Ro(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return za(t)?Vo(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Bo(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return za(t)?Vo(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function gs(e,t,n){let r=this;return i;function i(t){return zo.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(ja(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function _s(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var vs={name:`labelStartImage`,resolveAll:cs.resolveAll,tokenize:ys};function ys(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var bs={name:`labelStartLink`,resolveAll:cs.resolveAll,tokenize:xs};function xs(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Ss={name:`lineEnding`,tokenize:Cs};function Cs(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Ga(e,t,`linePrefix`)}}var ws={name:`thematicBreak`,tokenize:Ts};function Ts(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||I(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Ba(t)?Ga(e,s,`whitespace`)(t):s(t))}}var Es={continuation:{tokenize:As},exit:Ms,name:`list`,tokenize:ks},Ds={partial:!0,tokenize:Ns},Os={partial:!0,tokenize:js};function ks(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Ia(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(ws,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Ia(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(oo,r.interrupt?n:u,e.attempt(Ds,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Ba(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function As(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(oo,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ga(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Ba(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Os,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ga(e,e.attempt(Es,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function js(e,t,n){let r=this;return Ga(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Ms(e){e.exit(this.containerState.type)}function Ns(e,t,n){let r=this;return Ga(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Ba(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Ps={name:`setextUnderline`,resolveTo:Fs,tokenize:Is};function Fs(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Is(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Ba(t)?Ga(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||I(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Ls={tokenize:Rs};function Rs(e){let t=this,n=e.attempt(oo,r,e.attempt(this.parser.constructs.flowInitial,i,Ga(e,e.attempt(this.parser.constructs.flow,i,e.attempt(No,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var zs={resolveAll:Us()},Bs=Hs(`string`),Vs=Hs(`text`);function Hs(e){return{resolveAll:Us(e===`text`?Ws:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)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 Us(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Ws(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Gs=s({attentionMarkers:()=>$s,contentInitial:()=>qs,disable:()=>ec,document:()=>Ks,flow:()=>Ys,flowInitial:()=>Js,insideSpan:()=>Qs,string:()=>Xs,text:()=>Zs}),Ks={42:Es,43:Es,45:Es,48:Es,49:Es,50:Es,51:Es,52:Es,53:Es,54:Es,55:Es,56:Es,57:Es,62:co},qs={91:Ho},Js={[-2]:xo,[-1]:xo,32:xo},Ys={35:Jo,42:ws,45:[Ps,ws],60:$o,61:Ps,95:ws,96:vo,126:vo},Xs={38:ho,92:po},Zs={[-5]:Ss,[-4]:Ss,[-3]:Ss,33:vs,38:ho,42:eo,60:[io,os],91:bs,92:[Ko,po],93:cs,95:eo,96:To},Qs={null:[eo,zs]},$s={null:[42,95]},ec={null:[]};function tc(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=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Ta(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=$a(a,l.events,l),l.events):[]}function f(e,t){return rc(p(e),t)}function p(e){return nc(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){I(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&wa(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function nc(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function rc(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
14
|
+
`;break;case-3:o=`\r
|
|
15
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function ic(e){let t={constructs:Da([Gs,...(e||{}).extensions||[]]),content:n(Ka),defined:[],document:n(Ja),flow:n(Ls),lazy:{},string:n(Bs),text:n(Vs)};return t;function n(e){return n;function n(n){return tc(t,e,n)}}}function ac(e){for(;!jo(e););return e}var oc=/[\0\t\n\r]/g;function sc(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(oc.lastIndex=u,c=oc.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var cc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lc(e){return e.replace(cc,uc)}function uc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Aa(n.slice(t?2:1),t?16:10)}return Ca(n)||e}var dc={}.hasOwnProperty;function fc(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),pc(n)(ac(ic(n).document().write(sc()(e,t,!0))))}function pc(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(j),blockQuote:a(he),characterEscape:T,characterReference:T,codeFenced:a(ge),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ge,o),codeText:a(_e,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ve),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ye),hardBreakEscape:a(be),hardBreakTrailing:a(be),htmlFlow:a(xe,o),htmlFlowData:T,htmlText:a(xe,o),htmlTextData:T,image:a(Se),label:o,link:a(Ce),listItem:a(Te),listItemValue:f,listOrdered:a(we,d),listUnordered:a(we),paragraph:a(Ee),reference:ce,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(j),strong:a(De),thematicBreak:a(ke)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:me,autolinkProtocol:pe,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:de,characterReference:fe,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(ee),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(ne),label:ie,labelText:re,lineEnding:D,link:c(te),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:le,resourceDestinationString:ae,resourceTitleString:oe,resource:se,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};hc(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];dc.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||_c).call(a,void 0,e[0])}for(r.position={start:mc(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:mc(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(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:mc(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(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]||_c).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Ii({start:e.start,end:e.end})+`): it’s not open`);n.position.end=mc(e.end)}function u(){return va(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ja(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=Oe(),n.position={start:mc(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=mc(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=mc(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function te(){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}function ne(){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}function re(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=lc(t),n.identifier=ja(t).toLowerCase()}function ie(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function se(){this.data.inReference=void 0}function ce(){this.data.referenceType=`collapsed`}function le(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ja(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ue(e){this.data.characterReferenceType=e.type}function de(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Aa(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Ca(t);let i=this.stack[this.stack.length-1];i.value+=r}function fe(e){let t=this.stack.pop();t.position.end=mc(e.end)}function pe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function me(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function he(){return{type:`blockquote`,children:[]}}function ge(){return{type:`code`,lang:null,meta:null,value:``}}function _e(){return{type:`inlineCode`,value:``}}function ve(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ye(){return{type:`emphasis`,children:[]}}function j(){return{type:`heading`,depth:0,children:[]}}function be(){return{type:`break`}}function xe(){return{type:`html`,value:``}}function Se(){return{type:`image`,title:null,url:``,alt:null}}function Ce(){return{type:`link`,title:null,url:``,children:[]}}function we(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Te(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Ee(){return{type:`paragraph`,children:[]}}function De(){return{type:`strong`,children:[]}}function Oe(){return{type:`text`,value:``}}function ke(){return{type:`thematicBreak`}}}function mc(e){return{line:e.line,column:e.column,offset:e.offset}}function hc(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?hc(e,r):gc(e,r)}}function gc(e,t){let n;for(n in t)if(dc.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);break}}}function _c(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Ii({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ii({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Ii({start:t.start,end:t.end})+`) is still open`)}function vc(e){let t=this;t.parser=n;function n(n){return fc(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function yc(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)}function bc(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
16
|
+
`}]}function xc(e,t){let n=t.value?t.value+`
|
|
17
|
+
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Sc(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Cc(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wc(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Wa(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Tc(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ec(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Dc(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Oc(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Dc(e,t);let i={src:Wa(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function kc(e,t){let n={src:Wa(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ac(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)}function jc(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Dc(e,t);let i={href:Wa(r.url||``)};r.title!==null&&r.title!==void 0&&(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)}function Mc(e,t){let n={href:Wa(t.url)};t.title!==null&&t.title!==void 0&&(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)}function Nc(e,t,n){let r=e.all(t),i=n?Pc(n):Fc(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
18
|
+
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
19
|
+
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Pc(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Fc(n[r])}return t}function Fc(e){return e.spread??e.children.length>1}function Ic(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&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)}function Lc(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rc(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function zc(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bc(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=Ni(t.children[1]),o=Mi(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Vc(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Hc(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Uc=9,Wc=32;function Gc(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Kc(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Kc(t.slice(i),i>0,!1)),a.join(``)}function Kc(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Uc||t===Wc;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Uc||t===Wc;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function qc(e,t){let n={type:`text`,value:Gc(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Jc(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Yc={blockquote:yc,break:bc,code:xc,delete:Sc,emphasis:Cc,footnoteReference:wc,heading:Tc,html:Ec,imageReference:Oc,image:kc,inlineCode:Ac,linkReference:jc,link:Mc,listItem:Nc,list:Ic,paragraph:Lc,root:Rc,strong:zc,table:Bc,tableCell:Hc,tableRow:Vc,text:qc,thematicBreak:Jc,toml:Xc,yaml:Xc,definition:Xc,footnoteDefinition:Xc};function Xc(){}var Zc=typeof self==`object`?self:globalThis,Qc=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Zc[e](t)},$c=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof Zc[e]==`function`?Qc(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(Qc(a,o),i)};return r},el=e=>$c(new Map,e)(0),tl=``,{toString:nl}={},{keys:rl}=Object,il=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=nl.call(e).slice(8,-1);switch(n){case`Array`:return[1,tl];case`Object`:return[2,tl];case`Date`:return[3,tl];case`RegExp`:return[4,tl];case`Map`:return[5,tl];case`Set`:return[6,tl];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},al=([e,t])=>e===0&&(t===`function`||t===`symbol`),ol=(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[o,s]=il(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of rl(r))(e||!al(il(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,isNaN(r.getTime())?tl:r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(al(il(n))||al(il(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!al(il(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},sl=(e,{json:t,lossy:n}={})=>{let r=[];return ol(!(t||n),!!t,new Map,r)(e),r},cl=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?el(sl(e,t)):structuredClone(e):(e,t)=>el(sl(e,t));function ll(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 ul(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function dl(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||ll,r=e.options.footnoteBackLabel||ul,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=Wa(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...cl(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
20
|
+
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
21
|
+
`}]}}var fl=(function(e){if(e==null)return _l;if(typeof e==`function`)return gl(e);if(typeof e==`object`)return Array.isArray(e)?pl(e):ml(e);if(typeof e==`string`)return hl(e);throw Error(`Expected function, string, or object as test`)});function pl(e){let t=[],n=-1;for(;++n<e.length;)t[n]=fl(e[n]);return gl(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function ml(e){let t=e;return gl(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function hl(e){return gl(t);function t(t){return t&&t.type===e}}function gl(e){return t;function t(t,n,r){return!!(vl(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function _l(){return!0}function vl(e){return typeof e==`object`&&!!e&&`type`in e}function yl(e){return e}var bl=[],xl=`skip`;function Sl(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=fl(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+yl(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=bl,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=Cl(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function Cl(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?bl:[e]}function wl(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Sl(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var Tl={}.hasOwnProperty,El={};function Dl(e,t){let n=t||El,r=new Map,i=new Map,a={all:s,applyData:kl,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Yc,...n.handlers},one:o,options:n,patch:Ol,wrap:jl};return wl(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(Tl.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=cl(n);return r.children=a.all(e),r}return cl(e)}return(a.options.unknownHandler||Al)(a,e,t)}function s(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&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=Ml(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=Ml(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Ol(e,t){e.position&&(t.position=Fi(e))}function kl(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,cl(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function Al(e,t){let n=t.data||{},r=`value`in t&&!(Tl.call(n,`hProperties`)||Tl.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)}function jl(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
22
|
+
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
23
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
24
|
+
`}),n}function Ml(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Nl(e,t){let n=Dl(e,t),r=n.one(e,void 0),i=dl(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
25
|
+
`},i)),a}function Pl(e,t){return e&&`run`in e?async function(n,r){let i=Nl(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Nl(n,{file:r,...e||t})}}function Fl(e){if(e)throw e}var Il=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Ll(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Rl(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?zl(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function zl(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var Bl={basename:Vl,dirname:Hl,extname:Ul,join:Wl,sep:`/`};function Vl(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);ql(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Hl(e){if(ql(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Ul(e){ql(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Wl(...e){let t=-1,n;for(;++t<e.length;)ql(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Gl(n)}function Gl(e){ql(e);let t=e.codePointAt(0)===47,n=Kl(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Kl(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function ql(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Jl={cwd:Yl};function Yl(){return`/`}function Xl(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Zl(e){if(typeof e==`string`)e=new URL(e);else if(!Xl(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(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Ql(e)}function Ql(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(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var $l=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],eu=class{constructor(e){let t;t=e?Xl(e)?{path:e}:typeof e==`string`||iu(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Jl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<$l.length;){let e=$l[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)$l.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?Bl.basename(this.path):void 0}set basename(e){nu(e,`basename`),tu(e,`basename`),this.path=Bl.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?Bl.dirname(this.path):void 0}set dirname(e){ru(this.basename,`dirname`),this.path=Bl.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?Bl.extname(this.path):void 0}set extname(e){if(tu(e,`extname`),ru(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=Bl.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Xl(e)&&(e=Zl(e)),nu(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?Bl.basename(this.path,this.extname):void 0}set stem(e){nu(e,`stem`),tu(e,`stem`),this.path=Bl.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 Bi(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 this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function tu(e,t){if(e&&e.includes(Bl.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+Bl.sep+"`")}function nu(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function ru(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function iu(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var au=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),ou=l(Il(),1),su={}.hasOwnProperty,cu=new class e extends au{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=Rl()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,ou.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(du(`data`,this.frozen),this.namespace[e]=t,this):su.call(this.namespace,e)&&this.namespace[e]||void 0:e?(du(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=mu(e),n=this.parser||this.Parser;return lu(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),lu(`process`,this.parser||this.Parser),uu(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=mu(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);gu(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),lu(`processSync`,this.parser||this.Parser),uu(`processSync`,this.compiler||this.Compiler),this.process(e,r),pu(`processSync`,`process`,t),n;function r(e,r){t=!0,Fl(e),n=r}}run(e,t,n){fu(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=mu(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),pu(`runSync`,`run`,n),r;function i(e,t){Fl(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=mu(t),r=this.compiler||this.Compiler;return uu(`stringify`,r),fu(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(du(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(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");o(e.plugins),e.settings&&(r.settings=(0,ou.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(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(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Ll(o)&&Ll(r)&&(r=(0,ou.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function lu(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function uu(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function du(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 fu(e){if(!Ll(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function pu(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function mu(e){return hu(e)?e:new eu(e)}function hu(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function gu(e){return typeof e==`string`||_u(e)}function _u(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var vu=[],yu={allowDangerousHtml:!0},bu=/^(https?|ircs?|mailto|xmpp)$/i,xu=[{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 Su(e){let t=Cu(e),n=wu(e);return Tu(t.runSync(t.parse(n),n),e)}function Cu(e){let t=e.rehypePlugins||vu,n=e.remarkPlugins||vu,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...yu}:yu;return cu().use(vc).use(n).use(Pl,r).use(t)}function wu(e){let t=e.children||``,n=new eu;return typeof t==`string`?n.value=t:``+t,n}function Tu(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||Eu;for(let e of xu)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return wl(e,l),Ji(e,{Fragment:N.Fragment,components:i,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in ga)if(Object.hasOwn(ga,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ga[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function Eu(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||bu.test(e.slice(0,t))?e:``}function Du(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Ou(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function ku(e,t,n){let r=fl((n||{}).ignore||[]),i=Au(t),a=-1;for(;++a<i.length;)Sl(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function Au(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;){let e=n[r];t.push([ju(e[0]),Mu(e[1])])}return t}function ju(e){return typeof e==`string`?new RegExp(Ou(e),`g`):e}function Mu(e){return typeof e==`function`?e:function(){return e}}var Nu=`phrasing`,Pu=[`autolink`,`link`,`image`,`label`];function Fu(){return{transforms:[Uu],enter:{literalAutolink:Lu,literalAutolinkEmail:Ru,literalAutolinkHttp:Ru,literalAutolinkWww:Ru},exit:{literalAutolink:Hu,literalAutolinkEmail:Vu,literalAutolinkHttp:zu,literalAutolinkWww:Bu}}}function Iu(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:Nu,notInConstruct:Pu},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:Nu,notInConstruct:Pu},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:Nu,notInConstruct:Pu}]}}function Lu(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function Ru(e){this.config.enter.autolinkProtocol.call(this,e)}function zu(e){this.config.exit.autolinkProtocol.call(this,e)}function Bu(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Vu(e){this.config.exit.autolinkEmail.call(this,e)}function Hu(e){this.exit(e)}function Uu(e){ku(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Wu],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Gu]],{ignore:[`link`,`linkReference`]})}function Wu(e,t,n,r,i){let a=``;if(!Ju(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!Ku(n)))return!1;let o=qu(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function Gu(e,t,n,r){return!Ju(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function Ku(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])))}function qu(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=Du(e,`(`),a=Du(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function Ju(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Ha(n)||Va(n))&&(!t||n!==47)}id.peek=rd;function Yu(){this.buffer()}function Xu(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Zu(){this.buffer()}function Qu(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function $u(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ja(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ed(e){this.exit(e)}function td(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ja(this.sliceSerialize(e)).toLowerCase(),n.label=t}function nd(e){this.exit(e)}function rd(){return`[`}function id(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function ad(){return{enter:{gfmFootnoteCallString:Yu,gfmFootnoteCall:Xu,gfmFootnoteDefinitionLabelString:Zu,gfmFootnoteDefinition:Qu},exit:{gfmFootnoteCallString:$u,gfmFootnoteCall:ed,gfmFootnoteDefinitionLabelString:td,gfmFootnoteDefinition:nd}}}function od(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:id},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
26
|
+
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?cd:sd))),s(),o}}function sd(e,t,n){return t===0?e:cd(e,t,n)}function cd(e,t,n){return(n?``:` `)+e}var ld=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];md.peek=hd;function ud(){return{canContainEols:[`delete`],enter:{strikethrough:fd},exit:{strikethrough:pd}}}function dd(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:ld}],handlers:{delete:md}}}function fd(e){this.enter({type:`delete`,children:[]},e)}function pd(e){this.exit(e)}function md(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function hd(){return`~`}function gd(e){return e.length}function _d(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||gd,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=vd(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=yd(r[d]);else{let e=yd(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
27
|
+
`)}function vd(e){return e==null?``:String(e)}function yd(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function bd(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),xd);return i(),o}function xd(e,t,n){return`>`+(n?``:` `)+e}function Sd(e,t){return Cd(e,t.inConstruct,!0)&&!Cd(e,t.notInConstruct,!1)}function Cd(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function wd(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
28
|
+
`&&Sd(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
29
|
+
`}function Td(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Ed(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^ \r\n]/.test(e.value)||/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Dd(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Od(e,t,n,r){let i=Dd(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(Ed(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,kd);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(Td(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
|
|
30
|
+
`,encode:["`"],...s.current()})),t()}return u+=s.move(`
|
|
31
|
+
`),a&&(u+=s.move(a+`
|
|
32
|
+
`)),u+=s.move(c),l(),u}function kd(e,t,n){return(n?``:` `)+e}function Ad(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function jd(e,t,n,r){let i=Ad(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
33
|
+
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function Md(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Nd(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function Pd(e,t,n){let r=Qa(e),i=Qa(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Fd.peek=Id;function Fd(e,t,n,r){let i=Md(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Pd(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Nd(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Pd(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Nd(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Id(e,t,n){return n.options.emphasis||`*`}function Ld(e,t){let n=!1;return wl(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&va(e)&&(t.options.setext||n))}function Rd(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Ld(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
34
|
+
`,after:`
|
|
35
|
+
`});return r(),t(),o+`
|
|
36
|
+
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
37
|
+
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
38
|
+
`,...a.current()});return/^[\t ]/.test(l)&&(l=Nd(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}zd.peek=Bd;function zd(e){return e.value||``}function Bd(){return`<`}Vd.peek=Hd;function Vd(e,t,n,r){let i=Ad(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function Hd(){return`!`}Ud.peek=Wd;function Ud(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Wd(){return`!`}Gd.peek=Kd;function Gd(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=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function Kd(){return"`"}function qd(e,t){let n=va(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][a-z+.-]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}Jd.peek=Yd;function Jd(e,t,n,r){let i=Ad(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(qd(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function Yd(e,t,n){return qd(e,n)?`<`:`[`}Xd.peek=Zd;function Xd(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Zd(){return`[`}function Qd(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function $d(e){let t=Qd(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function ef(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function tf(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function nf(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?ef(n):Qd(n),s=e.ordered?o===`.`?`)`:`.`:$d(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.children[0]||n.stack[n.stack.length-1]!==`list`||n.stack[n.stack.length-2]!==`listItem`||n.stack[n.stack.length-3]!==`list`||n.stack[n.stack.length-4]!==`listItem`||n.indexStack[n.indexStack.length-1]!==0||n.indexStack[n.indexStack.length-2]!==0||n.indexStack[n.indexStack.length-3]!==0||(c=!0),tf(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function rf(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function af(e,t,n,r){let i=rf(n),a=n.bulletCurrent||Qd(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function of(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var sf=fl([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function cf(e,t,n,r){return(e.children.some(function(e){return sf(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function lf(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}uf.peek=df;function uf(e,t,n,r){let i=lf(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Pd(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Nd(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Pd(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Nd(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function df(e,t,n){return n.options.strong||`*`}function ff(e,t,n,r){return n.safe(e.value,r)}function pf(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function mf(e,t,n){let r=(tf(n)+(n.options.ruleSpaces?` `:``)).repeat(pf(n));return n.options.ruleSpaces?r.slice(0,-1):r}var hf={blockquote:bd,break:wd,code:Od,definition:jd,emphasis:Fd,hardBreak:wd,heading:Rd,html:zd,image:Vd,imageReference:Ud,inlineCode:Gd,link:Jd,linkReference:Xd,list:nf,listItem:af,paragraph:of,root:cf,strong:uf,text:ff,thematicBreak:mf};function gf(){return{enter:{table:_f,tableData:xf,tableHeader:xf,tableRow:yf},exit:{codeText:Sf,table:vf,tableData:bf,tableHeader:bf,tableRow:bf}}}function _f(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function vf(e){this.exit(e),this.data.inTable=void 0}function yf(e){this.enter({type:`tableRow`,children:[]},e)}function bf(e){this.exit(e)}function xf(e){this.enter({type:`tableCell`,children:[]},e)}function Sf(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Cf));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Cf(e,t){return t===`|`?t:e}function wf(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
39
|
+
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
40
|
+
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return _d(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=hf.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function Tf(){return{exit:{taskListCheckValueChecked:Df,taskListCheckValueUnchecked:Df,paragraph:Of}}}function Ef(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:kf}}}function Df(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Of(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function kf(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=hf.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function Af(){return[Fu(),ad(),ud(),gf(),Tf()]}function jf(e){return{extensions:[Iu(),od(e),dd(),wf(e),Ef()]}}var Mf={tokenize:Kf,partial:!0},Nf={tokenize:qf,partial:!0},Pf={tokenize:Jf,partial:!0},Ff={tokenize:Yf,partial:!0},If={tokenize:Xf,partial:!0},Lf={name:`wwwAutolink`,tokenize:Wf,previous:Zf},Rf={name:`protocolAutolink`,tokenize:Gf,previous:Qf},zf={name:`emailAutolink`,tokenize:Uf,previous:$f},Bf={};function Vf(){return{text:Bf}}for(var Hf=48;Hf<123;)Bf[Hf]=zf,Hf++,Hf===58?Hf=65:Hf===91&&(Hf=97);Bf[43]=zf,Bf[45]=zf,Bf[46]=zf,Bf[95]=zf,Bf[72]=[zf,Rf],Bf[104]=[zf,Rf],Bf[87]=[zf,Lf],Bf[119]=[zf,Lf];function Uf(e,t,n){let r=this,i,a;return o;function o(t){return!ep(t)||!$f.call(r,r.previous)||tp(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return ep(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(If,u,l)(t):t===45||t===95||Na(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&Ma(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Wf(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!Zf.call(r,r.previous)||tp(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Mf,e.attempt(Nf,e.attempt(Pf,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Gf(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Qf.call(r,r.previous)&&!tp(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(Ma(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Fa(t)||za(t)||Ha(t)||Va(t)?n(t):e.attempt(Nf,e.attempt(Pf,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Kf(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function qf(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(Ff,c,s)(t):t===null||za(t)||Ha(t)||t!==45&&Va(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Jf(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):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?e.check(Ff,t,a)(o):o===null||za(o)||Ha(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Yf(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||za(o)||Ha(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||za(e)||Ha(e)?t(e):r(e)}function a(e){return Ma(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):Ma(t)?(e.consume(t),o):n(t)}}function Xf(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return Na(e)?n(e):t(e)}}function Zf(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||za(e)}function Qf(e){return!Ma(e)}function $f(e){return!(e===47||ep(e))}function ep(e){return e===43||e===45||e===46||e===95||Na(e)}function tp(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var np={tokenize:up,partial:!0};function rp(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:sp,continuation:{tokenize:cp},exit:lp}},text:{91:{name:`gfmFootnoteCall`,tokenize:op},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:ip,resolveTo:ap}}}}function ip(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=ja(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function ap(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){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)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[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`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function op(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||za(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(ja(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return za(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function sp(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||za(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=ja(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return za(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Ga(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function cp(e,t,n){return e.check(oo,t,e.attempt(np,t,n))}function lp(e){e.exit(`gfmFootnoteDefinition`)}function up(e,t,n){let r=this;return Ga(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function dp(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&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)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&wa(o,o.length,0,$a(s,e.slice(r+1,n),t)),wa(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),wa(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Qa(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Qa(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var fp=class{constructor(){this.map=[]}add(e,t,n){pp(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,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 pp(e,t,n,r){let i=0;if(n!==0||r.length!==0){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])}}function mp(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function hp(){return{flow:{null:{name:`table`,tokenize:gp,resolveAll:_p}}}}function gp(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):I(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Ba(t)?Ga(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||za(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Ba(t)?Ga(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Ba(t)?Ga(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||I(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Ba(t)?Ga(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||I(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||I(n)?(e.exit(`tableRow`),t(n)):Ba(n)?Ga(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||za(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function _p(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new fp;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(yp(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=vp(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=vp(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=vp(f,t,o,i,n,d)):(o[0]=o[1],d=vp(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&yp(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=mp(t.events,n))}return e}function vp(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},bp(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=bp(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=bp(t.events,n[2]),a=bp(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){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`,o,t]])}return i!==void 0&&(a.end=Object.assign({},bp(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function yp(e,t,n,r,i){let a=[],o=bp(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function bp(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var xp={name:`tasklistCheck`,tokenize:Cp};function Sp(){return{text:{91:xp}}}function Cp(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return za(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return I(r)?t(r):Ba(r)?e.check({tokenize:wp},t,n)(r):n(r)}}function wp(e,t,n){return Ga(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Tp(e){return Da([Vf(),rp(),dp(e),hp(),Sp()])}var Ep={};function Dp(e){let t=this,n=e||Ep,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Tp(n)),a.push(Af()),o.push(jf(n))}function Op(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Op(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function kp(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Op(e))&&(r&&(r+=` `),r+=t);return r}var Ap=Object.create,jp=Object.defineProperty,Mp=Object.defineProperties,Np=Object.getOwnPropertyDescriptor,Pp=Object.getOwnPropertyDescriptors,Fp=Object.getOwnPropertyNames,Ip=Object.getOwnPropertySymbols,Lp=Object.getPrototypeOf,Rp=Object.prototype.hasOwnProperty,zp=Object.prototype.propertyIsEnumerable,Bp=(e,t,n)=>t in e?jp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vp=(e,t)=>{for(var n in t||={})Rp.call(t,n)&&Bp(e,n,t[n]);if(Ip)for(var n of Ip(t))zp.call(t,n)&&Bp(e,n,t[n]);return e},Hp=(e,t)=>Mp(e,Pp(t)),Up=(e,t)=>{var n={};for(var r in e)Rp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ip)for(var r of Ip(e))t.indexOf(r)<0&&zp.call(e,r)&&(n[r]=e[r]);return n},Wp=(e,t)=>function(){return t||(0,e[Fp(e)[0]])((t={exports:{}}).exports,t),t.exports},Gp=(e,t)=>{for(var n in t)jp(e,n,{get:t[n],enumerable:!0})},Kp=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Fp(t))!Rp.call(e,i)&&i!==n&&jp(e,i,{get:()=>t[i],enumerable:!(r=Np(t,i))||r.enumerable});return e},L=((e,t,n)=>(n=e==null?{}:Ap(Lp(e)),Kp(t||!e||!e.__esModule?jp(n,`default`,{value:e,enumerable:!0}):n,e)))(Wp({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/</g,`<`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){n||={};var i,a;switch(r.util.type(t)){case`Object`:if(a=r.util.objId(t),n[a])return n[a];for(var o in i={},n[a]=i,t)t.hasOwnProperty(o)&&(i[o]=e(t[o],n));return i;case`Array`:return a=r.util.objId(t),n[a]?n[a]:(i=[],n[a]=i,t.forEach(function(t,r){i[r]=e(t,n)}),i);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return`none`},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,`gi`),``),t.classList.add(`language-`+n)},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){i||=r.languages;var a=i[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=i[e];return i[e]=o,r.languages.DFS(r.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,i,a){a||={};var o=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],i||s);var c=t[s],l=r.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run(`before-tokenize`,a),!a.grammar)throw Error(`The language "`+a.language+`" has no grammar.`);return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run(`after-tokenize`,a),i.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new s;return c(i,i.head,e),o(e,i,t,i.head,0),u(i)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var i=0,a;a=n[i++];)a(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}i.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var i=``;return t.forEach(function(t){i+=e(t,n)}),i}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),r.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`"`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`};function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function o(e,t,n,s,u,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=s.next,C=u;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof i)){var T=1,E;if(v){if(E=a(x,C,e,_),!E||E.index>=e.length)break;var D=E.index,O=E.index+E[0].length,k=C;for(k+=S.value.length;D>=k;)S=S.next,k+=S.value.length;if(k-=S.value.length,C=k,S.value instanceof i)continue;for(var A=S;A!==t.tail&&(k<O||typeof A.value==`string`);A=A.next)T++,k+=A.value.length;T--,w=e.slice(C,k),E.index-=C}else if(E=a(x,0,w,_),!E)continue;var D=E.index,ee=E[0],te=w.slice(0,D),ne=w.slice(D+ee.length),re=C+w.length;d&&re>d.reach&&(d.reach=re);var ie=S.prev;te&&(ie=c(t,ie,te),C+=te.length),l(t,ie,T);var ae=new i(f,g?r.tokenize(ee,g):ee,y,ee);if(S=c(t,ie,ae),ne&&c(t,S,ne),T>1){var oe={cause:f+`,`+m,reach:re};o(e,t,n,S.prev,C,oe),d&&oe.reach>d.reach&&(d.reach=oe.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function l(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function u(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}return r}();t.exports=n,n.default=n}})());L.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},L.languages.markup.tag.inside[`attr-value`].inside.entity=L.languages.markup.entity,L.languages.markup.doctype.inside[`internal-subset`].inside=L.languages.markup,L.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(L.languages.markup.tag,"addInlined",{value:function(e,t){var n={},n=(n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:L.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),t=(n[`language-`+t]={pattern:/[\s\S]+/,inside:L.languages[t]},{});t[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:n},L.languages.insertBefore(`markup`,`cdata`,t)}}),Object.defineProperty(L.languages.markup.tag,"addAttribute",{value:function(e,t){L.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:L.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),L.languages.html=L.languages.markup,L.languages.mathml=L.languages.markup,L.languages.svg=L.languages.markup,L.languages.xml=L.languages.extend(`markup`,{}),L.languages.ssml=L.languages.xml,L.languages.atom=L.languages.xml,L.languages.rss=L.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:`escape`},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r=`(?:[^\\\\-]|`+n.source+`)`,r=RegExp(r+`-`+r),i={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:`variable`};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:`operator`},"char-class-punctuation":{pattern:/^\[|\]$/,alias:`punctuation`},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:`operator`}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:`class-name`},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:`class-name`},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:`keyword`},{pattern:/\\k<[^<>']+>/,alias:`keyword`,inside:{"group-name":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:`function`},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:`punctuation`,inside:{"group-name":i}},{pattern:/\)/,alias:`punctuation`}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:`number`},alternation:{pattern:/\|/,alias:`keyword`}}}(L),L.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},L.languages.javascript=L.languages.extend(`clike`,{"class-name":[L.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),L.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,L.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:L.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:L.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:L.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:L.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:L.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),L.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:L.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),L.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),L.languages.markup&&(L.languages.markup.tag.addInlined(`script`,`javascript`),L.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),L.languages.js=L.languages.javascript,L.languages.actionscript=L.languages.extend(`javascript`,{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),L.languages.actionscript[`class-name`].alias=`function`,delete L.languages.actionscript.parameter,delete L.languages.actionscript[`literal-property`],L.languages.markup&&L.languages.insertBefore(`actionscript`,`string`,{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:L.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:`variable`};e.languages.coffeescript=e.languages.extend(`javascript`,{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:`variable`}}),e.languages.insertBefore(`coffeescript`,`comment`,{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:`comment`},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:`regex`,inside:{comment:t,interpolation:n}}}),e.languages.insertBefore(`coffeescript`,`string`,{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:`punctuation`},script:{pattern:/[\s\S]+/,alias:`language-javascript`,inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:`string`},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:`string`,inside:{interpolation:n}}]}),e.languages.insertBefore(`coffeescript`,`keyword`,{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript[`template-string`],e.languages.coffee=e.languages.coffeescript}(L),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t=typeof t==`string`?[t]:t).forEach(function(t){var r=function(e){e.inside||={},e.inside.rest=n},i=`doc-comment`;if(a=e.languages[t]){var a,o=a[i];if((o||=(a=e.languages.insertBefore(t,`comment`,{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:`comment`}}))[i])instanceof RegExp&&(o=a[i]={pattern:o}),Array.isArray(o))for(var s=0,c=o.length;s<c;s++)o[s]instanceof RegExp&&(o[s]={pattern:o[s]}),r(o[s]);else r(o)}})}}),t.addSupport([`java`,`javascript`,`php`],t)}(L),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);t&&(t.tag.addInlined(`style`,`css`),t.tag.addAttribute(`style`,`css`))}(L),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+t.source+`)*\\]`),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:`keyword`},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside[`selector-function-argument`].inside=t,e.languages.insertBefore(`css`,`property`,{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore(`css`,`function`,{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:`color`},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(L),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r=`(?:`+n.source+`(?:[ ]+`+t.source+`)?|`+t.source+`(?:[ ]+`+n.source+`)?)`,i=`(?:[^\\s\\x00-\\x08\\x0e-\\x1f!"#%&'*,\\-:>?@[\\]\`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \\t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*`.replace(/<PLAIN>/g,function(){return`[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]`}),a=`"(?:[^"\\\\\\r\\n]|\\\\.)*"|'(?:[^'\\\\\\r\\n]|\\\\.)*'`;function o(e,t){t=(t||``).replace(/m/g,``)+`m`;var n=`([:\\-,[{]\\s*(?:\\s<<prop>>[ \\t]+)?)(?:<<value>>)(?=[ \\t]*(?:$|,|\\]|\\}|(?:[\\r\\n]\\s*)?#))`.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return e});return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(`([\\-:]\\s*(?:\\s<<prop>>[ \\t]+)?[|>])[ \\t]*(?:((?:\\r?\\n|\\r)[ \\t]+)\\S[^\\r\\n]*(?:\\2[^\\r\\n]+)*)`.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:`string`},comment:/#.*/,key:{pattern:RegExp(`((?:^|[:\\-,[{\\r\\n?])[ \\t]*(?:<<prop>>[ \\t]+)?)<<key>>(?=\\s*:\\s)`.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return`(?:`+i+`|`+a+`)`})),lookbehind:!0,greedy:!0,alias:`atrule`},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:`important`},datetime:{pattern:o(`\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \\t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \\t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?`),lookbehind:!0,alias:`number`},boolean:{pattern:o(`false|true`,`i`),lookbehind:!0,alias:`important`},null:{pattern:o(`null|~`,`i`),lookbehind:!0,alias:`important`},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(`[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)`,`i`),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(L),function(e){function t(e){return e=e.replace(/<inner>/g,function(){return`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var n="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",r=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return n}),i=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`,a=(e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+r+i+`(?:`+r+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+r+i+`)(?:`+r+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+r+`)`+i+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+r+`$`),inside:{"table-header":{pattern:RegExp(n),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:t(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:t(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){e.language!==`markdown`&&e.language!==`md`||function e(t){if(t&&typeof t!=`string`)for(var n=0,r=t.length;n<r;n++){var i,a=t[n];a.type===`code`?(i=a.content[1],a=a.content[3],i&&a&&i.type===`code-language`&&a.type===`code-block`&&typeof i.content==`string`&&(i=i.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`),i=`language-`+(i=(/[a-z][\w-]*/i.exec(i)||[``])[0].toLowerCase()),a.alias?typeof a.alias==`string`?a.alias=[a.alias,i]:a.alias.push(i):a.alias=[i])):e(a.content)}}(e.tokens)}),e.hooks.add(`wrap`,function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var c=t.classes[r],c=/language-(.+)/.exec(c);if(c){n=c[1];break}}var l,u=e.languages[n];u?t.content=e.highlight(function(e){return e=e.replace(a,``),e=e.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;return(t=t.toLowerCase())[0]===`#`?(n=t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):o[t]||e})}(t.content),u,n):n&&n!==`none`&&e.plugins.autoloader&&(l=`md-`+new Date().valueOf()+`-`+Math.floor(0x2386f26fc10000*Math.random()),t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}),RegExp(e.languages.markup.tag.pattern.source,`gi`)),o={amp:`&`,lt:`<`,gt:`>`,quot:`"`},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(L),L.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:`string`,inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:L.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:`function`},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:`class-name`},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:`function`},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:`function`},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:`function`},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},L.hooks.add(`after-tokenize`,function(e){if(e.language===`graphql`)for(var t=e.tokens.filter(function(e){return typeof e!=`string`&&e.type!==`comment`&&e.type!==`scalar`}),n=0;n<t.length;){var r=t[n++];if(r.type===`keyword`&&r.content===`mutation`){var i=[];if(d([`definition-mutation`,`punctuation`])&&u(1).content===`(`){n+=2;var a=f(/^\($/,/^\)$/);if(a===-1)continue;for(;n<a;n++){var o=u(0);o.type===`variable`&&(p(o,`variable-input`),i.push(o.content))}n=a+1}if(d([`punctuation`,`property-query`])&&u(0).content===`{`&&(n++,p(u(0),`property-mutation`),0<i.length)){var s=f(/^\{$/,/^\}$/);if(s!==-1)for(var c=n;c<s;c++){var l=t[c];l.type===`variable`&&0<=i.indexOf(l.content)&&p(l,`variable-input`)}}}}function u(e){return t[n+e]}function d(e,t){t||=0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function f(e,r){for(var i=1,a=n;a<t.length;a++){var o=t[a],s=o.content;if(o.type===`punctuation`&&typeof s==`string`){if(e.test(s))i++;else if(r.test(s)&&--i===0)return a}}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}}),L.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript[`template-string`],n=t.pattern.source,r=t.inside.interpolation,i=r.inside[`interpolation-punctuation`],a=r.pattern.source;function o(t,r){if(e.languages[t])return{pattern:RegExp(`((?:`+r+`)\\s*)`+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run(`before-tokenize`,t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run(`after-tokenize`,t),t.tokens}function c(t,n,o){var c=e.tokenize(t,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),l=0,u={},c=s(c.map(function(e){if(typeof e==`string`)return e;for(var n,r,e=e.content;t.indexOf((r=l++,n=`___`+o.toUpperCase()+`_`+r+`___`))!==-1;);return u[n]=e,n}).join(``),n,o),d=Object.keys(u);return l=0,function t(n){for(var a=0;a<n.length;a++){if(l>=d.length)return;var o,c,f,p,m,h,g,_=n[a];typeof _==`string`||typeof _.content==`string`?(o=d[l],(g=(h=typeof _==`string`?_:_.content).indexOf(o))!==-1&&(++l,c=h.substring(0,g),m=u[o],f=void 0,(p={})[`interpolation-punctuation`]=i,(p=e.tokenize(m,p)).length===3&&((f=[1,1]).push.apply(f,s(p[1],e.languages.javascript,`javascript`)),p.splice.apply(p,f)),f=new e.Token(`interpolation`,p,r.alias,m),p=h.substring(g+o.length),m=[],c&&m.push(c),m.push(f),p&&(t(h=[p]),m.push.apply(m,h)),typeof _==`string`?(n.splice.apply(n,[a,1].concat(m)),a+=m.length-1):_.content=m)):(g=_.content,t(Array.isArray(g)?g:[g]))}}(c),new e.Token(o,c,`language-`+o,t)}e.languages.javascript[`template-string`]=[o(`css`,`\\b(?:styled(?:\\([^)]*\\))?(?:\\s*\\.\\s*\\w+(?:\\([^)]*\\))*)*|css(?:\\s*\\.\\s*(?:global|resolve))?|createGlobalStyle|keyframes)`),o(`html`,`\\bhtml|\\.\\s*(?:inner|outer)HTML\\s*\\+?=`),o(`svg`,`\\bsvg`),o(`markdown`,`\\b(?:markdown|md)`),o(`graphql`,`\\b(?:gql|graphql(?:\\s*\\.\\s*experimental)?)`),o(`sql`,`\\bsql`),t].filter(Boolean);var l={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return typeof e==`string`?e:Array.isArray(e)?e.map(u).join(``):u(e.content)}e.hooks.add(`after-tokenize`,function(t){t.language in l&&function t(n){for(var r=0,i=n.length;r<i;r++){var a,o,s,l=n[r];typeof l!=`string`&&(a=l.content,Array.isArray(a)?l.type===`template-string`?(l=a[1],a.length===3&&typeof l!=`string`&&l.type===`embedded-code`&&(o=u(l),l=l.alias,l=Array.isArray(l)?l[0]:l,s=e.languages[l])&&(a[1]=c(o,s,l))):t(a):typeof a!=`string`&&t([a]))}}(t.tokens)})}(L),function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript}(L),function(e){var t=e.languages.javascript,n=`\\{(?:[^{}]|\\{(?:[^{}]|\\{[^{}]*\\})*\\})+\\}`,r=`(@(?:arg|argument|param|property)\\s+(?:`+n+`\\s+)?)`;e.languages.jsdoc=e.languages.extend(`javadoclike`,{parameter:{pattern:RegExp(r+`(?:(?!\\s)[$\\w\\xA0-\\uFFFF.])+(?=\\s|$)`),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore(`jsdoc`,`keyword`,{"optional-parameter":{pattern:RegExp(r+`\\[(?:(?!\\s)[$\\w\\xA0-\\uFFFF.])+(?:=[^[\\]]+)?\\](?=\\s|$)`),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:`language-javascript`},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(`(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\\s+(?:<TYPE>\\s+)?)[A-Z]\\w*(?:\\.[A-Z]\\w*)*`.replace(/<TYPE>/g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp(`(@[a-z]+\\s+)`+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:`language-javascript`}}}}),e.languages.javadoclike.addSupport(`javascript`,e.languages.jsdoc)}(L),function(e){e.languages.flow=e.languages.extend(`javascript`,{}),e.languages.insertBefore(`flow`,`keyword`,{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:`class-name`}]}),e.languages.flow[`function-variable`].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore(`flow`,`operator`,{"flow-punctuation":{pattern:/\{\||\|\}/,alias:`punctuation`}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(L),L.languages.n4js=L.languages.extend(`javascript`,{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),L.languages.insertBefore(`n4js`,`constant`,{annotation:{pattern:/@+\w+/,alias:`operator`}}),L.languages.n4jsd=L.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,function(){return`(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*`}),t)}e.languages.insertBefore(`javascript`,`function-variable`,{"method-variable":{pattern:RegExp(`(\\.\\s*)`+e.languages.javascript[`function-variable`].pattern.source),lookbehind:!0,alias:[`function-variable`,`method`,`function`,`property-access`]}}),e.languages.insertBefore(`javascript`,`function`,{method:{pattern:RegExp(`(\\.\\s*)`+e.languages.javascript.function.source),lookbehind:!0,alias:[`function`,`property-access`]}}),e.languages.insertBefore(`javascript`,`constant`,{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:`class-name`},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:`class-name`}]}),e.languages.insertBefore(`javascript`,`keyword`,{imports:{pattern:t(`(\\bimport\\b\\s*)(?:<ID>(?:\\s*,\\s*(?:\\*\\s*as\\s+<ID>|\\{[^{}]*\\}))?|\\*\\s*as\\s+<ID>|\\{[^{}]*\\})(?=\\s*\\bfrom\\b)`),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(`(\\bexport\\b\\s*)(?:\\*(?:\\s*as\\s+<ID>)?(?=\\s*\\bfrom\\b)|\\{[^{}]*\\})`),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:`module`},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:`control-flow`},{pattern:/\bnull\b/,alias:[`null`,`nil`]},{pattern:/\bundefined\b/,alias:`nil`}),e.languages.insertBefore(`javascript`,`operator`,{spread:{pattern:/\.{3}/,alias:`operator`},arrow:{pattern:/=>/,alias:`operator`}}),e.languages.insertBefore(`javascript`,`punctuation`,{"property-access":{pattern:t(`(\\.\\s*)#?<ID>`),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:`variable`},console:{pattern:/\bconsole(?=\s*\.)/,alias:`class-name`}});for(var n=[`function`,`function-variable`,`method`,`method-variable`,`property-access`],r=0;r<n.length;r++){var i=n[r],a=e.languages.javascript[i],i=(a=e.util.type(a)===`RegExp`?e.languages.javascript[i]={pattern:a}:a).inside||{};(a.inside=i)[`maybe-class-name`]=/^[A-Z][\s\S]*/}}(L),function(e){var t=e.util.clone(e.languages.javascript),n=`(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)`,r=`(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})`,i=`(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})`;function a(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(e,t)}i=a(i).source,e.languages.jsx=e.languages.extend(`markup`,t),e.languages.jsx.tag.pattern=a(`<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:"(?:\\\\[\\s\\S]|[^\\\\"])*"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>`),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside[`attr-value`].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside[`class-name`]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore(`inside`,`attr-name`,{spread:{pattern:a(`<SPREAD>`),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore(`inside`,`special-attr`,{script:{pattern:a(`=<BRACES>`),alias:`language-javascript`,inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:`punctuation`},rest:e.languages.jsx}}},e.languages.jsx.tag);function o(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=!1;typeof i!=`string`&&(i.type===`tag`&&i.content[0]&&i.content[0].type===`tag`?i.content[0].content[0].content===`</`?0<n.length&&n[n.length-1].tagName===s(i.content[0].content[1])&&n.pop():i.content[i.content.length-1].content!==`/>`&&n.push({tagName:s(i.content[0].content[1]),openedBraces:0}):0<n.length&&i.type===`punctuation`&&i.content===`{`?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&i.type===`punctuation`&&i.content===`}`?n[n.length-1].openedBraces--:a=!0),(a||typeof i==`string`)&&0<n.length&&n[n.length-1].openedBraces===0&&(a=s(i),r<t.length-1&&(typeof t[r+1]==`string`||t[r+1].type===`plain-text`)&&(a+=s(t[r+1]),t.splice(r+1,1)),0<r&&(typeof t[r-1]==`string`||t[r-1].type===`plain-text`)&&(a=s(t[r-1])+a,t.splice(r-1,1),r--),t[r]=new e.Token(`plain-text`,a,null,a)),i.content&&typeof i.content!=`string`&&o(i.content)}}var s=function(e){return e?typeof e==`string`?e:typeof e.content==`string`?e.content:e.content.map(s).join(``):``};e.hooks.add(`after-tokenize`,function(e){e.language!==`jsx`&&e.language!==`tsx`||o(e.tokens)})}(L),function(e){var t=e.util.clone(e.languages.typescript),t=(e.languages.tsx=e.languages.extend(`jsx`,t),delete e.languages.tsx.parameter,delete e.languages.tsx[`literal-property`],e.languages.tsx.tag);t.pattern=RegExp(`(^|[^\\w$]|(?=<\\/))(?:`+t.pattern.source+`)`,t.pattern.flags),t.lookbehind=!0}(L),L.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},L.languages.swift[`string-literal`].forEach(function(e){e.inside.interpolation.inside=L.languages.swift}),function(e){e.languages.kotlin=e.languages.extend(`clike`,{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin[`class-name`];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:`punctuation`},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore(`kotlin`,`string`,{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:`multiline`,inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:`singleline`,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore(`kotlin`,`keyword`,{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:`builtin`}}),e.languages.insertBefore(`kotlin`,`function`,{label:{pattern:/\b\w+@|@\w+\b/,alias:`symbol`}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(L),L.languages.c=L.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),L.languages.insertBefore(`c`,`string`,{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),L.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},L.languages.c.string],char:L.languages.c.char,comment:L.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:L.languages.c}}}}),L.languages.insertBefore(`c`,`function`,{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete L.languages.c.boolean,L.languages.objectivec=L.languages.extend(`c`,{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete L.languages.objectivec[`class-name`],L.languages.objc=L.languages.objectivec,L.languages.reason=L.languages.extend(`clike`,{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),L.languages.insertBefore(`reason`,`class-name`,{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:`symbol`}}),delete L.languages.reason.function,function(e){for(var t=`\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|<self>)*\\*\\/`,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return`[^\\s\\S]`}),e.languages.rust={comment:[{pattern:RegExp(`(^|[^\\\\])`+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:`attr-name`,inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:`punctuation`},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:`symbol`},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:`punctuation`},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:`function`},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:`class-name`},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:`namespace`},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:`namespace`,inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:`property`},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust[`closure-params`].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(L),L.languages.go=L.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),L.languages.insertBefore(`go`,`string`,{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete L.languages.go[`class-name`],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,function(){return n})+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])}(L),L.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},L.languages.python[`string-interpolation`].inside.interpolation.inside.rest=L.languages.python,L.languages.py=L.languages.python,L.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:`keyword`}},L.languages.webmanifest=L.languages.json;var qp={};Gp(qp,{dracula:()=>Jp,duotoneDark:()=>Yp,duotoneLight:()=>Xp,github:()=>Zp,gruvboxMaterialDark:()=>pm,gruvboxMaterialLight:()=>mm,jettwaveDark:()=>lm,jettwaveLight:()=>um,nightOwl:()=>Qp,nightOwlLight:()=>$p,oceanicNext:()=>tm,okaidia:()=>nm,oneDark:()=>dm,oneLight:()=>fm,palenight:()=>rm,shadesOfPurple:()=>im,synthwave84:()=>am,ultramin:()=>om,vsDark:()=>sm,vsLight:()=>cm});var Jp={plain:{color:`#F8F8F2`,backgroundColor:`#282A36`},styles:[{types:[`prolog`,`constant`,`builtin`],style:{color:`rgb(189, 147, 249)`}},{types:[`inserted`,`function`],style:{color:`rgb(80, 250, 123)`}},{types:[`deleted`],style:{color:`rgb(255, 85, 85)`}},{types:[`changed`],style:{color:`rgb(255, 184, 108)`}},{types:[`punctuation`,`symbol`],style:{color:`rgb(248, 248, 242)`}},{types:[`string`,`char`,`tag`,`selector`],style:{color:`rgb(255, 121, 198)`}},{types:[`keyword`,`variable`],style:{color:`rgb(189, 147, 249)`,fontStyle:`italic`}},{types:[`comment`],style:{color:`rgb(98, 114, 164)`}},{types:[`attr-name`],style:{color:`rgb(241, 250, 140)`}}]},Yp={plain:{backgroundColor:`#2a2734`,color:`#9a86fd`},styles:[{types:[`comment`,`prolog`,`doctype`,`cdata`,`punctuation`],style:{color:`#6c6783`}},{types:[`namespace`],style:{opacity:.7}},{types:[`tag`,`operator`,`number`],style:{color:`#e09142`}},{types:[`property`,`function`],style:{color:`#9a86fd`}},{types:[`tag-id`,`selector`,`atrule-id`],style:{color:`#eeebff`}},{types:[`attr-name`],style:{color:`#c4b9fe`}},{types:[`boolean`,`string`,`entity`,`url`,`attr-value`,`keyword`,`control`,`directive`,`unit`,`statement`,`regex`,`atrule`,`placeholder`,`variable`],style:{color:`#ffcc99`}},{types:[`deleted`],style:{textDecorationLine:`line-through`}},{types:[`inserted`],style:{textDecorationLine:`underline`}},{types:[`italic`],style:{fontStyle:`italic`}},{types:[`important`,`bold`],style:{fontWeight:`bold`}},{types:[`important`],style:{color:`#c4b9fe`}}]},Xp={plain:{backgroundColor:`#faf8f5`,color:`#728fcb`},styles:[{types:[`comment`,`prolog`,`doctype`,`cdata`,`punctuation`],style:{color:`#b6ad9a`}},{types:[`namespace`],style:{opacity:.7}},{types:[`tag`,`operator`,`number`],style:{color:`#063289`}},{types:[`property`,`function`],style:{color:`#b29762`}},{types:[`tag-id`,`selector`,`atrule-id`],style:{color:`#2d2006`}},{types:[`attr-name`],style:{color:`#896724`}},{types:[`boolean`,`string`,`entity`,`url`,`attr-value`,`keyword`,`control`,`directive`,`unit`,`statement`,`regex`,`atrule`],style:{color:`#728fcb`}},{types:[`placeholder`,`variable`],style:{color:`#93abdc`}},{types:[`deleted`],style:{textDecorationLine:`line-through`}},{types:[`inserted`],style:{textDecorationLine:`underline`}},{types:[`italic`],style:{fontStyle:`italic`}},{types:[`important`,`bold`],style:{fontWeight:`bold`}},{types:[`important`],style:{color:`#896724`}}]},Zp={plain:{color:`#393A34`,backgroundColor:`#f6f8fa`},styles:[{types:[`comment`,`prolog`,`doctype`,`cdata`],style:{color:`#999988`,fontStyle:`italic`}},{types:[`namespace`],style:{opacity:.7}},{types:[`string`,`attr-value`],style:{color:`#e3116c`}},{types:[`punctuation`,`operator`],style:{color:`#393A34`}},{types:[`entity`,`url`,`symbol`,`number`,`boolean`,`variable`,`constant`,`property`,`regex`,`inserted`],style:{color:`#36acaa`}},{types:[`atrule`,`keyword`,`attr-name`,`selector`],style:{color:`#00a4db`}},{types:[`function`,`deleted`,`tag`],style:{color:`#d73a49`}},{types:[`function-variable`],style:{color:`#6f42c1`}},{types:[`tag`,`selector`,`keyword`],style:{color:`#00009f`}}]},Qp={plain:{color:`#d6deeb`,backgroundColor:`#011627`},styles:[{types:[`changed`],style:{color:`rgb(162, 191, 252)`,fontStyle:`italic`}},{types:[`deleted`],style:{color:`rgba(239, 83, 80, 0.56)`,fontStyle:`italic`}},{types:[`inserted`,`attr-name`],style:{color:`rgb(173, 219, 103)`,fontStyle:`italic`}},{types:[`comment`],style:{color:`rgb(99, 119, 119)`,fontStyle:`italic`}},{types:[`string`,`url`],style:{color:`rgb(173, 219, 103)`}},{types:[`variable`],style:{color:`rgb(214, 222, 235)`}},{types:[`number`],style:{color:`rgb(247, 140, 108)`}},{types:[`builtin`,`char`,`constant`,`function`],style:{color:`rgb(130, 170, 255)`}},{types:[`punctuation`],style:{color:`rgb(199, 146, 234)`}},{types:[`selector`,`doctype`],style:{color:`rgb(199, 146, 234)`,fontStyle:`italic`}},{types:[`class-name`],style:{color:`rgb(255, 203, 139)`}},{types:[`tag`,`operator`,`keyword`],style:{color:`rgb(127, 219, 202)`}},{types:[`boolean`],style:{color:`rgb(255, 88, 116)`}},{types:[`property`],style:{color:`rgb(128, 203, 196)`}},{types:[`namespace`],style:{color:`rgb(178, 204, 214)`}}]},$p={plain:{color:`#403f53`,backgroundColor:`#FBFBFB`},styles:[{types:[`changed`],style:{color:`rgb(162, 191, 252)`,fontStyle:`italic`}},{types:[`deleted`],style:{color:`rgba(239, 83, 80, 0.56)`,fontStyle:`italic`}},{types:[`inserted`,`attr-name`],style:{color:`rgb(72, 118, 214)`,fontStyle:`italic`}},{types:[`comment`],style:{color:`rgb(152, 159, 177)`,fontStyle:`italic`}},{types:[`string`,`builtin`,`char`,`constant`,`url`],style:{color:`rgb(72, 118, 214)`}},{types:[`variable`],style:{color:`rgb(201, 103, 101)`}},{types:[`number`],style:{color:`rgb(170, 9, 130)`}},{types:[`punctuation`],style:{color:`rgb(153, 76, 195)`}},{types:[`function`,`selector`,`doctype`],style:{color:`rgb(153, 76, 195)`,fontStyle:`italic`}},{types:[`class-name`],style:{color:`rgb(17, 17, 17)`}},{types:[`tag`],style:{color:`rgb(153, 76, 195)`}},{types:[`operator`,`property`,`keyword`,`namespace`],style:{color:`rgb(12, 150, 155)`}},{types:[`boolean`],style:{color:`rgb(188, 84, 84)`}}]},em={char:`#D8DEE9`,comment:`#999999`,keyword:`#c5a5c5`,primitive:`#5a9bcf`,string:`#8dc891`,variable:`#d7deea`,boolean:`#ff8b50`,punctuation:`#5FB3B3`,tag:`#fc929e`,function:`#79b6f2`,className:`#FAC863`,method:`#6699CC`,operator:`#fc929e`},tm={plain:{backgroundColor:`#282c34`,color:`#ffffff`},styles:[{types:[`attr-name`],style:{color:em.keyword}},{types:[`attr-value`],style:{color:em.string}},{types:[`comment`,`block-comment`,`prolog`,`doctype`,`cdata`,`shebang`],style:{color:em.comment}},{types:[`property`,`number`,`function-name`,`constant`,`symbol`,`deleted`],style:{color:em.primitive}},{types:[`boolean`],style:{color:em.boolean}},{types:[`tag`],style:{color:em.tag}},{types:[`string`],style:{color:em.string}},{types:[`punctuation`],style:{color:em.string}},{types:[`selector`,`char`,`builtin`,`inserted`],style:{color:em.char}},{types:[`function`],style:{color:em.function}},{types:[`operator`,`entity`,`url`,`variable`],style:{color:em.variable}},{types:[`keyword`],style:{color:em.keyword}},{types:[`atrule`,`class-name`],style:{color:em.className}},{types:[`important`],style:{fontWeight:`400`}},{types:[`bold`],style:{fontWeight:`bold`}},{types:[`italic`],style:{fontStyle:`italic`}},{types:[`namespace`],style:{opacity:.7}}]},nm={plain:{color:`#f8f8f2`,backgroundColor:`#272822`},styles:[{types:[`changed`],style:{color:`rgb(162, 191, 252)`,fontStyle:`italic`}},{types:[`deleted`],style:{color:`#f92672`,fontStyle:`italic`}},{types:[`inserted`],style:{color:`rgb(173, 219, 103)`,fontStyle:`italic`}},{types:[`comment`],style:{color:`#8292a2`,fontStyle:`italic`}},{types:[`string`,`url`],style:{color:`#a6e22e`}},{types:[`variable`],style:{color:`#f8f8f2`}},{types:[`number`],style:{color:`#ae81ff`}},{types:[`builtin`,`char`,`constant`,`function`,`class-name`],style:{color:`#e6db74`}},{types:[`punctuation`],style:{color:`#f8f8f2`}},{types:[`selector`,`doctype`],style:{color:`#a6e22e`,fontStyle:`italic`}},{types:[`tag`,`operator`,`keyword`],style:{color:`#66d9ef`}},{types:[`boolean`],style:{color:`#ae81ff`}},{types:[`namespace`],style:{color:`rgb(178, 204, 214)`,opacity:.7}},{types:[`tag`,`property`],style:{color:`#f92672`}},{types:[`attr-name`],style:{color:`#a6e22e !important`}},{types:[`doctype`],style:{color:`#8292a2`}},{types:[`rule`],style:{color:`#e6db74`}}]},rm={plain:{color:`#bfc7d5`,backgroundColor:`#292d3e`},styles:[{types:[`comment`],style:{color:`rgb(105, 112, 152)`,fontStyle:`italic`}},{types:[`string`,`inserted`],style:{color:`rgb(195, 232, 141)`}},{types:[`number`],style:{color:`rgb(247, 140, 108)`}},{types:[`builtin`,`char`,`constant`,`function`],style:{color:`rgb(130, 170, 255)`}},{types:[`punctuation`,`selector`],style:{color:`rgb(199, 146, 234)`}},{types:[`variable`],style:{color:`rgb(191, 199, 213)`}},{types:[`class-name`,`attr-name`],style:{color:`rgb(255, 203, 107)`}},{types:[`tag`,`deleted`],style:{color:`rgb(255, 85, 114)`}},{types:[`operator`],style:{color:`rgb(137, 221, 255)`}},{types:[`boolean`],style:{color:`rgb(255, 88, 116)`}},{types:[`keyword`],style:{fontStyle:`italic`}},{types:[`doctype`],style:{color:`rgb(199, 146, 234)`,fontStyle:`italic`}},{types:[`namespace`],style:{color:`rgb(178, 204, 214)`}},{types:[`url`],style:{color:`rgb(221, 221, 221)`}}]},im={plain:{color:`#9EFEFF`,backgroundColor:`#2D2A55`},styles:[{types:[`changed`],style:{color:`rgb(255, 238, 128)`}},{types:[`deleted`],style:{color:`rgba(239, 83, 80, 0.56)`}},{types:[`inserted`],style:{color:`rgb(173, 219, 103)`}},{types:[`comment`],style:{color:`rgb(179, 98, 255)`,fontStyle:`italic`}},{types:[`punctuation`],style:{color:`rgb(255, 255, 255)`}},{types:[`constant`],style:{color:`rgb(255, 98, 140)`}},{types:[`string`,`url`],style:{color:`rgb(165, 255, 144)`}},{types:[`variable`],style:{color:`rgb(255, 238, 128)`}},{types:[`number`,`boolean`],style:{color:`rgb(255, 98, 140)`}},{types:[`attr-name`],style:{color:`rgb(255, 180, 84)`}},{types:[`keyword`,`operator`,`property`,`namespace`,`tag`,`selector`,`doctype`],style:{color:`rgb(255, 157, 0)`}},{types:[`builtin`,`char`,`constant`,`function`,`class-name`],style:{color:`rgb(250, 208, 0)`}}]},am={plain:{backgroundColor:`linear-gradient(to bottom, #2a2139 75%, #34294f)`,backgroundImage:`#34294f`,color:`#f92aad`,textShadow:`0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3`},styles:[{types:[`comment`,`block-comment`,`prolog`,`doctype`,`cdata`],style:{color:`#495495`,fontStyle:`italic`}},{types:[`punctuation`],style:{color:`#ccc`}},{types:[`tag`,`attr-name`,`namespace`,`number`,`unit`,`hexcode`,`deleted`],style:{color:`#e2777a`}},{types:[`property`,`selector`],style:{color:`#72f1b8`,textShadow:`0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475`}},{types:[`function-name`],style:{color:`#6196cc`}},{types:[`boolean`,`selector-id`,`function`],style:{color:`#fdfdfd`,textShadow:`0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975`}},{types:[`class-name`,`maybe-class-name`,`builtin`],style:{color:`#fff5f6`,textShadow:`0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75`}},{types:[`constant`,`symbol`],style:{color:`#f92aad`,textShadow:`0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3`}},{types:[`important`,`atrule`,`keyword`,`selector-class`],style:{color:`#f4eee4`,textShadow:`0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575`}},{types:[`string`,`char`,`attr-value`,`regex`,`variable`],style:{color:`#f87c32`}},{types:[`parameter`],style:{fontStyle:`italic`}},{types:[`entity`,`url`],style:{color:`#67cdcc`}},{types:[`operator`],style:{color:`ffffffee`}},{types:[`important`,`bold`],style:{fontWeight:`bold`}},{types:[`italic`],style:{fontStyle:`italic`}},{types:[`entity`],style:{cursor:`help`}},{types:[`inserted`],style:{color:`green`}}]},om={plain:{color:`#282a2e`,backgroundColor:`#ffffff`},styles:[{types:[`comment`],style:{color:`rgb(197, 200, 198)`}},{types:[`string`,`number`,`builtin`,`variable`],style:{color:`rgb(150, 152, 150)`}},{types:[`class-name`,`function`,`tag`,`attr-name`],style:{color:`rgb(40, 42, 46)`}}]},sm={plain:{color:`#9CDCFE`,backgroundColor:`#1E1E1E`},styles:[{types:[`prolog`],style:{color:`rgb(0, 0, 128)`}},{types:[`comment`],style:{color:`rgb(106, 153, 85)`}},{types:[`builtin`,`changed`,`keyword`,`interpolation-punctuation`],style:{color:`rgb(86, 156, 214)`}},{types:[`number`,`inserted`],style:{color:`rgb(181, 206, 168)`}},{types:[`constant`],style:{color:`rgb(100, 102, 149)`}},{types:[`attr-name`,`variable`],style:{color:`rgb(156, 220, 254)`}},{types:[`deleted`,`string`,`attr-value`,`template-punctuation`],style:{color:`rgb(206, 145, 120)`}},{types:[`selector`],style:{color:`rgb(215, 186, 125)`}},{types:[`tag`],style:{color:`rgb(78, 201, 176)`}},{types:[`tag`],languages:[`markup`],style:{color:`rgb(86, 156, 214)`}},{types:[`punctuation`,`operator`],style:{color:`rgb(212, 212, 212)`}},{types:[`punctuation`],languages:[`markup`],style:{color:`#808080`}},{types:[`function`],style:{color:`rgb(220, 220, 170)`}},{types:[`class-name`],style:{color:`rgb(78, 201, 176)`}},{types:[`char`],style:{color:`rgb(209, 105, 105)`}}]},cm={plain:{color:`#000000`,backgroundColor:`#ffffff`},styles:[{types:[`comment`],style:{color:`rgb(0, 128, 0)`}},{types:[`builtin`],style:{color:`rgb(0, 112, 193)`}},{types:[`number`,`variable`,`inserted`],style:{color:`rgb(9, 134, 88)`}},{types:[`operator`],style:{color:`rgb(0, 0, 0)`}},{types:[`constant`,`char`],style:{color:`rgb(129, 31, 63)`}},{types:[`tag`],style:{color:`rgb(128, 0, 0)`}},{types:[`attr-name`],style:{color:`rgb(255, 0, 0)`}},{types:[`deleted`,`string`],style:{color:`rgb(163, 21, 21)`}},{types:[`changed`,`punctuation`],style:{color:`rgb(4, 81, 165)`}},{types:[`function`,`keyword`],style:{color:`rgb(0, 0, 255)`}},{types:[`class-name`],style:{color:`rgb(38, 127, 153)`}}]},lm={plain:{color:`#f8fafc`,backgroundColor:`#011627`},styles:[{types:[`prolog`],style:{color:`#000080`}},{types:[`comment`],style:{color:`#6A9955`}},{types:[`builtin`,`changed`,`keyword`,`interpolation-punctuation`],style:{color:`#569CD6`}},{types:[`number`,`inserted`],style:{color:`#B5CEA8`}},{types:[`constant`],style:{color:`#f8fafc`}},{types:[`attr-name`,`variable`],style:{color:`#9CDCFE`}},{types:[`deleted`,`string`,`attr-value`,`template-punctuation`],style:{color:`#cbd5e1`}},{types:[`selector`],style:{color:`#D7BA7D`}},{types:[`tag`],style:{color:`#0ea5e9`}},{types:[`tag`],languages:[`markup`],style:{color:`#0ea5e9`}},{types:[`punctuation`,`operator`],style:{color:`#D4D4D4`}},{types:[`punctuation`],languages:[`markup`],style:{color:`#808080`}},{types:[`function`],style:{color:`#7dd3fc`}},{types:[`class-name`],style:{color:`#0ea5e9`}},{types:[`char`],style:{color:`#D16969`}}]},um={plain:{color:`#0f172a`,backgroundColor:`#f1f5f9`},styles:[{types:[`prolog`],style:{color:`#000080`}},{types:[`comment`],style:{color:`#6A9955`}},{types:[`builtin`,`changed`,`keyword`,`interpolation-punctuation`],style:{color:`#0c4a6e`}},{types:[`number`,`inserted`],style:{color:`#B5CEA8`}},{types:[`constant`],style:{color:`#0f172a`}},{types:[`attr-name`,`variable`],style:{color:`#0c4a6e`}},{types:[`deleted`,`string`,`attr-value`,`template-punctuation`],style:{color:`#64748b`}},{types:[`selector`],style:{color:`#D7BA7D`}},{types:[`tag`],style:{color:`#0ea5e9`}},{types:[`tag`],languages:[`markup`],style:{color:`#0ea5e9`}},{types:[`punctuation`,`operator`],style:{color:`#475569`}},{types:[`punctuation`],languages:[`markup`],style:{color:`#808080`}},{types:[`function`],style:{color:`#0e7490`}},{types:[`class-name`],style:{color:`#0ea5e9`}},{types:[`char`],style:{color:`#D16969`}}]},dm={plain:{backgroundColor:`hsl(220, 13%, 18%)`,color:`hsl(220, 14%, 71%)`,textShadow:`0 1px rgba(0, 0, 0, 0.3)`},styles:[{types:[`comment`,`prolog`,`cdata`],style:{color:`hsl(220, 10%, 40%)`}},{types:[`doctype`,`punctuation`,`entity`],style:{color:`hsl(220, 14%, 71%)`}},{types:[`attr-name`,`class-name`,`maybe-class-name`,`boolean`,`constant`,`number`,`atrule`],style:{color:`hsl(29, 54%, 61%)`}},{types:[`keyword`],style:{color:`hsl(286, 60%, 67%)`}},{types:[`property`,`tag`,`symbol`,`deleted`,`important`],style:{color:`hsl(355, 65%, 65%)`}},{types:[`selector`,`string`,`char`,`builtin`,`inserted`,`regex`,`attr-value`],style:{color:`hsl(95, 38%, 62%)`}},{types:[`variable`,`operator`,`function`],style:{color:`hsl(207, 82%, 66%)`}},{types:[`url`],style:{color:`hsl(187, 47%, 55%)`}},{types:[`deleted`],style:{textDecorationLine:`line-through`}},{types:[`inserted`],style:{textDecorationLine:`underline`}},{types:[`italic`],style:{fontStyle:`italic`}},{types:[`important`,`bold`],style:{fontWeight:`bold`}},{types:[`important`],style:{color:`hsl(220, 14%, 71%)`}}]},fm={plain:{backgroundColor:`hsl(230, 1%, 98%)`,color:`hsl(230, 8%, 24%)`},styles:[{types:[`comment`,`prolog`,`cdata`],style:{color:`hsl(230, 4%, 64%)`}},{types:[`doctype`,`punctuation`,`entity`],style:{color:`hsl(230, 8%, 24%)`}},{types:[`attr-name`,`class-name`,`boolean`,`constant`,`number`,`atrule`],style:{color:`hsl(35, 99%, 36%)`}},{types:[`keyword`],style:{color:`hsl(301, 63%, 40%)`}},{types:[`property`,`tag`,`symbol`,`deleted`,`important`],style:{color:`hsl(5, 74%, 59%)`}},{types:[`selector`,`string`,`char`,`builtin`,`inserted`,`regex`,`attr-value`,`punctuation`],style:{color:`hsl(119, 34%, 47%)`}},{types:[`variable`,`operator`,`function`],style:{color:`hsl(221, 87%, 60%)`}},{types:[`url`],style:{color:`hsl(198, 99%, 37%)`}},{types:[`deleted`],style:{textDecorationLine:`line-through`}},{types:[`inserted`],style:{textDecorationLine:`underline`}},{types:[`italic`],style:{fontStyle:`italic`}},{types:[`important`,`bold`],style:{fontWeight:`bold`}},{types:[`important`],style:{color:`hsl(230, 8%, 24%)`}}]},pm={plain:{color:`#ebdbb2`,backgroundColor:`#292828`},styles:[{types:[`imports`,`class-name`,`maybe-class-name`,`constant`,`doctype`,`builtin`,`function`],style:{color:`#d8a657`}},{types:[`property-access`],style:{color:`#7daea3`}},{types:[`tag`],style:{color:`#e78a4e`}},{types:[`attr-name`,`char`,`url`,`regex`],style:{color:`#a9b665`}},{types:[`attr-value`,`string`],style:{color:`#89b482`}},{types:[`comment`,`prolog`,`cdata`,`operator`,`inserted`],style:{color:`#a89984`}},{types:[`delimiter`,`boolean`,`keyword`,`selector`,`important`,`atrule`,`property`,`variable`,`deleted`],style:{color:`#ea6962`}},{types:[`entity`,`number`,`symbol`],style:{color:`#d3869b`}}]},mm={plain:{color:`#654735`,backgroundColor:`#f9f5d7`},styles:[{types:[`delimiter`,`boolean`,`keyword`,`selector`,`important`,`atrule`,`property`,`variable`,`deleted`],style:{color:`#af2528`}},{types:[`imports`,`class-name`,`maybe-class-name`,`constant`,`doctype`,`builtin`],style:{color:`#b4730e`}},{types:[`string`,`attr-value`],style:{color:`#477a5b`}},{types:[`property-access`],style:{color:`#266b79`}},{types:[`function`,`attr-name`,`char`,`url`],style:{color:`#72761e`}},{types:[`tag`],style:{color:`#b94c07`}},{types:[`comment`,`prolog`,`cdata`,`operator`,`inserted`],style:{color:`#a89984`}},{types:[`entity`,`number`,`symbol`],style:{color:`#924f79`}}]},hm=e=>(0,v.useCallback)(t=>{var n=t,{className:r,style:i,line:a}=n;let o=Hp(Vp({},Up(n,[`className`,`style`,`line`])),{className:kp(`token-line`,r)});return typeof e==`object`&&`plain`in e&&(o.style=e.plain),typeof i==`object`&&(o.style=Vp(Vp({},o.style||{}),i)),o},[e]),gm=e=>{let t=(0,v.useCallback)(({types:t,empty:n})=>{if(e!=null)return t.length===1&&t[0]===`plain`?n==null?void 0:{display:`inline-block`}:t.length===1&&n!=null?e[t[0]]:Object.assign(n==null?{}:{display:`inline-block`},...t.map(t=>e[t]))},[e]);return(0,v.useCallback)(e=>{var n=e,{token:r,className:i,style:a}=n;let o=Hp(Vp({},Up(n,[`token`,`className`,`style`])),{className:kp(`token`,...r.types,i),children:r.content,style:t(r)});return a!=null&&(o.style=Vp(Vp({},o.style||{}),a)),o},[t])},_m=/\r\n|\r|\n/,vm=e=>{e.length===0?e.push({types:[`plain`],content:`
|
|
41
|
+
`,empty:!0}):e.length===1&&e[0].content===``&&(e[0].content=`
|
|
42
|
+
`,e[0].empty=!0)},ym=(e,t)=>{let n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},bm=e=>{let t=[[]],n=[e],r=[0],i=[e.length],a=0,o=0,s=[],c=[s];for(;o>-1;){for(;(a=r[o]++)<i[o];){let e,l=t[o],u=n[o][a];if(typeof u==`string`?(l=o>0?l:[`plain`],e=u):(l=ym(l,u.type),u.alias&&(l=ym(l,u.alias)),e=u.content),typeof e!=`string`){o++,t.push(l),n.push(e),r.push(0),i.push(e.length);continue}let d=e.split(_m),f=d.length;s.push({types:l,content:d[0]});for(let e=1;e<f;e++)vm(s),c.push(s=[]),s.push({types:l,content:d[e]})}o--,t.pop(),n.pop(),r.pop(),i.pop()}return vm(s),c},xm=({prism:e,code:t,grammar:n,language:r})=>(0,v.useMemo)(()=>{if(n==null)return bm([t]);let i={code:t,grammar:n,language:r,tokens:[]};return e.hooks.run(`before-tokenize`,i),i.tokens=e.tokenize(t,n),e.hooks.run(`after-tokenize`,i),bm(i.tokens)},[t,n,r,e]),Sm=(e,t)=>{let{plain:n}=e,r=e.styles.reduce((e,n)=>{let{languages:r,style:i}=n;return r&&!r.includes(t)||n.types.forEach(t=>{e[t]=Vp(Vp({},e[t]),i)}),e},{});return r.root=n,r.plain=Hp(Vp({},n),{backgroundColor:void 0}),r},Cm=({children:e,language:t,code:n,theme:r,prism:i})=>{let a=t.toLowerCase(),o=Sm(r,a),s=hm(o),c=gm(o),l=i.languages[a];return e({tokens:xm({prism:i,language:a,code:n,grammar:l}),className:`prism-code language-${a}`,style:o==null?{}:o.root,getLineProps:s,getTokenProps:c})},wm=e=>(0,v.createElement)(Cm,Hp(Vp({},e),{prism:e.prism||L,theme:e.theme||sm,code:e.code,language:e.language})),Tm=[{id:`quickstart`,label:`Quickstart`,group:`Get started`,body:`# Quickstart
|
|
43
|
+
|
|
44
|
+
From nothing to a scored experiment on an evalkit server your team already runs. Each step links to its full page; [Concepts](concepts.md) explains the terms.
|
|
45
|
+
|
|
46
|
+
No server yet? [Try locally](try-locally.md) runs one on your machine with a sample agent and your own LLM, and ends with how to deploy one for your team.
|
|
47
|
+
|
|
48
|
+
## 1. Pick how evalkit reaches your agent
|
|
49
|
+
|
|
50
|
+
| Path | What you build | Pick it when |
|
|
51
|
+
| -------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
52
|
+
| SDK run + traces | A Python script that calls your agent once per case, and an OpenTelemetry exporter to this server | The default: start here. Runs start from your machine or CI |
|
|
53
|
+
| Harness API | An HTTP service: start a run, report its status, serve its ATIF trajectory | A deployed agent the server should drive (shared agents, runs started from the UI), or you need the Workspace tab |
|
|
54
|
+
| Harness API + traces | The same service minus the trajectory endpoint; the trajectory comes from your spans | You want the Harness API but your agent already emits OpenTelemetry spans |
|
|
55
|
+
|
|
56
|
+
The Workspace tab on a run lists the files the agent wrote. evalkit reads them through the Harness API files endpoints, so only the two Harness API paths have it. See [Harness API](harness-api.md) for what each endpoint enables.
|
|
57
|
+
|
|
58
|
+
## 2. Install and log in
|
|
59
|
+
|
|
60
|
+
\`\`\`bash
|
|
61
|
+
uv tool install --reinstall "evalkit-py=={{version}}"
|
|
62
|
+
evalkit login --url {{origin}}
|
|
63
|
+
\`\`\`
|
|
64
|
+
|
|
65
|
+
More in [Install](install.md) and [Login](login.md).
|
|
66
|
+
|
|
67
|
+
## 3. Write \`evalkit.yaml\` and one case
|
|
68
|
+
|
|
69
|
+
At the root of the repository that holds your eval cases:
|
|
70
|
+
|
|
71
|
+
\`\`\`yaml
|
|
72
|
+
cases: eval/cases
|
|
73
|
+
fixtures: eval/fixtures
|
|
74
|
+
|
|
75
|
+
credentials:
|
|
76
|
+
agents:
|
|
77
|
+
myagent: env:MYAGENT_API_KEY # only for a Harness API agent that needs a key
|
|
78
|
+
llm_providers:
|
|
79
|
+
https://litellm.example.com: env:LITELLM_API_KEY # the server's judge base URL
|
|
80
|
+
\`\`\`
|
|
81
|
+
|
|
82
|
+
Put the keys in a \`.env\` next to \`evalkit.yaml\`. Then create your agent on the server once:
|
|
83
|
+
|
|
84
|
+
\`\`\`bash
|
|
85
|
+
# SDK path: a code-driven agent whose trajectory comes from its traces
|
|
86
|
+
evalkit agents create myagent --trajectory-source otel --mapping openinference.json
|
|
87
|
+
# Harness API path
|
|
88
|
+
evalkit agents create myagent --harness-url http://localhost:8080/evalkit/v1
|
|
89
|
+
\`\`\`
|
|
90
|
+
|
|
91
|
+
\`openinference.json\` (or \`gen_ai.json\`) comes from the \`connect-traces\` skill.
|
|
92
|
+
|
|
93
|
+
Each directory under \`cases\` is a dataset. Add \`eval/cases/smoke/cases.yaml\`:
|
|
94
|
+
|
|
95
|
+
\`\`\`yaml
|
|
96
|
+
cases:
|
|
97
|
+
- id: store-count
|
|
98
|
+
input:
|
|
99
|
+
question: "How many company-operated stores did Starbucks have at FY2021 year-end?"
|
|
100
|
+
evaluators:
|
|
101
|
+
output:
|
|
102
|
+
answer_rubrics:
|
|
103
|
+
rubrics:
|
|
104
|
+
- rubric: "States 17,133 company-operated stores at FY2021 year-end."
|
|
105
|
+
type: factual_retrieval
|
|
106
|
+
\`\`\`
|
|
107
|
+
|
|
108
|
+
More in [Config](config.md).
|
|
109
|
+
|
|
110
|
+
## 4. Run it
|
|
111
|
+
|
|
112
|
+
SDK path: install the SDK into your project (see [Install](install.md)), then write \`eval/run.py\`:
|
|
113
|
+
|
|
114
|
+
\`\`\`python
|
|
115
|
+
from evalkit.sdk import run_experiment, tracing
|
|
116
|
+
from myagent import ask
|
|
117
|
+
|
|
118
|
+
tracing.register(agent="myagent")
|
|
119
|
+
|
|
120
|
+
def task(input: dict) -> str:
|
|
121
|
+
return ask(input["question"])
|
|
122
|
+
|
|
123
|
+
if __name__ == "__main__":
|
|
124
|
+
run_experiment(dataset="smoke", agent="myagent", task=task, dry_run=True)
|
|
125
|
+
\`\`\`
|
|
126
|
+
|
|
127
|
+
\`dry_run=True\` runs one case without creating an experiment and prints what the server made of the spans. When it looks right, drop \`dry_run\`; \`run_experiment\` then returns a result whose \`url\` is the experiment page. More in [SDK runs](sdk-runs.md) and [Tracing](tracing.md).
|
|
128
|
+
|
|
129
|
+
Harness API path:
|
|
130
|
+
|
|
131
|
+
\`\`\`bash
|
|
132
|
+
evalkit harness check myagent # exercises every capability the harness declares
|
|
133
|
+
evalkit run smoke --agent myagent
|
|
134
|
+
\`\`\`
|
|
135
|
+
|
|
136
|
+
A run executes every case it selects, whether the dataset is in your own workspace (\`smoke\`) or a shared one (\`smoke@dev\`). Review state never filters a run.
|
|
137
|
+
|
|
138
|
+
## 5. Read the results
|
|
139
|
+
|
|
140
|
+
\`evalkit run\` prints the scorecard when it finishes. On this server, open the dataset under Datasets and pick the experiment. The experiment page has the scorecard; each run opens its trajectory, scores and, on the Harness API paths, its workspace files. If converted spans look wrong (missing messages, wrong span kinds), check one session with \`evalkit traces check myagent <session id>\` and see [Mappings](mappings.md).
|
|
141
|
+
|
|
142
|
+
## 6. Attach a file to a case
|
|
143
|
+
|
|
144
|
+
Drop the file in the \`fixtures\` directory from your \`evalkit.yaml\`, register it once in \`fixtures.yaml\` at the root of your \`cases\` directory, and name it in the case. The \`context\` line is what the agent is told about the file.
|
|
145
|
+
|
|
146
|
+
\`\`\`bash
|
|
147
|
+
cp ~/Downloads/meridian-balance-sheet.csv <fixtures>/
|
|
148
|
+
shasum -a 256 <fixtures>/meridian-balance-sheet.csv # sha256 for the registry
|
|
149
|
+
\`\`\`
|
|
150
|
+
|
|
151
|
+
\`\`\`yaml
|
|
152
|
+
# <cases>/fixtures.yaml
|
|
153
|
+
fixtures:
|
|
154
|
+
- key: meridian-balance-sheet.csv
|
|
155
|
+
sha256: 652d32…eece7
|
|
156
|
+
context: Meridian's FY2025 balance sheet, USD thousands.
|
|
157
|
+
\`\`\`
|
|
158
|
+
|
|
159
|
+
\`\`\`yaml
|
|
160
|
+
# in the case
|
|
161
|
+
- id: net-debt-fy2025
|
|
162
|
+
fixtures: [meridian-balance-sheet.csv]
|
|
163
|
+
input:
|
|
164
|
+
question: Using only the attached file, what was net debt at FY2025 year-end?
|
|
165
|
+
\`\`\`
|
|
166
|
+
|
|
167
|
+
A run or sync uploads any fixture whose sha256 the server doesn't hold yet, and the server keeps one copy per sha256. So you only need the files you touch, and if the bytes on disk don't match the registry the run stops and shows both hashes.
|
|
168
|
+
|
|
169
|
+
## 7. Iterate and promote
|
|
170
|
+
|
|
171
|
+
\`\`\`bash
|
|
172
|
+
evalkit evaluate <experiment-id> # re-score the same runs after an evaluator change; no agent calls
|
|
173
|
+
evalkit runs pull --experiment <experiment-id> # download every run (trajectory, case, scores) to diagnose failures
|
|
174
|
+
\`\`\`
|
|
175
|
+
|
|
176
|
+
Cases reach a shared dataset through a PR. On merge, CI syncs them into a shared workspace such as \`dev\`, where they start Unreviewed; a reviewer of that workspace approves them, and if \`dev\` is linked to \`prod\`, approval promotes them there.
|
|
177
|
+
|
|
178
|
+
\`\`\`bash
|
|
179
|
+
evalkit review request finance@dev --case-id net-debt-fy2025 --reviewer <user>
|
|
180
|
+
evalkit review approve finance@dev net-debt-fy2025 # reviewers only
|
|
181
|
+
\`\`\`
|
|
182
|
+
|
|
183
|
+
If an admin linked \`dev\` to a promotion target (\`evalkit workspaces promote-to dev prod\`), that approval also lands the case in \`finance@prod\`, approved. \`prod\` takes cases only that way: no sync, no separate review. The case page in either workspace shows the other's version and links to it.
|
|
184
|
+
`},{id:`concepts`,label:`Concepts`,group:`Get started`,body:`# Concepts
|
|
185
|
+
|
|
186
|
+
The words you need before your first scorecard. Everything else is explained on the page that uses it.
|
|
187
|
+
|
|
188
|
+
| Term | Meaning |
|
|
189
|
+
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
|
190
|
+
| Case | One eval question, written in YAML: the input, the rubrics a right answer meets, and the checks to run. |
|
|
191
|
+
| Dataset | A directory of cases, run and tracked together. The directory name is the dataset name, and subfolders become tags you can run alone. |
|
|
192
|
+
| Sync | Copying a dataset directory to the server. Runs do it for you. |
|
|
193
|
+
| Workspace | Where datasets, agents and experiments live: your own (named after you), or a shared one such as \`dev\`. Every user can read every workspace; only the owner changes a personal one, and admins and writers change a shared one. |
|
|
194
|
+
| Reference | \`name@workspace\`, for example \`acme@dev\`. A bare name means your own workspace. |
|
|
195
|
+
| Agent | Your agent, registered once on the server. A code-driven agent is run by your own code; this is the usual way to start. |
|
|
196
|
+
| Task | The function \`run_experiment\` calls once per case. It calls your agent and returns the answer. |
|
|
197
|
+
| Experiment | One run of a dataset against an agent. |
|
|
198
|
+
| Run | One case answered once. |
|
|
199
|
+
| Trace, span, session | What your agent records as it works: one span per model call or tool call. One run is one session. |
|
|
200
|
+
| Mapping | Which span attribute holds the model, the messages, the tokens and each tool call. |
|
|
201
|
+
| Trajectory | The step-by-step record of a run that evalkit builds from the spans. |
|
|
202
|
+
| Judge | The LLM that grades an answer against the case's rubrics. |
|
|
203
|
+
| Evaluator | One scoring check, for example the rubric check or "did the agent call this tool". |
|
|
204
|
+
| Scorecard | The table of scores for an experiment, per case and per bucket (content, trajectory, presentation, efficiency, custom). |
|
|
205
|
+
| Unreviewed | A case in a shared dataset with no review decision at its current content. It runs like any other case; review decides promotion. |
|
|
206
|
+
| Promotion | An admin links a shared workspace to a target (\`evalkit workspaces promote-to dev prod\`). Approving a case in \`dev\` adds it, approved, to the same-named dataset in \`prod\`. Datasets in \`prod\` are fed only that way. |
|
|
207
|
+
| \`evalkit.yaml\` | The file in your repo that says where your cases are and which environment variables hold API keys. |
|
|
208
|
+
|
|
209
|
+
Next: [Try locally](try-locally.md) to see these on a running server, or the [Quickstart](quickstart.md) to connect your own agent.
|
|
210
|
+
`},{id:`try-locally`,label:`Try locally`,group:`Get started`,body:'# Try evalkit locally\n\nThe try-it stack runs evalkit on your machine and walks you through the\ndefault way to connect an agent: an **SDK run with OpenTelemetry traces**.\nYour Python code calls the agent once per case. The agent\'s spans go to\nevalkit, evalkit turns them into a trajectory, and your LLM judges the\nanswers. The kit includes a small sample agent that calls your LLM, so you\nget a real scorecard before you touch your own agent.\n\nIt is not a deployment: it uses a demo admin password and keeps everything\non one machine. For a real deployment, follow the evalkit-deployment skill.\n\n## What you need\n\n- `uv` and port 8020 free.\n- An OpenAI-compatible LLM endpoint (OpenAI, a LiteLLM proxy, vLLM, Ollama,\n ...) that supports tool calls and structured output, with its base URL, API\n key and model name. The sample agent and the judge both use it.\n- Either Postgres 15 or newer running on this machine (without Docker), or\n Docker with Compose v2 (with Docker).\n\n## Start the server\n\nPick one way. Both end with the server on http://localhost:8020 and the try\nkit in a folder, and the steps after this section are the same.\n\n### Without Docker\n\nevalkit is on PyPI as `evalkit-py`. Install it with the server extra, then\nlet `evalkit init-server` set up the rest:\n\n```bash\nuv tool install "evalkit-py[server]" # or: pip install "evalkit-py[server]"\nevalkit init-server\ncd evalkit-try\nevalkit serve\n```\n\n`init-server` asks for the Postgres URL (default\n`postgresql+psycopg://localhost/evalkit`), your LLM\'s base URL, model and API\nkey, and the admin password (default `evalkit-admin`). A question is skipped\nwhen its flag or environment variable is set (`evalkit init-server --help`\nlists both); `--yes` never asks. It then:\n\n- creates the database when it does not exist, and migrates it\n- registers your LLM as the LLM provider `try` and makes it the default judge,\n with its API key stored encrypted in the database\n- copies the try kit into `./evalkit-try`\n- writes `config.yaml` there, with blobs stored under `evalkit-try/data`\n- writes `.env` beside it, with your LLM settings, the admin password and the\n key that encrypts stored API keys; `evalkit serve` reads it. Keep `.env`:\n without that key the server cannot read the stored LLM key\n\nLeave `evalkit serve` running and use another terminal for the steps below,\nfrom the `evalkit-try` folder. The CLI is already installed, so skip the\ninstall command in step 1.\n\n### With Docker\n\nThe kit is `skills/evalkit-deployment/try/` in the evalkit repository, and the\nserver image holds a copy. The first `--build` takes a few minutes (it builds\nthe web UI and installs the server); later starts take seconds.\n\nFrom an evalkit checkout, compose builds the image:\n\n```bash\ncd skills/evalkit-deployment/try\ncp -n .env.example .env # fill in LLM_BASE_URL, LLM_API_KEY, LLM_MODEL\ndocker compose up -d --wait --build\n```\n\nWith the server image instead, copy the kit out of it first:\n\n```bash\nexport EVALKIT_IMAGE=<registry>/evalkit:<tag>\ndocker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/out" "$EVALKIT_IMAGE" \\\n evalkit init-server --kit-only --dir /out/evalkit-try\ncd evalkit-try\ncp -n .env.example .env # fill in LLM_BASE_URL, LLM_API_KEY, LLM_MODEL\ndocker compose up -d --wait\n```\n\nCompose starts Postgres and the evalkit server, with your LLM as the judge.\n`--wait` returns once the server is healthy. The server runs migrations on\nevery start.\n\n### What\'s in the kit\n\n| File | What it is |\n| -- | -- |\n| `agent.py` | The sample agent. It answers questions about Acme Widgets, a made-up company, by calling your LLM with one tool, `lookup_financials`. It records each model call and tool call as an OpenTelemetry span, using the GenAI semantic conventions. |\n| `run.py` | The SDK run: `tracing.register` sends the spans to evalkit, and `run_experiment` calls the agent once per case and scores the answers. |\n| `mapping.json` | The span mapping: which span attribute holds the model, the messages, the tokens and each tool call. It starts as the connect-traces skill\'s `gen_ai.json`. |\n| `cases/acme/` | Five cases in two folders (tags), with answer rubrics and a tool check. |\n| `evalkit.yaml`, `.env` | Where the cases are, and the judge\'s key. |\n| `config.yaml` | The server\'s config. |\n| `docker-compose.yml`, `.env.example` | With Docker only: the stack, and the template for its `.env`. `init-server` leaves them out. |\n\n## 1. Install the CLI and log in\n\n```bash\nuv tool install --reinstall "evalkit-py=={{version}}" # with Docker only\nevalkit login --url http://localhost:8020 --username admin --password evalkit-admin\n```\n\n`{{version}}` is the server\'s version; `curl http://localhost:8020/api/cli`\nprints it.\n\n`evalkit login` replaces any login you already saved. To keep it, skip\n`evalkit login` and point this shell at the try-it server instead (this needs\n`jq`):\n\n```bash\nexport EVALKIT_SERVER_URL=http://localhost:8020\nexport EVALKIT_TOKEN=$(curl -fsSL -X POST http://localhost:8020/api/auth/login \\\n -H \'content-type: application/json\' -d \'{"username": "admin", "password": "evalkit-admin"}\' | jq -r .token)\n```\n\n`run.py` declares its own dependencies at the top of the file, so\n`uv run run.py` installs what it needs on the first run. The kit pins evalkit\nto the server\'s version when `evalkit init-server` copies it. In an evalkit\ncheckout, run the kit\'s scripts with the checkout instead:\n`uv run --project ../../.. --extra otel python run.py`.\n\n## 2. Connect the agent\'s traces\n\nCreate the agent. Its trajectories come from its spans, read with\n`mapping.json`:\n\n```bash\nevalkit agents create analyst --trajectory-source otel --mapping mapping.json\n```\n\nRun one case without creating an experiment:\n\n```bash\nuv run run.py --dry-run\n```\n\nIt prints the answer, the session id with a count of its spans by kind and\nthe mapping version, and whether evalkit built a valid trajectory from them. If no spans arrived,\ncheck that `run.py` calls `tracing.register` before the agent runs.\n\nThen see how the mapping read that session:\n\n```bash\nevalkit traces check analyst <session id>\n```\n\nIt prints one line per check: the session settled, the root span, the\nmapping version, the model calls and their token totals, the tool calls\nmatched to the model\'s calls, any span attribute the mapping does not read,\nand a summary of the trajectory. Every line should have a ✓.\n\n## 3. First scorecard\n\n```bash\nuv run run.py\n```\n\n`run_experiment` syncs `cases/acme` into your own workspace (`acme@admin`),\nruns the five cases, has your LLM judge each answer against its rubrics,\nchecks that the agent called `lookup_financials`, and prints the scorecard\nand the experiment URL. The scores depend on your model. `acme-operating-margin`\nasks for a figure the agent has no data for, so it passes only if the agent\nsays so instead of making one up.\n\nThe `answer_rubric_*` rows by rubric type (`factual_retrieval`,\n`derived_computation`, `analysis_interpretation`) count only the cases that\nhave a rubric of that type, so their case counts differ.\n\nOpen http://localhost:8020, log in as `admin` with the admin password, and open the\nexperiment under the `acme` dataset. Each run shows its trajectory, the\njudge\'s verdict on every rubric and the tool check. The Runs page lists the\nraw sessions.\n\n## 4. Iterate\n\nThis is the loop you will run on your own agent:\n\n- Change the agent, for example the instructions in `agent.py`, and run\n `run.py` again. Compare the two experiments in the UI.\n- Edit or add a case under `cases/acme/` and run again. The run syncs the\n folder first.\n- Run one folder: `run_experiment(..., split="balance-sheet")`.\n\n## 5. Connect your own agent\n\nDo the same in your own repository:\n\n1. **Traces.** If your agent already emits OpenTelemetry spans (OpenInference\n or GenAI conventions), keep them. If not, add an instrumentor for your LLM\n library, for example `openinference-instrumentation-openai` for the OpenAI\n client (OpenInference publishes one per popular library), or record GenAI\n spans yourself as this kit\'s `agent.py` does ([Tracing](tracing.md)). The\n connect-traces skill writes or checks the span mapping\n ([Mappings](mappings.md)).\n2. **Setup.** Put an `evalkit.yaml` at the root of your repository, with\n `cases:` pointing at your cases directory and the judge\'s key under\n `credentials.llm_providers`. That map is keyed by the judge\'s base URL, which must\n match the judge the run uses: the server\'s default judge\n (`{{origin}}/api/judge-default` shows its `base_url`), or the one you pass to\n `run_experiment(judge=...)`. This kit keys it with `env:LLM_BASE_URL` so the\n URL comes from `.env`. Keep the keys in a `.env` beside `evalkit.yaml`.\n3. **Script.** Copy `run.py`. Pin evalkit in its header to your evalkit\n server\'s version (`evalkit-py[otel]==<version>`), call\n `tracing.register(agent="myagent")`, and write a `task` that calls your\n agent with the case input. `uv run run.py` builds an environment from the\n header alone, so add your agent\'s packages to its `dependencies`. If your\n agent lives in a uv project, you can instead add evalkit to the project\n (see the [Install](install.md) page) and run the script with\n `uv run python run.py`.\n4. **Cases.** Add a folder under your cases directory, for example\n `mine/`, and run with `dataset="mine"`. The authoring-eval-cases skill\n covers the format. See [Concepts](concepts.md) for the terms.\n5. **Agent and mapping.** Copy this kit\'s `mapping.json` into your\n repository, or `openinference.json` from the connect-traces skill if your\n spans follow OpenInference, and create the agent with it:\n `evalkit agents create myagent --trajectory-source otel --mapping\n my-mapping.json`. Do a dry run with your script and `evalkit traces check`\n on its session, as in step 2. For each `!` line, edit your copy, upload it\n as a draft and preview the same session:\n\n ```bash\n evalkit traces mapping push myagent my-mapping.json\n evalkit traces check myagent <session id> --mapping draft\n ```\n\n When it reads right, activate it: `evalkit traces mapping push myagent\n my-mapping.json --activate`, or use the agent\'s Mappings tab in the web\n UI. Runs always use the active mapping. The connect-traces skill walks a\n coding agent through the same loop.\n\n[SDK runs](sdk-runs.md) covers the rest: agents in another process, Python\nevaluators, and re-scoring. If the evalkit server\nshould drive your agent instead of your script (runs started from the UI,\nshared agents), implement the [Harness API](harness-api.md).\n\n## Next: run evalkit for your team\n\nThe try-it stack is for one machine. For a server your team shares, follow\nthe [evalkit-deployment skill](https://github.com/inferedge-ai/evalkit/tree/main/skills/evalkit-deployment):\nit covers the server image, Postgres, blob storage, the judge, migrations\nand the first users and workspaces. A coding agent can walk it with you.\nOnce the server runs, your teammates start from its own `/docs` page.\n\n## Stop and clean up\n\nWithout Docker: stop `evalkit serve` with Ctrl-C. To delete everything, drop\nthe database you gave `init-server` (`dropdb evalkit` with the default URL)\nand remove the `evalkit-try` folder.\n\nWith Docker:\n\n```bash\ndocker compose down # stop; data stays in the volumes\ndocker compose down -v # stop and delete all data\n```\n\n## When something fails\n\n- `uv run run.py` cannot find `evalkit-py==<version>`: that version is not\n on PyPI yet (a source build, or a build whose publish job has not finished).\n Run it with the wheel you installed instead:\n `uv run --no-project --with "<path to the wheel>[otel]" python run.py`, or\n from an evalkit checkout: `uv run --project <checkout> --extra otel python run.py`.\n Or wait for the publish.\n- `init-server` cannot connect: start Postgres (`brew services start\n postgresql@17`, `sudo systemctl start postgresql`, or Postgres.app), or\n pass `--database-url` with the user and password your Postgres needs, e.g.\n `postgresql+psycopg://me:secret@localhost:5432/evalkit`.\n- `init-server` says `config.yaml` exists: you already set up that folder.\n Run `evalkit serve` there, or pass `--force` to write it again.\n- `evalkit serve` says a variable is not set: check `.env` beside\n `config.yaml`.\n- Compose says a variable is not set: fill in `.env` (copied from\n `.env.example`).\n- Compose cannot find `evalkit:try`: outside a checkout, set `EVALKIT_IMAGE`;\n in a checkout, add `--build`.\n- The server will not start: `docker compose logs server` (and\n check that `.env` is filled in: the server reads the LLM settings at start).\n- The server exits with code 132 and no logs (Apple Silicon): the image is\n older than 0.22.0. Add `OPENSSL_armcap: "0"` to the server\'s\n `environment:` in `docker-compose.yml`, or use a newer image.\n- The judge fails on every case: your endpoint must support structured\n output (`response_format` with a JSON schema). Try another model.\n- `evalkit` or `run.py` talks to another server: run the `evalkit login` above\n again, or check `EVALKIT_SERVER_URL`.\n'},{id:`install`,label:`Install`,group:`Get started`,body:'# Install\n\nevalkit is one Python package on PyPI, `evalkit-py`. It holds the `evalkit` command (the CLI), the `evalkit.sdk` module for SDK runs and, with the `server` extra, the server itself.\n\nYour CLI and SDK must run the **same version as the evalkit server** you use: local runs and SDK runs refuse to start otherwise. The commands on this page pin version **{{version}}**. On your server\'s own `/docs/install` page, that is the server\'s version; `curl <server url>/api/cli` prints it anywhere.\n\n## The CLI, as a global tool\n\n```bash\nuv tool install --reinstall "evalkit-py=={{version}}"\n```\n\nWith pipx instead: `pipx install --force "evalkit-py=={{version}}"`.\n\n`curl {{origin}}/api/cli` prints the server\'s version, for scripts and CI:\n\n```bash\nuv tool install --reinstall "evalkit-py==$(curl -fsSL {{origin}}/api/cli | jq -r .version)"\n```\n\n## The SDK, into a project\n\n`run_experiment` and `tracing.register` live in the same package as the CLI. The `otel` extra brings the OpenTelemetry SDK and the OTLP exporter. Pin the server\'s version; `uv.lock` records it:\n\n```bash\nuv add "evalkit-py[otel]=={{version}}"\n```\n\nWith pip instead: `pip install "evalkit-py[otel]=={{version}}"`.\n\nTo keep evalkit out of the app\'s dependencies, run the eval script with it instead:\n\n```bash\nuv run --with "evalkit-py[otel]=={{version}}" python eval/run.py\n```\n\n## The server\n\n`pip install "evalkit-py[server]"` installs the server too: the API, the web UI and migrations. To run one on your machine against a Postgres you already have:\n\n```bash\nevalkit init-server # creates the database, writes config.yaml and .env in ./evalkit-try\ncd evalkit-try && evalkit serve\n```\n\n[Try locally](try-locally.md) walks through it with a sample agent; the evalkit-deployment skill covers running a server for a team.\n\n## Updating\n\nEvery API response carries `X-Evalkit-Version`. The CLI warns when it differs from the server and refuses when the major versions differ. Local runs and SDK runs refuse any difference, so after a server deploy, from the project\'s root:\n\n```bash\nevalkit update\n```\n\nIt reinstalls the CLI at the server\'s version and, when `pyproject.toml` pins `evalkit-py==…`, moves the pin and runs `uv sync`. It then refreshes the skills in every directory `evalkit skills install` wrote to on this machine (listed in `~/.evalkit/skills-targets`), and in `./.claude/skills` or `./.agents/skills` if they hold an earlier install; commit the changes in repos that track the skills. Pass `--no-skills` to skip that.\n\nA project that vendored an evalkit wheel before evalkit was on PyPI moves to PyPI once: `uv remove evalkit && uv add "evalkit-py[otel]=={{version}}"`.\n\nNext: [Login](login.md).\n'},{id:`login`,label:`Login`,group:`Get started`,body:`# Login
|
|
211
|
+
|
|
212
|
+
\`\`\`bash
|
|
213
|
+
evalkit login --url {{origin}}
|
|
214
|
+
\`\`\`
|
|
215
|
+
|
|
216
|
+
The command asks for your username and password and stores the server URL and your token in \`~/.evalkit/config.toml\`. The CLI talks to one server at a time: logging in again, to the same server or another, replaces the stored login. Dev and prod are workspaces on one server (\`finance@dev\`, \`finance@prod\`), not separate logins.
|
|
217
|
+
|
|
218
|
+
Tokens expire after the TTL the deployer configured (30 days by default). \`evalkit whoami\` shows who the token logs in as and when it expires, and exits 1 if the server rejects it; run it before a long run. Commands that talk to the server warn when the token expires within a day. When commands start failing with 401, log in again.
|
|
219
|
+
|
|
220
|
+
## Scripts and CI
|
|
221
|
+
|
|
222
|
+
Two environment variables bypass the config file:
|
|
223
|
+
|
|
224
|
+
\`\`\`bash
|
|
225
|
+
export EVALKIT_SERVER_URL={{origin}}
|
|
226
|
+
export EVALKIT_TOKEN=<token>
|
|
227
|
+
\`\`\`
|
|
228
|
+
|
|
229
|
+
A stored token expires, so CI jobs should log in at the start of every run with a password from the secret store:
|
|
230
|
+
|
|
231
|
+
\`\`\`bash
|
|
232
|
+
evalkit login --url "$EVALKIT_SERVER_URL" --username admin --password "$EVALKIT_ADMIN_PASSWORD"
|
|
233
|
+
\`\`\`
|
|
234
|
+
|
|
235
|
+
## Timeout
|
|
236
|
+
|
|
237
|
+
The CLI and the SDK wait up to 120 seconds for each server call. Set \`EVALKIT_TIMEOUT\` (seconds) to wait longer, for example on a slow network:
|
|
238
|
+
|
|
239
|
+
\`\`\`bash
|
|
240
|
+
export EVALKIT_TIMEOUT=300
|
|
241
|
+
\`\`\`
|
|
242
|
+
|
|
243
|
+
It covers calls to the evalkit server only. The server's own calls to an agent's harness keep their fixed limits, and so does \`evalkit harness check\`.
|
|
244
|
+
|
|
245
|
+
The SDK uses the same login and the same two variables. A deployed agent that only exports traces uses an agent token instead; see [Tracing](tracing.md).
|
|
246
|
+
`},{id:`config`,label:`Config`,group:`Get started`,body:"# Config: `evalkit.yaml`\n\n`evalkit.yaml` sits at the root of the repository that holds your eval cases or your agent. The CLI and the SDK look for it above the current directory. It names the case and fixture directories and the API keys the runs from this machine use.\n\n```yaml\ncases: eval/cases # optional: directory whose children are datasets\nfixtures: eval/fixtures # optional: fixture bytes, flat, keyed by filename\n\ncredentials: # values are env:NAME, read when a run needs them\n agents:\n myagent: env:MYAGENT_KEY # a bare name means your own workspace\n evaluators:\n citation_check: env:EVALUATOR_KEY\n llm_providers:\n https://litellm.example.com: env:LITELLM_API_KEY # keyed by the judge's base URL\n```\n\nOnly your personal Harness API agents use `credentials.agents` here. The server drives shared agents (`ouragent@dev`) with the keys stored in its database, so an entry for one in `evalkit.yaml` is never read. The same holds for shared remote evaluators.\n\nPut the values in a `.env` file next to `evalkit.yaml` (and keep it out of git), or in your shell. A variable set in the shell wins over `.env`.\n\nAgents, remote evaluators and the judge are not configured here:\n\n- **Agents** are created once on the server with `evalkit agents create` (or on the Agents page). A personal agent runs from your machine; a shared one is driven by the server. An agent without a harness URL is code-driven: only `run_experiment` can run it. See [SDK runs](sdk-runs.md).\n- **Remote evaluators** are created with `evalkit evaluators create`. A run uses the evaluators in its agent's workspace.\n- **The judge** of an experiment is the server's default judge (an admin sets it with `evalkit judge-default set`) unless you pick one: `evalkit run … --judge-model M --judge-base-url URL --judge-effort E`, the run dialog's \"Judge provider\" picker, or `run_experiment(judge=Judge(...))`. Re-evaluating an experiment always reuses its judge.\n\nRules:\n\n- `env:NAME` values are read only when a command needs them. A missing variable is an error that names it.\n- An agent or evaluator with no `credentials` entry is called without a key, and the run prints one line saying so. A judge with no entry stops the run before its first case: `no credentials.llm_providers entry for <url>`.\n- `credentials.judges` is now `credentials.llm_providers`. A file that still uses the old name fails to load.\n- An `llm_providers` key may itself be `env:NAME` (`env:LLM_BASE_URL: env:LLM_API_KEY`), so the judge's base URL can come from the environment too. A key whose variable is unset is skipped.\n- `cases` and `fixtures` are optional. Leave them out when you only run shared datasets, for example from `run_experiment`. Commands that need them say so:\n - `evalkit sync <name>` and `evalkit run <name>` on a dataset in your workspace need `cases` to find `<cases>/<name>`. Passing the dataset's directory instead (`evalkit sync eval/cases/finance`) works without it.\n - A sync uploads fixture bytes from `fixtures`. Without it, a case whose fixture the server does not already hold fails the sync with `E-FIXTURE-MISSING`.\n - `run_experiment` on a dataset in your workspace skips the sync without `cases` and runs the copy the server holds.\n - Fixtures a run downloads go to `fixtures`, or to a temporary directory when it is not set.\n"},{id:`workspaces`,label:`Workspaces`,group:`Get started`,body:`# Where runs happen
|
|
247
|
+
|
|
248
|
+
Every dataset and agent lives in a workspace:
|
|
249
|
+
|
|
250
|
+
- **Personal workspace:** one per user, named after the username. Only the owner writes to it.
|
|
251
|
+
- **Shared workspace:** created by an admin, e.g. \`dev\` and \`prod\`. Members with the writer role write to it; reviewers approve its cases.
|
|
252
|
+
- **Who can read:** every logged-in user can read every workspace, including other users' personal workspaces: datasets, cases, experiments, runs, trajectories, spans and sessions, and fixtures. Only the owner writes to a personal workspace; admins and writers write to a shared one. The web UI marks someone else's personal workspace "read-only".
|
|
253
|
+
- **Traces are visible too:** traces you import or export into your personal workspace, such as production traces pulled for case mining, can be read by everyone on the server. No workspace setting keeps them private. If traces hold data some users must not see, scrub it in your agent before export, or run a separate evalkit server for those traces. A mapping's \`exclude_spans\` does not help here: the server stores spans as received and only skips them when it builds a trajectory.
|
|
254
|
+
- **Promotion:** an admin can link two shared workspaces (\`evalkit workspaces promote-to dev prod\`). Approving a case in \`finance@dev\` then adds that version to \`finance@prod\`, approved, with its overlays. \`prod\` is fed only by promotion: sync and review decisions there are refused, comments allowed. Create each target dataset once with \`evalkit datasets create finance@prod\`. One target per source, one source per target.
|
|
255
|
+
|
|
256
|
+
The agent you pick decides who drives the run. The dataset and the agent together decide where the experiment is stored:
|
|
257
|
+
|
|
258
|
+
- **Both shared:** the experiment lives in the dataset's workspace.
|
|
259
|
+
- **Otherwise:** it lives in your personal workspace.
|
|
260
|
+
|
|
261
|
+
Example with workspaces \`@alice\` (personal), \`@dev\` and \`@prod\` (shared).
|
|
262
|
+
\`myagent\` is alice's personal agent; \`ouragent\` is the team's deployed agent,
|
|
263
|
+
with one entry per shared workspace.
|
|
264
|
+
|
|
265
|
+
| # | Who / entry | Dataset | Agent | Driver | Agent runs on | Trajectory from | Experiment in | Use case |
|
|
266
|
+
| --- | --------------------------------------------------------------- | ---------------------------- | --------------------------------- | -------------- | ------------------ | ------------------------------------- | ------------- | --------------------------------------------------- |
|
|
267
|
+
| 1 | alice, SDK \`run_experiment(dataset="finance", agent="myagent")\` | finance@alice | myagent@alice (code-driven) | alice's Python | laptop, in-process | OTel → collector → server builds ATIF | @alice | EDD inner loop (default) |
|
|
268
|
+
| 2 | alice, \`evalkit run finance --agent myagent\` | finance@alice | myagent@alice (localhost harness) | alice's CLI | laptop | harness ATIF → CLI → server | @alice | a Harness API agent on this machine |
|
|
269
|
+
| 3 | alice, \`evalkit run finance@prod --agent myagent\` | finance@prod (approved only) | myagent@alice | alice's CLI | laptop | harness ATIF → CLI → server | @alice | does a local change break the released set |
|
|
270
|
+
| 4 | alice, \`evalkit run finance --agent ouragent@dev\` | finance@alice | ouragent@dev | server | dev cluster | harness ATIF or OTel | @alice | try new cases on the deployed dev agent |
|
|
271
|
+
| 5 | anyone, UI or \`run finance@dev --agent ouragent@dev\` | finance@dev | ouragent@dev | server | dev cluster | harness ATIF or OTel | @dev | regression after a deploy or merge |
|
|
272
|
+
| 6 | anyone, \`run finance@dev --agent ouragent@prod\` | finance@dev | ouragent@prod | server | prod cluster | harness ATIF or OTel | @dev | does prod pass cases approved in dev |
|
|
273
|
+
| 7 | anyone, UI or \`run finance@prod --agent ouragent@prod\` | finance@prod | ouragent@prod | server | prod cluster | harness ATIF or OTel | @prod | release gate |
|
|
274
|
+
| 8 | deployed ouragent with an agent token | none | ouragent@prod | none | prod cluster | OTel → collector, browsed in Runs | none | trajectory debugging of deployed traffic (optional) |
|
|
275
|
+
| ✗ | anyone, server or UI, \`--agent myagent@alice\` | any | myagent@alice | refused | | | | the server cannot reach a laptop |
|
|
276
|
+
| ✗ | bob, \`--agent myagent@alice\` | any | myagent@alice | refused | | | | only the owner runs a personal agent |
|
|
277
|
+
|
|
278
|
+
## Several branches
|
|
279
|
+
|
|
280
|
+
- \`evalkit run\` syncs the dataset directory first. The dataset in your
|
|
281
|
+
workspace then matches whichever branch ran last, and the dataset page shows
|
|
282
|
+
that sync's branch and sha.
|
|
283
|
+
- An experiment pins its case versions when it starts. A sync from another
|
|
284
|
+
branch never changes a running or finished experiment. Cases removed by that
|
|
285
|
+
sync are soft-removed, and pinned versions remain.
|
|
286
|
+
- Fixture bytes are content-addressed, so two branches never overwrite each
|
|
287
|
+
other's bytes under the same key.
|
|
288
|
+
- \`--resume\` does not sync, and runs the pinned versions, so it is safe from any
|
|
289
|
+
branch.
|
|
290
|
+
- Agent config is one row per agent, not per branch.
|
|
291
|
+
`},{id:`sdk-runs`,label:`SDK runs`,group:`Traces`,body:'# SDK runs\n\n`run_experiment` runs an experiment from your own code: it calls your task once per case and repetition, stores the runs on this server, and scores them with the judge, the remote evaluators of the agent\'s workspace and any Python evaluators you pass. The agent is a code-driven agent on the server (no harness URL), created once with `evalkit agents create`. Invoking the agent, timeouts and stopping are your code.\n\n```python\n# eval/run.py — uv run python eval/run.py\nfrom evalkit.sdk import run_experiment, RunResult, evaluator, tracing\nfrom myagent import MyAgent, setup_tracing\n\nsetup_tracing() # your own OpenTelemetry provider and instrumentors\ntracing.register(agent="myagent-sdk") # add this server as an export destination\nagent = MyAgent()\n\ndef task(input: dict, files: list) -> str:\n return agent.ask(input["question"], attachments=[f.path for f in files])\n\n@evaluator(name="citation_check")\ndef citation_check(case, run) -> float:\n cited = {c["url"] for c in (run.output or {}).get("citations", [])}\n return 1.0 if cited >= set(case.config["required"]) else 0.0\n\nif __name__ == "__main__":\n result = run_experiment(dataset="finance", agent="myagent-sdk", task=task,\n evaluators=[citation_check], concurrency=4)\n print(result.url)\n```\n\n## The task\n\nA sync or async callable. Parameters bind **by name** from this set, so their order does not matter; any other required parameter is an error before the first call, and an optional one keeps its default.\n\n| Parameter | Value |\n| ---------- | --------------------------------------------------------------------- |\n| `input` | the case input, verbatim, minus `files` |\n| `files` | `list[Fixture]`, the case\'s fixture files, downloaded before the call |\n| `model` | the `model` argument of `run_experiment`, or `None` |\n| `metadata` | a dict with the keys below |\n\nA `Fixture` has:\n\n- `name`: the fixture key the case names.\n- `path`: where the file sits on this machine.\n- `context`: the file\'s description from the fixture registry, or `None`. A Harness API agent gets the same text with each file; show it to your agent the same way (for example an "Attached files" block ahead of the question).\n\n`metadata` holds:\n\n- `session_id`: the SDK\'s session id for this run, the `session.id` of its `evalkit.run` span.\n- `experiment_id`: the experiment, or `None` on a dry run.\n- `case_id`: the case.\n- `repetition`: 1 for the first repetition, 2 for the second, and so on.\n- `tags`: the case\'s tags.\n\n`model` is the only way `run_experiment(model=...)` reaches your agent. The experiment records the requested model either way, so a task without a `model` parameter would silently run the agent\'s default; `run_experiment` prints a warning before the first call when that happens.\n\nA task with exactly one parameter whose name is not in the table (`def task(q)`) receives the input. Return a `str` (the answer), a `dict` (the structured output) or a `RunResult`:\n\n```python\nfrom evalkit.sdk import RunResult\n\nRunResult(answer="…", output={"citations": []}, model="gpt-5",\n session_id="…", # override the session the SDK polls\n trajectory={...}) # push an ATIF document instead of tracing\n```\n\nA task that raises records the run as `failed` with the exception and the experiment continues.\n\n## An agent in another process\n\nThe SDK stamps `session.id` and the `evalkit.*` attributes only on spans made in this Python process. An agent behind HTTP or a job queue, or written in another language, joins the run in one of two ways. Pick one, not both.\n\n- **Continue the trace.** Inject the W3C trace context into the request and have the agent start its spans from it. Every span in a trace belongs to the session of the trace\'s root, the SDK\'s `evalkit.run` span, even if the agent stamps its own `session.id` or `gen_ai.conversation.id`.\n\n ```python\n from opentelemetry import propagate\n\n def task(input: dict) -> str:\n headers: dict[str, str] = {}\n propagate.inject(headers) # adds traceparent\n return httpx.post(AGENT_URL, json=input, headers=headers).json()["answer"]\n ```\n\n- **Return the agent\'s session.** The agent puts its own session id on its root span as `session.id`, and the task returns it. Use this when the trace context cannot reach the agent, for example through a queue. The SDK moves its `evalkit.run` span into that session, so no empty session is left behind, and the trajectory is built from the agent\'s trace.\n\n ```python\n def task(input: dict) -> RunResult:\n job = agent_api.start(input["question"]) # your API returns the session it opened\n return RunResult(answer=job.wait(), session_id=job.session_id)\n ```\n\n If your API cannot tell you the session id, send it one instead: pass `metadata["session_id"]` along with the job and have the agent use it as its session id (or wrap the job in `tracing.eval_run(metadata)`, see [Tracing](tracing.md)). Its spans then join the SDK\'s session and the task returns only the answer.\n\n ```python\n def task(input: dict, metadata: dict) -> str:\n return queue.submit(input["question"], session_id=metadata["session_id"]).wait()\n ```\n\nEither way the Runs page links the session to its experiment and case.\n\nThe agent\'s exporter needs its own token. Mint one with `evalkit tokens create --agent <name>`; it never expires. Your login token expires, and an exporter that holds it then drops every span with nothing but a line in its own log.\n\n## Datasets and workspaces\n\n- `dataset="finance"` runs your own workspace\'s copy; if `finance` is a directory under `cases` it is synced first.\n- `dataset="finance@dev"` or `dataset="finance", workspace="dev"` runs the shared cases, every review state included.\n- `case_ids=[...]`, `split="..."`, `repetitions`, `model` and `resume=<experiment id>` mean what the same options mean on `evalkit run`.\n- `dry_run=True` runs one case (`dry_run=N` runs N) without creating an experiment and prints the answer and what the server made of the session. If the server cannot read a session, that case prints a `trajectory read failed` line and the dry run goes on. Use it while wiring up tracing; the session shows on the Runs page with its case question and case id.\n\n## Notebooks\n\n`run_experiment` refuses to run inside a running event loop. In a notebook use the async form:\n\n```python\nfrom evalkit.sdk import arun_experiment\n\nresult = await arun_experiment(dataset="finance", agent="myagent-sdk", task=task)\n```\n\n## The agent and the judge\n\n`agent="myagent-sdk"` names an agent on the server; a bare name means your own workspace. Create it once:\n\n```bash\nevalkit agents create myagent-sdk --trajectory-source otel --mapping openinference.json \\\n --max-concurrent-runs 4 --provides thinking=true\n```\n\nIts `answer` rule and `exclude_spans` live in its span mapping. `evalkit.yaml` is still required; it holds the cases, fixtures and credentials.\n\nThe judge is the server\'s default unless you pass one:\n\n```python\nfrom evalkit.sdk import Judge, run_experiment\n\nrun_experiment(dataset="finance", agent="myagent-sdk", task=task,\n judge=Judge(base_url="https://litellm.example.com", model="gpt-5"))\n```\n\nAn admin sets the default judge with `evalkit judge-default set`. Either way, the SDK reads the judge\'s key from `credentials.llm_providers` in `evalkit.yaml`, keyed by the judge\'s base URL.\n\n## Capabilities\n\nA code-driven agent has no `GET /capabilities`, so evalkit writes its capabilities onto each experiment itself: `trajectory`, `tool_calls`, `token_usage` and `run_listing` are true; `thinking`, `artifacts` and `workspace` are false. Evaluators gated on a capability skip when it is false. evalkit does not read capabilities from the spans. Set `provides` on the agent (`evalkit agents create --provides`, or `evalkit agents edit`) to declare what it really does, for example `thinking: true` when its spans carry the model\'s reasoning. Declare only what works: a false `true` produces failing scores blamed on the agent.\n\n## Python evaluators\n\n`@evaluator(name=..., kind="evaluator" | "gauge", requires_trajectory=False)` turns a function into an evaluator. It receives the same `EvalCase` and `EvalRun` the HTTP Custom Evaluator API sends: the case id, input, expected block and this evaluator\'s config from the case YAML; the answer, structured output and the ATIF trajectory as a dict. Return a float, a `ScoreItem`, or a list of them. A case selects it by name under `evaluators.custom`, exactly like an HTTP evaluator.\n\n## Bring your own benchmark\n\nA published benchmark is a suite plus a Python evaluator:\n\n1. Write a script that turns the benchmark\'s file into case YAML. Each case gets the question as `input`. Its grading data (rubrics, reference answer) goes under `evaluators.custom.<grader name>`.\n2. `evalkit sync <dir>` puts it in a dataset like any suite.\n3. Write the grader as an `@evaluator` with that name. It reads the grading data from `case.config`, and calls its own judge models if it needs any. Pass it to `run_experiment`.\n\n`evalkit lint` and `evalkit sync` warn with `W-CUSTOM-UNKNOWN` for the grader name, because the server can\'t see a Python evaluator. That warning is expected.\n\n## Re-scoring\n\nPython evaluators live in your script, so a re-score that needs them starts from the script:\n\n```python\nfrom evalkit.sdk import evaluate_experiment\n\nevaluate_experiment(experiment_id="…", evaluators=[citation_check],\n refetch_trajectories=True)\n```\n\n`refetch_trajectories` polls the collector again for runs whose trajectory was `partial` or `unavailable` and re-scores them. `evalkit evaluate` refuses experiments that used Python evaluators and points here.\n\nNext: [Tracing](tracing.md).\n'},{id:`tracing`,label:`Tracing`,group:`Traces`,body:"# Tracing\n\nThe collector is an OTLP/HTTP endpoint on this server:\n\n```\nPOST {{origin}}/api/otel/v1/traces\n```\n\nIt accepts `application/x-protobuf` and `application/json`, gzip or not, from any OpenTelemetry SDK. Spans are stored as received and converted to ATIF with the agent's mapping when a run or the Runs page asks for them.\n\n## From Python with the SDK\n\n```python\nfrom evalkit.sdk import tracing\n\ntracing.register(agent=\"myagent-sdk\")\n```\n\n`register` adds an exporter for this server to your global tracer provider, creating one if none is set. Your existing exporters keep running. The exporter carries an `X-Evalkit-Agent` header, which names the agent on the server; the `evalkit.agent` resource attribute is only set when `register` creates the provider itself. It reads the server URL from `EVALKIT_SERVER_URL` or your `evalkit login`, and the token from `EVALKIT_OTEL_TOKEN` (an agent token), then `EVALKIT_TOKEN`, then your `evalkit login`. It needs the `otel` extra.\n\n### An existing span pipeline\n\n`register` changes the global provider. When you build your own pipeline, take evalkit's parts and put them where you need them:\n\n```python\nfrom evalkit.sdk import tracing\n\nexporter = tracing.exporter(agent=\"myagent-sdk\") # OTLPSpanExporter: URL, token and X-Evalkit-Agent set\nprocessor = tracing.processor(agent=\"myagent-sdk\") # batch processor around that exporter\nprovider.add_span_processor(processor) # what register does for you\nheaders = tracing.headers(agent=\"myagent-sdk\") # the same headers, for an exporter you build yourself\n```\n\nAll three resolve the server and token the same way `register` does. `processor` also stamps the run's `session.id` and `evalkit.*` attributes on spans that start under a task call (or under `tracing.eval_run`, below).\n\nSpans handed straight to a processor or exporter, for example by a bridge that converts another tool's spans, never pass through the provider, so `register` cannot see them. Hand them to `tracing.processor(...)` too: give the bridge that processor, or one processor that fans out to all of yours and evalkit's (OpenTelemetry's `SynchronousMultiSpanProcessor`). Those spans are already finished, so `processor` cannot stamp them: the bridge copies `session.id` onto each span it converts. How eval-only export treats them is below.\n\n### Choosing what a shared worker exports\n\nA worker that serves both app runs (production, staging or manual use) and eval runs exports every span it makes, so every app turn also becomes a session on this server, which you can browse on the Runs page and pull with `evalkit runs pull <agent> --source app`. Whether to send app traffic is your choice. `eval_run` marks eval runs either way, and to send only those, filter on the mark:\n\n```python\nfrom evalkit.sdk import tracing\n\nprovider.add_span_processor(tracing.processor(agent=\"myagent\", only=tracing.is_eval_span))\n\ndef handle_job(job):\n if job.evalkit: # the task's metadata, sent along with the job\n with tracing.eval_run(job.evalkit):\n return run_agent(job)\n return run_agent(job)\n```\n\nThe task passes its `metadata` argument along with the job (see [SDK runs](sdk-runs.md)). `eval_run` stamps `session.id` (the SDK's session id), `evalkit.case_id`, `evalkit.experiment_id` and `evalkit.repetition` on every span started inside it, so the worker's spans join the run's session and the task returns only the answer. `is_eval_span` is true for a span that carries `evalkit.case_id`. The stamp lives in a context variable: spans started in another thread need that thread to run inside `eval_run` too.\n\nA harness agent learns that a run is an eval run from the `metadata` of `POST /runs`: `experiment_id`, `case_id` and `repetition`. That is what it passes to `eval_run`, with the `run_id` it returns as the session id: `tracing.eval_run({**metadata, \"session_id\": run_id})`.\n\n`only` decides by trace, not by span. It is any function that takes a span and returns a bool, and it runs on each span as the span starts and again as it ends. Once it is true for one span, the processor keeps every span of that span's trace that reaches it: spans started inside `eval_run`, the job's own spans started before `eval_run` in the same trace, and finished spans a bridge hands straight to the processor. Spans of other traces are dropped. A custom `only` picks whole traces the same way.\n\nThe rule for order: a span is kept when its trace is already marked by the time the span ends. The first span started inside `eval_run` marks its trace as it starts, before anything under it ends, so spans that end before it and spans a bridge hands over later are both kept. A span that ends before any span of its trace was marked is dropped. A bridge that may hand spans over that early can copy the `evalkit.*` attributes onto them, so each one marks its own trace. A bridge should copy `session.id` either way: the server takes a trace's session from its root span when the root reaches it, and from each span's own `session.id` otherwise.\n\nThe processor remembers the 10,000 most recently used eval traces and forgets the oldest. Each kept span refreshes its trace, so a trace is only forgotten once 10,000 other eval traces have been used since its last span.\n\nSpans from another process in the same trace, such as an MCP gateway pod the agent calls, never reach this processor. They go through that process's own exporter, so that process makes its own choice: either it continues the trace, wraps its work in `eval_run` with the run's metadata sent along with the request, and filters with `only=tracing.is_eval_span` too, or it exports everything.\n\nDo not use a sampler for this: a sampler drops spans for every exporter, your own backend included.\n\nAround every task call the SDK opens a root span named `evalkit.run` with `session.id` set to the run id, and stamps `session.id`, `evalkit.experiment_id`, `evalkit.case_id` and `evalkit.repetition` onto every span your code starts underneath it. That is what groups a trace into one session. When the task returns `RunResult(session_id=...)`, the root span takes that session id instead, so it joins the agent's session rather than sitting alone; see [SDK runs](sdk-runs.md) for agents in another process.\n\n## From any OpenTelemetry SDK\n\nPoint the exporter at the collector and name the agent, either with a header or an attribute:\n\n```bash\nexport OTEL_EXPORTER_OTLP_TRACES_ENDPOINT={{origin}}/api/otel/v1/traces\nexport OTEL_EXPORTER_OTLP_HEADERS=\"Authorization=Bearer <token>,X-Evalkit-Agent=myagent\"\nexport OTEL_RESOURCE_ATTRIBUTES=\"evalkit.agent=myagent\" # alternative to the header\n```\n\nThe collector picks the agent per span: the span's `evalkit.agent` attribute first, then the resource's, then the `X-Evalkit-Agent` header. One process that serves several agents can therefore share one exporter and set `evalkit.agent` on each agent's spans. The value is an agent reference (`myagent` or `myagent@workspace`). Every agent a batch names is checked as if it came in the header: an agent token writes only its own agent, a login token only agents in workspaces you can write to (your own, or a shared one where you are a writer). If any span names an agent the token may not write, the whole batch is refused.\n\nPut the session id on the root span of each trace, in the attribute your mapping's `session_id` rule names (`session.id` in `openinference.json`, `gen_ai.conversation.id` in `gen_ai.json`). Every span in a trace belongs to the session of the trace's root, even one that carries a session attribute of its own. Only when the root has no session do child spans keep theirs.\n\n## Deployed agents\n\nA service cannot carry a person's token. Mint an agent token, bound to one agent and valid only for the collector:\n\n```bash\nevalkit tokens create --agent ouragent@dev # needs writer on dev\nevalkit tokens list\nevalkit tokens revoke <id>\n```\n\nSet it on the deployment as `EVALKIT_OTEL_TOKEN` next to `EVALKIT_SERVER_URL`; `tracing.register`, `tracing.exporter` and `tracing.processor` pick both up. For a non-Python exporter put it in `OTEL_EXPORTER_OTLP_HEADERS`. Use an agent token for any exporter outside the process that calls `run_experiment` too, even on your laptop: the login token expires under a long-running worker.\n\nThe collector logs every refused export as `otel export rejected` with the status, the reason (`expired token`, `invalid token`, `unknown agent`, `forbidden`, `too large`, `malformed`) and the agent. OpenTelemetry exporters only log a failed export on their side, so a silent agent is worth checking in both logs.\n\n## Size limits and large spans\n\nLLM spans from OpenInference and GenAI instrumentations carry the full input of each call: the messages so far, the system prompt and the tool schemas. Every turn repeats the whole context, so a long agent session grows with roughly the square of its turns. A 14-minute chat with subagents can store hundreds of MB of span attributes.\n\nThe server has two limits, both set in its config:\n\n| Limit | Default | What happens past it |\n| ------------------------ | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `otel.max_batch_bytes` | 16 MiB | One export request (after gzip is undone) gets `413` and its spans are dropped. Exporters do not split a refused batch, so keep batches small. |\n| `otel.max_session_bytes` | 384 MiB | Reading the session (a run's trajectory, `evalkit traces check`, the Mappings tab) gets `413` with the session's size and the limit. A run records the trajectory as `unavailable` and logs the message. `--dump spans.json` still works. |\n\n`otel.max_session_bytes` counts the span attributes a trajectory build loads, not everything stored. evalkit reads the input messages (and system prompt) of an LLM span only for the first LLM call of each agent and subagent; later calls add only their output, tool calls and tokens to the trajectory. So the build leaves the input of every later LLM call in the database and does not count it. The limit keeps one session from using up the server's memory, so raise it only together with the server's memory limit.\n\nFor agents with large spans, send fewer spans per export and give each export more time. For the Python SDK, `tracing.register` included:\n\n```bash\nexport OTEL_BSP_MAX_EXPORT_BATCH_SIZE=16 # spans per export; default 512\nexport OTEL_BSP_MAX_QUEUE_SIZE=2048 # spans waiting for export; raise it if the exporter logs \"Queue full\"\nexport OTEL_EXPORTER_OTLP_TIMEOUT=60 # seconds per export in Python; default 10\n```\n\nOther SDKs follow the OpenTelemetry spec and read `OTEL_EXPORTER_OTLP_TIMEOUT` in milliseconds (`60000`). A 10 MB span can take more than 10 s to upload, longer than the default timeout. In an OpenTelemetry Collector, set `send_batch_max_size` on the `batch` processor and `timeout` on the `otlphttp` exporter instead.\n\n## Exporting to evalkit and another backend\n\nThe standard OTLP variables name one endpoint. To keep exporting to your tracing backend and send the same spans here, either:\n\n- add a second `otlphttp` exporter to the OpenTelemetry Collector the agent already exports to (recommended for deployed agents), or\n- add a second span processor and exporter in code. `tracing.register` does this for Python.\n\n```yaml\nexporters:\n otlphttp/evalkit:\n traces_endpoint: {{origin}}/api/otel/v1/traces\n headers:\n Authorization: Bearer ${env:EVALKIT_OTEL_TOKEN}\n X-Evalkit-Agent: ouragent@dev\nservice:\n pipelines:\n traces:\n exporters: [otlp/existing, otlphttp/evalkit]\n```\n\nThe collector speaks OTLP over HTTP only, not gRPC. Bodies may be chunked with no `Content-Length` (the JavaScript exporter sends them that way); a proxy in front of the collector must allow that.\n\n## The main agent and subagents\n\nMark the agent's top-level span as an AGENT span (`openinference.span.kind=AGENT`, or `gen_ai.operation.name=invoke_agent`). evalkit builds the main trajectory from it, and every AGENT span inside it becomes a subagent trajectory named by the span's `agent.name` (`gen_ai.agent.name`), or by the span name when that is missing. When the root span is not an AGENT span, as with the SDK's `evalkit.run` span, evalkit takes the earliest AGENT span that is not inside another one as the main agent. If that span is a tool call that starts a subagent partway through the run, the subagent's steps land in the main trajectory and the call has no result, so mark the top-level span as an AGENT span rather than relying on this.\n\n## Harness agents with traces\n\nA harness agent created with `--trajectory-source otel` keeps the whole Harness API flow and skips `GET /runs/{id}/trajectory`: it puts the run id it returned on its spans, in the attribute its mapping's `session_id` rule names, and evalkit polls the session until it settles. The harness declares `provides.trajectory: false`; evalkit still runs the trajectory evaluators because the trajectory comes from the collector.\n\nThe session evalkit polls is the `run_id` that `POST /runs` returns, so there is no separate session field. A queue-backed agent whose worker picks its own session id returns that id as `run_id`, or puts the `run_id` it returned on its spans in that session attribute. To export only eval runs from a harness that also serves production, see Choosing what a shared worker exports above.\n\n## Importing history from a trace source\n\nAn admin registers a trace source (a Phoenix server) once. After that, any\nuser can import traces from it into an OTel agent they can write, with\n`evalkit traces import` or the agent page's Import tab.\n\n- The trace source's API key is shared with every user in effect: anyone can\n import any project that key can read.\n- Imported traces land in the agent's workspace. Every user can read every\n workspace, so traces imported into your personal workspace are visible to\n everyone on the server. See [Where runs happen](workspaces.md).\n\n## Checking a session\n\n```bash\nevalkit traces check myagent-sdk <session id>\n```\n\nprints the settle state, span kinds, tokens, the attributes the mapping did not read and the ATIF summary. `--dump spans.json` writes the raw spans. `--dump esf.json` leaves out the input messages of every LLM call after each agent's first, as the trajectory does not use them; `spans.json` has the raw values. A session over `otel.max_session_bytes` fails the check with its size and the limit (see Size limits and large spans above). If the kinds or messages look wrong, the agent needs a mapping: see [Mappings](mappings.md).\n"},{id:`mappings`,label:`Mappings`,group:`Traces`,body:`# Mappings
|
|
292
|
+
|
|
293
|
+
A mapping tells evalkit which span attribute holds each field of the evalkit span format (ESF): the span kind, the session id, the model, the messages, the token counts, the tool name and call id. It also says where the run's answer comes from (\`answer\`) and which spans to leave out (\`exclude_spans\`).
|
|
294
|
+
|
|
295
|
+
Every agent whose trajectories come from traces has its own mapping. \`evalkit agents create NAME --trajectory-source otel --mapping FILE\` makes the first version active. Start from the \`connect-traces\` skill's \`openinference.json\` or \`gen_ai.json\`, which cover agents on the OpenInference or GenAI semantic conventions as they are. Spans that reach an agent with no active mapping are stored without a session id.
|
|
296
|
+
|
|
297
|
+
An existing agent switches between ATIF and traces with \`evalkit agents edit NAME --trajectory-source otel --mapping FILE\` (or \`--trajectory-source atif\`), or from the agent's Edit dialog. Switching to traces without a file reuses the agent's last active mapping. The switch is refused while one of the agent's experiments is running, and experiments that already ran keep the source they ran with.
|
|
298
|
+
|
|
299
|
+
A mapping applies to every span of the agent and is versioned: \`evalkit traces mapping push\` creates a draft, you review the draft against recent sessions on the agent's Mappings tab (Agents → the agent → Mappings), and activate it there. The \`connect-traces\` skill walks a coding agent through writing one.
|
|
300
|
+
|
|
301
|
+
## The document
|
|
302
|
+
|
|
303
|
+
\`\`\`json
|
|
304
|
+
{
|
|
305
|
+
"schema_version": "1",
|
|
306
|
+
"kind": {
|
|
307
|
+
"attribute": "openinference.span.kind",
|
|
308
|
+
"values": {
|
|
309
|
+
"LLM": "llm",
|
|
310
|
+
"TOOL": "tool",
|
|
311
|
+
"AGENT": "agent",
|
|
312
|
+
"CHAIN": "chain",
|
|
313
|
+
"RETRIEVER": "retriever"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"session_id": {
|
|
317
|
+
"attribute": "session.id"
|
|
318
|
+
},
|
|
319
|
+
"model": {
|
|
320
|
+
"attribute": "llm.model_name"
|
|
321
|
+
},
|
|
322
|
+
"input_messages": {
|
|
323
|
+
"attribute": "llm.input_messages",
|
|
324
|
+
"message_format": "openinference"
|
|
325
|
+
},
|
|
326
|
+
"output_messages": {
|
|
327
|
+
"attribute": "llm.output_messages",
|
|
328
|
+
"message_format": "openinference"
|
|
329
|
+
},
|
|
330
|
+
"tokens": {
|
|
331
|
+
"prompt": {
|
|
332
|
+
"attribute": "llm.token_count.prompt"
|
|
333
|
+
},
|
|
334
|
+
"completion": {
|
|
335
|
+
"attribute": "llm.token_count.completion"
|
|
336
|
+
},
|
|
337
|
+
"cached": {
|
|
338
|
+
"attribute": "llm.token_count.prompt_details.cache_read"
|
|
339
|
+
},
|
|
340
|
+
"cache_write": {
|
|
341
|
+
"attribute": "llm.token_count.prompt_details.cache_write"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"cost_usd": {
|
|
345
|
+
"attribute": "llm.cost.total"
|
|
346
|
+
},
|
|
347
|
+
"tool": {
|
|
348
|
+
"name": {
|
|
349
|
+
"attribute": "tool.name"
|
|
350
|
+
},
|
|
351
|
+
"call_id": {
|
|
352
|
+
"attribute": "tool.id"
|
|
353
|
+
},
|
|
354
|
+
"arguments": {
|
|
355
|
+
"attribute": "input.value",
|
|
356
|
+
"json": true
|
|
357
|
+
},
|
|
358
|
+
"result": {
|
|
359
|
+
"attribute": "output.value"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"agent_name": {
|
|
363
|
+
"attribute": "agent.name"
|
|
364
|
+
},
|
|
365
|
+
"input": {
|
|
366
|
+
"attribute": "input.value",
|
|
367
|
+
"json": true
|
|
368
|
+
},
|
|
369
|
+
"output": {
|
|
370
|
+
"attribute": "output.value",
|
|
371
|
+
"json": true
|
|
372
|
+
},
|
|
373
|
+
"known_attributes": [
|
|
374
|
+
"openinference.span.kind",
|
|
375
|
+
"session.id",
|
|
376
|
+
"user.id",
|
|
377
|
+
"metadata",
|
|
378
|
+
"tag.tags",
|
|
379
|
+
"input.mime_type",
|
|
380
|
+
"output.mime_type",
|
|
381
|
+
"llm.provider",
|
|
382
|
+
"llm.system",
|
|
383
|
+
"llm.invocation_parameters",
|
|
384
|
+
"llm.finish_reason",
|
|
385
|
+
"llm.tools.*",
|
|
386
|
+
"llm.token_count.total",
|
|
387
|
+
"llm.token_count.prompt_details.*",
|
|
388
|
+
"llm.token_count.completion_details.*",
|
|
389
|
+
"llm.cost.*",
|
|
390
|
+
"tool.description",
|
|
391
|
+
"tool.parameters",
|
|
392
|
+
"tool.json_schema",
|
|
393
|
+
"agent.name",
|
|
394
|
+
"graph.node.*"
|
|
395
|
+
]
|
|
396
|
+
}
|
|
397
|
+
\`\`\`
|
|
398
|
+
|
|
399
|
+
That is the skill's \`openinference.json\`. Its \`gen_ai.json\` reads \`gen_ai.operation.name\` (\`chat\`, \`execute_tool\`, \`invoke_agent\`, …), \`gen_ai.request.model\`, \`gen_ai.input.messages\` / \`gen_ai.output.messages\` with \`"message_format": "gen_ai"\`, \`gen_ai.usage.input_tokens\` and friends, reads the system prompt from \`gen_ai.system_instructions\`, cache writes from \`gen_ai.usage.cache_creation.input_tokens\` and the agent's name from \`gen_ai.agent.name\`, and sets \`"cost_usd": null\` because the conventions define no cost attribute. Both list the other attributes of their convention under \`known_attributes\`, so \`evalkit traces check\` does not report them as unmapped; entries may be exact keys or globs such as \`llm.tools.*\`.
|
|
400
|
+
|
|
401
|
+
Rule shapes:
|
|
402
|
+
|
|
403
|
+
| Shape | Result |
|
|
404
|
+
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
405
|
+
| \`{"attribute": K}\` | the attribute's value, or null |
|
|
406
|
+
| \`{"attribute": K, "json": true}\` | the value parsed as JSON when it is a string; the string stays when parsing fails |
|
|
407
|
+
| \`{"attribute": K, "values": {...}}\` | the value translated through the table; an unlisted kind becomes \`other\` |
|
|
408
|
+
| \`{"attribute": K, "message_format": F}\` | the messages laid out under \`K\` per format \`F\`: \`openinference\` (flattened indexed keys), \`gen_ai\` (JSON list of messages with parts), \`openai\` (JSON list of chat messages) |
|
|
409
|
+
| \`null\` | never read |
|
|
410
|
+
|
|
411
|
+
Two more fields shape the trajectory: \`answer\` (\`root\`, a span name, or \`<span name>.<output key>\`; default \`root\`) and \`exclude_spans\` (span names left out; default none).
|
|
412
|
+
|
|
413
|
+
Every mapping is complete on its own; there is no inheritance. The schema ships as \`span-mapping-v1.json\` with \`evalkit contracts export\`.
|
|
414
|
+
|
|
415
|
+
## The loop
|
|
416
|
+
|
|
417
|
+
\`\`\`bash
|
|
418
|
+
evalkit traces check myagent <session id> --dump spans.json # read the raw attributes
|
|
419
|
+
evalkit traces mapping push myagent eval/span-mapping.json # upload a draft
|
|
420
|
+
evalkit traces check myagent <session id> --mapping draft # preview with the draft
|
|
421
|
+
evalkit traces mapping list myagent
|
|
422
|
+
\`\`\`
|
|
423
|
+
|
|
424
|
+
Repeat until the unmapped list holds nothing that matters and the counts look right, then activate the draft on the agent's Mappings tab. \`--activate\` on push activates in the same step; a coding agent passes it only when the developer has approved the document.
|
|
425
|
+
|
|
426
|
+
Runs record the mapping version they were converted with; a later mapping change never alters a scored run. The Runs page converts sessions on demand with the active mapping.
|
|
427
|
+
`},{id:`harness-api`,label:`Harness API`,group:`Harness API`,body:"# Harness API\n\nThe Harness API is the HTTP contract a client's agent harness implements so evalkit can drive it: start a run, poll its status, serve its trajectory. Agents in a shared workspace are driven by this server; agents in a personal workspace by `evalkit run` from their owner's machine. The OpenAPI schema ships inside the CLI:\n\n```bash\nevalkit contracts export --target ./contracts # harness-api-v1.json, atif-accepted.json, …\n```\n\nEach endpoint lets evalkit do one thing. Every Harness API has the first three; declare the rest in the capabilities response when you implement them. An agent on the SDK + traces path has no Harness API and none of these endpoints; evalkit sees what its task returns and the spans it exports.\n\n| Endpoint | Lets evalkit | Capability flag | Without it |\n| ----------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------- | -------------------------------------------------------------------------------------------------------------- |\n| `GET /capabilities` | see what the harness supports and gate evaluators on it (snapshotted per experiment) | part of every Harness API | — |\n| `POST /runs` | invoke the agent: start one run in a fresh session with the case input and files | part of every Harness API | — |\n| `GET /runs/{id}` | wait for the run and read its answer, structured output, model and artifact list | part of every Harness API | — |\n| `GET /runs/{id}/trajectory` | read the trajectory (ATIF): the run view, trajectory evaluators and token/cost gauges | `provides.trajectory` | trajectory evaluators skip, unless the agent's trajectory source is `otel` and the trajectory comes from spans |\n| `GET /runs/{id}/files`, `GET /runs/{id}/files/{path}` | read the workspace: the run's Workspace tab, downloads and artifact copies | `provides.workspace` | no Workspace tab; artifacts the run reports are not copied |\n| `GET /runs` | list the agent's sessions on the Runs page and for `evalkit runs list`/`runs pull`, including ones evalkit did not start; optional `since`/`until` filter by creation time | `provides.run_listing` | the Runs page is empty for this agent |\n| `POST /runs/{id}/stop` | cancel a run that hit its time limit | `accepts.stop` | timed-out runs keep running on the harness |\n\n`POST /runs` takes JSON, or multipart when the case has fixture files and the harness accepts `files` but not `file_urls`. Run status moves through `queued`, `running`, then one of `completed`, `failed`, `cancelled`.\n\nA code-driven agent (no `harness_url`) has none of these endpoints, so its runs have no Workspace tab. To see an agent's files in evalkit, give it a Harness API with at least the files endpoints; its trajectory can still come from traces.\n\nEvery request carries `x-api-key`. Two rules matter more than the rest:\n\n- **Capabilities honesty.** Declare only what works. evalkit neutral-skips evaluators whose inputs the harness does not provide; a false `true` produces failing scores blamed on the agent.\n- **Implement stop.** evalkit calls stop on timeout when `accepts.stop` is true; a harness without it leaks resources on every timed-out run.\n\n## Already have a harness? Keep it\n\nA harness that already emits OpenTelemetry traces can skip the trajectory endpoint: create the agent with `--trajectory-source otel --mapping FILE` and export spans to the collector with the run id it returned from `POST /runs` in the attribute the mapping's `session_id` rule names (`session.id` for OpenInference, `gen_ai.conversation.id` for GenAI). Everything else stays: server runs, `evalkit run`, the Workspace tab. The harness declares `provides.trajectory: false`. See [Tracing](tracing.md).\n\nThe session evalkit polls is the `run_id` that `POST /runs` returns; there is no separate session field. A queue-backed agent whose worker opens its own session can return that session id as `run_id`, or stamp the `run_id` it returned on the job's spans in the mapping's session id attribute. Either way the ids must also work with the other `/runs/{id}` endpoints.\n\nMoving to [SDK runs](sdk-runs.md) instead only makes sense to stop hosting the harness. A code-driven agent loses server-started runs and the Workspace tab, and `run_experiment` refuses an agent with a `harness_url`: keep one agent name and run it with `evalkit run`, rather than adding a second entry for `run_experiment`.\n\n## Checking\n\n```bash\nevalkit harness check ouragent@dev\n```\n\nruns a trivial call, exercises every declared capability and prints a pass/fail table. For a harness agent whose trajectory source is `otel` the trajectory row reads \"from traces\" and a session row reports the collected spans.\n"},{id:`mcp`,label:`MCP`,group:`MCP`,body:'# MCP\n\nThe server is also an MCP server at `{{origin}}/mcp` (streamable HTTP). An agent connected to it can read every agent\'s runs and trajectories, and every experiment\'s scores. It cannot change anything.\n\n## Connect\n\nWith an evalkit login token (`evalkit login` stores it in `~/.evalkit/config.toml`):\n\n```bash\nclaude mcp add --transport http evalkit {{origin}}/mcp --header "Authorization: Bearer $EVALKIT_TOKEN"\n```\n\nOnly login tokens work here: agent tokens (`evalkit tokens create`) and download tickets are refused.\n\nWhen the server\'s config has an `mcp.oauth` block, MCP clients that speak OAuth (Claude, Cursor, Codex) can connect with the URL alone: the server points them to the identity provider, and a token issued for `{{origin}}/mcp` with the configured scope (`mcp.oauth.scope`, default `evalkit:read`) is accepted. Evalkit login tokens keep working next to it.\n\n```yaml\nmcp:\n oauth:\n issuer: https://id.example.com\n jwks_uri: https://id.example.com/.well-known/jwks.json\n # audience: defaults to <server.base_url>/mcp\n # scope: your identity provider\'s name for read access; defaults to evalkit:read\n```\n\nAn OAuth token is not an evalkit user. Whoever the identity provider gives that scope reads everything an evalkit login reads, which today is every workspace, and archiving someone in evalkit does not cut off their OAuth access: revoke it at the identity provider.\n\n## Tools\n\n| Tool | What it returns |\n|---|---|\n| `find_agents` | Agents and the id (`name@workspace`) the run tools take |\n| `find_runs` | An agent\'s runs in a time window, newest first: id, title, time, `user_id`, `client_id`, app or eval. `include` adds each run\'s `metrics`, `turns` or `tool_calls` (what it called, with which arguments). `failed_only` keeps runs with a failure; `tool_error` keeps runs where that tool errored. `timezone` reads date-only bounds as `get_run_stats` does. Up to 5,000 rows when listing alone, 200 with `include` or a filter |\n| `get_runs` | Up to 200 runs by id: turns, failed turns, failures, duration, cost and where it came from, tokens, cost by model, tool errors by tool, opening question, final answer; `include` adds `turns` and `tool_calls` |\n| `get_run_stats` | Totals over a time window, or one row per day, user, source, or tool that errored; `group_by` takes several at once and reads the window once |\n| `get_trajectory` | One run\'s ATIF trajectory, paged by step, long text clipped |\n| `get_run_files`, `download_run_file` | Files the run produced |\n| `find_experiments`, `get_experiments`, `get_experiment_runs` | Experiments, their scorecard, and per-case scores with evaluator explanations |\n\nEvery tool answers `{data, meta}`, with `data` a list of rows. Search tools page with `limit` and `offset` (`meta.next_offset` is the next page); tools that take ids answer one row per id in input order, with `note: {"code": "not_found"}` for an unknown one. Dates are `start_date` / `end_date` (`YYYY-MM-DD`, inclusive, or an ISO 8601 timestamp). Money is `{"value", "unit": "currency", "currency": "USD"}`. Errors read `<code>: <detail>`. Tools that read trajectories have a time budget for the whole call, listing included: a run not read in time comes back as a row with `error` and `detail` instead of metrics, counted in `meta.failed` by `get_runs`; ask for it again with `get_runs`. Optional fields with no value are left out of rows. When listing alone uses the budget, the call fails with `harness_timeout`; narrow the window. With `failed_only` or `tool_error`, `find_runs` reads the window again on every call, so take one page and fetch the runs not read with `get_runs` rather than paging on.\n\nA turn is one user message and everything the agent did until the next one. `cost_source` is `reported` when the harness priced the run, `estimated` when evalkit priced it from token counts, `mixed` for both. A turn counts as failed when the harness marks a step in it with `extra.is_error` (see [Harness API](harness-api.md)).\n\n`user_id` and `client_id` are what the harness recorded. Resolve them to people and firms with your identity service.\n'}],Em=[...new Set(Tm.map(e=>e.group))];function Dm(e){return Tm.some(t=>t.id===e)}function Om(e,t){return e.replace(/\{\{(origin|version)\}\}/g,(e,n)=>t[n])}function km(e){let t=/^([\w-]+)\.md(#.*)?$/.exec(e??``);return!t||!Dm(t[1])?null:`/docs/${t[1]}${t[2]??``}`}var Am=`modulepreload`,jm=function(e){return`/`+e},Mm={},Nm=function(e){return e.pathname.endsWith(`.css`)},Pm=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Fm=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=jm(t,n);let r=s(t),i=Nm(r);return Pm(Mm,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Am,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Im=(0,v.lazy)(()=>Fm(()=>import(`./monacoEditor-DsoPncxW.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3])));function Lm(e){return(0,N.jsx)(v.Suspense,{fallback:(0,N.jsx)(`div`,{style:{height:e.height}}),children:(0,N.jsx)(Im,{...e})})}var Rm=`devtools.theme`,zm=(0,v.createContext)({theme:`light`,toggle:()=>{}});function Bm(){return(0,v.useContext)(zm)}function Vm(e){return e===`dark`?`vs-dark`:`light`}function Hm({children:e}){let[t,n]=(0,v.useState)(()=>{let e=localStorage.getItem(Rm);return e===`light`||e===`dark`?e:matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`});return(0,v.useEffect)(()=>{document.documentElement.dataset.theme=t,localStorage.setItem(Rm,t)},[t]),(0,N.jsx)(zm.Provider,{value:{theme:t,toggle:()=>n(e=>e===`dark`?`light`:`dark`)},children:e})}var Um=`Judge-graded checklist over the final answer: each rubric is marked satisfied, incorrect or absent, and these rates summarise the verdicts.`,Wm=`Satisfied ÷ total over the case's trajectory rubrics — checkpoints the recorded steps or final answer must show. Each is judged satisfied or unsatisfied; a long trajectory is judged in parts and a rubric counts when any part shows it.`,Gm={answer_rubric:Um,answer_rubrics:Um,answer_rubric_score:`Final content score: satisfied rubrics ÷ all rubrics. Equals coverage × accuracy.`,answer_rubric_coverage:`Attempted ÷ total: how many rubrics the answer addressed at all, right or wrong.`,answer_rubric_accuracy:`Satisfied ÷ attempted: of what the answer addressed, how much was right. Extra content the rubrics never asked about is not penalised.`,answer_rubric_citation:`Correct source citations ÷ eligible. A rubric's source counts only where the answer actually stated the fact — an unstated fact had no chance to be cited.`,answer_rubric_factual_retrieval:`Satisfied ÷ total on factual_retrieval rubrics: facts read straight from the source data.`,answer_rubric_derived_computation:`Satisfied ÷ total on derived_computation rubrics: figures that need calculation from the source data.`,answer_rubric_analysis_interpretation:`Satisfied ÷ total on analysis_interpretation rubrics: reasoning or judgement over the data.`,trajectory_rubrics:Wm,trajectory_rubric_score:Wm,tool_trajectory_match:`Found ÷ expected over the case's expected tool calls, matched by tool name and arguments, each to at most one actual call. With ordered, they must also appear in that order.`,required_tools_called:`Called ÷ required: how many of the case's required tools the agent called at least once. Extra calls are not penalised.`,presentation_judge:`Judge score on how the reply presents itself — structure and formatting — against the case's presentation config.`,max_response_time:`Pass/fail: did the run finish within the case's time limit.`,"bucket:content":`Mean answer_rubric_score across cases. The other answer_rubric rates are diagnostics on this score, not bucket members.`,"bucket:trajectory":`Mean of the trajectory evaluators' scores across cases: trajectory_rubric_score, tool_trajectory_match and required_tools_called, where configured.`,"bucket:presentation":`Mean presentation_judge score across cases.`,"bucket:efficiency":`Mean max_response_time score across cases.`,"bucket:custom":`Mean of all custom-evaluator scores across cases.`,gauge_duration_seconds:`Wall-clock time of the run.`,gauge_input_tokens:`Input tokens the agent consumed, from the trajectory's token usage.`,gauge_output_tokens:`Output tokens the agent produced.`,gauge_cached_tokens:`Input tokens served from the provider's prompt cache.`,gauge_agent_cost_usd:`Estimated cost of the agent's own LLM usage, priced from its token usage.`,gauge_judge_cost_usd:`evalkit's own judge spend scoring this run.`,gauge_total_tool_calls:`Tool calls the agent made during the run.`,gauge_errored_tool_calls:`Tool calls whose result came back as an error.`,gauge_subagents:`Subagent trajectories the run spawned.`,gauge_turns:`Assistant turns in the trajectory.`};function Km(e){return Gm[e]}function qm({term:e}){let t=Km(e);return t?(0,N.jsxs)(`span`,{className:`infotip`,tabIndex:0,"aria-label":t,children:[(0,N.jsxs)(`svg`,{width:`11`,height:`11`,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,children:[(0,N.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.6`,stroke:`currentColor`,strokeWidth:`1.3`}),(0,N.jsx)(`path`,{d:`M8 7.4v3.4`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`}),(0,N.jsx)(`circle`,{cx:`8`,cy:`4.9`,r:`0.9`,fill:`currentColor`})]}),(0,N.jsx)(`span`,{className:`infotip-bubble`,role:`tooltip`,children:t})]}):null}function Jm({copied:e}){return(0,N.jsx)(`svg`,{width:`11`,height:`11`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,className:`shrink-0`,children:e?(0,N.jsx)(`path`,{d:`m3 8.5 3.5 3.5L13 5`}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`rect`,{x:`5.5`,y:`5.5`,width:`8`,height:`8`,rx:`1.5`}),(0,N.jsx)(`path`,{d:`M10.5 3.5h-7a1 1 0 0 0-1 1v7`})]})})}function Ym({value:e,label:t,title:n}){let[r,i]=(0,v.useState)(!1);return(0,N.jsxs)(`button`,{className:`-mx-1 inline-flex min-w-0 items-center gap-1 rounded px-1 font-mono text-inherit transition-colors hover:bg-fill hover:text-brand`,title:n??`copy ${e}`,onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{i(!0),setTimeout(()=>i(!1),1200)})},children:[(0,N.jsx)(`span`,{className:`truncate`,children:t??e}),(0,N.jsx)(Jm,{copied:r})]})}function Xm({text:e}){let[t,n]=(0,v.useState)(!1);return(0,N.jsx)(`button`,{className:`btn btn-sm shrink-0`,onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{n(!0),setTimeout(()=>n(!1),1500)})},children:t?`✓`:`copy`})}function Zm({header:e,badge:t,copyText:n,actions:r,defaultOpen:i=!1,open:a,onOpenChange:o,children:s}){let[c,l]=(0,v.useState)(i),u=a??c;return(0,N.jsxs)(`div`,{className:`collapsible ${u?`is-open`:``}`,children:[(0,N.jsxs)(`div`,{className:`collapsible-header group/row`,onClick:()=>{l(!u),o?.(!u)},children:[(0,N.jsx)(`span`,{className:`w-3 text-ink-4`,children:u?`▾`:`▸`}),(0,N.jsx)(`span`,{className:`badge badge-${t}`,children:t}),(0,N.jsx)(`span`,{className:`collapsible-title`,children:e}),r,n!==void 0&&(0,N.jsx)(`span`,{className:`opacity-0 transition-opacity group-hover/row:opacity-100 focus-within:opacity-100`,children:(0,N.jsx)(Xm,{text:n})})]}),u&&(0,N.jsx)(`div`,{className:`collapsible-body`,children:s})]})}function Qm({value:e,language:t}){let{theme:n}=Bm(),r=Math.min(Math.max(e.split(`
|
|
428
|
+
`).length,2)*18+10,480);return(0,N.jsx)(Lm,{height:r,theme:Vm(n),language:t,value:e,options:{readOnly:!0,minimap:{enabled:!1},fontSize:12,fontFamily:`JetBrains Mono Variable, ui-monospace, monospace`,padding:{top:4,bottom:4},lineNumbers:`off`,wordWrap:`on`,scrollBeyondLastLine:!1,renderLineHighlight:`none`,overviewRulerLanes:0,scrollbar:{alwaysConsumeMouseWheel:!1}}})}function $m({tabs:e,active:t,onSelect:n}){return(0,N.jsx)(`div`,{className:`flex gap-1 border-b border-n-100`,children:e.map(e=>(0,N.jsx)(`button`,{className:`tab-button ${t===e.id?`active`:``}`,disabled:e.disabled,title:e.title,onClick:()=>!e.disabled&&n(e.id),children:e.label},e.id))})}function eh({code:e,language:t}){let{theme:n}=Bm();return(0,N.jsxs)(`div`,{className:`relative my-2`,children:[(0,N.jsx)(`div`,{className:`absolute top-1 right-1`,children:(0,N.jsx)(Xm,{text:e})}),(0,N.jsx)(wm,{code:e,language:t,theme:n===`dark`?qp.nightOwl:qp.github,children:({className:e,style:t,tokens:n,getLineProps:r,getTokenProps:i})=>(0,N.jsx)(`pre`,{className:`${e} overflow-x-auto rounded-md p-3 pr-16 font-mono text-meta`,style:t,children:n.map((e,t)=>(0,N.jsx)(`div`,{...r({line:e}),children:e.map((e,t)=>(0,N.jsx)(`span`,{...i({token:e})},t))},t))})})]})}function th({href:e,children:t}){let n=km(e);return n?(0,N.jsx)(kn,{to:n,children:t}):(0,N.jsx)(`a`,{href:e,children:t})}function nh({children:e}){let t=e?.props??{},n=String(t.children??``).replace(/\n$/,``),r=/language-(\w+)/.exec(t.className??``)?.[1]??`text`;return(0,N.jsx)(eh,{code:n,language:r})}function rh(){let{tab:e}=ht(),[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null);if((0,v.useEffect)(()=>{M(`/cli`).then(n).catch(e=>i(e instanceof qn?e.message:String(e)))},[]),!Dm(e))return(0,N.jsx)(Lt,{to:`/docs/quickstart`,replace:!0});let a={origin:window.location.origin,version:t?.version??`<version>`},o=Tm.find(t=>t.id===e)?.body??``;return(0,N.jsx)(`div`,{className:`page`,children:(0,N.jsxs)(`div`,{className:`mx-auto flex max-w-6xl gap-10`,children:[(0,N.jsxs)(`nav`,{className:`sticky top-4 w-44 shrink-0 self-start`,"aria-label":`Docs`,children:[(0,N.jsx)(`h1`,{className:`page-title mb-3`,children:`Docs`}),Em.map(t=>(0,N.jsxs)(`div`,{className:`mb-4`,children:[(0,N.jsx)(`div`,{className:`mb-1 text-micro font-semibold tracking-wide text-ink-3 uppercase`,children:t}),(0,N.jsx)(`ul`,{className:`flex flex-col`,children:Tm.filter(e=>e.group===t).map(t=>(0,N.jsx)(`li`,{children:(0,N.jsx)(kn,{to:`/docs/${t.id}`,"aria-current":t.id===e?`page`:void 0,className:`block rounded px-2 py-1 text-lede ${t.id===e?`bg-n-50 font-medium text-ink`:`text-ink-2 hover:bg-hover`}`,children:t.label})},t.id))})]},t))]}),(0,N.jsxs)(`article`,{className:`min-w-0 flex-1`,children:[r&&(0,N.jsx)(`p`,{className:`text-ink-2`,children:r}),(0,N.jsx)(`div`,{className:`md-body docs-body mx-auto max-w-3xl text-lede`,children:(0,N.jsx)(Su,{remarkPlugins:[Dp],components:{pre:nh,a:th},children:Om(o,a)})})]})]})})}var ih=[{key:`max_concurrent_runs`,label:`Max concurrent runs`,min:1},{key:`run_timeout_seconds`,label:`Run timeout (s)`,min:0},{key:`poll_interval_seconds`,label:`Poll interval (s)`,min:0},{key:`stop_grace_seconds`,label:`Stop grace (s)`,min:0},{key:`trajectory_wait_seconds`,label:`Trajectory wait (s)`,min:0}],ah={max_concurrent_runs:`4`,run_timeout_seconds:`840`,poll_interval_seconds:`5`,stop_grace_seconds:`120`,trajectory_wait_seconds:`60`};function oh(e){return{workspace:e,name:``,harness_url:``,trajectory_source:`atif`,repo_url:``,mapping:``,api_key:{key:``,clear:!1},settings:{...ah}}}function sh(e){let t={...ah};for(let{key:n}of ih)t[n]=String(e.settings[n]);return{workspace:e.workspace,name:e.name,harness_url:e.harness_url??``,trajectory_source:e.trajectory_source,repo_url:e.repo_url??``,mapping:``,api_key:{key:``,clear:!1},settings:t}}function ch(e){try{let t=JSON.parse(e);return t&&typeof t==`object`&&!Array.isArray(t)?t:null}catch{return null}}function lh(e,t){let n=[];t===`create`?(e.name.trim()?e.name.includes(`@`)&&n.push(`Name cannot contain @.`):n.push(`Name is required.`),e.trajectory_source===`otel`&&(e.mapping.trim()?ch(e.mapping)||n.push(`The span mapping is not a JSON object.`):n.push(`An agent whose trajectories come from traces needs a span mapping.`))):e.trajectory_source===`otel`&&e.mapping.trim()&&!ch(e.mapping)&&n.push(`The span mapping is not a JSON object.`);for(let{key:t,label:r,min:i}of ih){let a=e.settings[t].trim(),o=Number(a);(!a||!Number.isInteger(o)||o<i)&&n.push(`${r} must be a whole number of at least ${i}.`)}return n}function uh(e){let t={};for(let{key:n}of ih)t[n]=Number(e.settings[n]);return t}function dh(e,t){return t.has_api_key&&(e.harness_url.trim()||null)!==t.harness_url&&!e.api_key.key}function fh(e){return{...e.api_key.key?{api_key:e.api_key.key}:{},workspace:e.workspace,name:e.name.trim(),harness_url:e.harness_url.trim()||null,trajectory_source:e.trajectory_source,repo_url:e.repo_url.trim()||null,settings:uh(e),mapping:e.trajectory_source===`otel`?ch(e.mapping):null}}function ph(e,t){let n={harness_url:e.harness_url.trim()||null,repo_url:e.repo_url.trim()||null,settings:{...t.settings,...uh(e)}};return e.trajectory_source!==t.trajectory_source&&(n.trajectory_source=e.trajectory_source),e.trajectory_source===`otel`&&e.mapping.trim()&&(n.mapping=ch(e.mapping)),e.api_key.key?n.api_key=e.api_key.key:e.api_key.clear&&(n.api_key=null),n}function mh({hasKey:e,value:t,onChange:n}){return e&&!t.clear&&!t.key?(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`span`,{className:`chip muted`,children:`Key set`}),(0,N.jsx)(`button`,{type:`button`,className:`btn btn-sm`,onClick:()=>n({key:``,clear:!0}),children:`Replace or clear`})]}):(0,N.jsx)(`input`,{className:`input min-w-0 flex-1`,type:`password`,"aria-label":`API key`,placeholder:e?`new key, or leave empty to remove it`:`API key (optional)`,autoComplete:`off`,value:t.key,onChange:e=>n({key:e.target.value,clear:t.clear})})}var hh=JSON.parse(`{
|
|
429
|
+
"endpoint_note": "Check this URL before saving. The server at this address receives the API key you enter here and the data evalkit sends it: cases, answers and trajectories.",
|
|
430
|
+
"personal_key_note": "Personal agents and evaluators read their API key from your evalkit.yaml (credentials:), never from the server."
|
|
431
|
+
}
|
|
432
|
+
`),gh=hh.endpoint_note,_h=hh.personal_key_note;function vh(e,t){let n=t.trim().toLowerCase();return n?e.filter(e=>e.label.toLowerCase().includes(n)):e}function yh(e,t,n){for(let r=t+n;r>=0&&r<e.length;r+=n)if(!e[r].disabled)return r;return t}function bh(e,t,n){let r=n.toLowerCase();for(let n=1;n<=e.length;n++){let i=(t+n)%e.length,a=e[i];if(!a.disabled&&a.label.toLowerCase().startsWith(r))return i}return-1}function xh({value:e,options:t,onChange:n,placeholder:r=`Select…`,title:i,ariaLabel:a,className:o=``,searchable:s,disabled:c=!1,more:l}){let[u,d]=(0,v.useState)(!1),[f,p]=(0,v.useState)(!1),[m,h]=(0,v.useState)(``),[g,_]=(0,v.useState)(0),y=(0,v.useRef)(null),b=(0,v.useRef)(null),x=(0,v.useRef)(null),S=(0,v.useRef)(null),C=(0,v.useId)(),w=l?.options??[],T=[...t,...w],E=s??T.length>10,D=f||m.trim()?T:t,O=E?vh(D,m):D,k=w.length>0&&D===t?O.length:-1,A=T.find(t=>t.value===e);(0,v.useEffect)(()=>{if(!u)return;let e=e=>{y.current?.contains(e.target)||d(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[u]),(0,v.useEffect)(()=>{if(!u)return;h(``);let n=w.some(t=>t.value===e);p(n);let r=(n?T:t).findIndex(t=>t.value===e);_(Math.max(r,0)),E?S.current?.focus():x.current?.focus()},[u]),(0,v.useEffect)(()=>{x.current?.querySelector(`[data-idx="${g}"]`)?.scrollIntoView({block:`nearest`})},[g,u]);let ee=()=>{d(!1),b.current?.focus()},te=e=>{e&&!e.disabled&&(n(e.value),ee())};return(0,N.jsxs)(`div`,{ref:y,className:`select ${o}`,children:[(0,N.jsxs)(`button`,{ref:b,type:`button`,className:`input select-trigger`,title:i,"aria-label":a,"aria-haspopup":`listbox`,"aria-expanded":u,"aria-controls":u?C:void 0,disabled:c,onClick:()=>d(e=>!e),onKeyDown:e=>{[`ArrowDown`,`ArrowUp`,`Enter`,` `].includes(e.key)&&(e.preventDefault(),d(!0))},children:[(0,N.jsx)(`span`,{className:`truncate ${A?``:`text-ink-4`}`,children:A?A.label:r}),(0,N.jsx)(Sh,{})]}),u&&(0,N.jsxs)(`div`,{className:`select-menu`,onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`;_(e=>t&&k>=0&&e>=O.length-1?k:yh(O,e,t?1:-1))}else if(e.key===`Home`||e.key===`End`)e.preventDefault(),_(e.key===`Home`?0:k>=0?k:O.length-1);else if(e.key===`Enter`)e.preventDefault(),g===k?p(!0):te(O[g]);else if(e.key===`Escape`)e.preventDefault(),ee();else if(e.key===`Tab`)d(!1);else if(!E&&e.key.length===1){let t=bh(O,g,e.key);t>=0&&_(t)}},children:[E&&(0,N.jsx)(`input`,{ref:S,className:`select-filter`,placeholder:`Filter…`,value:m,onChange:e=>{h(e.target.value),_(0)}}),(0,N.jsxs)(`ul`,{ref:x,id:C,role:`listbox`,tabIndex:-1,className:`select-list`,"aria-activedescendant":`${C}-${g}`,children:[O.map((t,n)=>(0,N.jsxs)(`li`,{id:`${C}-${n}`,"data-idx":n,role:`option`,"aria-selected":t.value===e,"aria-disabled":t.disabled,className:`select-option ${n===g?`active`:``}`,onMouseEnter:()=>_(n),onMouseDown:e=>e.preventDefault(),onClick:()=>te(t),children:[(0,N.jsx)(Ch,{on:t.value===e}),(0,N.jsx)(`span`,{className:`truncate`,children:t.label}),t.hint!=null&&(0,N.jsx)(`span`,{className:`select-hint`,children:t.hint})]},String(t.value))),k>=0&&(0,N.jsxs)(`li`,{id:`${C}-${k}`,"data-idx":k,role:`option`,"aria-selected":!1,className:`select-option select-more ${g===k?`active`:``}`,onMouseEnter:()=>_(k),onMouseDown:e=>e.preventDefault(),onClick:()=>p(!0),children:[(0,N.jsx)(Ch,{on:!1}),(0,N.jsx)(`span`,{className:`truncate`,children:l?.label})]}),O.length===0&&k<0&&(0,N.jsx)(`li`,{className:`select-empty`,children:`No matches`})]})]})]})}function Sh(){return(0,N.jsx)(`svg`,{className:`select-chevron`,width:`10`,height:`10`,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,children:(0,N.jsx)(`path`,{d:`M4 6l4 4 4-4`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function Ch({on:e}){return(0,N.jsx)(`svg`,{className:`select-check ${e?``:`invisible`}`,width:`11`,height:`11`,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,children:(0,N.jsx)(`path`,{d:`M3 8.5l3.2 3L13 5`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function wh({workspace:e,shared:t,agent:n,onSaved:r,onClose:i}){let a=n?`edit`:`create`,[o,s]=(0,v.useState)(n?sh(n):oh(e)),[c,l]=(0,v.useState)(!1),[u,d]=(0,v.useState)(null),f=lh(o,a);(0,v.useEffect)(()=>{let e=e=>{e.key===`Escape`&&!e.defaultPrevented&&i()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[i]);let p=(e,t)=>s(n=>({...n,[e]:t}));return(0,N.jsx)(`div`,{className:`dialog-backdrop`,onMouseDown:i,children:(0,N.jsxs)(`div`,{className:`dialog w-160`,role:`dialog`,"aria-label":n?`Edit agent`:`New agent`,onMouseDown:e=>e.stopPropagation(),children:[(0,N.jsxs)(`div`,{className:`dialog-head`,children:[(0,N.jsx)(`span`,{className:`font-semibold`,children:n?`Edit agent`:`New agent`}),(0,N.jsx)(`span`,{className:`row-meta font-mono`,children:n?n.ref:`@${o.workspace}`}),(0,N.jsx)(`button`,{className:`btn btn-quiet btn-sm ml-auto`,"aria-label":`close`,onClick:i,children:`✕`})]}),(0,N.jsxs)(`div`,{className:`dialog-body`,children:[!n&&(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Name`}),(0,N.jsx)(`input`,{className:`input w-72`,value:o.name,onChange:e=>p(`name`,e.target.value)})]}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Harness URL`}),(0,N.jsx)(`input`,{className:`input min-w-0 flex-1`,placeholder:`empty for a code-driven agent (SDK runs only)`,value:o.harness_url,onChange:e=>p(`harness_url`,e.target.value)})]}),(0,N.jsx)(`p`,{className:`row-meta whitespace-normal`,children:gh}),t?(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`API key`}),(0,N.jsx)(mh,{hasKey:n?.has_api_key??!1,value:o.api_key,onChange:e=>p(`api_key`,e)})]}):(0,N.jsx)(`p`,{className:`row-meta whitespace-normal`,children:_h}),n&&dh(o,n)&&(0,N.jsx)(`p`,{className:`row-meta whitespace-normal text-err-text`,children:`Saving a new harness URL removes the stored API key. Enter the key for the new URL above.`}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Trajectories`}),(0,N.jsx)(xh,{ariaLabel:`trajectory source`,value:o.trajectory_source,onChange:e=>p(`trajectory_source`,e),options:[{value:`atif`,label:`ATIF from the agent`},{value:`otel`,label:`From traces (OTel spans)`}]})]}),n&&o.trajectory_source!==n.trajectory_source&&(0,N.jsx)(`p`,{className:`row-meta`,children:`Experiments that already ran keep the source they ran with. The change is refused while one of this agent's experiments is running.`}),o.trajectory_source===`otel`&&(!n||n.trajectory_source!==`otel`)&&(0,N.jsxs)(`div`,{className:`form-row items-start`,children:[(0,N.jsx)(`span`,{className:`form-label pt-1.5`,children:`Span mapping`}),(0,N.jsx)(`textarea`,{className:`input min-w-0 flex-1 font-mono`,rows:6,placeholder:n?`Paste the mapping JSON, or leave empty to reuse the agent's last active mapping`:`Paste the mapping JSON (start from the connect-traces skill's gen_ai.json or openinference.json)`,value:o.mapping,onChange:e=>p(`mapping`,e.target.value)})]}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Repository`}),(0,N.jsx)(`input`,{className:`input min-w-0 flex-1`,placeholder:`https://github.com/org/repo (optional)`,value:o.repo_url,onChange:e=>p(`repo_url`,e.target.value)})]}),ih.map(({key:e,label:t})=>(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:t}),(0,N.jsx)(`input`,{className:`input w-28`,inputMode:`numeric`,value:o.settings[e],onChange:t=>p(`settings`,{...o.settings,[e]:t.target.value})})]},e)),f.map(e=>(0,N.jsx)(`div`,{className:`text-meta text-err-text`,children:e},e)),u&&(0,N.jsx)(`div`,{className:`text-meta text-err-text`,children:u})]}),(0,N.jsxs)(`div`,{className:`dialog-foot`,children:[(0,N.jsx)(`button`,{className:`btn`,onClick:i,children:`Cancel`}),(0,N.jsx)(`button`,{className:`btn btn-primary`,disabled:c||f.length>0,onClick:async()=>{l(!0),d(null);try{r(n?await rr(`/agents/${encodeURIComponent(n.ref)}`,`PATCH`,ph(o,n)):await rr(`/agents`,`POST`,fh(o)))}catch(e){d(e instanceof Error?e.message:String(e)),l(!1)}},children:n?`Save`:`Create agent`})]})]})})}var Th={pass:`✓`,warn:`!`,fail:`✗`,skipped:`—`},Eh={pass:`chip-pass`,warn:`chip-partial`,fail:`chip-fail`,skipped:`chip-none`};function Dh({agent:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(!1),[a,o]=(0,v.useState)(null);return(0,N.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,N.jsxs)(`div`,{className:`toolbar`,children:[(0,N.jsx)(`button`,{className:`btn btn-primary`,disabled:r,onClick:async()=>{i(!0),n(null),o(null);try{n(await rr(`/agents/${encodeURIComponent(e)}/check`,`POST`))}catch(e){o(e instanceof Error?e.message:String(e))}finally{i(!1)}},children:r?`Checking… (runs a live agent call)`:`Run check`}),(0,N.jsx)(`p`,{className:`text-meta text-ink-3`,children:`Exercises the agent's Harness API: capabilities, the probe input against its input schema, a trivial run to a terminal status, the trajectory (from the harness or from traces), then files / run listing / stop where declared.`})]}),a&&(0,N.jsx)(`div`,{className:`pane-status error`,children:a}),t&&(0,N.jsx)(`div`,{className:`card`,children:(0,N.jsx)(`div`,{className:`rows`,children:Object.entries(t.checks).map(([e,t])=>(0,N.jsxs)(`div`,{className:`row grid-cols-[8rem_auto_minmax(0,1fr)]`,children:[(0,N.jsx)(`span`,{className:`font-mono`,children:e}),(0,N.jsxs)(`span`,{className:`chip ${Eh[t.status]}`,children:[Th[t.status],` `,t.status]}),(0,N.jsx)(`span`,{className:`truncate text-ink-3`,title:t.detail,children:t.detail})]},e))})})]})}var Oh=Symbol.for(`yaml.alias`),kh=Symbol.for(`yaml.document`),Ah=Symbol.for(`yaml.map`),jh=Symbol.for(`yaml.pair`),Mh=Symbol.for(`yaml.scalar`),Nh=Symbol.for(`yaml.seq`),Ph=Symbol.for(`yaml.node.type`),Fh=e=>!!e&&typeof e==`object`&&e[Ph]===Oh,Ih=e=>!!e&&typeof e==`object`&&e[Ph]===kh,Lh=e=>!!e&&typeof e==`object`&&e[Ph]===Ah,Rh=e=>!!e&&typeof e==`object`&&e[Ph]===jh,zh=e=>!!e&&typeof e==`object`&&e[Ph]===Mh,Bh=e=>!!e&&typeof e==`object`&&e[Ph]===Nh;function Vh(e){if(e&&typeof e==`object`)switch(e[Ph]){case Ah:case Nh:return!0}return!1}function Hh(e){if(e&&typeof e==`object`)switch(e[Ph]){case Oh:case Ah:case Mh:case Nh:return!0}return!1}var Uh=e=>(zh(e)||Vh(e))&&!!e.anchor,Wh=Symbol(`break visit`),Gh=Symbol(`skip children`),Kh=Symbol(`remove node`);function qh(e,t){let n=Yh(t);Ih(e)?Jh(null,e.contents,n,Object.freeze([e]))===Kh&&(e.contents=null):Jh(null,e,n,Object.freeze([]))}qh.BREAK=Wh,qh.SKIP=Gh,qh.REMOVE=Kh;function Jh(e,t,n,r){let i=Xh(e,t,n,r);if(Hh(i)||Rh(i))return Zh(e,r,i),Jh(e,i,n,r);if(typeof i!=`symbol`){if(Vh(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=Jh(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===Wh)return Wh;else i===Kh&&(t.items.splice(e,1),--e)}}else if(Rh(t)){r=Object.freeze(r.concat(t));let e=Jh(`key`,t.key,n,r);if(e===Wh)return Wh;e===Kh&&(t.key=null);let i=Jh(`value`,t.value,n,r);if(i===Wh)return Wh;i===Kh&&(t.value=null)}}return i}function Yh(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Xh(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(Lh(t))return n.Map?.(e,t,r);if(Bh(t))return n.Seq?.(e,t,r);if(Rh(t))return n.Pair?.(e,t,r);if(zh(t))return n.Scalar?.(e,t,r);if(Fh(t))return n.Alias?.(e,t,r)}function Zh(e,t,n){let r=t[t.length-1];if(Vh(r))r.items[e]=n;else if(Rh(r))e===`key`?r.key=n:r.value=n;else if(Ih(r))r.contents=n;else{let e=Fh(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var Qh={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},$h=e=>e.replace(/[!,[\]{}]/g,e=>Qh[e]),eg=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+$h(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&Hh(e.contents)){let t={};qh(e.contents,(e,n)=>{Hh(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||e&&!r.some(e=>e.startsWith(a))||t.push(`%TAG ${i} ${a}`);return t.join(`
|
|
433
|
+
`)}};eg.defaultYaml={explicit:!1,version:`1.2`},eg.defaultTags={"!!":`tag:yaml.org,2002:`};function tg(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function ng(e){let t=new Set;return qh(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function rg(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function ig(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=ng(e);let a=rg(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(zh(t.node)||Vh(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function ag(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=ag(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=ag(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=ag(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=ag(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function og(e,t,n){if(Array.isArray(e))return e.map((e,t)=>og(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!Uh(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var sg=class{constructor(e){Object.defineProperty(this,Ph,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!Ih(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=og(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?ag(i,{"":o},``,o):o}},cg=class extends sg{constructor(e){super(Oh),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],qh(e,{Node:(e,t)=>{(Fh(t)||Uh(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,a=e.get(r);if(a||=(og(r,null,t),e.get(r)),a?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=lg(n,r,e)),a.count*a.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`)}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(tg(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function lg(e,t,n){if(Fh(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(Vh(t)){let r=0;for(let i of t.items){let t=lg(e,i,n);t>r&&(r=t)}return r}if(Rh(t)){let r=lg(e,t.key,n),i=lg(e,t.value,n);return Math.max(r,i)}return 1}var ug=e=>!e||typeof e!=`function`&&typeof e!=`object`,dg=class extends sg{constructor(e){super(Mh),this.value=e}toJSON(e,t){return t?.keep?this.value:og(this.value,e,t)}toString(){return String(this.value)}};dg.BLOCK_FOLDED=`BLOCK_FOLDED`,dg.BLOCK_LITERAL=`BLOCK_LITERAL`,dg.PLAIN=`PLAIN`,dg.QUOTE_DOUBLE=`QUOTE_DOUBLE`,dg.QUOTE_SINGLE=`QUOTE_SINGLE`;var fg=`tag:yaml.org,2002:`;function pg(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function mg(e,t,n){if(Ih(e)&&(e=e.contents),Hh(e))return e;if(Rh(e)){let t=n.schema[Ah].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new cg(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=fg+t.slice(2));let l=pg(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new dg(e);return c&&(c.node=t),t}l=e instanceof Map?o[Ah]:Symbol.iterator in Object(e)?o[Nh]:o[Ah]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new dg(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function hg(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return mg(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var gg=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,_g=class extends sg{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>Hh(t)||Rh(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(gg(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(Vh(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,hg(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(Vh(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&zh(i)?i.value:i:Vh(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Rh(t))return!1;let n=t.value;return n==null||e&&zh(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return Vh(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(Vh(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,hg(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},vg=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function yg(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var bg=(e,t,n)=>e.endsWith(`
|
|
434
|
+
`)?yg(n,t):n.includes(`
|
|
435
|
+
`)?`
|
|
436
|
+
`+yg(n,t):(e.endsWith(` `)?``:` `)+n,xg=`flow`,Sg=`block`,Cg=`quoted`;function wg(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=Tg(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
|
|
437
|
+
`)n===`block`&&(h=Tg(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
|
|
438
|
+
`&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
|
|
439
|
+
`&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function Tg(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
|
|
440
|
+
`);r=t,i=t+1,a=e[i]}return r}var Eg=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Dg=e=>/^(%|---|\.\.\.)/m.test(e);function Og(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
|
|
441
|
+
`){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function kg(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(Dg(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
|
|
442
|
+
|
|
443
|
+
`;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
|
|
444
|
+
`,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:wg(o,a,Cg,Eg(t,!1))}function Ag(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
445
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return kg(e,t);let n=t.indent||(Dg(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:wg(r,n,xg,Eg(t,!1))}function jg(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=kg;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?Ag:i&&!t?kg:n?Ag:kg}return r(e,t)}var Mg;try{Mg=RegExp(`(^|(?<!
|
|
446
|
+
))
|
|
447
|
+
+(?!
|
|
448
|
+
|$)`,`g`)}catch{Mg=/\n+(?!\n|$)/g}function Ng({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return jg(n,r);let l=r.indent||(r.forceBlockIndent||Dg(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===dg.BLOCK_FOLDED?!1:t===dg.BLOCK_LITERAL||!Og(n,c,l.length);if(!n)return u?`|
|
|
449
|
+
`:`>
|
|
450
|
+
`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
|
|
451
|
+
`&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
|
|
452
|
+
`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
|
|
453
|
+
`&&(p=p.slice(0,-1)),p.replace(Mg,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
|
|
454
|
+
`)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
|
|
455
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=Eg(r,!0);o!==`folded`&&t!==dg.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=wg(`${v}${e}${p}`,l,Sg,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function Pg(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
|
|
456
|
+
`)||u&&/[[\]{},]/.test(a))return jg(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
|
|
457
|
+
`)?jg(a,t):Ng(e,t,n,r);if(!s&&!u&&i!==dg.PLAIN&&a.includes(`
|
|
458
|
+
`))return Ng(e,t,n,r);if(Dg(a)){if(c===``)return t.forceBlockIndent=!0,Ng(e,t,n,r);if(s&&c===l)return jg(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return jg(a,t)}return s?d:wg(d,c,xg,Eg(t,!1))}function Fg(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==dg.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=dg.QUOTE_DOUBLE);let c=e=>{switch(e){case dg.BLOCK_FOLDED:case dg.BLOCK_LITERAL:return i||a?jg(o.value,t):Ng(o,t,n,r);case dg.QUOTE_DOUBLE:return kg(o.value,t);case dg.QUOTE_SINGLE:return Ag(o.value,t);case dg.PLAIN:return Pg(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function Ig(e,t){let n=Object.assign({blockQuote:!0,commentString:vg,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function Lg(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(zh(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function Rg(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(zh(e)||Vh(e))&&e.anchor;a&&tg(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function zg(e,t,n,r){if(Rh(e))return e.toString(t,n,r);if(Fh(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=Hh(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=Lg(t.doc.schema.tags,a);let o=Rg(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):zh(a)?Fg(a,t,n,r):a.toString(t,n,r);return o?zh(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function Bg({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=Hh(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(Vh(e)||!Hh(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||Vh(e)||(zh(e)?e.type===dg.BLOCK_FOLDED||e.type===dg.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=zg(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=bg(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=bg(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=bg(g,n.indent,l(f))));let _,v,y;Hh(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&zh(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&Bh(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=zg(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
|
|
459
|
+
`:``,v){let e=l(v);S+=`\n${yg(e,n.indent)}`}x===``&&!n.inFlow?S===`
|
|
460
|
+
`&&y&&(S=`
|
|
461
|
+
|
|
462
|
+
`):S+=`\n${n.indent}`}else if(!p&&Vh(t)){let e=x[0],r=x.indexOf(`
|
|
463
|
+
`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else(x===``||x[0]===`
|
|
464
|
+
`)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=bg(g,n.indent,l(y)):h&&i&&i(),g}function Vg(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var Hg=`<<`,Ug={identify:e=>e===Hg||typeof e==`symbol`&&e.description===Hg,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new dg(Symbol(Hg)),{addToJSMap:Gg}),stringify:()=>Hg},Wg=(e,t)=>(Ug.identify(t)||zh(t)&&(!t.type||t.type===dg.PLAIN)&&Ug.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===Ug.tag&&e.default);function Gg(e,t,n){let r=qg(e,n);if(Bh(r))for(let n of r.items)Kg(e,t,n);else if(Array.isArray(r))for(let n of r)Kg(e,t,n);else Kg(e,t,r)}function Kg(e,t,n){let r=qg(e,n);if(!Lh(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function qg(e,t){return e&&Fh(t)?t.resolve(e.doc,e):t}function Jg(e,t,{key:n,value:r}){if(Hh(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Wg(e,n))Gg(e,t,r);else{let i=og(n,``,e);if(t instanceof Map)t.set(i,og(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Yg(n,i,e),o=og(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Yg(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(Hh(e)&&n?.doc){let t=Ig(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),Vg(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function Xg(e,t,n){return new Zg(mg(e,void 0,n),mg(t,void 0,n))}var Zg=class e{constructor(e,t=null){Object.defineProperty(this,Ph,{value:jh}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return Hh(n)&&(n=n.clone(t)),Hh(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return Jg(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?Bg(this,e,t,n):JSON.stringify(this)}};function Qg(e,t,n){return(t.inFlow??e.flow?e_:$g)(e,t,n)}function $g({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(Hh(i))!d&&i.spaceBefore&&f.push(``),t_(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(Rh(i)){let e=Hh(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),t_(n,f,e.commentBefore,d))}d=!1;let s=zg(i,u,()=>o=null,()=>d=!0);o&&(s+=bg(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
|
|
465
|
+
`}}return e?(p+=`
|
|
466
|
+
`+yg(l(e),c),s&&s()):d&&o&&o(),p}function e_({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(Hh(i))i.spaceBefore&&d.push(``),t_(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(Rh(i)){let e=Hh(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),t_(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=Hh(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=zg(i,c,()=>a=null);l||=d.length>u||o.includes(`
|
|
467
|
+
`),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=bg(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
|
|
468
|
+
`;return`${e}\n${i}${p}`}return`${f}${o}${d.join(` `)}${o}${p}`}function t_({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=yg(t(r),e);n.push(i.trimStart())}}function n_(e,t){let n=zh(t)?t.value:t;for(let r of e)if(Rh(r)&&(r.key===t||r.key===n||zh(r.key)&&r.key.value===n))return r}var r_=class extends _g{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(Ah,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(Xg(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=Rh(e)?e:!e||typeof e!=`object`||!(`key`in e)?new Zg(e,e?.value):new Zg(e.key,e.value);let r=n_(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);zh(r.value)&&ug(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=n_(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=n_(this.items,e)?.value;return(!t&&zh(n)?n.value:n)??void 0}has(e){return!!n_(this.items,e)}set(e,t){this.add(new Zg(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)Jg(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!Rh(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Qg(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},i_={collection:`map`,default:!0,nodeClass:r_,tag:`tag:yaml.org,2002:map`,resolve(e,t){return Lh(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>r_.from(e,t,n)},a_=class extends _g{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(Nh,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=o_(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=o_(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&zh(r)?r.value:r}has(e){let t=o_(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=o_(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];zh(r)&&ug(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(og(e,String(r++),t));return n}toString(e,t,n){return e?Qg(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(mg(a,void 0,n))}}return i}};function o_(e){let t=zh(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var s_={collection:`seq`,default:!0,nodeClass:a_,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return Bh(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>a_.from(e,t,n)},c_={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),Fg(e,t,n,r)}},l_={identify:e=>e==null,createNode:()=>new dg(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new dg(null),stringify:({source:e},t)=>typeof e==`string`&&l_.test.test(e)?e:t.options.nullStr},u_={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new dg(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&u_.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function d_({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var f_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:d_},p_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():d_(e)}},m_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new dg(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:d_},h_=e=>typeof e==`bigint`||Number.isInteger(e),g_=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function __(e,t,n){let{value:r}=e;return h_(r)&&r>=0?n+r.toString(t):d_(e)}var v_={identify:e=>h_(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>g_(e,2,8,n),stringify:e=>__(e,8,`0o`)},y_={identify:h_,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>g_(e,0,10,n),stringify:d_},b_={identify:e=>h_(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>g_(e,2,16,n),stringify:e=>__(e,16,`0x`)},x_=[i_,s_,c_,l_,u_,v_,y_,b_,f_,p_,m_];function S_(e){return typeof e==`bigint`||Number.isInteger(e)}var C_=({value:e})=>JSON.stringify(e),w_=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:C_},{identify:e=>e==null,createNode:()=>new dg(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:C_},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:C_},{identify:S_,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>S_(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:C_}],T_=[i_,s_].concat(w_,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),E_={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=dg.BLOCK_LITERAL,t!==dg.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===dg.BLOCK_LITERAL?`
|
|
469
|
+
`:` `)}return Fg({comment:e,type:t,value:s},r,i,a)}};function D_(e,t){if(Bh(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!Rh(r)){if(Lh(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new Zg(new dg(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=Rh(r)?r:new Zg(r)}}else t(`Expected a sequence for this tag`);return e}function O_(e,t,n){let{replacer:r}=n,i=new a_(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(Xg(o,s,n))}return i}var k_={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:D_,createNode:O_},A_=class e extends a_{constructor(){super(),this.add=r_.prototype.add.bind(this),this.delete=r_.prototype.delete.bind(this),this.get=r_.prototype.get.bind(this),this.has=r_.prototype.has.bind(this),this.set=r_.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(Rh(e)?(r=og(e.key,``,t),i=og(e.value,r,t)):r=og(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=O_(e,t,n),i=new this;return i.items=r.items,i}};A_.tag=`tag:yaml.org,2002:omap`;var j_={collection:`seq`,identify:e=>e instanceof Map,nodeClass:A_,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=D_(e,t),r=[];for(let{key:e}of n.items)zh(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new A_,n)},createNode:(e,t,n)=>A_.from(e,t,n)};function M_({value:e,source:t},n){return t&&(e?N_:P_).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var N_={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new dg(!0),stringify:M_},P_={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new dg(!1),stringify:M_},F_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:d_},I_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():d_(e)}},L_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new dg(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:d_},R_=e=>typeof e==`bigint`||Number.isInteger(e);function z_(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function B_(e,t,n){let{value:r}=e;if(R_(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return d_(e)}var V_={identify:R_,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>z_(e,2,2,n),stringify:e=>B_(e,2,`0b`)},H_={identify:R_,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>z_(e,1,8,n),stringify:e=>B_(e,8,`0`)},U_={identify:R_,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>z_(e,0,10,n),stringify:d_},W_={identify:R_,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>z_(e,2,16,n),stringify:e=>B_(e,16,`0x`)},G_=class e extends r_{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=Rh(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new Zg(e.key,null):new Zg(e,null),n_(this.items,t.key)||this.items.push(t)}get(e,t){let n=n_(this.items,e);return!t&&Rh(n)?zh(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=n_(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Zg(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(Xg(e,null,n));return i}};G_.tag=`tag:yaml.org,2002:set`;var K_={collection:`map`,identify:e=>e instanceof Set,nodeClass:G_,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>G_.from(e,t,n),resolve(e,t){if(Lh(e)){if(e.hasAllNullValues(!0))return Object.assign(new G_,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function q_(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function J_(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return d_(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var Y_={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>q_(e,n),stringify:J_},X_={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>q_(e,!1),stringify:J_},Z_={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(Z_.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=q_(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},Q_=[i_,s_,c_,l_,N_,P_,V_,H_,U_,W_,F_,I_,L_,E_,Ug,j_,k_,K_,Y_,X_,Z_],$_=new Map([[`core`,x_],[`failsafe`,[i_,s_,c_]],[`json`,T_],[`yaml11`,Q_],[`yaml-1.1`,Q_]]),ev={binary:E_,bool:u_,float:m_,floatExp:p_,floatNaN:f_,floatTime:X_,int:y_,intHex:b_,intOct:v_,intTime:Y_,map:i_,merge:Ug,null:l_,omap:j_,pairs:k_,seq:s_,set:K_,timestamp:Z_},tv={"tag:yaml.org,2002:binary":E_,"tag:yaml.org,2002:merge":Ug,"tag:yaml.org,2002:omap":j_,"tag:yaml.org,2002:pairs":k_,"tag:yaml.org,2002:set":K_,"tag:yaml.org,2002:timestamp":Z_};function nv(e,t,n){let r=$_.get(t);if(r&&!e)return n&&!r.includes(Ug)?r.concat(Ug):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from($_.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(Ug)),i.reduce((e,t)=>{let n=typeof t==`string`?ev[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(ev).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var rv=(e,t)=>e.key<t.key?-1:+(e.key>t.key),iv=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?nv(e,`compat`):e?nv(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?tv:{},this.tags=nv(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,Ah,{value:i_}),Object.defineProperty(this,Mh,{value:c_}),Object.defineProperty(this,Nh,{value:s_}),this.sortMapEntries=typeof a==`function`?a:a===!0?rv:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function av(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=Ig(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(yg(t,``))}let o=!1,s=null;if(e.contents){if(Hh(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(yg(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=zg(e.contents,i,()=>s=null,t);s&&(c+=bg(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(zg(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=a(e.comment);t.includes(`
|
|
470
|
+
`)?(n.push(`...`),n.push(yg(t,``))):n.push(`... ${t}`)}else n.push(`...`)}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(yg(a(t),``)))}return n.join(`
|
|
471
|
+
`)+`
|
|
472
|
+
`}var ov=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ph,{value:kh});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new eg({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[Ph]:{value:kh}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Hh(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){sv(this.contents)&&this.contents.add(e)}addIn(e,t){sv(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=ng(this);e.anchor=!t||n.has(t)?rg(t||`a`,n):t}return new cg(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=ig(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=mg(e,l,p);return o&&Vh(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new Zg(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return sv(this.contents)?this.contents.delete(e):!1}deleteIn(e){return gg(e)?this.contents!=null&&(this.contents=null,!0):sv(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return Vh(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return gg(e)?!t&&zh(this.contents)?this.contents.value:this.contents:Vh(this.contents)?this.contents.getIn(e,t):void 0}has(e){return Vh(this.contents)?this.contents.has(e):!1}hasIn(e){return gg(e)?this.contents!==void 0:Vh(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=hg(this.schema,[e],t):sv(this.contents)&&this.contents.set(e,t)}setIn(e,t){gg(e)?this.contents=t:this.contents==null?this.contents=hg(this.schema,Array.from(e),t):sv(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new eg({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new eg({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new iv(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=og(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?ag(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return av(this,e)}};function sv(e){if(Vh(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var cv=Symbol(`break visit`),lv=Symbol(`skip children`),uv=Symbol(`remove item`);function dv(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),fv(Object.freeze([]),e,t)}dv.BREAK=cv,dv.SKIP=lv,dv.REMOVE=uv,dv.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},dv.parentCollection=(e,t)=>{let n=dv.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function fv(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=fv(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===cv)return cv;else r===uv&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}function pv(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return Ih(e)&&!r?e.toString(n):new ov(e,r,n).toString(n)}function mv(e){return e==null?`—`:typeof e==`string`?e:pv(e,{lineWidth:100})}var hv=.8,gv=.5;function _v(e){return e==null?`none`:e>=hv?`pass`:e>=gv?`partial`:`fail`}function vv(e){return e==null?`—`:e.toFixed(2)}function yv(e){return e==null?`—`:typeof e==`string`?e:JSON.stringify(e,null,2)}function bv(e,t){return t==null?`—`:e.includes(`cost_usd`)?`$${t.toFixed(4)}`:Number.isInteger(t)?String(t):t.toFixed(2)}function xv(e){return e==null?null:`${e>0?`+`:e<0?`−`:`±`}${Math.abs(e).toFixed(2)}`}var Sv=[`answer_rubric_score`,`answer_rubric_coverage`,`answer_rubric_accuracy`,`answer_rubric_citation`,`answer_rubric_factual_retrieval`,`answer_rubric_derived_computation`,`answer_rubric_analysis_interpretation`];function Cv(e){let t=e=>{let t=Sv.indexOf(e);return t===-1?Sv.length:t};return[...e].sort((e,n)=>t(e)-t(n)||e.localeCompare(n))}var wv=new Set([`satisfied`,`pass`,`hit`,`respected`]),Tv=new Set([`missing`,`absent`,`omitted`]),Ev=new Set([`incorrect`,`unsatisfied`,`fail`,`wrong`,`violated`]),Dv=new Set([`satisfied`,`partial`,`missing`]);function Ov(e){return e===!0||typeof e==`string`&&wv.has(e)?`satisfied`:e===`partial`?`partial`:typeof e==`string`&&Tv.has(e)?`absent`:e===!1||typeof e==`string`&&Ev.has(e)?`incorrect`:`other`}function kv(e){return typeof e==`string`&&!Dv.has(e)?e:null}function Av(e,t){let n=``;for(let r of[`en-US`,`en-IN`]){let i=new Intl.DateTimeFormat(r,{timeZone:t,timeZoneName:`short`}).formatToParts(e).find(e=>e.type===`timeZoneName`)?.value??``;if(i&&!i.startsWith(`GMT`))return i;n||=i}return n}function jv(e){if(!e)return null;let t=new Date(e);if(isNaN(t.getTime()))return null;let n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=new Intl.DateTimeFormat(`en-GB`,{timeZone:n,day:`2-digit`,month:`short`,year:`numeric`,hour:`2-digit`,minute:`2-digit`,hour12:!1}).format(t),i=Av(t,n);return i?`${r} ${i}`:r}function Mv(e){return e.split(/(`{3,}[\s\S]*?`{3,}|`[^`\n]*`)/).map((e,t)=>t%2==1?e:e.replace(/\$/g,`\\$`).replace(/\\\[(.+?)\\\]/gs,(e,t)=>`$$${t}$$`).replace(/\\\((.+?)\\\)/gs,(e,t)=>`$${t}$`)).join(``)}function Nv(e){return e==null?null:JSON.stringify(e,null,2)}function Pv(e){if(e==null)return`No run for this case yet.`;if(typeof e==`string`)return e;if(typeof e==`object`){let t=e;for(let e of[`response`,`answer`,`text`,`output`,`content`])if(typeof t[e]==`string`)return t[e]}return JSON.stringify(e,null,2)}function Fv(e){if(e&&typeof e==`object`){let t=e;for(let e of[`question`,`query`,`prompt`,`input`])if(typeof t[e]==`string`)return t[e]}return yv(e)}function Iv(e){let t=e?.selection;if(!t)return null;if(typeof t.tag==`string`&&t.tag)return t.tag;if(Array.isArray(t.case_ids)&&t.case_ids.length){let e=t.case_ids.length;return e===1?t.case_ids[0]:`${e} cases`}return t.all?`all cases`:null}function Lv(e){return e>=100?`$${e.toFixed(0)}`:e>=1?`$${e.toFixed(2)}`:`$${e.toFixed(4)}`}function Rv(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function zv(e){return e.toLocaleString(`en-US`)}function Bv(e){return e>=1073741824?`${(e/1073741824).toFixed(1)} GB`:e>=1048576?`${(e/1048576).toFixed(1)} MB`:e>=1024?`${(e/1024).toFixed(1)} kB`:`${e} B`}function Vv(e){return e>=6e4?`${(e/6e4).toFixed(1)}m`:e>=1e3?`${(e/1e3).toFixed(1)}s`:`${Math.round(e)}ms`}function Hv(e){let t=Math.round(e/1e3);return t<60?`${t}s`:t<3600?`${Math.floor(t/60)}m${t%60}s`:`${Math.floor(t/3600)}h${Math.floor(t%3600/60)}m`}function Uv(e,t){if(!e||!t)return null;let n=new Date(t).getTime()-new Date(e).getTime();return Number.isFinite(n)&&n>=0?n:null}function Wv(e){return e===`running`||e===`stopping`}function Gv(e){return e===`running`?`stop`:e===`failed`||e===`stopped`?`continue`:null}function Kv(e){if(e.status===`done`)return 1;let t=Date.parse(e.since),n=Date.parse(e.until)-t,r=(Date.parse(e.resume_from)-t)/n;return Math.min(1,Math.max(0,r))}function qv(e){return new Date(e).toISOString()}function Jv(e){let t=e.filter(e=>e.kind===`llm`),n=t.flatMap(e=>e.output_messages??[]);return{input:t.reduce((e,t)=>e+(t.input_messages?.length??0),0),output:n.length,toolCalls:n.reduce((e,t)=>e+(t.tool_calls?.length??0),0)}}var Yv=[[`kind`,`Span kind`],[`session_id`,`Session id`],[`model`,`Model`],[`input_messages`,`Input messages`],[`output_messages`,`Output messages`],[`tokens.prompt`,`Prompt tokens`],[`tokens.completion`,`Completion tokens`],[`tokens.cached`,`Cached tokens`],[`cost_usd`,`Cost (USD)`],[`tool.name`,`Tool name`],[`tool.call_id`,`Tool call id`],[`tool.arguments`,`Tool arguments`],[`tool.result`,`Tool result`],[`input`,`Span input`],[`output`,`Span output`]];function Xv(e,t){return t.split(`.`).reduce((e,t)=>e&&typeof e==`object`?e[t]:void 0,e)}function Zv(e){return e&&typeof e==`object`&&`attribute`in e?e:null}function Qv(e){return Yv.map(([t,n])=>({field:t,label:n,rule:Zv(Xv(e,t))}))}function $v(e){if(!e)return``;let t=Object.entries(e.values??{}).sort(([e],[t])=>e.localeCompare(t));return JSON.stringify([e.attribute,!!e.json,e.message_format??null,t])}function ey(e,t){return $v(e)===$v(t)}function ty(e){let t=[];return e.message_format&&t.push(`${e.message_format} messages`),e.json&&t.push(`parsed as JSON`),t}function ny(e){return e.tokens!==null&&(e.tokens.prompt!==null||e.tokens.completion!==null||e.costUsd!==null)}function ry(e){let t=new Map;for(let{step:n,key:r}of e){if(!ny(n))continue;let e=t.get(r)??{key:r,calls:0,input:0,output:0,cache_read:0,cost:0,unpriced:!1};e.calls+=1,e.input+=n.tokens?.prompt??0,e.output+=n.tokens?.completion??0,e.cache_read+=n.tokens?.cached??0,n.costUsd===null?e.unpriced=!0:e.cost+=n.costUsd,t.set(r,e)}return[...t.values()].sort((e,t)=>t.cost-e.cost||t.calls-e.calls)}function iy(e){let t=e.tabs.flatMap(e=>e.steps.map(t=>({step:t,tab:e.label,tabModel:e.modelName}))),n=ry(t.map(({step:e,tabModel:t})=>({step:e,key:e.model??t??`unknown`}))),r=ry(t.map(({step:e,tab:t})=>({step:e,key:t}))),i=new Map;for(let{step:e}of t)for(let t of e.toolCalls){let e=i.get(t.name)??{key:t.name,calls:0,errors:0};e.calls+=1,t.isError&&(e.errors+=1),i.set(t.name,e)}return{summary:{cost:e.totals.costUsd,calls:t.filter(({step:e})=>ny(e)).length,steps:t.length,input:e.totals.prompt??0,output:e.totals.completion??0,cache_read:e.totals.cached??0,models:[...new Set(n.map(e=>e.key))],unpriced_models:n.filter(e=>e.unpriced).map(e=>e.key)},by_model:n,by_agent:r,tool_calls:[...i.values()].sort((e,t)=>t.calls-e.calls)}}var ay=10;function oy(e){if(!e)return null;let t=Date.parse(e);return Number.isNaN(t)?null:t}function sy(e){let t=[],n=null;for(let r of e.tabs){let e=r.steps.map(e=>oy(e.timestamp));for(let t of e)t!==null&&(n===null||t<n)&&(n=t);for(let n=0;n<r.steps.length;n++){let i=e[n];if(i===null)continue;let a=e.slice(n+1).find(e=>e!==null)??null;t.push({step:r.steps[n].stepId,agent:r.label,source:r.steps[n].source,tools:r.steps[n].toolCalls.map(e=>e.name),start_ms:i,duration_ms:a===null?null:Math.max(0,a-i)})}}if(t.sort((e,t)=>e.start_ms-t.start_ms),n!==null)for(let e of t)e.start_ms-=n;let r=t.filter(e=>e.duration_ms!==null),i=t[t.length-1];return{wall_ms:i?i.start_ms+(i.duration_ms??0):null,steps:e.tabs.reduce((e,t)=>e+t.steps.length,0),timed_steps:r.length,rows:t,slowest:[...r].sort((e,t)=>(t.duration_ms??0)-(e.duration_ms??0)).slice(0,ay)}}function cy(e){return e.flatMap(e=>e.toolCalls.filter(e=>e.isError).map(t=>({stepId:e.stepId,callId:t.id,tool:t.name})))}function ly(e){return e==null?``:typeof e==`string`?e:e.filter(e=>e.type===`text`&&e.text).map(e=>e.text).join(` `)}function uy(e){return e.content===null||e.content===void 0?``:typeof e.content==`string`?e.content:e.content.filter(e=>e.type===`text`&&e.text).map(e=>e.text).join(` `)}function dy(e){return e.extra?.is_error===!0}function fy(e,t){let n=new Map;for(let t of e.observation?.results??[])t.source_call_id&&n.set(t.source_call_id,t);let r=(e.tool_calls??[]).map(e=>{let r=n.get(e.tool_call_id);return{id:e.tool_call_id,name:e.function_name,args:e.arguments,result:r?uy(r):null,isError:r?dy(r):!1,subagents:(r?.subagent_trajectory_ref??[]).flatMap(e=>{let n=t(e);return n?[n]:[]})}}),i=e.metrics;return{stepId:e.step_id,source:e.source,timestamp:e.timestamp??null,text:ly(e.message),thinking:e.reasoning_content??null,toolCalls:r,tokens:i?{prompt:i.prompt_tokens??null,completion:i.completion_tokens??null,cached:i.cached_tokens??null}:null,costUsd:i?.cost_usd??null,model:e.model_name??null}}function py(e){let t=(e.subagent_trajectories??[]).map((e,t)=>({doc:e,id:e.trajectory_id??`subagent-${t+1}`,label:e.agent?.name??e.trajectory_id??`subagent ${t+1}`})),n=e=>{let n=t.find(t=>e.trajectory_id&&t.doc.trajectory_id===e.trajectory_id||e.session_id&&t.doc.session_id===e.session_id);if(n)return{name:n.label,tab:n.id};let r=e.trajectory_id??e.session_id??e.trajectory_path;return r?{name:r,tab:null}:null},r=[{id:`main`,label:e.agent?.name??`main`,modelName:e.agent?.model_name??null,steps:e.steps.map(e=>fy(e,n))},...t.map(e=>({id:e.id,label:e.label,modelName:e.doc.agent?.model_name??null,steps:e.doc.steps.map(e=>fy(e,n))}))],i=r.flatMap(e=>e.steps),a=i.flatMap(e=>e.toolCalls),o=e=>{let t=null;for(let n of i){let r=n.tokens?e(n):null;r!==null&&(t=(t??0)+r)}return t},s=null;for(let e of i)e.costUsd!==null&&(s=(s??0)+e.costUsd);let c=e.final_metrics;return{schemaVersion:e.schema_version,agentName:e.agent?.name??null,modelName:e.agent?.model_name??null,totals:{prompt:c?.total_prompt_tokens??o(e=>e.tokens.prompt),completion:c?.total_completion_tokens??o(e=>e.tokens.completion),cached:c?.total_cached_tokens??o(e=>e.tokens.cached),costUsd:c?.total_cost_usd??s,steps:e.steps.length,toolCalls:a.length,erroredToolCalls:a.filter(e=>e.isError).length},tabs:r}}function my(e){let t=[e,...e.subagent_trajectories??[]].flatMap(e=>e.steps).flatMap(e=>e.timestamp?[e.timestamp]:[]).filter(e=>!isNaN(new Date(e).getTime())).sort((e,t)=>new Date(e).getTime()-new Date(t).getTime());return{start:t[0]??null,end:t.length>1?t.at(-1):null}}function hy(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]}]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function gy(e){let t=(e||{}).singleDollarTextMath;return t??=!0,r.peek=i,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:`
|
|
473
|
+
`,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(Td(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:`
|
|
474
|
+
`,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(`
|
|
475
|
+
`),i&&(c+=a.move(i+`
|
|
476
|
+
`)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}var _y={tokenize:yy,concrete:!0,name:`mathFlow`},vy={tokenize:by,partial:!0};function yy(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),Ga(e,l,`whitespace`)(t))}function l(t){return t===null||I(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||I(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(vy,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?Ga(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):I(t)?e.attempt(vy,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||I(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return Ga(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),Ga(e,c,`whitespace`)(t))}function c(r){return r===null||I(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function by(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function xy(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:Sy,previous:Cy,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):I(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||I(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function Sy(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Cy(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function wy(e){return{flow:{36:_y},text:{36:xy(e)}}}var Ty={};function Ey(e){let t=this,n=e||Ty,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(wy(n)),a.push(hy()),o.push(gy(n))}var Dy=/[#.]/g;function Oy(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){Dy.lastIndex=i;let e=Dy.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function ky(e,t,n){let r=n?Fy(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=Oy(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,Ay(i))a.unshift(i);else for(let[t,n]of Object.entries(i))jy(e,o.properties,t,n)}for(let e of a)My(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function Ay(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function jy(e,t,n,r){let i=xi(e,n),a;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?Ei(r):i.commaSeparated?Rr(r):i.commaOrSpaceSeparated?Ei(Rr(r).join(` `)):Ny(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?Py(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(Ny(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function My(e,t){if(t!=null){if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)My(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?My(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}}function Ny(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||Yr(n)===Yr(t)))return!0}return n}function Py(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function Fy(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var Iy=`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),Ly=ky(wi,`div`),Ry=ky(Ti,`g`,Iy),zy={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function By(e,t){return Vy(e,t||{})||{type:`root`,children:[]}}function Vy(e,t){let n=Hy(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Hy(e,t){switch(e.nodeType){case 1:return qy(e,t);case 3:return Gy(e);case 8:return Ky(e);case 9:return Uy(e,t);case 10:return Wy();case 11:return Uy(e,t);default:return}}function Uy(e,t){return{type:`root`,children:Jy(e,t)}}function Wy(){return{type:`doctype`}}function Gy(e){return{type:`text`,value:e.nodeValue||``}}function Ky(e){return{type:`comment`,value:e.nodeValue||``}}function qy(e,t){let n=e.namespaceURI,r=n===zy.svg?Ry:Ly,i=n===zy.html?e.tagName.toLowerCase():e.tagName,a=n===zy.html&&i===`template`?e.content:e,o=e.getAttributeNames(),s={},c=-1;for(;++c<o.length;)s[o[c]]=e.getAttribute(o[c])||``;return r(i,s,Jy(a,t))}function Jy(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=Vy(n[i],t);e!==void 0&&r.push(e)}return r}var Yy=new DOMParser;function Xy(e,t){return By(t?.fragment?Zy(e):Yy.parseFromString(e,`text/html`))}function Zy(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var Qy=(function(e,t,n){let r=fl(n);if(!e||!e.type||!e.children)throw Error(`Expected parent node`);if(typeof t==`number`){if(t<0||t===1/0)throw Error(`Expected positive finite number as index`)}else if(t=e.children.indexOf(t),t<0)throw Error(`Expected child node or index`);for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]}),$y=(function(e){if(e==null)return rb;if(typeof e==`string`)return tb(e);if(typeof e==`object`)return eb(e);if(typeof e==`function`)return nb(e);throw Error("Expected function, string, or array as `test`")});function eb(e){let t=[],n=-1;for(;++n<e.length;)t[n]=$y(e[n]);return nb(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function tb(e){return nb(t);function t(t){return t.tagName===e}}function nb(e){return t;function t(t,n,r){return!!(ib(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function rb(e){return!!(e&&typeof e==`object`&&`type`in e&&e.type===`element`&&`tagName`in e&&typeof e.tagName==`string`)}function ib(e){return typeof e==`object`&&!!e&&`type`in e&&`tagName`in e}var ab=/\n/g,ob=/[\t ]+/g,sb=$y(`br`),cb=$y(xb),lb=$y(`p`),ub=$y(`tr`),db=$y([`datalist`,`head`,`noembed`,`noframes`,`noscript`,`rp`,`script`,`style`,`template`,`title`,bb,Sb]),fb=$y(`address.article.aside.blockquote.body.caption.center.dd.dialog.dir.dl.dt.div.figure.figcaption.footer.form,.h1.h2.h3.h4.h5.h6.header.hgroup.hr.html.legend.li.listing.main.menu.nav.ol.p.plaintext.pre.section.ul.xmp`.split(`.`));function pb(e,t){let n=t||{},r=`children`in e?e.children:[],i=fb(e),a=yb(e,{whitespace:n.whitespace||`normal`,breakBefore:!1,breakAfter:!1}),o=[];(e.type===`text`||e.type===`comment`)&&o.push(...gb(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...mb(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?sb(r[s+1]):i}));let c=[],l;for(s=-1;++s<o.length;){let e=o[s];typeof e==`number`?l!==void 0&&e>l&&(l=e):e&&(l!==void 0&&l>-1&&c.push(`
|
|
477
|
+
`.repeat(l)||` `),l=-1,c.push(e))}return c.join(``)}function mb(e,t,n){return e.type===`element`?hb(e,t,n):e.type===`text`?n.whitespace===`normal`?gb(e,n):_b(e):[]}function hb(e,t,n){let r=yb(e,n),i=e.children||[],a=-1,o=[];if(db(e))return o;let s,c;for(sb(e)||ub(e)&&Qy(t,e,ub)?c=`
|
|
478
|
+
`:lb(e)?(s=2,c=2):fb(e)&&(s=1,c=1);++a<i.length;)o=o.concat(mb(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?sb(i[a+1]):c}));return cb(e)&&Qy(t,e,cb)&&o.push(` `),s&&o.unshift(s),c&&o.push(c),o}function gb(e,t){let n=String(e.value),r=[],i=[],a=0;for(;a<=n.length;){ab.lastIndex=a;let e=ab.exec(n),i=e&&`index`in e?e.index:n.length;r.push(vb(n.slice(a,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,``),a!==0||t.breakBefore,i!==n.length||t.breakAfter)),a=i+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),s=void 0):r[o]?(typeof s==`number`&&i.push(s),i.push(r[o]),s=0):(o===0||o===r.length-1)&&i.push(0);return i}function _b(e){return[String(e.value)]}function vb(e,t,n){let r=[],i=0,a;for(;i<e.length;){ob.lastIndex=i;let n=ob.exec(e);a=n?n.index:e.length,!i&&!a&&n&&!t&&r.push(``),i!==a&&r.push(e.slice(i,a)),i=n?a+n[0].length:a}return i!==a&&!n&&r.push(``),r.join(` `)}function yb(e,t){if(e.type===`element`){let n=e.properties||{};switch(e.tagName){case`listing`:case`plaintext`:case`xmp`:return`pre`;case`nobr`:return`nowrap`;case`pre`:return n.wrap?`pre-wrap`:`pre`;case`td`:case`th`:return n.noWrap?`nowrap`:t.whitespace;case`textarea`:return`pre-wrap`}}return t.whitespace}function bb(e){return!!(e.properties||{}).hidden}function xb(e){return e.tagName===`td`||e.tagName===`th`}function Sb(e){return e.tagName===`dialog`&&!(e.properties||{}).open}var R=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},Cb=/([A-Z])/g,wb=e=>e.replace(Cb,`-$1`).toLowerCase(),Tb={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Eb=/[&><"']/g,Db=e=>String(e).replace(Eb,e=>Tb[e]),Ob=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Ob(e.body[0]):e:e.type===`font`?Ob(e.body):e,kb=new Set([`mathord`,`textord`,`atom`]),Ab=e=>kb.has(Ob(e).type),jb=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},Mb={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function Nb(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function Pb(e){return e.default===void 0?Nb(Array.isArray(e.type)?e.type[0]:e.type):e.default}function Fb(e,t,n,r){var i=n[t];e[t]=i===void 0?Pb(r):r.processor?r.processor(i):i}var Ib=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(Mb)){var n=Mb[t];n&&Fb(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),r&&r!==`ignore`){if(r===!0||r===`error`)throw new R(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=jb(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Lb=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Kb[qb[this.id]]}sub(){return Kb[Jb[this.id]]}fracNum(){return Kb[Yb[this.id]]}fracDen(){return Kb[Xb[this.id]]}cramp(){return Kb[Zb[this.id]]}text(){return Kb[Qb[this.id]]}isTight(){return this.size>=2}},Rb=0,zb=1,Bb=2,Vb=3,Hb=4,Ub=5,Wb=6,Gb=7,Kb=[new Lb(Rb,0,!1),new Lb(zb,0,!0),new Lb(Bb,1,!1),new Lb(Vb,1,!0),new Lb(Hb,2,!1),new Lb(Ub,2,!0),new Lb(Wb,3,!1),new Lb(Gb,3,!0)],qb=[Hb,Ub,Hb,Ub,Wb,Gb,Wb,Gb],Jb=[Ub,Ub,Ub,Ub,Gb,Gb,Gb,Gb],Yb=[Bb,Vb,Hb,Ub,Wb,Gb,Wb,Gb],Xb=[Vb,Vb,Ub,Ub,Gb,Gb,Gb,Gb],Zb=[zb,zb,Vb,Vb,Ub,Ub,Gb,Gb],Qb=[Rb,zb,Bb,Vb,Bb,Vb,Bb,Vb],$b={DISPLAY:Kb[Rb],TEXT:Kb[Bb],SCRIPT:Kb[Hb],SCRIPTSCRIPT:Kb[Wb]},ex=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function tx(e){for(var t=0;t<ex.length;t++)for(var n=ex[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var nx=[];ex.forEach(e=>e.blocks.forEach(e=>nx.push(...e)));function rx(e){for(var t=0;t<nx.length;t+=2)if(e>=nx[t]&&e<=nx[t+1])return!0;return!1}var ix=e=>e+` `+e,ax=80,ox=function(e,t){return`M95,`+(622+e+t)+`
|
|
479
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
480
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
481
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
482
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
483
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
484
|
+
l`+e/2.075+` -`+e+`
|
|
485
|
+
c5.3,-9.3,12,-14,20,-14
|
|
486
|
+
H400000v`+(40+e)+`H845.2724
|
|
487
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
488
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
489
|
+
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},sx=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
|
|
490
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
491
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
492
|
+
l`+e/2.084+` -`+e+`
|
|
493
|
+
c4.7,-7.3,11,-11,19,-11
|
|
494
|
+
H40000v`+(40+e)+`H1012.3
|
|
495
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
496
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
497
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
498
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
499
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},cx=function(e,t){return`M983 `+(10+e+t)+`
|
|
500
|
+
l`+e/3.13+` -`+e+`
|
|
501
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|
502
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
503
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
504
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
505
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
506
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
507
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
508
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},lx=function(e,t){return`M424,`+(2398+e+t)+`
|
|
509
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
510
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
511
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
512
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
513
|
+
l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000
|
|
514
|
+
v`+(40+e)+`H1014.6
|
|
515
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
516
|
+
c-2,6,-10,9,-24,9
|
|
517
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
|
|
518
|
+
h400000v`+(40+e)+`h-400000z`},ux=function(e,t){return`M473,`+(2713+e+t)+`
|
|
519
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
|
|
520
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|
521
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
522
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
523
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
524
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
525
|
+
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},dx=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},fx=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
|
|
526
|
+
H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
527
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
528
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
529
|
+
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},px=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=ox(t,ax);break;case`sqrtSize1`:r=sx(t,ax);break;case`sqrtSize2`:r=cx(t,ax);break;case`sqrtSize3`:r=lx(t,ax);break;case`sqrtSize4`:r=ux(t,ax);break;case`sqrtTall`:r=fx(t,ax,n)}return r},mx=function(e,t){switch(e){case`⎜`:return ix(`M291 0 H417 V`+t+` H291z`);case`∣`:return ix(`M145 0 H188 V`+t+` H145z`);case`∥`:return ix(`M145 0 H188 V`+t+` H145z`)+ix(`M367 0 H410 V`+t+` H367z`);case`⎟`:return ix(`M457 0 H583 V`+t+` H457z`);case`⎢`:return ix(`M319 0 H403 V`+t+` H319z`);case`⎥`:return ix(`M263 0 H347 V`+t+` H263z`);case`⎪`:return ix(`M384 0 H504 V`+t+` H384z`);case`⏐`:return ix(`M312 0 H355 V`+t+` H312z`);case`‖`:return ix(`M257 0 H300 V`+t+` H257z`)+ix(`M478 0 H521 V`+t+` H478z`);default:return``}},hx={doubleleftarrow:`M262 157
|
|
530
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
531
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
532
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
533
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
534
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
535
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
536
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
537
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
538
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
539
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
540
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
541
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
542
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
543
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
544
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
545
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
546
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
547
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
548
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
549
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
550
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
551
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
552
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
553
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
554
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
555
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
556
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
557
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
558
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
559
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
560
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
561
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
562
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
563
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
564
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
565
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
566
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
567
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
568
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
569
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
570
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
571
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
572
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
573
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
574
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
575
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:ix(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:ix(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:ix(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:ix(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
576
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
577
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
578
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:ix(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
|
|
579
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
580
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
581
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
582
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
583
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
584
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
585
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
586
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
587
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
588
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
589
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
590
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
591
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
592
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
593
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
594
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
595
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
596
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
597
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
598
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
599
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
600
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
601
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
602
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
603
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
604
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
605
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
606
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
607
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
608
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
609
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
610
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
611
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
612
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
613
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
614
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
615
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
616
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
617
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
618
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
619
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
620
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
621
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
622
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
623
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
624
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
625
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
626
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
627
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:ix(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:ix(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:ix(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
628
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
629
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
630
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
631
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
632
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
633
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
634
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
635
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
636
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
637
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
638
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
639
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
640
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
641
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
642
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
643
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
644
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
645
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
646
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
647
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
648
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
649
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
650
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
651
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
652
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
653
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
654
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
655
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
656
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
657
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
658
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
659
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
660
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
661
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
662
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
663
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
664
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
665
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
666
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
667
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
668
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
669
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
670
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
671
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
672
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
673
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
674
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
675
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
676
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
677
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
678
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
679
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
680
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
681
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
682
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
683
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
684
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
685
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
686
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
687
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
688
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
689
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
690
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
691
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
692
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
693
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
694
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
695
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
696
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
697
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
698
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
699
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
700
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},gx=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
|
|
701
|
+
H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
|
|
702
|
+
M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
703
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
704
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
705
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
706
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
|
|
707
|
+
M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
708
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
709
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z
|
|
710
|
+
MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z
|
|
711
|
+
MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z
|
|
712
|
+
M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z
|
|
713
|
+
M347 1759 V0 h-84 V1759 v`+t+` v602 h84z`;case`lparen`:return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
714
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
715
|
+
-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
716
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
717
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
718
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
719
|
+
l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
720
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case`rparen`:return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
721
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
722
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
|
|
723
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
724
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
725
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
726
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
727
|
+
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
728
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function _x(e){return`toText`in e}var vx=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(_x(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},yx={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},bx={ex:!0,em:!0,mu:!0},xx=function(e){return typeof e!=`string`&&(e=e.unit),e in yx||e in bx||e===`ex`},Sx=function(e,t){var n;if(e.unit in yx)n=yx[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new R(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},z=function(e){return+e.toFixed(4)+`em`},Cx=function(e){return e.filter(e=>e).join(` `)},wx=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=wb(n)+`:`+r+`;`)}return t},Tx=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},Ex=function(e){var t=document.createElement(e);t.className=Cx(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},Dx=/[\s"'>/=\x00-\x1f]/,Ox=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+Db(Cx(this.classes))+`"`);var n=wx(this.style);n&&(t+=` style="`+Db(n)+`"`);for(var r of Object.keys(this.attributes)){if(Dx.test(r))throw new R(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+Db(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},kx=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,Tx.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Ex.call(this,`span`)}toMarkup(){return Ox.call(this,`span`)}},Ax=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Tx.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Ex.call(this,`a`)}toMarkup(){return Ox.call(this,`a`)}},jx=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+Db(this.src)+`"`+(` alt="`+Db(this.alt)+`"`),t=wx(this.style);return t&&(e+=` style="`+Db(t)+`"`),e+=`'/>`,e}},Mx={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Nx=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=tx(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Mx[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=z(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Cx(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=Db(Cx(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+z(this.italic)+`;`),n+=wx(this.style),n&&(e=!0,t+=` style="`+Db(n)+`"`);var r=Db(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},Px=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+Db(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},Fx=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,hx[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+Db(this.alternate)+`"/>`:`<path d="`+Db(hx[this.pathName])+`"/>`}},Ix=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+Db(this.attributes[t])+`"`;return e+=`/>`,e}};function Lx(e){if(e instanceof Nx)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Rx(e){if(e instanceof kx)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var zx=e=>e instanceof kx||e instanceof Ax||e instanceof vx,Bx={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Vx={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Hx={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function Ux(e,t){Bx[e]=t}function Wx(e,t,n){if(!Bx[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Bx[t][r];if(!i&&e[0]in Hx&&(r=Hx[e[0]].charCodeAt(0),i=Bx[t][r]),!i&&n===`text`&&rx(r)&&(i=Bx[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Gx={};function Kx(e){var t=e>=5?0:e>=3?1:2;if(!Gx[t]){var n=Gx[t]={cssEmPerMu:Vx.quad[t]/18};for(var r in Vx)Vx.hasOwnProperty(r)&&(n[r]=Vx[r][t])}return Gx[t]}var qx={math:{},text:{}};function B(e,t,n,r,i,a){qx[e][i]={font:t,group:n,replace:r},a&&r&&(qx[e][r]=qx[e][i])}var V=`math`,H=`text`,U=`main`,W=`ams`,Jx=`accent-token`,G=`bin`,Yx=`close`,Xx=`inner`,K=`mathord`,Zx=`op-token`,Qx=`open`,$x=`punct`,q=`rel`,eS=`spacing`,J=`textord`;B(V,U,q,`≡`,`\\equiv`,!0),B(V,U,q,`≺`,`\\prec`,!0),B(V,U,q,`≻`,`\\succ`,!0),B(V,U,q,`∼`,`\\sim`,!0),B(V,U,q,`⊥`,`\\perp`),B(V,U,q,`⪯`,`\\preceq`,!0),B(V,U,q,`⪰`,`\\succeq`,!0),B(V,U,q,`≃`,`\\simeq`,!0),B(V,U,q,`∣`,`\\mid`,!0),B(V,U,q,`≪`,`\\ll`,!0),B(V,U,q,`≫`,`\\gg`,!0),B(V,U,q,`≍`,`\\asymp`,!0),B(V,U,q,`∥`,`\\parallel`),B(V,U,q,`⋈`,`\\bowtie`,!0),B(V,U,q,`⌣`,`\\smile`,!0),B(V,U,q,`⊑`,`\\sqsubseteq`,!0),B(V,U,q,`⊒`,`\\sqsupseteq`,!0),B(V,U,q,`≐`,`\\doteq`,!0),B(V,U,q,`⌢`,`\\frown`,!0),B(V,U,q,`∋`,`\\ni`,!0),B(V,U,q,`∝`,`\\propto`,!0),B(V,U,q,`⊢`,`\\vdash`,!0),B(V,U,q,`⊣`,`\\dashv`,!0),B(V,U,q,`∋`,`\\owns`),B(V,U,$x,`.`,`\\ldotp`),B(V,U,$x,`⋅`,`\\cdotp`),B(V,U,$x,`⋅`,`·`),B(H,U,J,`⋅`,`·`),B(V,U,J,`#`,`\\#`),B(H,U,J,`#`,`\\#`),B(V,U,J,`&`,`\\&`),B(H,U,J,`&`,`\\&`),B(V,U,J,`ℵ`,`\\aleph`,!0),B(V,U,J,`∀`,`\\forall`,!0),B(V,U,J,`ℏ`,`\\hbar`,!0),B(V,U,J,`∃`,`\\exists`,!0),B(V,U,J,`∇`,`\\nabla`,!0),B(V,U,J,`♭`,`\\flat`,!0),B(V,U,J,`ℓ`,`\\ell`,!0),B(V,U,J,`♮`,`\\natural`,!0),B(V,U,J,`♣`,`\\clubsuit`,!0),B(V,U,J,`℘`,`\\wp`,!0),B(V,U,J,`♯`,`\\sharp`,!0),B(V,U,J,`♢`,`\\diamondsuit`,!0),B(V,U,J,`ℜ`,`\\Re`,!0),B(V,U,J,`♡`,`\\heartsuit`,!0),B(V,U,J,`ℑ`,`\\Im`,!0),B(V,U,J,`♠`,`\\spadesuit`,!0),B(V,U,J,`§`,`\\S`,!0),B(H,U,J,`§`,`\\S`),B(V,U,J,`¶`,`\\P`,!0),B(H,U,J,`¶`,`\\P`),B(V,U,J,`†`,`\\dag`),B(H,U,J,`†`,`\\dag`),B(H,U,J,`†`,`\\textdagger`),B(V,U,J,`‡`,`\\ddag`),B(H,U,J,`‡`,`\\ddag`),B(H,U,J,`‡`,`\\textdaggerdbl`),B(V,U,Yx,`⎱`,`\\rmoustache`,!0),B(V,U,Qx,`⎰`,`\\lmoustache`,!0),B(V,U,Yx,`⟯`,`\\rgroup`,!0),B(V,U,Qx,`⟮`,`\\lgroup`,!0),B(V,U,G,`∓`,`\\mp`,!0),B(V,U,G,`⊖`,`\\ominus`,!0),B(V,U,G,`⊎`,`\\uplus`,!0),B(V,U,G,`⊓`,`\\sqcap`,!0),B(V,U,G,`∗`,`\\ast`),B(V,U,G,`⊔`,`\\sqcup`,!0),B(V,U,G,`◯`,`\\bigcirc`,!0),B(V,U,G,`∙`,`\\bullet`,!0),B(V,U,G,`‡`,`\\ddagger`),B(V,U,G,`≀`,`\\wr`,!0),B(V,U,G,`⨿`,`\\amalg`),B(V,U,G,`&`,`\\And`),B(V,U,q,`⟵`,`\\longleftarrow`,!0),B(V,U,q,`⇐`,`\\Leftarrow`,!0),B(V,U,q,`⟸`,`\\Longleftarrow`,!0),B(V,U,q,`⟶`,`\\longrightarrow`,!0),B(V,U,q,`⇒`,`\\Rightarrow`,!0),B(V,U,q,`⟹`,`\\Longrightarrow`,!0),B(V,U,q,`↔`,`\\leftrightarrow`,!0),B(V,U,q,`⟷`,`\\longleftrightarrow`,!0),B(V,U,q,`⇔`,`\\Leftrightarrow`,!0),B(V,U,q,`⟺`,`\\Longleftrightarrow`,!0),B(V,U,q,`↦`,`\\mapsto`,!0),B(V,U,q,`⟼`,`\\longmapsto`,!0),B(V,U,q,`↗`,`\\nearrow`,!0),B(V,U,q,`↩`,`\\hookleftarrow`,!0),B(V,U,q,`↪`,`\\hookrightarrow`,!0),B(V,U,q,`↘`,`\\searrow`,!0),B(V,U,q,`↼`,`\\leftharpoonup`,!0),B(V,U,q,`⇀`,`\\rightharpoonup`,!0),B(V,U,q,`↙`,`\\swarrow`,!0),B(V,U,q,`↽`,`\\leftharpoondown`,!0),B(V,U,q,`⇁`,`\\rightharpoondown`,!0),B(V,U,q,`↖`,`\\nwarrow`,!0),B(V,U,q,`⇌`,`\\rightleftharpoons`,!0),B(V,W,q,`≮`,`\\nless`,!0),B(V,W,q,``,`\\@nleqslant`),B(V,W,q,``,`\\@nleqq`),B(V,W,q,`⪇`,`\\lneq`,!0),B(V,W,q,`≨`,`\\lneqq`,!0),B(V,W,q,``,`\\@lvertneqq`),B(V,W,q,`⋦`,`\\lnsim`,!0),B(V,W,q,`⪉`,`\\lnapprox`,!0),B(V,W,q,`⊀`,`\\nprec`,!0),B(V,W,q,`⋠`,`\\npreceq`,!0),B(V,W,q,`⋨`,`\\precnsim`,!0),B(V,W,q,`⪹`,`\\precnapprox`,!0),B(V,W,q,`≁`,`\\nsim`,!0),B(V,W,q,``,`\\@nshortmid`),B(V,W,q,`∤`,`\\nmid`,!0),B(V,W,q,`⊬`,`\\nvdash`,!0),B(V,W,q,`⊭`,`\\nvDash`,!0),B(V,W,q,`⋪`,`\\ntriangleleft`),B(V,W,q,`⋬`,`\\ntrianglelefteq`,!0),B(V,W,q,`⊊`,`\\subsetneq`,!0),B(V,W,q,``,`\\@varsubsetneq`),B(V,W,q,`⫋`,`\\subsetneqq`,!0),B(V,W,q,``,`\\@varsubsetneqq`),B(V,W,q,`≯`,`\\ngtr`,!0),B(V,W,q,``,`\\@ngeqslant`),B(V,W,q,``,`\\@ngeqq`),B(V,W,q,`⪈`,`\\gneq`,!0),B(V,W,q,`≩`,`\\gneqq`,!0),B(V,W,q,``,`\\@gvertneqq`),B(V,W,q,`⋧`,`\\gnsim`,!0),B(V,W,q,`⪊`,`\\gnapprox`,!0),B(V,W,q,`⊁`,`\\nsucc`,!0),B(V,W,q,`⋡`,`\\nsucceq`,!0),B(V,W,q,`⋩`,`\\succnsim`,!0),B(V,W,q,`⪺`,`\\succnapprox`,!0),B(V,W,q,`≆`,`\\ncong`,!0),B(V,W,q,``,`\\@nshortparallel`),B(V,W,q,`∦`,`\\nparallel`,!0),B(V,W,q,`⊯`,`\\nVDash`,!0),B(V,W,q,`⋫`,`\\ntriangleright`),B(V,W,q,`⋭`,`\\ntrianglerighteq`,!0),B(V,W,q,``,`\\@nsupseteqq`),B(V,W,q,`⊋`,`\\supsetneq`,!0),B(V,W,q,``,`\\@varsupsetneq`),B(V,W,q,`⫌`,`\\supsetneqq`,!0),B(V,W,q,``,`\\@varsupsetneqq`),B(V,W,q,`⊮`,`\\nVdash`,!0),B(V,W,q,`⪵`,`\\precneqq`,!0),B(V,W,q,`⪶`,`\\succneqq`,!0),B(V,W,q,``,`\\@nsubseteqq`),B(V,W,G,`⊴`,`\\unlhd`),B(V,W,G,`⊵`,`\\unrhd`),B(V,W,q,`↚`,`\\nleftarrow`,!0),B(V,W,q,`↛`,`\\nrightarrow`,!0),B(V,W,q,`⇍`,`\\nLeftarrow`,!0),B(V,W,q,`⇏`,`\\nRightarrow`,!0),B(V,W,q,`↮`,`\\nleftrightarrow`,!0),B(V,W,q,`⇎`,`\\nLeftrightarrow`,!0),B(V,W,q,`△`,`\\vartriangle`),B(V,W,J,`ℏ`,`\\hslash`),B(V,W,J,`▽`,`\\triangledown`),B(V,W,J,`◊`,`\\lozenge`),B(V,W,J,`Ⓢ`,`\\circledS`),B(V,W,J,`®`,`\\circledR`),B(H,W,J,`®`,`\\circledR`),B(V,W,J,`∡`,`\\measuredangle`,!0),B(V,W,J,`∄`,`\\nexists`),B(V,W,J,`℧`,`\\mho`),B(V,W,J,`Ⅎ`,`\\Finv`,!0),B(V,W,J,`⅁`,`\\Game`,!0),B(V,W,J,`‵`,`\\backprime`),B(V,W,J,`▲`,`\\blacktriangle`),B(V,W,J,`▼`,`\\blacktriangledown`),B(V,W,J,`■`,`\\blacksquare`),B(V,W,J,`⧫`,`\\blacklozenge`),B(V,W,J,`★`,`\\bigstar`),B(V,W,J,`∢`,`\\sphericalangle`,!0),B(V,W,J,`∁`,`\\complement`,!0),B(V,W,J,`ð`,`\\eth`,!0),B(H,U,J,`ð`,`ð`),B(V,W,J,`╱`,`\\diagup`),B(V,W,J,`╲`,`\\diagdown`),B(V,W,J,`□`,`\\square`),B(V,W,J,`□`,`\\Box`),B(V,W,J,`◊`,`\\Diamond`),B(V,W,J,`¥`,`\\yen`,!0),B(H,W,J,`¥`,`\\yen`,!0),B(V,W,J,`✓`,`\\checkmark`,!0),B(H,W,J,`✓`,`\\checkmark`),B(V,W,J,`ℶ`,`\\beth`,!0),B(V,W,J,`ℸ`,`\\daleth`,!0),B(V,W,J,`ℷ`,`\\gimel`,!0),B(V,W,J,`ϝ`,`\\digamma`,!0),B(V,W,J,`ϰ`,`\\varkappa`),B(V,W,Qx,`┌`,`\\@ulcorner`,!0),B(V,W,Yx,`┐`,`\\@urcorner`,!0),B(V,W,Qx,`└`,`\\@llcorner`,!0),B(V,W,Yx,`┘`,`\\@lrcorner`,!0),B(V,W,q,`≦`,`\\leqq`,!0),B(V,W,q,`⩽`,`\\leqslant`,!0),B(V,W,q,`⪕`,`\\eqslantless`,!0),B(V,W,q,`≲`,`\\lesssim`,!0),B(V,W,q,`⪅`,`\\lessapprox`,!0),B(V,W,q,`≊`,`\\approxeq`,!0),B(V,W,G,`⋖`,`\\lessdot`),B(V,W,q,`⋘`,`\\lll`,!0),B(V,W,q,`≶`,`\\lessgtr`,!0),B(V,W,q,`⋚`,`\\lesseqgtr`,!0),B(V,W,q,`⪋`,`\\lesseqqgtr`,!0),B(V,W,q,`≑`,`\\doteqdot`),B(V,W,q,`≓`,`\\risingdotseq`,!0),B(V,W,q,`≒`,`\\fallingdotseq`,!0),B(V,W,q,`∽`,`\\backsim`,!0),B(V,W,q,`⋍`,`\\backsimeq`,!0),B(V,W,q,`⫅`,`\\subseteqq`,!0),B(V,W,q,`⋐`,`\\Subset`,!0),B(V,W,q,`⊏`,`\\sqsubset`,!0),B(V,W,q,`≼`,`\\preccurlyeq`,!0),B(V,W,q,`⋞`,`\\curlyeqprec`,!0),B(V,W,q,`≾`,`\\precsim`,!0),B(V,W,q,`⪷`,`\\precapprox`,!0),B(V,W,q,`⊲`,`\\vartriangleleft`),B(V,W,q,`⊴`,`\\trianglelefteq`),B(V,W,q,`⊨`,`\\vDash`,!0),B(V,W,q,`⊪`,`\\Vvdash`,!0),B(V,W,q,`⌣`,`\\smallsmile`),B(V,W,q,`⌢`,`\\smallfrown`),B(V,W,q,`≏`,`\\bumpeq`,!0),B(V,W,q,`≎`,`\\Bumpeq`,!0),B(V,W,q,`≧`,`\\geqq`,!0),B(V,W,q,`⩾`,`\\geqslant`,!0),B(V,W,q,`⪖`,`\\eqslantgtr`,!0),B(V,W,q,`≳`,`\\gtrsim`,!0),B(V,W,q,`⪆`,`\\gtrapprox`,!0),B(V,W,G,`⋗`,`\\gtrdot`),B(V,W,q,`⋙`,`\\ggg`,!0),B(V,W,q,`≷`,`\\gtrless`,!0),B(V,W,q,`⋛`,`\\gtreqless`,!0),B(V,W,q,`⪌`,`\\gtreqqless`,!0),B(V,W,q,`≖`,`\\eqcirc`,!0),B(V,W,q,`≗`,`\\circeq`,!0),B(V,W,q,`≜`,`\\triangleq`,!0),B(V,W,q,`∼`,`\\thicksim`),B(V,W,q,`≈`,`\\thickapprox`),B(V,W,q,`⫆`,`\\supseteqq`,!0),B(V,W,q,`⋑`,`\\Supset`,!0),B(V,W,q,`⊐`,`\\sqsupset`,!0),B(V,W,q,`≽`,`\\succcurlyeq`,!0),B(V,W,q,`⋟`,`\\curlyeqsucc`,!0),B(V,W,q,`≿`,`\\succsim`,!0),B(V,W,q,`⪸`,`\\succapprox`,!0),B(V,W,q,`⊳`,`\\vartriangleright`),B(V,W,q,`⊵`,`\\trianglerighteq`),B(V,W,q,`⊩`,`\\Vdash`,!0),B(V,W,q,`∣`,`\\shortmid`),B(V,W,q,`∥`,`\\shortparallel`),B(V,W,q,`≬`,`\\between`,!0),B(V,W,q,`⋔`,`\\pitchfork`,!0),B(V,W,q,`∝`,`\\varpropto`),B(V,W,q,`◀`,`\\blacktriangleleft`),B(V,W,q,`∴`,`\\therefore`,!0),B(V,W,q,`∍`,`\\backepsilon`),B(V,W,q,`▶`,`\\blacktriangleright`),B(V,W,q,`∵`,`\\because`,!0),B(V,W,q,`⋘`,`\\llless`),B(V,W,q,`⋙`,`\\gggtr`),B(V,W,G,`⊲`,`\\lhd`),B(V,W,G,`⊳`,`\\rhd`),B(V,W,q,`≂`,`\\eqsim`,!0),B(V,U,q,`⋈`,`\\Join`),B(V,W,q,`≑`,`\\Doteq`,!0),B(V,W,G,`∔`,`\\dotplus`,!0),B(V,W,G,`∖`,`\\smallsetminus`),B(V,W,G,`⋒`,`\\Cap`,!0),B(V,W,G,`⋓`,`\\Cup`,!0),B(V,W,G,`⩞`,`\\doublebarwedge`,!0),B(V,W,G,`⊟`,`\\boxminus`,!0),B(V,W,G,`⊞`,`\\boxplus`,!0),B(V,W,G,`⋇`,`\\divideontimes`,!0),B(V,W,G,`⋉`,`\\ltimes`,!0),B(V,W,G,`⋊`,`\\rtimes`,!0),B(V,W,G,`⋋`,`\\leftthreetimes`,!0),B(V,W,G,`⋌`,`\\rightthreetimes`,!0),B(V,W,G,`⋏`,`\\curlywedge`,!0),B(V,W,G,`⋎`,`\\curlyvee`,!0),B(V,W,G,`⊝`,`\\circleddash`,!0),B(V,W,G,`⊛`,`\\circledast`,!0),B(V,W,G,`⋅`,`\\centerdot`),B(V,W,G,`⊺`,`\\intercal`,!0),B(V,W,G,`⋒`,`\\doublecap`),B(V,W,G,`⋓`,`\\doublecup`),B(V,W,G,`⊠`,`\\boxtimes`,!0),B(V,W,q,`⇢`,`\\dashrightarrow`,!0),B(V,W,q,`⇠`,`\\dashleftarrow`,!0),B(V,W,q,`⇇`,`\\leftleftarrows`,!0),B(V,W,q,`⇆`,`\\leftrightarrows`,!0),B(V,W,q,`⇚`,`\\Lleftarrow`,!0),B(V,W,q,`↞`,`\\twoheadleftarrow`,!0),B(V,W,q,`↢`,`\\leftarrowtail`,!0),B(V,W,q,`↫`,`\\looparrowleft`,!0),B(V,W,q,`⇋`,`\\leftrightharpoons`,!0),B(V,W,q,`↶`,`\\curvearrowleft`,!0),B(V,W,q,`↺`,`\\circlearrowleft`,!0),B(V,W,q,`↰`,`\\Lsh`,!0),B(V,W,q,`⇈`,`\\upuparrows`,!0),B(V,W,q,`↿`,`\\upharpoonleft`,!0),B(V,W,q,`⇃`,`\\downharpoonleft`,!0),B(V,U,q,`⊶`,`\\origof`,!0),B(V,U,q,`⊷`,`\\imageof`,!0),B(V,W,q,`⊸`,`\\multimap`,!0),B(V,W,q,`↭`,`\\leftrightsquigarrow`,!0),B(V,W,q,`⇉`,`\\rightrightarrows`,!0),B(V,W,q,`⇄`,`\\rightleftarrows`,!0),B(V,W,q,`↠`,`\\twoheadrightarrow`,!0),B(V,W,q,`↣`,`\\rightarrowtail`,!0),B(V,W,q,`↬`,`\\looparrowright`,!0),B(V,W,q,`↷`,`\\curvearrowright`,!0),B(V,W,q,`↻`,`\\circlearrowright`,!0),B(V,W,q,`↱`,`\\Rsh`,!0),B(V,W,q,`⇊`,`\\downdownarrows`,!0),B(V,W,q,`↾`,`\\upharpoonright`,!0),B(V,W,q,`⇂`,`\\downharpoonright`,!0),B(V,W,q,`⇝`,`\\rightsquigarrow`,!0),B(V,W,q,`⇝`,`\\leadsto`),B(V,W,q,`⇛`,`\\Rrightarrow`,!0),B(V,W,q,`↾`,`\\restriction`),B(V,U,J,`‘`,"`"),B(V,U,J,`$`,`\\$`),B(H,U,J,`$`,`\\$`),B(H,U,J,`$`,`\\textdollar`),B(V,U,J,`%`,`\\%`),B(H,U,J,`%`,`\\%`),B(V,U,J,`_`,`\\_`),B(H,U,J,`_`,`\\_`),B(H,U,J,`_`,`\\textunderscore`),B(V,U,J,`∠`,`\\angle`,!0),B(V,U,J,`∞`,`\\infty`,!0),B(V,U,J,`′`,`\\prime`),B(V,U,J,`△`,`\\triangle`),B(V,U,J,`Γ`,`\\Gamma`,!0),B(V,U,J,`Δ`,`\\Delta`,!0),B(V,U,J,`Θ`,`\\Theta`,!0),B(V,U,J,`Λ`,`\\Lambda`,!0),B(V,U,J,`Ξ`,`\\Xi`,!0),B(V,U,J,`Π`,`\\Pi`,!0),B(V,U,J,`Σ`,`\\Sigma`,!0),B(V,U,J,`Υ`,`\\Upsilon`,!0),B(V,U,J,`Φ`,`\\Phi`,!0),B(V,U,J,`Ψ`,`\\Psi`,!0),B(V,U,J,`Ω`,`\\Omega`,!0),B(V,U,J,`A`,`Α`),B(V,U,J,`B`,`Β`),B(V,U,J,`E`,`Ε`),B(V,U,J,`Z`,`Ζ`),B(V,U,J,`H`,`Η`),B(V,U,J,`I`,`Ι`),B(V,U,J,`K`,`Κ`),B(V,U,J,`M`,`Μ`),B(V,U,J,`N`,`Ν`),B(V,U,J,`O`,`Ο`),B(V,U,J,`P`,`Ρ`),B(V,U,J,`T`,`Τ`),B(V,U,J,`X`,`Χ`),B(V,U,J,`¬`,`\\neg`,!0),B(V,U,J,`¬`,`\\lnot`),B(V,U,J,`⊤`,`\\top`),B(V,U,J,`⊥`,`\\bot`),B(V,U,J,`∅`,`\\emptyset`),B(V,W,J,`∅`,`\\varnothing`),B(V,U,K,`α`,`\\alpha`,!0),B(V,U,K,`β`,`\\beta`,!0),B(V,U,K,`γ`,`\\gamma`,!0),B(V,U,K,`δ`,`\\delta`,!0),B(V,U,K,`ϵ`,`\\epsilon`,!0),B(V,U,K,`ζ`,`\\zeta`,!0),B(V,U,K,`η`,`\\eta`,!0),B(V,U,K,`θ`,`\\theta`,!0),B(V,U,K,`ι`,`\\iota`,!0),B(V,U,K,`κ`,`\\kappa`,!0),B(V,U,K,`λ`,`\\lambda`,!0),B(V,U,K,`μ`,`\\mu`,!0),B(V,U,K,`ν`,`\\nu`,!0),B(V,U,K,`ξ`,`\\xi`,!0),B(V,U,K,`ο`,`\\omicron`,!0),B(V,U,K,`π`,`\\pi`,!0),B(V,U,K,`ρ`,`\\rho`,!0),B(V,U,K,`σ`,`\\sigma`,!0),B(V,U,K,`τ`,`\\tau`,!0),B(V,U,K,`υ`,`\\upsilon`,!0),B(V,U,K,`ϕ`,`\\phi`,!0),B(V,U,K,`χ`,`\\chi`,!0),B(V,U,K,`ψ`,`\\psi`,!0),B(V,U,K,`ω`,`\\omega`,!0),B(V,U,K,`ε`,`\\varepsilon`,!0),B(V,U,K,`ϑ`,`\\vartheta`,!0),B(V,U,K,`ϖ`,`\\varpi`,!0),B(V,U,K,`ϱ`,`\\varrho`,!0),B(V,U,K,`ς`,`\\varsigma`,!0),B(V,U,K,`φ`,`\\varphi`,!0),B(V,U,G,`∗`,`*`,!0),B(V,U,G,`+`,`+`),B(V,U,G,`−`,`-`,!0),B(V,U,G,`⋅`,`\\cdot`,!0),B(V,U,G,`∘`,`\\circ`,!0),B(V,U,G,`÷`,`\\div`,!0),B(V,U,G,`±`,`\\pm`,!0),B(V,U,G,`×`,`\\times`,!0),B(V,U,G,`∩`,`\\cap`,!0),B(V,U,G,`∪`,`\\cup`,!0),B(V,U,G,`∖`,`\\setminus`,!0),B(V,U,G,`∧`,`\\land`),B(V,U,G,`∨`,`\\lor`),B(V,U,G,`∧`,`\\wedge`,!0),B(V,U,G,`∨`,`\\vee`,!0),B(V,U,J,`√`,`\\surd`),B(V,U,Qx,`⟨`,`\\langle`,!0),B(V,U,Qx,`∣`,`\\lvert`),B(V,U,Qx,`∥`,`\\lVert`),B(V,U,Yx,`?`,`?`),B(V,U,Yx,`!`,`!`),B(V,U,Yx,`⟩`,`\\rangle`,!0),B(V,U,Yx,`∣`,`\\rvert`),B(V,U,Yx,`∥`,`\\rVert`),B(V,U,q,`=`,`=`),B(V,U,q,`:`,`:`),B(V,U,q,`≈`,`\\approx`,!0),B(V,U,q,`≅`,`\\cong`,!0),B(V,U,q,`≥`,`\\ge`),B(V,U,q,`≥`,`\\geq`,!0),B(V,U,q,`←`,`\\gets`),B(V,U,q,`>`,`\\gt`,!0),B(V,U,q,`∈`,`\\in`,!0),B(V,U,q,``,`\\@not`),B(V,U,q,`⊂`,`\\subset`,!0),B(V,U,q,`⊃`,`\\supset`,!0),B(V,U,q,`⊆`,`\\subseteq`,!0),B(V,U,q,`⊇`,`\\supseteq`,!0),B(V,W,q,`⊈`,`\\nsubseteq`,!0),B(V,W,q,`⊉`,`\\nsupseteq`,!0),B(V,U,q,`⊨`,`\\models`),B(V,U,q,`←`,`\\leftarrow`,!0),B(V,U,q,`≤`,`\\le`),B(V,U,q,`≤`,`\\leq`,!0),B(V,U,q,`<`,`\\lt`,!0),B(V,U,q,`→`,`\\rightarrow`,!0),B(V,U,q,`→`,`\\to`),B(V,W,q,`≱`,`\\ngeq`,!0),B(V,W,q,`≰`,`\\nleq`,!0),B(V,U,eS,`\xA0`,`\\ `),B(V,U,eS,`\xA0`,`\\space`),B(V,U,eS,`\xA0`,`\\nobreakspace`),B(H,U,eS,`\xA0`,`\\ `),B(H,U,eS,`\xA0`,` `),B(H,U,eS,`\xA0`,`\\space`),B(H,U,eS,`\xA0`,`\\nobreakspace`),B(V,U,eS,``,`\\nobreak`),B(V,U,eS,``,`\\allowbreak`),B(V,U,$x,`,`,`,`),B(V,U,$x,`;`,`;`),B(V,W,G,`⊼`,`\\barwedge`,!0),B(V,W,G,`⊻`,`\\veebar`,!0),B(V,U,G,`⊙`,`\\odot`,!0),B(V,U,G,`⊕`,`\\oplus`,!0),B(V,U,G,`⊗`,`\\otimes`,!0),B(V,U,J,`∂`,`\\partial`,!0),B(V,U,G,`⊘`,`\\oslash`,!0),B(V,W,G,`⊚`,`\\circledcirc`,!0),B(V,W,G,`⊡`,`\\boxdot`,!0),B(V,U,G,`△`,`\\bigtriangleup`),B(V,U,G,`▽`,`\\bigtriangledown`),B(V,U,G,`†`,`\\dagger`),B(V,U,G,`⋄`,`\\diamond`),B(V,U,G,`⋆`,`\\star`),B(V,U,G,`◃`,`\\triangleleft`),B(V,U,G,`▹`,`\\triangleright`),B(V,U,Qx,`{`,`\\{`),B(H,U,J,`{`,`\\{`),B(H,U,J,`{`,`\\textbraceleft`),B(V,U,Yx,`}`,`\\}`),B(H,U,J,`}`,`\\}`),B(H,U,J,`}`,`\\textbraceright`),B(V,U,Qx,`{`,`\\lbrace`),B(V,U,Yx,`}`,`\\rbrace`),B(V,U,Qx,`[`,`\\lbrack`,!0),B(H,U,J,`[`,`\\lbrack`,!0),B(V,U,Yx,`]`,`\\rbrack`,!0),B(H,U,J,`]`,`\\rbrack`,!0),B(V,U,Qx,`(`,`\\lparen`,!0),B(V,U,Yx,`)`,`\\rparen`,!0),B(H,U,J,`<`,`\\textless`,!0),B(H,U,J,`>`,`\\textgreater`,!0),B(V,U,Qx,`⌊`,`\\lfloor`,!0),B(V,U,Yx,`⌋`,`\\rfloor`,!0),B(V,U,Qx,`⌈`,`\\lceil`,!0),B(V,U,Yx,`⌉`,`\\rceil`,!0),B(V,U,J,`\\`,`\\backslash`),B(V,U,J,`∣`,`|`),B(V,U,J,`∣`,`\\vert`),B(H,U,J,`|`,`\\textbar`,!0),B(V,U,J,`∥`,`\\|`),B(V,U,J,`∥`,`\\Vert`),B(H,U,J,`∥`,`\\textbardbl`),B(H,U,J,`~`,`\\textasciitilde`),B(H,U,J,`\\`,`\\textbackslash`),B(H,U,J,`^`,`\\textasciicircum`),B(V,U,q,`↑`,`\\uparrow`,!0),B(V,U,q,`⇑`,`\\Uparrow`,!0),B(V,U,q,`↓`,`\\downarrow`,!0),B(V,U,q,`⇓`,`\\Downarrow`,!0),B(V,U,q,`↕`,`\\updownarrow`,!0),B(V,U,q,`⇕`,`\\Updownarrow`,!0),B(V,U,Zx,`∐`,`\\coprod`),B(V,U,Zx,`⋁`,`\\bigvee`),B(V,U,Zx,`⋀`,`\\bigwedge`),B(V,U,Zx,`⨄`,`\\biguplus`),B(V,U,Zx,`⋂`,`\\bigcap`),B(V,U,Zx,`⋃`,`\\bigcup`),B(V,U,Zx,`∫`,`\\int`),B(V,U,Zx,`∫`,`\\intop`),B(V,U,Zx,`∬`,`\\iint`),B(V,U,Zx,`∭`,`\\iiint`),B(V,U,Zx,`∏`,`\\prod`),B(V,U,Zx,`∑`,`\\sum`),B(V,U,Zx,`⨂`,`\\bigotimes`),B(V,U,Zx,`⨁`,`\\bigoplus`),B(V,U,Zx,`⨀`,`\\bigodot`),B(V,U,Zx,`∮`,`\\oint`),B(V,U,Zx,`∯`,`\\oiint`),B(V,U,Zx,`∰`,`\\oiiint`),B(V,U,Zx,`⨆`,`\\bigsqcup`),B(V,U,Zx,`∫`,`\\smallint`),B(H,U,Xx,`…`,`\\textellipsis`),B(V,U,Xx,`…`,`\\mathellipsis`),B(H,U,Xx,`…`,`\\ldots`,!0),B(V,U,Xx,`…`,`\\ldots`,!0),B(V,U,Xx,`⋯`,`\\@cdots`,!0),B(V,U,Xx,`⋱`,`\\ddots`,!0),B(V,U,J,`⋮`,`\\varvdots`),B(H,U,J,`⋮`,`\\varvdots`),B(V,U,Jx,`ˊ`,`\\acute`),B(V,U,Jx,`ˋ`,`\\grave`),B(V,U,Jx,`¨`,`\\ddot`),B(V,U,Jx,`~`,`\\tilde`),B(V,U,Jx,`ˉ`,`\\bar`),B(V,U,Jx,`˘`,`\\breve`),B(V,U,Jx,`ˇ`,`\\check`),B(V,U,Jx,`^`,`\\hat`),B(V,U,Jx,`⃗`,`\\vec`),B(V,U,Jx,`˙`,`\\dot`),B(V,U,Jx,`˚`,`\\mathring`),B(V,U,K,``,`\\@imath`),B(V,U,K,``,`\\@jmath`),B(V,U,J,`ı`,`ı`),B(V,U,J,`ȷ`,`ȷ`),B(H,U,J,`ı`,`\\i`,!0),B(H,U,J,`ȷ`,`\\j`,!0),B(H,U,J,`ß`,`\\ss`,!0),B(H,U,J,`æ`,`\\ae`,!0),B(H,U,J,`œ`,`\\oe`,!0),B(H,U,J,`ø`,`\\o`,!0),B(H,U,J,`Æ`,`\\AE`,!0),B(H,U,J,`Œ`,`\\OE`,!0),B(H,U,J,`Ø`,`\\O`,!0),B(H,U,Jx,`ˊ`,`\\'`),B(H,U,Jx,`ˋ`,"\\`"),B(H,U,Jx,`ˆ`,`\\^`),B(H,U,Jx,`˜`,`\\~`),B(H,U,Jx,`ˉ`,`\\=`),B(H,U,Jx,`˘`,`\\u`),B(H,U,Jx,`˙`,`\\.`),B(H,U,Jx,`¸`,`\\c`),B(H,U,Jx,`˚`,`\\r`),B(H,U,Jx,`ˇ`,`\\v`),B(H,U,Jx,`¨`,`\\"`),B(H,U,Jx,`˝`,`\\H`),B(H,U,Jx,`◯`,`\\textcircled`);var tS={"--":!0,"---":!0,"``":!0,"''":!0};B(H,U,J,`–`,`--`,!0),B(H,U,J,`–`,`\\textendash`),B(H,U,J,`—`,`---`,!0),B(H,U,J,`—`,`\\textemdash`),B(H,U,J,`‘`,"`",!0),B(H,U,J,`‘`,`\\textquoteleft`),B(H,U,J,`’`,`'`,!0),B(H,U,J,`’`,`\\textquoteright`),B(H,U,J,`“`,"``",!0),B(H,U,J,`“`,`\\textquotedblleft`),B(H,U,J,`”`,`''`,!0),B(H,U,J,`”`,`\\textquotedblright`),B(V,U,J,`°`,`\\degree`,!0),B(H,U,J,`°`,`\\degree`),B(H,U,J,`°`,`\\textdegree`,!0),B(V,U,J,`£`,`\\pounds`),B(V,U,J,`£`,`\\mathsterling`,!0),B(H,U,J,`£`,`\\pounds`),B(H,U,J,`£`,`\\textsterling`,!0),B(V,W,J,`✠`,`\\maltese`),B(H,W,J,`✠`,`\\maltese`);for(var nS=`0123456789/@."`,rS=0;rS<nS.length;rS++){var iS=nS.charAt(rS);B(V,U,J,iS,iS)}for(var aS=`0123456789!@*()-=+";:?/.,`,oS=0;oS<aS.length;oS++){var sS=aS.charAt(oS);B(H,U,J,sS,sS)}for(var cS=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,lS=0;lS<cS.length;lS++){var uS=cS.charAt(lS);B(V,U,K,uS,uS),B(H,U,J,uS,uS)}B(V,W,J,`C`,`ℂ`),B(H,W,J,`C`,`ℂ`),B(V,W,J,`H`,`ℍ`),B(H,W,J,`H`,`ℍ`),B(V,W,J,`N`,`ℕ`),B(H,W,J,`N`,`ℕ`),B(V,W,J,`P`,`ℙ`),B(H,W,J,`P`,`ℙ`),B(V,W,J,`Q`,`ℚ`),B(H,W,J,`Q`,`ℚ`),B(V,W,J,`R`,`ℝ`),B(H,W,J,`R`,`ℝ`),B(V,W,J,`Z`,`ℤ`),B(H,W,J,`Z`,`ℤ`),B(V,U,K,`h`,`ℎ`),B(H,U,K,`h`,`ℎ`);for(var Y,dS=0;dS<cS.length;dS++){var fS=cS.charAt(dS);Y=String.fromCharCode(55349,56320+dS),B(V,U,K,fS,Y),B(H,U,J,fS,Y),Y=String.fromCharCode(55349,56372+dS),B(V,U,K,fS,Y),B(H,U,J,fS,Y),Y=String.fromCharCode(55349,56424+dS),B(V,U,K,fS,Y),B(H,U,J,fS,Y),Y=String.fromCharCode(55349,56580+dS),B(V,U,K,fS,Y),B(H,U,J,fS,Y),Y=String.fromCharCode(55349,56684+dS),B(V,U,K,fS,Y),B(H,U,J,fS,Y),Y=String.fromCharCode(55349,56736+dS),B(V,U,K,fS,Y),B(H,U,J,fS,Y),Y=String.fromCharCode(55349,56788+dS),B(V,U,K,fS,Y),B(H,U,J,fS,Y),Y=String.fromCharCode(55349,56840+dS),B(V,U,K,fS,Y),B(H,U,J,fS,Y),Y=String.fromCharCode(55349,56944+dS),B(V,U,K,fS,Y),B(H,U,J,fS,Y),dS<26&&(Y=String.fromCharCode(55349,56632+dS),B(V,U,K,fS,Y),B(H,U,J,fS,Y),Y=String.fromCharCode(55349,56476+dS),B(V,U,K,fS,Y),B(H,U,J,fS,Y))}Y=String.fromCharCode(55349,56668),B(V,U,K,`k`,Y),B(H,U,J,`k`,Y);for(var pS=0;pS<10;pS++){var mS=pS.toString();Y=String.fromCharCode(55349,57294+pS),B(V,U,K,mS,Y),B(H,U,J,mS,Y),Y=String.fromCharCode(55349,57314+pS),B(V,U,K,mS,Y),B(H,U,J,mS,Y),Y=String.fromCharCode(55349,57324+pS),B(V,U,K,mS,Y),B(H,U,J,mS,Y),Y=String.fromCharCode(55349,57334+pS),B(V,U,K,mS,Y),B(H,U,J,mS,Y)}for(var hS=`ÐÞþ`,gS=0;gS<hS.length;gS++){var _S=hS.charAt(gS);B(V,U,K,_S,_S),B(H,U,J,_S,_S)}var vS={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},yS={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},bS={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},xS={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},SS={mathClass:``,textClass:``,font:``},CS={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},wS={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},TS={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},ES={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},DS={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},OS={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},kS={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},AS=[vS,vS,yS,yS,bS,bS,xS,SS,SS,SS,CS,CS,wS,wS,TS,TS,ES,ES,DS,DS,OS,OS,SS,SS,kS,kS],jS=[vS,SS,ES,DS,kS],MS=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return AS[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return jS[Math.floor((r-120782)/10)];if(r===120485||r===120486)return AS[0];if(120486<r&&r<120782)return SS;throw new R(`Unsupported character: `+e)},NS=function(e,t,n){if(qx[n][e]){var r=qx[n][e].replace;r&&(e=r)}return{value:e,metrics:Wx(e,t,n)}},PS=function(e,t,n,r,i){var a=NS(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new Nx(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new Nx(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},FS=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&NS(e,`Main-Bold`,t).metrics?PS(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||qx[t][e].font===`main`?PS(e,`Main-Regular`,t,n,r):PS(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},IS=function(e,t,n){return n!==`textord`&&NS(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},LS=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],{font:o,fontFamily:s,fontWeight:c,fontShape:l}=t,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=MS(i);f=m.font,p=m[r+`Class`]}if(f)return PS(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=IS(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=XS[o].fontName,g=[o]):(h=YS(s,c,l),g=[s,c,l]);if(NS(i,h,r).metrics)return PS(i,h,r,t,a.concat(g));if(tS.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(PS(i[y],h,r,t,a.concat(g)));return WS(v)}}if(n===`mathord`)return PS(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=qx[r][i]&&qx[r][i].font;if(b===`ams`)return PS(i,YS(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return PS(i,YS(`textrm`,c,l),r,t,a.concat(c,l));var x=YS(b,c,l);return PS(i,x,r,t,a.concat(x,c,l))}throw Error(`unexpected type: `+n+` in makeOrd`)},RS=(e,t)=>{if(Cx(e.classes)!==Cx(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},zS=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Nx&&r instanceof Nx&&RS(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},BS=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},X=function(e,t,n,r){var i=new kx(e,t,n,r);return BS(i),i},VS=(e,t,n,r)=>new kx(e,t,n,r),HS=function(e,t,n){var r=X([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=z(r.height),r.maxFontSize=1,r},US=function(e,t,n,r){var i=new Ax(e,t,n,r);return BS(i),i},WS=function(e){var t=new vx(e);return BS(t),t},GS=function(e,t){return e instanceof vx?X([],[e],t):e},KS=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},qS=function(e,t){for(var{children:n,depth:r}=KS(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=X([`pstrut`],[]);c.style.height=z(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=X(g,[c,h],void 0,_);v.style.top=z(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=X([`vlist`],l);y.style.height=z(d);var b;if(u<0){var x=X([`vlist`],[X([],[])]);x.style.height=z(-u),b=[X([`vlist-r`],[y,X([`vlist-s`],[new Nx(``)])]),X([`vlist-r`],[x])]}else b=[X([`vlist-r`],[y])];var S=X([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},JS=(e,t)=>{var n=X([`mspace`],[],t),r=Sx(e,t);return n.style.marginRight=z(r),n},YS=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},XS={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},ZS={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},QS=function(e,t){var[n,r,i]=ZS[e],a=VS([`overlay`],[new Px([new Fx(n)],{width:z(r),height:z(i),style:`width:`+z(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=z(i),a.style.width=z(r),a},$S={number:3,unit:`mu`},eC={number:4,unit:`mu`},tC={number:5,unit:`mu`},nC={mord:{mop:$S,mbin:eC,mrel:tC,minner:$S},mop:{mord:$S,mop:$S,mrel:tC,minner:$S},mbin:{mord:eC,mop:eC,mopen:eC,minner:eC},mrel:{mord:tC,mop:tC,mopen:tC,minner:tC},mopen:{},mclose:{mop:$S,mbin:eC,mrel:tC,minner:$S},mpunct:{mord:$S,mop:$S,mrel:tC,mopen:$S,mclose:$S,mpunct:$S,minner:$S},minner:{mord:$S,mop:$S,mbin:eC,mrel:tC,mopen:$S,mpunct:$S,minner:$S}},rC={mord:{mop:$S},mop:{mord:$S,mop:$S},mbin:{},mrel:{},mopen:{},mclose:{mop:$S},mpunct:{},minner:{mop:$S}},iC={},aC={},oC={};function Z(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)iC[n[c]]=s;t&&(a&&(aC[t]=a),o&&(oC[t]=o))}function sC(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Z({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var cC=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},lC=function(e){return e.type===`ordgroup`?e.body:[e]},uC=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),dC=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),fC={display:$b.DISPLAY,text:$b.TEXT,script:$b.SCRIPT,scriptscript:$b.SCRIPTSCRIPT},pC={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},mC=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=bC(e[a],t);if(o instanceof vx){var s=o.children;i.push(...s)}else i.push(o)}if(zS(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(fC[l.style]))}var u=X([r[0]||`leftmost`],[],t),d=X([r[1]||`rightmost`],[],t),f=n===`root`;return hC(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&dC.has(r)?t.classes[0]=`mord`:r===`mbin`&&uC.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),hC(i,(e,t)=>{var n=vC(t),r=vC(e),i=n&&r?e.hasClass(`mtight`)?rC[n]?.[r]:nC[n]?.[r]:null;if(i)return JS(i,c)},{node:u},d,f),i},hC=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=gC(o);if(s)hC(s.children,t,n,null,i);else{var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=X([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}}r&&e.pop()},gC=function(e){return e instanceof vx||e instanceof Ax||e instanceof kx&&e.hasClass(`enclosing`)?e:null},_C=function(e,t){var n=gC(e);if(n){var r=n.children;if(r.length){if(t===`right`)return _C(r[r.length-1],`right`);if(t===`left`)return _C(r[0],`left`)}}return e},vC=function(e,t){return e?(t&&(e=_C(e,t)),pC[e.classes[0]]||null):null},yC=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return X(t.concat(n))},bC=function(e,t,n){if(!e)return X();if(aC[e.type]){var r=aC[e.type](e,t);if(n&&t.size!==n.size){r=X(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new R(`Got group of unknown type: '`+e.type+`'`)};function xC(e,t){var n=X([`base`],e,t),r=X([`strut`]);return r.style.height=z(n.height+n.depth),n.depth&&(r.style.verticalAlign=z(-n.depth)),n.children.unshift(r),n}function SC(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=mC(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(xC(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(xC(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(xC(o,t));var l;n?(l=xC(mC(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=X([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=z(u.height+u.depth),u.depth&&(d.style.verticalAlign=z(-u.depth))}return u}function CC(e){return new vx(e)}var Q=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Cx(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof wC&&this.children[n+1]instanceof wC){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof wC;)r+=this.children[++n].toText();e.appendChild(new wC(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=Db(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+Db(Cx(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},wC=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Db(this.toText())}toText(){return this.text}},TC=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?` `:e>=-.05556&&e<=-.05555?` `:e>=-.1667&&e<=-.1666?` `:e>=-.2223&&e<=-.2222?` `:e>=-.2778&&e<=-.2777?` `:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,z(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+z(this.width)+`"/>`}toText(){return this.character?this.character:` `}},EC=new Set([`\\imath`,`\\jmath`]),DC=new Set([`mrow`,`mtable`]),OC=function(e,t,n){return qx[t][e]&&qx[t][e].replace&&e.charCodeAt(0)!==55349&&!(tS.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=qx[t][e].replace),new wC(e)},kC=function(e){return e.length===1?e[0]:new Q(`mrow`,e)},AC={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},jC=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=AC[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(EC.has(a))return null;if(qx[r][a]){var o=qx[r][a].replace;o&&(a=o)}var s=XS[n].fontName;return Wx(a,s,r)?XS[n].variant:null};function MC(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof wC&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof wC&&n.text===`,`}return!1}var NC=function(e,t,n){if(e.length===1){var r=FC(e[0],t);return n&&r instanceof Q&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=FC(e[o],t);if(s instanceof Q&&a instanceof Q){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)||s.type===`mn`&&a.type===`mn`||MC(s)&&a.type===`mn`){a.children.push(...s.children);continue}if(s.type===`mn`&&MC(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||MC(a))){var c=s.children[0];c instanceof Q&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof wC&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof wC&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},PC=function(e,t,n){return kC(NC(e,t,n))},FC=function(e,t){if(!e)return new Q(`mrow`);if(oC[e.type])return oC[e.type](e,t);throw new R(`Got group of unknown type: '`+e.type+`'`)};function IC(e,t,n,r,i){var a=NC(e,n),o=a.length===1&&a[0]instanceof Q&&DC.has(a[0].type)?a[0]:new Q(`mrow`,a),s=new Q(`annotation`,[new wC(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new Q(`math`,[new Q(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),X([i?`katex`:`katex-mathml`],[c])}var LC=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],RC=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],zC=function(e,t){return t.size<2?e:LC[e-1][t.size-1]},BC=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=RC[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:zC(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:RC[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=zC(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Kx(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};BC.BASESIZE=6;var VC=function(e){return new BC({style:e.displayMode?$b.DISPLAY:$b.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},HC=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=X(n,[e])}return e},UC=function(e,t,n){var r=VC(n),i;return n.output===`mathml`?IC(e,t,r,n.displayMode,!0):(i=n.output===`html`?X([`katex`],[SC(e,r)]):X([`katex`],[IC(e,t,r,n.displayMode,!1),SC(e,r)]),HC(i,n))},WC=function(e,t,n){return HC(X([`katex`],[SC(e,VC(n))]),n)},GC={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},KC=function(e){var t=new Q(`mo`,[new wC(GC[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},qC={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},JC=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),YC=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(JC.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:VS([],[new Px([new Fx(o)],{width:`100%`,height:z(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=qC[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var[d,f,p]=u,m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
729
|
+
`+h+` children.`);for(var v=0;v<h;v++){var y=new Px([new Fx(d[v])],{width:`400em`,height:z(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=VS([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=z(m),l.push(b)}return{span:X([`stretchy`],l,t),minWidth:f,height:m}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=z(a),i>0&&(r.style.minWidth=z(i)),r},XC=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=X([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new Ix({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new Ix({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=VS([],[new Px(c,{width:`100%`,height:z(o)})],i)}return a.height=o,a.style.height=z(o),a},ZC={bin:1,close:1,inner:1,open:1,punct:1,rel:1},QC={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function $C(e){return e in ZC}function ew(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function tw(e){var t=nw(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function nw(e){return e&&(e.type===`atom`||QC.hasOwnProperty(e.type))?e:null}var rw=e=>{if(e instanceof Nx)return e;if(zx(e)&&e.children.length===1)return rw(e.children[0])},iw=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=ew(e.base,`accent`),n=r.base,e.base=n,i=Rx(bC(e,t)),e.base=r):(r=ew(e,`accent`),n=r.base);var a=bC(n,t.havingCrampedStyle()),o=r.isShifty&&Ab(n),s=0;o&&(s=rw(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=YC(r,t),u=qS({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+z(2*s)+`)`,marginLeft:z(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=QS(`vec`,t),f=ZS.vec[1]):(d=LS({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=Lx(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=X([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=z(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=qS({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=X([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},aw=(e,t)=>{var n=e.isStretchy?KC(e.label):new Q(`mo`,[OC(e.label,e.mode)]),r=new Q(`mover`,[FC(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},ow=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));Z({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=cC(t[0]),r=!ow.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:iw,mathmlBuilder:aw}),Z({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:iw,mathmlBuilder:aw}),Z({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=bC(e.base,t),r=YC(e,t),i=e.label===`\\utilde`?.12:0;return X([`mord`,`accentunder`],[qS({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=KC(e.label),r=new Q(`munder`,[FC(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var sw=e=>{var t=new Q(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};Z({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=GS(bC(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=GS(bC(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=YC(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=qS({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=qS({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return X([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=KC(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=sw(FC(e.body,t));r=e.below?new Q(`munderover`,[n,sw(FC(e.below,t)),i]):new Q(`mover`,[n,i])}else e.below?r=new Q(`munder`,[n,sw(FC(e.below,t))]):(r=sw(),r=new Q(`mover`,[n,r]));return r}});function cw(e,t){var n=mC(e.body,t,!0);return X([e.mclass],n,t)}function lw(e,t){var n,r=NC(e.body,t);return e.mclass===`minner`?n=new Q(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Q(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Q(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}Z({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:lC(i),isCharacterBox:Ab(i)}},htmlBuilder:cw,mathmlBuilder:lw});var uw=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};Z({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:uw(t[0]),body:lC(t[1]),isCharacterBox:Ab(t[1])}}}),Z({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:uw(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:lC(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:Ab(c)}},htmlBuilder:cw,mathmlBuilder:lw}),Z({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:uw(t[0]),body:lC(t[0])}},htmlBuilder(e,t){var n=mC(e.body,t,!0),r=X([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new Q(`mstyle`,NC(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var dw={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},fw=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),pw=e=>e.type===`textord`&&e.text===`@`,mw=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function hw(e,t,n){var r=dw[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function gw(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new R(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=fw(),c=0;c<o.length;c++)if(!pw(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=tw(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l)){if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(mw(o[p],l)){f=!1,c=p;break}if(pw(o[p]))throw new R(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new R(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new R(`Expected one of "<>AV=|." after @`,o[c])}var m={type:`styling`,body:[hw(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=fw()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}Z({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=GS(bC(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=z(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Q(`mrow`,[FC(e.label,t)]);return n=new Q(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Q(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Z({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=GS(bC(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Q(`mrow`,[FC(e.fragment,t)])}}),Z({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=ew(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=ew(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new R(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new R(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var _w=(e,t)=>WS(mC(e.body,t.withColor(e.color),!1)),vw=(e,t)=>{var n=new Q(`mstyle`,NC(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};Z({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=ew(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:lC(i)}},htmlBuilder:_w,mathmlBuilder:vw}),Z({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=ew(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:_w,mathmlBuilder:vw}),Z({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&ew(i,`size`).value}},htmlBuilder(e,t){var n=X([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=z(Sx(e.size,t)))),n},mathmlBuilder(e,t){var n=new Q(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,z(Sx(e.size,t)))),n}});var yw={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},bw=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new R(`Expected a control sequence`,e);return t},xw=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},Sw=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};Z({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(yw[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=yw[r.text]),ew(t.parseFunction(),`internal`);throw new R(`Invalid token after macro prefix`,r)}}),Z({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new R(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new R(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new R(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new R(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===yw[n]),{type:`internal`,mode:t.mode}}}),Z({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=bw(t.gullet.popToken());return t.gullet.consumeSpaces(),Sw(t,r,xw(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Z({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=bw(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Sw(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var Cw=function(e,t,n){var r=Wx(qx.math[e]&&qx.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},ww=function(e,t,n,r){var i=n.havingBaseStyle(t),a=X(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Tw=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=z(i),e.height-=i,e.depth+=i},Ew=function(e,t,n,r,i,a){var o=ww(PS(e,`Main-Regular`,i,r),t,r,a);return n&&Tw(o,r,t),o},Dw=function(e,t,n,r){return PS(e,`Size`+t+`-Regular`,n,r)},Ow=function(e,t,n,r,i,a){var o=Dw(e,t,i,r),s=ww(X([`delimsizing`,`size`+t],[o],r),$b.TEXT,r,a);return n&&Tw(s,r,$b.TEXT),s},kw=function(e,t,n){return{type:`elem`,elem:X([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[X([],[PS(e,t,n)])])}},Aw=function(e,t,n){var r=Bx[`Size4-Regular`][e.charCodeAt(0)]?Bx[`Size4-Regular`][e.charCodeAt(0)][4]:Bx[`Size1-Regular`][e.charCodeAt(0)][4],i=VS([],[new Px([new Fx(`inner`,mx(e,Math.round(1e3*t)))],{width:z(r),height:z(t),style:`width:`+z(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=z(t),i.style.width=z(r),{type:`elem`,elem:i}},jw=.008,Mw={type:`kern`,size:-1*jw},Nw=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Pw=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Fw=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):Nw.has(e)?(c=`∣`,u=`vert`,d=333):Pw.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=Cw(o,f,i),m=p.height+p.depth,h=Cw(c,f,i),g=h.height+h.depth,_=Cw(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=Cw(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var T=C/2-w,E=[];if(u.length>0){var D=C-m-v,O=Math.round(C*1e3),k=gx(u,Math.round(D*1e3)),A=new Fx(u,k),ee=z(d/1e3),te=z(O/1e3),ne=VS([],[new Px([A],{width:ee,height:te,viewBox:`0 0 `+d+` `+O})],r);ne.height=O/1e3,ne.style.width=ee,ne.style.height=te,E.push({type:`elem`,elem:ne})}else{if(E.push(kw(l,f,i)),E.push(Mw),s===null){var re=C-m-v+2*jw;E.push(Aw(c,re,r))}else{var ie=(C-m-v-y)/2+2*jw;E.push(Aw(c,ie,r)),E.push(Mw),E.push(kw(s,f,i)),E.push(Mw),E.push(Aw(c,ie,r))}E.push(Mw),E.push(kw(o,f,i))}var ae=r.havingBaseStyle($b.TEXT);return ww(X([`delimsizing`,`mult`],[qS({positionType:`bottom`,positionData:T,children:E})],ae),$b.TEXT,r,a)},Iw=80,Lw=.08,Rw=function(e,t,n,r,i){return VS([`hide-tail`],[new Px([new Fx(e,px(e,r,n))],{width:`400em`,height:z(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},zw=function(e,t){var n=t.havingBaseSizing(),r=Yw(`\\surd`,e*n.sizeMultiplier,qw,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+Iw,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Lw)/i,c=(1+a)/i,o=Rw(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+Iw)*Uw[r.size],c=(Uw[r.size]+a)/i,s=(Uw[r.size]+a+Lw)/i,o=Rw(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+Lw,c=e+a,l=Math.floor(1e3*e+a)+Iw,o=Rw(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=z(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Bw=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Vw=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Hw=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),Uw=[0,1.2,1.8,2.4,3],Ww=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Bw.has(e)||Hw.has(e))return Ow(e,t,!1,n,r,i);if(Vw.has(e))return Fw(e,Uw[t],!1,n,r,i);throw new R(`Illegal delimiter: '`+e+`'`)},Gw=[{type:`small`,style:$b.SCRIPTSCRIPT},{type:`small`,style:$b.SCRIPT},{type:`small`,style:$b.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Kw=[{type:`small`,style:$b.SCRIPTSCRIPT},{type:`small`,style:$b.SCRIPT},{type:`small`,style:$b.TEXT},{type:`stack`}],qw=[{type:`small`,style:$b.SCRIPTSCRIPT},{type:`small`,style:$b.SCRIPT},{type:`small`,style:$b.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Jw=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},Yw=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=Cw(e,Jw(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},Xw=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Hw.has(e)?Gw:Bw.has(e)?qw:Kw,s=Yw(e,t,o,r);return s.type===`small`?Ew(e,s.style,n,r,i,a):s.type===`large`?Ow(e,s.size,n,r,i,a):Fw(e,t,n,r,i,a)},Zw=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return Xw(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},Qw={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},$w=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function eT(e){return`isMiddle`in e}function tT(e,t){var n=nw(e);if(n&&$w.has(n.text))return n;throw n?new R(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new R(`Invalid delimiter type '`+e.type+`'`,e)}Z({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=tT(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:Qw[e.funcName].size,mclass:Qw[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?X([e.mclass]):Ww(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(OC(e.delim,e.mode));var n=new Q(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=z(Uw[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function nT(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}Z({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new R(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:tT(t[0],e).text,color:n}}}),Z({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=tT(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=ew(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{nT(e);for(var n=mC(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];eT(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?yC(t,[`mopen`]):Zw(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(eT(u)){var d=u.isMiddle;n[l]=Zw(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=yC(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=Zw(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),X([`minner`],n,t)},mathmlBuilder:(e,t)=>{nT(e);var n=NC(e.body,t);if(e.left!==`.`){var r=new Q(`mo`,[OC(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Q(`mo`,[OC(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return kC(n)}}),Z({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=tT(t[0],e);if(!e.parser.leftrightDepth)throw new R(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=yC(t,[]):(n=Ww(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new Q(`mo`,[e.delim===`\\vert`||e.delim===`|`?OC(`|`,`text`):OC(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var rT=(e,t)=>{var n=GS(bC(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Ab(e.body);if(r===`sout`)a=X([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Sx({number:.6,unit:`pt`},t),l=Sx({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=z(d/2+c);var f=Math.floor(1e3*d*i);a=VS([`hide-tail`],[new Px([new Fx(`phase`,dx(f))],{width:`400em`,height:z(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=z(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=XC(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=z(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=z(h),a.style.borderRightWidth=z(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=qS({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=qS({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?X([`mord`,`cancel-lap`],[g],t):X([`mord`],[g],t)},iT=(e,t)=>{var n,r=new Q(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[FC(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+z(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};Z({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=ew(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:rT,mathmlBuilder:iT}),Z({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=ew(t[0],`color-token`).color,o=ew(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:rT,mathmlBuilder:iT}),Z({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),Z({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:rT,mathmlBuilder:iT}),Z({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:rT,mathmlBuilder:iT}),Z({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var aT={};function oT(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)aT[n[c]]=s;a&&(aC[t]=a),o&&(oC[t]=o)}var sT={};function $(e,t){sT[e]=t}var cT=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},lT=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,cT.range(this,t))}};function uT(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var dT=e=>{if(!e.parser.settings.displayMode)throw new R(`{`+e.envName+`} can be used only in display mode.`)},fT=new Set([`gather`,`gather*`]);function pT(e){if(!e.includes(`ed`))return!e.includes(`*`)}function mT(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new R(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new lT(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(uT(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new R(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var w=void 0;e.gullet.future().text!==` `&&(w=e.parseSizeGroup(!0)),g.push(w?w.value:null),b(),_.push(uT(e)),m=[],h.push(m),y()}else throw new R(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function hT(e){return e.slice(0,1)===`d`?`display`:`text`}var gT=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle($b.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?Sx({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=bC(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var w=e.rowGaps[n],T=0;w&&(T=Sx(w,t),T>0&&(T+=g,x<T&&(x=T),T=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+T,s[n]=S,v(a[n+1])}var E=_/2+t.fontMetrics().axisHeight,D=e.cols||[],O=[],k,A,ee=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var te=s[n],ne=te.pos-E,re=e.tags[n],ie=void 0;ie=re===!0?X([`eqn-num`],[],t):re===!1?X([],[],t):X([],mC(re,t,!0),t),ie.depth=te.depth,ie.height=te.height,ee.push({type:`elem`,elem:ie,shift:ne})}for(r=0,A=0;r<o||A<D.length;++r,++A){for(var ae=D[A],oe=!0;(se=ae)?.type===`separator`;){var se;if(oe||(k=X([`arraycolsep`],[]),k.style.width=z(t.fontMetrics().doubleRuleSep),O.push(k)),ae.separator===`|`||ae.separator===`:`){var ce=ae.separator===`|`?`solid`:`dashed`,le=X([`vertical-separator`],[],t);le.style.height=z(_),le.style.borderRightWidth=z(l),le.style.borderRightStyle=ce,le.style.margin=`0 `+z(-l/2);var ue=_-E;ue&&(le.style.verticalAlign=z(-ue)),O.push(le)}else throw new R(`Invalid separator type: `+ae.separator);A++,ae=D[A],oe=!1}if(!(r>=o)){var de=void 0;(r>0||e.hskipBeforeAndAfter)&&(de=ae?.pregap??d,de!==0&&(k=X([`arraycolsep`],[]),k.style.width=z(de),O.push(k)));var fe=[];for(n=0;n<i;++n){var pe=s[n],me=pe.cells[r];if(me){var he=pe.pos-E;me.depth=pe.depth,me.height=pe.height,fe.push({type:`elem`,elem:me,shift:he})}}var ge=qS({positionType:`individualShift`,children:fe}),_e=X([`col-align-`+(ae?.align||`c`)],[ge]);O.push(_e),(r<o-1||e.hskipBeforeAndAfter)&&(de=ae?.postgap??d,de!==0&&(k=X([`arraycolsep`],[]),k.style.width=z(de),O.push(k)))}}var ve=X([`mtable`],O);if(c.length>0){for(var ye=HS(`hline`,t,l),j=HS(`hdashline`,t,l),be=[{type:`elem`,elem:ve,shift:0}];c.length>0;){var xe=c.pop(),Se=xe.pos-E;xe.isDashed?be.push({type:`elem`,elem:j,shift:Se}):be.push({type:`elem`,elem:ye,shift:Se})}ve=qS({positionType:`individualShift`,children:be})}if(ee.length===0)return X([`mord`],[ve],t);var Ce=X([`tag`],[qS({positionType:`individualShift`,children:ee})],t);return WS([ve,Ce])},_T={c:`center `,l:`left `,r:`right `},vT=function(e,t){for(var n=[],r=new Q(`mtd`,[],[`mtr-glue`]),i=new Q(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new Q(`mtd`,[FC(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new Q(`mtr`,s))}var l=new Q(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,z(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=_T[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,w=e.hLinesBeforeRow;d+=w[0].length>0?`left `:``,d+=w[w.length-1].length>0?`right `:``;for(var T=1;T<w.length-1;T++)C+=w[T].length===0?`none `:w[T][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new Q(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new Q(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},yT=function(e,t){e.envName.includes(`ed`)||dT(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=mT(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:pT(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var d=ew(t[0].body[u],`textord`);l+=d.text}o=Number(l),s=o*2}var f=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)ew(ew(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(f)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new R(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var p=0;p<s;++p){var m=`r`,h=0;p%2==1?m=`l`:p>0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};oT({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(nw(t[0])?[t[0]]:ew(t[0],`ordgroup`).body).map(function(e){var t=tw(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new R(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return mT(e.parser,r,hT(e.envName))},htmlBuilder:gT,mathmlBuilder:vT}),oT({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new R(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=mT(e.parser,r,hT(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:gT,mathmlBuilder:vT}),oT({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=mT(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:gT,mathmlBuilder:vT}),oT({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(nw(t[0])?[t[0]]:ew(t[0],`ordgroup`).body).map(function(e){var t=tw(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new R(`Unknown column alignment: `+t,e)});if(n.length>1)throw new R(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=mT(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new R(`{subarray} can contain only one column`);return i},htmlBuilder:gT,mathmlBuilder:vT}),oT({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=mT(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},hT(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:gT,mathmlBuilder:vT}),oT({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:yT,htmlBuilder:gT,mathmlBuilder:vT}),oT({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){fT.has(e.envName)&&dT(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:pT(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return mT(e.parser,t,`display`)},htmlBuilder:gT,mathmlBuilder:vT}),oT({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:yT,htmlBuilder:gT,mathmlBuilder:vT}),oT({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){dT(e);var t={autoTag:pT(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return mT(e.parser,t,`display`)},htmlBuilder:gT,mathmlBuilder:vT}),oT({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return dT(e),gw(e.parser)},htmlBuilder:gT,mathmlBuilder:vT}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),Z({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new R(e.funcName+` valid only within array environment`)}});var bT=aT;Z({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new R(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=ew(i.body[o],`textord`).text;if(r===`\\begin`){if(!bT.hasOwnProperty(a))throw new R(`No such environment: `+a,i);var s=bT[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=ew(n.parseFunction(),`environment`);if(p.name!==a)throw new R(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var xT=(e,t)=>{var n=e.font,r=t.withFont(n);return bC(e.body,r)},ST=(e,t)=>{var n=e.font,r=t.withFont(n);return FC(e.body,r)},CT={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};Z({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=cC(t[0]),a=r;return a in CT&&(a=CT[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:xT,mathmlBuilder:ST}),Z({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:uw(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Ab(r)}}}),Z({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:xT,mathmlBuilder:ST});var wT=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=bC(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=bC(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Sx(e.barSize,t),u=HS(`frac-line`,t,d)):u=HS(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===$b.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=qS({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=qS({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===$b.DISPLAY.size?t.fontMetrics().delim1:n.size===$b.SCRIPTSCRIPT.size?t.havingStyle($b.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?yC(t,[`mopen`]):Xw(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?X([]):e.rightDelim==null?yC(t,[`mclose`]):Xw(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return X([`mord`].concat(a.sizingClasses(t)),[x,X([`mfrac`],[g]),S],t)},TT=(e,t)=>{var n=new Q(`mfrac`,[FC(e.numer,t),FC(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Sx(e.barSize,t);n.setAttribute(`linethickness`,z(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Q(`mo`,[new wC(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Q(`mo`,[new wC(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return kC(i)}return n},ET=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;Z({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),ET({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:wT,mathmlBuilder:TT}),Z({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var DT=[`display`,`text`,`script`,`scriptscript`],OT=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};Z({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=cC(t[0]),o=a.type===`atom`&&a.family===`open`?OT(a.text):null,s=cC(t[1]),c=s.type===`atom`&&s.family===`close`?OT(s.text):null,l=ew(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=ew(p.body[0],`textord`);f=DT[Number(m.text)]}}else p=ew(p,`textord`),f=DT[Number(p.text)];return ET({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),Z({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:ew(t[0],`size`).value,token:i}}}),Z({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=ew(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var kT=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?bC(e.sup,t.havingStyle(n.sup()),t):bC(e.sub,t.havingStyle(n.sub()),t),i=ew(e.base,`horizBrace`)):i=ew(e,`horizBrace`);var a=bC(i.base,t.havingBaseStyle($b.DISPLAY)),o=YC(i,t),s=i.isOver?qS({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):qS({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=X([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?qS({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):qS({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return X([`minner`,i.isOver?`mover`:`munder`],[s],t)};Z({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:kT,mathmlBuilder:(e,t)=>{var n=KC(e.label);return new Q(e.isOver?`mover`:`munder`,[FC(e.base,t),n])}}),Z({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=ew(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:lC(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=mC(e.body,t,!1);return US(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=PC(e.body,t);return n instanceof Q||(n=new Q(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Z({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=ew(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:lC(s)}}}),Z({type:`hbox`,names:[`\\hbox`],props:{numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:`hbox`,mode:n.mode,body:lC(t[0])}},htmlBuilder(e,t){return WS(mC(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new Q(`mrow`,NC(e.body,t.withFont(``)))}}),Z({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=ew(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var d=l[u],f=d.indexOf(`=`);if(f<0)throw new R(`\\htmlData key/value '`+d+`' missing equals sign`);var p=d.slice(0,f),m=d.slice(f+1);c[`data-`+p.trim()]=m}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:lC(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=mC(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=X(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>PC(e.body,t)}),Z({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:lC(t[0]),mathml:lC(t[1])}},htmlBuilder:(e,t)=>WS(mC(e.html,t,!1)),mathmlBuilder:(e,t)=>PC(e.mathml,t)});var AT=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new R(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!xx(n))throw new R(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};Z({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=ew(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=AT(d);break;case`height`:a=AT(d);break;case`totalheight`:o=AT(d);break;default:throw new R(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=ew(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=Sx(e.height,t),r=0;e.totalheight.number>0&&(r=Sx(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Sx(e.width,t));var a={height:z(n+r)};i>0&&(a.width=z(i)),r>0&&(a.verticalAlign=z(-r));var o=new jx(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Q(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Sx(e.height,t),i=0;if(e.totalheight.number>0&&(i=Sx(e.totalheight,t)-r,n.setAttribute(`valign`,z(-i))),n.setAttribute(`height`,z(r+i)),e.width.number>0){var a=Sx(e.width,t);n.setAttribute(`width`,z(a))}return n.setAttribute(`src`,e.src),n}}),Z({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=ew(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return JS(e.dimension,t)},mathmlBuilder(e,t){return new TC(Sx(e.dimension,t))}}),Z({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=X([],[bC(e.body,t)]),n=X([`inner`],[n],t)):n=X([`inner`],[bC(e.body,t)]);var r=X([`fix`],[]),i=X([e.alignment],[n,r],t),a=X([`strut`]);return a.style.height=z(i.height+i.depth),i.depth&&(a.style.verticalAlign=z(-i.depth)),i.children.unshift(a),i=X([`thinbox`],[i],t),X([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[FC(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),Z({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),Z({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new R(`Mismatched `+e.funcName)}});var jT=(e,t)=>{switch(t.style.size){case $b.DISPLAY.size:return e.display;case $b.TEXT.size:return e.text;case $b.SCRIPT.size:return e.script;case $b.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Z({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:lC(t[0]),text:lC(t[1]),script:lC(t[2]),scriptscript:lC(t[3])}},htmlBuilder:(e,t)=>WS(mC(jT(e,t),t,!1)),mathmlBuilder:(e,t)=>PC(jT(e,t),t)});var MT=(e,t,n,r,i,a,o)=>{e=X([],[e]);var s=n&&Ab(n),c,l;if(t){var u=bC(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=bC(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=qS({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:z(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:z(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=qS({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:z(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=qS({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:z(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=X([`mspace`],[],r);m.style.marginRight=z(a),p.unshift(m)}return X([`mop`,`op-limits`],p,r)},NT=new Set([`\\smallint`]),PT=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=ew(e.base,`op`),i=!0):a=ew(e,`op`);var o=t.style,s=!1;o.size===$b.DISPLAY.size&&a.symbol&&!NT.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=PS(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=QS(d+`Size`+(s?`2`:`1`),t);c=qS({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=mC(a.body,t,!0);p.length===1&&p[0]instanceof Nx?(c=p[0],c.classes[0]=`mop`):c=X([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(FS(a.name[h],a.mode,t));c=X([`mop`],m,t)}var g=0,_=0;return(c instanceof Nx||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?MT(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=z(g)),c)},FT=(e,t)=>{var n;if(e.symbol)n=new Q(`mo`,[OC(e.name,e.mode)]),NT.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Q(`mo`,NC(e.body,t));else{n=new Q(`mi`,[new wC(e.name.slice(1))]);var r=new Q(`mo`,[OC(``,`text`)]);n=e.parentIsSupSub?new Q(`mrow`,[n,r]):CC([n,r])}return n},IT={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};Z({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=IT[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:PT,mathmlBuilder:FT}),Z({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:lC(r)}},htmlBuilder:PT,mathmlBuilder:FT});var LT={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};Z({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:PT,mathmlBuilder:FT}),Z({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:PT,mathmlBuilder:FT}),Z({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=LT[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:PT,mathmlBuilder:FT});var RT=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=ew(e.base,`operatorname`),i=!0):a=ew(e,`operatorname`);var o;if(a.body.length>0){for(var s=mC(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof Nx&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=X([`mop`],s,t)}else o=X([`mop`],[],t);return i?MT(o,n,r,t,t.style,0,0):o};Z({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:lC(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:RT,mathmlBuilder:(e,t)=>{for(var n=NC(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof TC)){if(a instanceof Q)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof wC?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}}r&&(n=[new wC(n.map(e=>e.toText()).join(``))]);var s=new Q(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new Q(`mo`,[OC(``,`text`)]);return e.parentIsSupSub?new Q(`mrow`,[s,c]):CC([s,c])}}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),sC({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?WS(mC(e.body,t,!1)):X([`mord`],mC(e.body,t,!0),t)},mathmlBuilder(e,t){return PC(e.body,t,!0)}}),Z({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=bC(e.body,t.havingCrampedStyle()),r=HS(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return X([`mord`,`overline`],[qS({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Q(`mo`,[new wC(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Q(`mover`,[FC(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Z({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:lC(r)}},htmlBuilder:(e,t)=>WS(mC(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new Q(`mphantom`,NC(e.body,t))}),$(`\\hphantom`,`\\smash{\\phantom{#1}}`),Z({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>X([`mord`,`rlap`],[X([`inner`],[bC(e.body,t.withPhantom())]),X([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[new Q(`mphantom`,NC(lC(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),Z({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=ew(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=bC(e.body,t);return qS({positionType:`shift`,positionData:-Sx(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Q(`mpadded`,[FC(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),Z({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),Z({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=ew(t[0],`size`),o=ew(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&ew(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=X([`mord`,`rule`],[],t),r=Sx(e.width,t),i=Sx(e.height,t),a=e.shift?Sx(e.shift,t):0;return n.style.borderRightWidth=z(r),n.style.borderTopWidth=z(i),n.style.bottom=z(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Sx(e.width,t),r=Sx(e.height,t),i=e.shift?Sx(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Q(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,z(n)),o.setAttribute(`height`,z(r));var s=new Q(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,z(i)):(s.setAttribute(`height`,z(i)),s.setAttribute(`depth`,z(-i))),s.setAttribute(`voffset`,z(i)),s}});function zT(e,t,n){for(var r=mC(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return WS(r)}var BT=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];Z({type:`sizing`,names:BT,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:BT.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return zT(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new Q(`mstyle`,NC(e.body,n));return r.setAttribute(`mathsize`,z(n.sizeMultiplier)),r}}),Z({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&ew(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=tw(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=X([],[bC(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return X([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return X([`mord`],[qS({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[FC(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Z({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=bC(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=GS(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<$b.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=zw(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=z(c);var d=qS({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle($b.SCRIPTSCRIPT),p=bC(e.index,f,t);return X([`mord`,`sqrt`],[X([`root`],[qS({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}return X([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Q(`mroot`,[FC(n,t),FC(r,t)]):new Q(`msqrt`,[FC(n,t)])}});var VT={display:$b.DISPLAY,text:$b.TEXT,script:$b.SCRIPT,scriptscript:$b.SCRIPTSCRIPT};function HT(e){return e in VT}Z({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!HT(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=VT[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),zT(e.body,r,t)},mathmlBuilder(e,t){var n=VT[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new Q(`mstyle`,NC(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var UT=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===$b.DISPLAY.size||n.alwaysHandleSupSub)?PT:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===$b.DISPLAY.size||n.limits)?RT:null:n.type===`accent`?Ab(n.base)?iw:null:n.type===`horizBrace`&&!e.sub===n.isOver?kT:null:null};sC({type:`supsub`,htmlBuilder(e,t){var n=UT(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=bC(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&Ab(r);if(i){var p=t.havingStyle(t.style.sup());s=bC(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=bC(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===$b.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=z(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Nx||y)&&(v=z(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=qS({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=qS({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=qS({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return X([vC(o,`right`)||`mord`],[o,X([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[FC(e.base,t)];e.sub&&a.push(FC(e.sub,t)),e.sup&&a.push(FC(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===$b.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===$b.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===$b.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===$b.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===$b.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===$b.DISPLAY)?`munder`:`msub`}return new Q(o,a)}}),sC({type:`atom`,htmlBuilder(e,t){return FS(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Q(`mo`,[OC(e.text,e.mode)]);if(e.family===`bin`){var r=jC(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var WT={mi:`italic`,mn:`normal`,mtext:`normal`};sC({type:`mathord`,htmlBuilder(e,t){return LS(e,t,`mathord`)},mathmlBuilder(e,t){var n=new Q(`mi`,[OC(e.text,e.mode,t)]),r=jC(e,t)||`italic`;return r!==WT[n.type]&&n.setAttribute(`mathvariant`,r),n}}),sC({type:`textord`,htmlBuilder(e,t){return LS(e,t,`textord`)},mathmlBuilder(e,t){var n=OC(e.text,e.mode,t),r=jC(e,t)||`normal`,i=e.mode===`text`?new Q(`mtext`,[n]):/[0-9]/.test(e.text)?new Q(`mn`,[n]):e.text===`\\prime`?new Q(`mo`,[n]):new Q(`mi`,[n]);return r!==WT[i.type]&&i.setAttribute(`mathvariant`,r),i}});var GT={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},KT={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};sC({type:`spacing`,htmlBuilder(e,t){if(KT.hasOwnProperty(e.text)){var n=KT[e.text].className||``;if(e.mode===`text`){var r=LS(e,t,`textord`);return r.classes.push(n),r}return X([`mspace`,n],[FS(e.text,e.mode,t)],t)}if(GT.hasOwnProperty(e.text))return X([`mspace`,GT[e.text]],[],t);throw new R(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(KT.hasOwnProperty(e.text))n=new Q(`mtext`,[new wC(`\xA0`)]);else if(GT.hasOwnProperty(e.text))return new Q(`mspace`);else throw new R(`Unknown type of space "`+e.text+`"`);return n}});var qT=()=>{var e=new Q(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};sC({type:`tag`,mathmlBuilder(e,t){var n=new Q(`mtable`,[new Q(`mtr`,[qT(),new Q(`mtd`,[PC(e.body,t)]),qT(),new Q(`mtd`,[PC(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var JT={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},YT={"\\textbf":`textbf`,"\\textmd":`textmd`},XT={"\\textit":`textit`,"\\textup":`textup`},ZT=(e,t)=>{var n=e.font;return n?JT[n]?t.withTextFontFamily(JT[n]):YT[n]?t.withTextFontWeight(YT[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(XT[n]):t};Z({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:lC(i),font:r}},htmlBuilder(e,t){var n=ZT(e,t);return X([`mord`,`text`],mC(e.body,n,!0),n)},mathmlBuilder(e,t){var n=ZT(e,t);return PC(e.body,n)}}),Z({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=bC(e.body,t),r=HS(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return X([`mord`,`underline`],[qS({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Q(`mo`,[new wC(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Q(`munder`,[FC(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Z({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=bC(e.body,t),r=t.fontMetrics().axisHeight;return qS({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new Q(`mrow`,[new Q(`mpadded`,[FC(e.body,t)],[`vcenter`])])}}),Z({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new R(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=QT(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(PS(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return X([`mord`,`text`].concat(i.sizingClasses(t)),zS(r),i)},mathmlBuilder(e,t){var n=new Q(`mtext`,[new wC(QT(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var QT=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),$T=iC,eE=`[ \r
|
|
730
|
+
]`,tE=`\\\\[a-zA-Z@]+`,nE=`\\\\[^\ud800-\udfff]`,rE=`(`+tE+`)`+eE+`*`,iE=`\\\\(
|
|
731
|
+
|[ \r ]+
|
|
732
|
+
?)[ \r ]*`,aE=`[̀-ͯ]`,oE=RegExp(aE+`+$`),sE=`(`+eE+`+)|`+(iE+`|`)+`([!-\\[\\]-‧-豈-]`+(aE+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(aE+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+rE)+(`|`+nE+`)`),cE=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(sE,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new lT(`EOF`,new cT(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new R(`Unexpected character: '`+e[t]+`'`,new lT(e[t],new cT(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
|
|
733
|
+
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new lT(r,new cT(this,t,this.tokenRegex.lastIndex))}},lE=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new R(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},uE=sT;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var dE={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new R("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=dE[t.text],r==null||r>=n)throw new R(`Invalid base-`+n+` digit `+t.text);for(var i;(i=dE[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var fE=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new R(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new R(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new R(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new R(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>fE(e,!1,!0,!1)),$(`\\renewcommand`,e=>fE(e,!0,!1,!1)),$(`\\providecommand`,e=>fE(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),$T[n],qx.math[n],qx.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var pE={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},mE=new Set([`bin`,`rel`]);$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in pE?t=pE[n]:(n.slice(0,4)===`\\not`||n in qx.math&&mE.has(qx.math[n].group))&&(t=`\\dotsb`),t});var hE={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){return e.future().text in hE?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in hE&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){return e.future().text in hE?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new R(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var gE=z(Bx[`Main-Regular`][84][1]-.7*Bx[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+gE+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+gE+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var _E=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,_E(!1)),$(`\\bra@set`,_E(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var vE={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},yE=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new lE(uE,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new cE(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new lT(`EOF`,n.loc)),this.pushTokens(r),new lT(``,cT.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new R(`Extra }`,i)}else if(i.text===`EOF`)throw new R(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new R(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new R(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new R(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new R(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new R(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new R(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new lT(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new cE(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||$T.hasOwnProperty(e)||qx.math.hasOwnProperty(e)||qx.text.hasOwnProperty(e)||vE.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?$T.hasOwnProperty(e)&&!$T[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},bE=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,xE=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),SE={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},CE={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},wE=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new yE(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new R(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new lT(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&$T[i.text]&&$T[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new R(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new R(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new R(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new R(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new R(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new R(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(xE[i.text]){var s=bE.test(i.text),c=[];for(c.push(new lT(xE[i.text])),this.consume();;){var l=this.fetch().text;if(!xE[l]||bE.test(l)!==s)break;c.unshift(new lT(xE[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n||r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=$T[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new R(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new R(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new R(`Can't use function '`+r+`' in math mode`,n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=$T[e];if(o&&o.handler)return o.handler(a,t,n);throw new R(`No function handler for `+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(`primitive`in t&&t.primitive&&o==null||t.type===`sqrt`&&a===1&&i[0]==null)&&(o=`primitive`);var c=this.parseGroupOfType(`argument to '`+e+`'`,o,s);if(s)i.push(c);else if(c!=null)r.push(c);else throw new R(`Null argument, please report this as a bug`)}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(`raw`,n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new R(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new R(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new R(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new R(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(`color`,e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new R(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new R(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!xx(i))throw new R(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(`url`,e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:cT.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!vE.hasOwnProperty(r)){if(this.settings.throwOnError)throw new R(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(a&&a.type===`textord`){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:cT.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:cT.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:cT.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new R(`\\verb assertion failed --
|
|
734
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}CE.hasOwnProperty(t[0])&&!qx[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=CE[t[0]]+t.slice(1));var i=oE.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(qx[this.mode][t]){this.settings.strict&&this.mode===`math`&&hS.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=qx[this.mode][t].group,s=cT.range(e);a=$C(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(rx(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:cT.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!SE[l])throw new R(`Unknown accent ' `+l+`'`,e);var u=SE[l][this.mode]||SE[l].text;if(!u)throw new R(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:cT.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};wE.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var TE=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new wE(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new R(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new lT(`\\df@tag`)])}]}return r},EE=function(e,t,n){t.textContent=``;var r=AE(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),EE=function(){throw new R(`KaTeX doesn't work in quirks mode.`)});var DE=function(e,t){return AE(e,t).toMarkup()},OE=function(e,t){return TE(e,new Ib(t))},kE=function(e,t,n){if(n.throwOnError||!(e instanceof R))throw e;var r=X([`katex-error`],[new Nx(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},AE=function(e,t){var n=new Ib(t);try{return UC(TE(e,n),e,n)}catch(t){return kE(t,e,n)}},jE={version:`0.16.47`,render:EE,renderToString:DE,ParseError:R,SETTINGS_SCHEMA:Mb,__parse:OE,__renderToDomTree:AE,__renderToHTMLTree:function(e,t){var n=new Ib(t);try{return WC(TE(e,n),e,n)}catch(t){return kE(t,e,n)}},__setFontMetrics:Ux,__defineSymbol:B,__defineFunction:Z,__defineMacro:$,__domTree:{Span:kx,Anchor:Ax,SymbolNode:Nx,SvgNode:Px,PathNode:Fx,LineNode:Ix}},ME={},NE=[];function PE(e){let t=e||ME;return function(e,n){Sl(e,`element`,function(e,r){let i=Array.isArray(e.properties.className)?e.properties.className:NE,a=i.includes(`language-math`),o=i.includes(`math-display`),s=i.includes(`math-inline`),c=o;if(!a&&!o&&!s)return;let l=r[r.length-1],u=e;if(e.tagName===`code`&&a&&l&&l.type===`element`&&l.tagName===`pre`&&(u=l,l=r[r.length-2],c=!0),!l)return;let d=pb(u,{whitespace:`pre`}),f;try{f=jE.renderToString(d,{...t,displayMode:c,throwOnError:!0})}catch(i){let a=i,o=a.name.toLowerCase();n.message(`Could not render math with KaTeX`,{ancestors:[...r,e],cause:a,place:e.position,ruleId:o,source:`rehype-katex`});try{f=jE.renderToString(d,{...t,displayMode:c,strict:`ignore`,throwOnError:!1})}catch{f=[{type:`element`,tagName:`span`,properties:{className:[`katex-error`],style:`color:`+(t.errorColor||`#cc0000`),title:String(i)},children:[{type:`text`,value:d}]}]}}typeof f==`string`&&(f=Xy(f,{fragment:!0}).children);let p=l.children.indexOf(u);return l.children.splice(p,1,...f),xl})}}function FE(e){if(e===null)return!0;let t=typeof e;return t===`number`||t===`boolean`||t===`string`&&!e.includes(`
|
|
735
|
+
`)}function IE(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function LE(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function RE(e){if(FE(e))return`scalar`;if(IE(e)){let t=Object.values(e);if(t.length===0||t.every(FE))return`scalar-map`;if(t.every(IE)){let e=t.map(e=>Object.keys(e).sort());if(e.every(t=>LE(t,e[0])))return`matrix`}return`yaml`}if(Array.isArray(e)){if(e.length===0)return`scalar-map`;if(e.every(IE)){let t=e.map(e=>Object.keys(e).sort());if(t.every(e=>LE(e,t[0])))return`object-list`}return`yaml`}return`yaml`}function zE(e){let t=[];for(let n of e)for(let e of Object.keys(n))t.includes(e)||t.push(e);return t}function BE(e){return zE(e).filter(t=>e.some(e=>{let n=e[t];return n!=null&&n!==``}))}function VE(e,t){return typeof t!=`number`||!Number.isFinite(t)||t<0||t>1?!1:!Number.isInteger(t)||t===0||t===1?HE.has(e):!1}var HE=new Set([`coverage`,`accuracy`,`recall`,`rate`,`precision`,`score`,`ratio`]);function UE(e){let t=e.split(`_`);return t.slice(0,t.length>2?2:1).join(`_`)}function WE(e){let t=new Map;for(let n of e){let e=UE(n);t.set(e,[...t.get(e)??[],n])}let n=[];for(let[e,r]of t){let t=Cv(r);n.push({title:r.length===1?r[0]:GE(t,e),names:t})}return n}function GE(e,t){let n=e[0].split(`_`),r=0;for(let t=0;t<n.length;t++){let i=n.slice(0,t+1).join(`_`);if(e.every(e=>e===i||e.startsWith(`${i}_`)))r=t+1;else break}return r>0?n.slice(0,r).join(`_`):t}function KE(e,t){let n=e.split(`_`),r=t.split(`_`),i=0;for(;i<n.length&&i<r.length&&n[i]===r[i];)i++;return i}function qE(e,t){let n=t.filter(t=>KE(t.title,e)>0||t.names.includes(e));if(n.length!==0)return n.sort((t,n)=>KE(n.title,e)-KE(t.title,e))[0]}function JE(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}var YE=[`score`,`coverage`,`accuracy`],XE=[`satisfied`,`incorrect`,`absent`,`attempted`],ZE=new Set([...YE,...XE,`total`,`recall`,`rate`,`eligible`,`by_type`,`citation`]);function QE(e,t){let n=$E(t);return n.length===0?e:e.map((e,t)=>{let r=e.rubric!==void 0&&e.rubric!==null&&e.rubric!==``,i=e.type!==void 0&&e.type!==null&&e.type!==``;if(r&&i)return e;let a=typeof e.index==`number`?e.index:t+1,o=n[a-1];return o?{...e,...r?{}:{rubric:o.text},...i||o.type===null?{}:{type:o.type}}:e})}function $E(e){let t=JE(e);return(Array.isArray(t.rubrics)?t.rubrics:Object.values(t).map(e=>JE(e).rubrics).find(Array.isArray)??[]).map(e=>{if(typeof e==`string`)return{text:e,type:null};let t=JE(e);return{text:typeof t.text==`string`?t.text:typeof t.rubric==`string`?t.rubric:null,type:typeof t.type==`string`?t.type:null}})}function eD(e){return typeof e.total==`number`&&typeof e.satisfied==`number`&&(Object.keys(JE(e.by_type)).length>0||Object.keys(JE(e.citation)).length>0)}function tD(e,t){return{score:t,coverage:e.coverage,accuracy:e.accuracy}}function nD(e,t){let n=[];for(let r of XE){let i=e[r];typeof i==`number`&&n.push(r===`satisfied`&&typeof t==`number`?`${i}/${t} satisfied`:`${i} ${r}`)}return n.length?n.join(` · `):null}function rD(e){let t=[{label:`all`,kind:`all`,cells:tD(e,e.recall),counts:nD(e,e.total)}];for(let[n,r]of Object.entries(JE(e.by_type))){let e=JE(r);t.push({label:n,kind:`type`,cells:tD(e,e.recall),counts:nD(e,e.total)})}let n=JE(e.citation);return Object.keys(n).length>0&&t.push({label:`citation`,kind:`citation`,cells:tD(n,n.rate),counts:nD(n,n.eligible)}),t}function iD(e,t){return`/fixtures/sha256/${e}?name=${encodeURIComponent(t)}`}function aD(e){return(e??[]).map(e=>({key:e.key,name:e.key,context:e.context,path:iD(e.sha256,e.key)}))}function oD({text:e}){let t=(0,v.useMemo)(()=>Mv(e),[e]);return(0,N.jsx)(`div`,{className:`md-body text-meta`,children:(0,N.jsx)(Su,{remarkPlugins:[Dp,Ey],rehypePlugins:[PE],children:t})})}function sD({text:e,language:t=`json`}){return(0,N.jsxs)(`div`,{className:`group relative overflow-hidden rounded border border-line`,children:[(0,N.jsx)(`div`,{className:`absolute top-1 right-4 z-10 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100`,children:(0,N.jsx)(Xm,{text:e})}),(0,N.jsx)(Qm,{value:e,language:t})]})}function cD({children:e}){return(0,N.jsx)(`span`,{className:`chip muted`,children:e})}function lD({files:e}){let t=aD(e),[n,r]=(0,v.useState)(null);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Files`}),n&&(0,N.jsx)(`div`,{className:`pane-status error`,children:n}),t.length===0?(0,N.jsx)(`div`,{className:`text-micro text-ink-4`,children:`No files attached.`}):(0,N.jsx)(`div`,{className:`card rows`,children:t.map(e=>(0,N.jsxs)(`button`,{type:`button`,className:`row w-full grid-cols-[minmax(0,1fr)_auto] text-left`,title:e.context||`download ${e.name}`,onClick:()=>ar(e.path).catch(e=>r(`download failed: ${e instanceof Error?e.message:e}`)),children:[(0,N.jsx)(`span`,{className:`truncate font-mono text-meta text-brand`,children:e.name}),(0,N.jsx)(`span`,{className:`row-meta`,children:`download ↓`})]},e.key))})]})}function uD({workspace:e}){return e?(0,N.jsx)(`span`,{className:`chip`,title:`the experiment's home workspace`,children:e}):null}function dD({score:e}){let t=e??null;return(0,N.jsx)(`span`,{className:`num text-right sev-fg-${_v(t)}`,children:vv(t)})}function fD({cost:e}){return(0,N.jsx)(`span`,{className:`num text-right text-ink-3`,children:e==null?`—`:Lv(e)})}function pD({score:e,title:t}){let n=_v(e);return(0,N.jsx)(`span`,{className:`num inline-flex h-5 w-7 items-center justify-center rounded text-micro sev-fg-${n} ${e===null?`border border-line-soft`:`heat-${n}`}`,title:t,children:vv(e)})}function mD({points:e,bucket:t}){return!e||e.length===0?(0,N.jsx)(`span`,{className:`text-ink-4`,children:`—`}):(0,N.jsx)(`span`,{className:`flex gap-0.5`,children:e.map(e=>(0,N.jsx)(pD,{score:e.scores[t]??null,title:[`#${e.number}`,e.agent,e.model].filter(Boolean).join(` · `)},e.experiment_id))})}function hD({sha:e,branch:t,url:n,compact:r=!1}){if(!e)return null;let i=e.slice(0,8),a=r?i:t?`${t} @ ${i}`:i,o=t?`${t} @ ${e}`:e,s=r?`num font-mono text-meta text-ink-3 transition-colors hover:text-brand`:`chip muted font-mono`,c=_r(n);return c?(0,N.jsx)(`a`,{className:s,href:c,target:`_blank`,rel:`noreferrer`,title:o,onClick:e=>e.stopPropagation(),children:a}):(0,N.jsx)(`span`,{className:s,title:o,children:a})}function gD({user:e}){return e?(0,N.jsxs)(`span`,{className:`chip muted inline-flex shrink-0 items-center gap-1`,title:`run by`,children:[(0,N.jsx)(`svg`,{width:`11`,height:`11`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,N.jsx)(`path`,{d:`M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.784 6A5.986 5.986 0 0 1 8 9.5c2.55 0 4.77 1.59 5.784 4.5a.75.75 0 0 1-.703 1H2.919a.75.75 0 0 1-.703-1Z`})}),e]}):null}function _D(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}var vD={satisfied:`✓`,partial:`◐`,absent:`○`,incorrect:`✗`,other:`·`},yD=new Set([`verdict`,`status`]);function bD(e){return e==null?``:typeof e==`string`?e:FE(e)?String(e):mv(e).trimEnd()}function xD({children:e=null,className:t=``}){return(0,N.jsx)(`th`,{className:`border-b border-line-soft py-1 pr-2 text-left font-medium tracking-wide text-n-400 uppercase ${t}`,children:e})}var SD=240;function CD({value:e}){if(!FE(e))return(0,N.jsx)(`div`,{className:`max-h-28 overflow-y-auto`,children:(0,N.jsx)(MD,{value:e})});let t=bD(e),n=(0,N.jsx)(`span`,{className:`break-words whitespace-pre-wrap ${typeof e==`number`?`num`:``}`,children:t});return t.length>SD?(0,N.jsx)(`div`,{className:`max-h-28 overflow-y-auto`,children:n}):n}function wD(e,t){return t===`index`&&e.every((e,n)=>e[t]===n+1)}var TD=[`type`,`rubric`,`text`,`expected`];function ED({items:e}){let t=e=>{let t=TD.indexOf(e);return t===-1?TD.length:t},n=BE(e).filter(t=>!yD.has(t)&&!wD(e,t)).sort((e,n)=>t(e)-t(n)),r=e.some(e=>kv(e.verdict??e.status));return(0,N.jsxs)(`table`,{className:`w-full text-micro`,children:[(0,N.jsx)(`thead`,{children:(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(xD,{className:`w-6`,children:`#`}),(0,N.jsx)(xD,{className:`w-5`}),r?(0,N.jsx)(xD,{className:`w-20`,children:`verdict`}):null,n.map(e=>(0,N.jsx)(xD,{children:e},e))]})}),(0,N.jsx)(`tbody`,{children:e.map((e,t)=>{let i=e.verdict??e.status,a=Ov(i);return(0,N.jsxs)(`tr`,{className:`iv-${a} border-b border-n-50 align-top`,children:[(0,N.jsx)(`td`,{className:`num py-1 text-n-400`,children:t+1}),(0,N.jsx)(`td`,{className:`py-1`,children:vD[a]}),r?(0,N.jsx)(`td`,{className:`py-1`,children:kv(i)??``}):null,n.map(t=>(0,N.jsx)(`td`,{className:`py-1 pr-3`,children:(0,N.jsx)(CD,{value:e[t]})},t))]},t)})})]})}function DD({label:e,value:t}){return VE(e,t)?(0,N.jsx)(`span`,{className:`num sev-fg-${_v(t)}`,children:vv(t)}):(0,N.jsx)(`span`,{className:`num`,children:t===null?`—`:bD(t)})}function OD({label:e,value:t}){return(0,N.jsxs)(`span`,{className:`inline-flex items-baseline gap-1`,children:[(0,N.jsx)(`span`,{className:`text-n-400`,children:e}),(0,N.jsx)(DD,{label:e,value:t})]})}function kD({entries:e}){return(0,N.jsx)(`div`,{className:`flex flex-wrap gap-x-4 gap-y-1 text-micro`,children:e.map(([e,t])=>(0,N.jsx)(OD,{label:e,value:t},e))})}function AD({rows:e}){let t=Object.entries(e),n=BE(t.map(([,e])=>e));return(0,N.jsxs)(`table`,{className:`w-full text-micro`,children:[(0,N.jsx)(`thead`,{children:(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(xD,{}),n.map(e=>(0,N.jsx)(xD,{className:`!text-right`,children:e},e))]})}),(0,N.jsx)(`tbody`,{children:t.map(([e,t])=>(0,N.jsxs)(`tr`,{className:`border-b border-n-50`,children:[(0,N.jsx)(`td`,{className:`py-1 pr-2`,children:e}),n.map(e=>(0,N.jsx)(`td`,{className:`py-1 pr-2 text-right`,children:(0,N.jsx)(DD,{label:e,value:t[e]})},e))]},e))})]})}function jD({rows:e}){let t=BE(e);return(0,N.jsxs)(`table`,{className:`w-full text-micro`,children:[(0,N.jsx)(`thead`,{children:(0,N.jsx)(`tr`,{children:t.map(e=>(0,N.jsx)(xD,{children:e},e))})}),(0,N.jsx)(`tbody`,{children:e.map((e,n)=>(0,N.jsx)(`tr`,{className:`border-b border-n-50 align-top`,children:t.map(t=>(0,N.jsx)(`td`,{className:`py-1 pr-2 break-words whitespace-pre-wrap ${typeof e[t]==`number`?`num`:``}`,children:bD(e[t])},t))},n))})]})}function MD({value:e}){if(typeof e==`string`)return(0,N.jsx)(`span`,{className:`break-words whitespace-pre-wrap`,children:e});switch(RE(e)){case`scalar`:return(0,N.jsx)(`span`,{className:`whitespace-pre-wrap`,children:bD(e)});case`scalar-map`:return(0,N.jsx)(kD,{entries:Object.entries(e)});case`matrix`:return(0,N.jsx)(AD,{rows:e});case`object-list`:return(0,N.jsx)(jD,{rows:e});default:return(0,N.jsx)(sD,{text:mv(e),language:`yaml`})}}var ND=new Set([`items`,`steps`,`verdicts`]);function PD({entries:e}){let t=e.filter(([,e])=>FE(e)),n=e.filter(([,e])=>!FE(e));return e.length?(0,N.jsxs)(`div`,{className:`mt-1 space-y-2 text-micro`,children:[t.length?(0,N.jsx)(kD,{entries:t}):null,n.map(([e,t])=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`div`,{className:`mb-0.5 font-mono text-n-400`,children:e}),(0,N.jsx)(MD,{value:t})]},e))]}):null}function FD({row:e}){return(0,N.jsxs)(`tr`,{className:`border-b border-n-50 ${e.kind===`type`?`text-ink-2`:``}`,title:e.counts??void 0,children:[(0,N.jsx)(`td`,{className:`py-1 pr-2 ${e.kind===`type`?`pl-3`:``}`,children:e.label}),YE.map(t=>(0,N.jsx)(`td`,{className:`py-1 pr-2 text-right`,children:(0,N.jsx)(DD,{label:t,value:e.cells[t]??null})},t))]})}function ID({detail:e}){let t=rD(e),n=t.filter(e=>e.kind===`type`),[r,i]=(0,v.useState)(!1);return(0,N.jsxs)(`table`,{className:`w-full text-micro`,children:[(0,N.jsx)(`thead`,{children:(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(xD,{}),YE.map(e=>(0,N.jsx)(xD,{className:`!text-right`,children:e},e))]})}),(0,N.jsxs)(`tbody`,{children:[t.filter(e=>e.kind===`all`).map(e=>(0,N.jsx)(FD,{row:e},e.label)),n.length>0&&(0,N.jsx)(`tr`,{className:`border-b border-n-50`,children:(0,N.jsx)(`td`,{colSpan:YE.length+1,className:`py-0.5`,children:(0,N.jsxs)(`button`,{type:`button`,className:`btn btn-quiet btn-sm -ml-1.5 text-ink-3`,"aria-expanded":r,onClick:()=>i(e=>!e),children:[r?`▾`:`▸`,` by type (`,n.length,`)`]})})}),r&&n.map(e=>(0,N.jsx)(FD,{row:e},e.label)),t.filter(e=>e.kind===`citation`).map(e=>(0,N.jsx)(FD,{row:e},e.label))]})]})}function LD({detail:e}){return eD(e)?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(ID,{detail:e}),(0,N.jsx)(PD,{entries:Object.entries(e).filter(([e])=>!ND.has(e)&&!ZE.has(e))})]}):(0,N.jsx)(PD,{entries:Object.entries(e).filter(([e])=>!ND.has(e))})}function RD({cfg:e}){return e&&typeof e==`object`&&!Array.isArray(e)?(0,N.jsx)(PD,{entries:Object.entries(e)}):(0,N.jsx)(MD,{value:e})}function zD({summary:e}){return e?(0,N.jsx)(`span`,{className:`num inline-flex gap-2 text-micro`,children:Object.entries(e).map(([e,t])=>{let n=Ov(e),r=kv(e);return(0,N.jsxs)(`span`,{className:`iv-${n}`,children:[vD[n],` `,t,r?` ${r}`:``]},e)})}):null}function BD(e){if(!e.explanation||!e.detail)return!1;let t=e.explanation.trim();if(!t.startsWith(`{`)&&!t.startsWith(`[`))return!1;try{return JSON.stringify(JSON.parse(t))===JSON.stringify(e.detail)}catch{return!1}}function VD({score:e,cfg:t}){return(0,N.jsxs)(N.Fragment,{children:[e.detail?(0,N.jsx)(LD,{detail:e.detail}):null,e.items?(0,N.jsx)(`div`,{className:`mt-2`,children:(0,N.jsx)(ED,{items:QE(e.items,t)})}):null,e.explanation&&!BD(e)?(0,N.jsx)(`div`,{className:`mt-1 whitespace-pre-wrap`,children:e.explanation}):null]})}function HD(e){return JSON.stringify([e.items??null,e.detail??null,e.explanation??null])}function UD(e){let t=[];for(let{name:n,score:r}of e){if(!r.items&&!r.detail&&!r.explanation)continue;let e=HD(r),i=t.find(t=>t.key===e);i?i.names.push(n):t.push({key:e,score:r,names:[n]})}return t}function WD({name:e,title:t,score:n}){return(0,N.jsxs)(`span`,{className:`chip chip-${_v(n)} num inline-flex items-center gap-1`,title:`${t}: ${vv(n)}`,children:[e,` `,vv(n),(0,N.jsx)(qm,{term:t})]})}function GD(e,t){return e.startsWith(`${t}_`)?e.slice(t.length+1):e}function KD({group:e,cfg:t,scores:n}){let r=e.names.filter(e=>n[e]).map(e=>({name:e,score:n[e]})),i=t!=null,a=UD(r),o=r.length===1?r[0].score:null,s=r.find(e=>e.score.label)?.score.label??null,c=r.find(e=>e.score.summary)?.score.summary;return(0,N.jsxs)(`div`,{className:`mb-2 rounded-lg border border-n-100 bg-n-0`,"data-eval":e.names.join(` `)||e.title,children:[(0,N.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 border-b border-n-50 px-3 py-1.5 text-meta`,children:[(0,N.jsx)(`span`,{className:`font-mono font-medium`,children:e.title}),(0,N.jsx)(qm,{term:e.title}),s?(0,N.jsxs)(`span`,{className:`text-n-400`,children:[`· `,s]}):null,(0,N.jsx)(zD,{summary:c}),(0,N.jsx)(`span`,{className:`flex-1`}),r.length===0?(0,N.jsx)(`span`,{className:`text-micro text-n-400`,children:`not scored`}):o?(0,N.jsx)(`span`,{className:`num sev-fg-${_v(o.score)}`,children:vv(o.score)}):r.map(t=>(0,N.jsx)(WD,{name:GD(t.name,e.title),title:t.name,score:t.score.score},t.name))]}),(0,N.jsxs)(`div`,{className:`space-y-2 px-3 py-2 text-micro`,children:[a.map(n=>(0,N.jsxs)(`div`,{children:[a.length>1||r.length>1&&n.names.length<r.length?(0,N.jsx)(`div`,{className:`mb-1 font-mono text-n-400`,children:n.names.map(t=>GD(t,e.title)).join(`, `)}):null,(0,N.jsx)(VD,{score:n.score,cfg:t})]},n.key)),i?a.length?(0,N.jsxs)(`details`,{children:[(0,N.jsx)(`summary`,{className:`cursor-pointer text-n-400`,children:`config`}),(0,N.jsx)(RD,{cfg:t})]}):(0,N.jsx)(RD,{cfg:t}):null]})]})}var qD=`other scores`;function JD({evaluators:e,scores:t}){let n=[];for(let[t,r]of Object.entries(_D(e)))for(let[e,i]of Object.entries(_D(r)))n.push({name:e,family:t,cfg:i});let r=WE(Object.keys(t)),i=new Set,a=new Map;for(let e of n){let t=qE(e.name,r);t&&(i.add(e.name),a.set(t,[...a.get(t)??[],e]))}let o=r.map(e=>{let t=a.get(e)??[];return{key:e.names.join(`|`),group:e,family:t[0]?.family??qD,cfg:t.length===0?void 0:t.length===1?t[0].cfg:Object.fromEntries(t.map(e=>[e.name,e.cfg]))}}),s=n.filter(e=>!i.has(e.name)).map(e=>({key:e.name,group:{title:e.name,names:[]},family:e.family,cfg:e.cfg})),c=[...o,...s];if(!c.length)return null;let l=[...Object.keys(_D(e)),qD];return(0,N.jsxs)(N.Fragment,{children:[l.filter(e=>c.some(t=>t.family===e)).map(e=>(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(`div`,{className:`mt-3 mb-1.5 flex items-center gap-2 text-meta font-semibold text-ink-2`,children:[e,(0,N.jsx)(`span`,{className:`h-px flex-1 bg-line-soft`,"aria-hidden":!0})]}),c.filter(t=>t.family===e).map(e=>(0,N.jsx)(KD,{group:e.group,cfg:e.cfg,scores:t},e.key))]},e)),(0,N.jsxs)(`details`,{className:`mt-1 text-micro`,children:[(0,N.jsx)(`summary`,{className:`cursor-pointer text-n-400`,children:`Full evaluator config`}),(0,N.jsx)(sD,{text:mv(e),language:`yaml`})]})]})}function YD({start:e,end:t,running:n=!1,doneLabel:r=`took`,doneTitle:i}){let[a,o]=(0,v.useState)(er);(0,v.useEffect)(()=>{if(!n)return;let e=setInterval(()=>o(er()),1e3);return()=>clearInterval(e)},[n]);let s=jv(e);if(!s)return null;let c=jv(t),l=n&&!t,u=l?Math.max(0,a-new Date(e).getTime()):Uv(e,t);return(0,N.jsxs)(`span`,{className:`row-meta num`,title:[`started ${s}`,c&&`ended ${c}`,!l&&i].filter(Boolean).join(` · `),children:[s,u!==null&&` · ${l?`running`:r} ${Hv(u)}`]})}function XD(e){if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:new Intl.DateTimeFormat(`en-GB`,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).format(t)}function ZD(e){return e<1e3?String(e):`${(e/1e3).toFixed(1)}k`}function QD({step:e,durationMs:t}){let n=XD(e.timestamp),{prompt:r,completion:i,cached:a}=e.tokens??{prompt:null,completion:null,cached:null};return(0,N.jsxs)(`div`,{className:`num w-14 shrink-0 pt-1 text-right text-micro text-ink-4`,children:[n&&(0,N.jsx)(`div`,{children:n}),t!==null&&t>0&&(0,N.jsx)(`div`,{className:`text-ink-3`,title:`step duration (gap to the next step)`,children:Hv(t)}),i!==null&&(0,N.jsxs)(`div`,{title:`input ${r??0} · cache read ${a??0} · output ${i}`,children:[`↓`,ZD(i)]}),e.costUsd!==null&&(0,N.jsx)(`div`,{title:`step cost`,children:Lv(e.costUsd)})]})}function $D(e,t){return`${e}:${t}`}function eO(e,t){return t&&e.source===`agent`?`subagent`:e.source}function tO(e){return e.isError?`error`:e.subagents.length?`subagent`:`tool`}function nO({kinds:e}){return(0,N.jsx)(`span`,{className:`flex items-center gap-1`,title:`block kinds`,children:e.map(e=>(0,N.jsx)(`span`,{className:`badge badge-${e}`,children:e},e))})}function rO({step:e,kind:t,showThinking:n,showTools:r,isOpen:i,onToggle:a,onOpenSubagent:o}){return(0,N.jsxs)(`div`,{className:`step-card kind-${t}`,children:[(0,N.jsxs)(`div`,{className:`step-card-head flex items-center gap-2 px-3 py-1 text-micro`,children:[(0,N.jsx)(`span`,{className:`badge badge-${t}`,children:t}),(0,N.jsxs)(`span`,{className:`num text-ink-4`,children:[`#`,e.stepId]}),e.model?(0,N.jsx)(`span`,{className:`text-ink-4`,children:e.model}):null]}),(0,N.jsxs)(`div`,{className:`space-y-1.5 px-3 py-2`,children:[n&&e.thinking?(0,N.jsx)(Zm,{header:`thinking`,badge:`thinking`,children:(0,N.jsx)(`div`,{className:`text-micro whitespace-pre-wrap text-ink-2`,children:e.thinking})}):null,e.text?e.source===`agent`?(0,N.jsx)(oD,{text:e.text}):(0,N.jsx)(`div`,{className:`text-meta whitespace-pre-wrap`,children:e.text}):null,r&&e.toolCalls.map(t=>(0,N.jsx)(`div`,{className:`tool-block kind-${tO(t)}`,children:(0,N.jsx)(Zm,{header:(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`span`,{className:`font-mono`,children:t.name}),t.isError?(0,N.jsx)(`span`,{className:`text-err-text`,children:` · error`}):null]}),badge:tO(t),actions:t.subagents.map((e,t)=>e.tab===null?(0,N.jsxs)(`span`,{className:`row-meta`,title:`this trajectory does not embed the subagent's steps`,children:[e.name,` · not embedded`]},t):(0,N.jsxs)(`button`,{className:`btn btn-sm btn-quiet`,title:`open the subagent's trajectory`,onClick:t=>{t.stopPropagation(),o(e.tab)},children:[e.name,` ›`]},t)),copyText:mv(t.args),open:i($D(e.stepId,t.id)),onOpenChange:n=>a($D(e.stepId,t.id),n),children:(0,N.jsxs)(`div`,{className:`space-y-1`,children:[(0,N.jsx)(sD,{text:mv(t.args),language:`yaml`}),t.result===null?(0,N.jsx)(`div`,{className:`text-micro text-ink-4`,children:`no recorded result`}):(0,N.jsx)(sD,{text:t.result,language:`text`})]})})},t.id))]})]})}function iO({model:e}){let t=e.totals;return(0,N.jsxs)(`div`,{className:`num flex flex-wrap gap-3 text-micro text-ink-3`,children:[(0,N.jsxs)(`span`,{children:[t.steps,` steps`]}),(0,N.jsxs)(`span`,{children:[t.toolCalls,` tool calls`,t.erroredToolCalls?(0,N.jsxs)(`span`,{className:`text-err-text`,children:[` (`,t.erroredToolCalls,` errored)`]}):null]}),t.prompt===null?null:(0,N.jsxs)(`span`,{children:[Rv(t.prompt),` in`]}),t.completion===null?null:(0,N.jsxs)(`span`,{children:[Rv(t.completion),` out`]}),t.cached?(0,N.jsxs)(`span`,{children:[Rv(t.cached),` cached`]}):null,t.costUsd===null?null:(0,N.jsx)(`span`,{children:Lv(t.costUsd)}),(0,N.jsx)(`span`,{className:`text-ink-4`,children:e.schemaVersion})]})}function aO({doc:e}){let t=(0,v.useMemo)(()=>py(e),[e]),n=(0,v.useMemo)(()=>sy(t),[t]),[r,i]=(0,v.useState)(t.tabs[0]?.id??`main`),[a,o]=(0,v.useState)(!0),[s,c]=(0,v.useState)(!0),[l,u]=(0,v.useState)(!0),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)(()=>new Set),h=(0,v.useRef)(null),g=(0,v.useRef)(null),_=t.tabs.find(e=>e.id===r)??t.tabs[0],y=_.id!==t.tabs[0].id,b=(0,v.useMemo)(()=>{let e=new Map;for(let t of n.rows)t.duration_ms!==null&&e.set(`${t.agent}|${t.step}`,t.duration_ms);return e},[n]),x=e=>!!e.text.trim()||a&&!!e.thinking||s&&e.toolCalls.length>0,S=_.steps.filter(e=>(l||e.source!==`system`)&&x(e)),C=_.steps.some(e=>e.source===`system`),w=_.steps.filter(e=>e.source===`user`&&e.text.trim()),T=(0,v.useMemo)(()=>cy(_.steps),[_]),E=(0,v.useMemo)(()=>{let e=new Set(_.steps.map(e=>eO(e,y))),t=_.steps.flatMap(e=>e.toolCalls);return t.some(e=>!e.subagents.length)&&e.add(`tool`),t.some(e=>e.subagents.length)&&e.add(`subagent`),[`system`,`user`,`agent`,`subagent`,`tool`].filter(t=>e.has(t))},[_,y]),D=e=>{i(e),f(null),m(new Set)},O=(e,t)=>m(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),r}),k=e=>{(h.current?.querySelector(`[data-step-id="${e}"]`))?.scrollIntoView({behavior:`smooth`,block:`start`}),g.current&&clearTimeout(g.current),f(e),g.current=setTimeout(()=>f(null),1500)},A=e=>{O($D(e.stepId,e.callId),!0),k(e.stepId)};return(0,N.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,N.jsx)(iO,{model:t}),t.tabs.length>1?(0,N.jsx)(`div`,{className:`mt-2`,children:(0,N.jsx)($m,{tabs:t.tabs.map(e=>({id:e.id,label:`${e.id===t.tabs[0].id?``:`↳ subagent `}${e.label} (${e.steps.length})`})),active:_.id,onSelect:D})}):null,(0,N.jsxs)(`div`,{className:`mt-2 flex min-h-96 flex-1 overflow-hidden rounded-lg border border-line`,children:[(0,N.jsxs)(`div`,{className:`min-w-0 flex-1 overflow-auto px-4 pb-8`,ref:h,children:[(0,N.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 mb-2 flex items-center gap-4 border-b border-line bg-canvas/95 px-4 py-1.5 backdrop-blur`,children:[[[`thinking`,a,o],[`tool calls`,s,c],...C?[[`system`,l,u]]:[]].map(([e,t,n])=>(0,N.jsxs)(`label`,{className:`check`,children:[(0,N.jsx)(`input`,{type:`checkbox`,checked:t,onChange:e=>n(e.target.checked)}),e]},e)),(0,N.jsx)(`span`,{className:`ml-auto`,children:(0,N.jsx)(nO,{kinds:E})}),(0,N.jsxs)(`span`,{className:`row-meta`,children:[S.length,` of `,_.steps.length,` entries`]})]}),(0,N.jsxs)(`div`,{className:`space-y-2`,children:[S.map(e=>(0,N.jsxs)(`div`,{"data-step-id":e.stepId,className:`flex gap-3 rounded-lg transition-colors duration-500 ${d===e.stepId?`bg-info-bg`:``}`,children:[(0,N.jsx)(QD,{step:e,durationMs:b.get(`${_.label}|${e.stepId}`)??null}),(0,N.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,N.jsx)(rO,{step:e,kind:eO(e,y),onOpenSubagent:D,showThinking:a,showTools:s,isOpen:e=>p.has(e),onToggle:O})})]},e.stepId)),S.length===0&&(0,N.jsx)(`div`,{className:`pane-status`,children:`Nothing to show with these filters.`})]})]}),(0,N.jsxs)(`nav`,{className:`w-64 shrink-0 overflow-auto border-l border-line bg-surface px-2 py-2`,children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Prompts`}),w.map((e,t)=>(0,N.jsxs)(`button`,{className:`flex w-full gap-2 rounded px-1.5 py-1 text-left text-meta text-ink-2 transition-colors hover:bg-fill`,onClick:()=>k(e.stepId),children:[(0,N.jsx)(`span`,{className:`num shrink-0 text-ink-4`,children:t+1}),(0,N.jsx)(`span`,{className:`line-clamp-3`,children:e.text.slice(0,120)})]},e.stepId)),w.length===0&&(0,N.jsx)(`div`,{className:`px-1.5 text-meta text-ink-3`,children:`No user prompts in this trajectory.`}),T.length>0&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`eyebrow mt-3 text-err-text`,children:`Errors`}),T.map(e=>(0,N.jsxs)(`button`,{className:`flex w-full gap-2 rounded px-1.5 py-1 text-left text-meta text-ink-2 transition-colors hover:bg-fill`,onClick:()=>A(e),children:[(0,N.jsxs)(`span`,{className:`num shrink-0 text-ink-4`,children:[`#`,e.stepId]}),(0,N.jsx)(`span`,{className:`truncate font-mono`,children:e.tool})]},$D(e.stepId,e.callId)))]})]})]})]})}function oO({session:e}){let t=e.esf??[],n=new Map;for(let e of t)n.set(e.kind,(n.get(e.kind)??0)+1);let r=t.filter(e=>e.kind===`llm`),i=Jv(t),a=e=>r.reduce((t,n)=>t+(n[e]??0),0);return(0,N.jsxs)(`dl`,{className:`grid grid-cols-[max-content_1fr] gap-x-4 gap-y-1 text-lede`,children:[(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Spans`}),(0,N.jsxs)(`dd`,{children:[[...n].map(([e,t])=>`${e} ${t}`).join(` · `)||`none`,e.settled?``:` (not settled)`]}),(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Messages`}),(0,N.jsxs)(`dd`,{children:[`input `,i.input,` (each agent's first LLM call) · output`,` `,i.output,` · `,i.toolCalls,` tool calls`]}),(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Tokens`}),(0,N.jsxs)(`dd`,{children:[`in `,a(`prompt_tokens`),` · out `,a(`completion_tokens`),` · cached`,` `,a(`cached_tokens`)]}),(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Mapping`}),(0,N.jsx)(`dd`,{children:e.mapping_version==null?`none`:`v${e.mapping_version}`}),(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Unmapped`}),(0,N.jsx)(`dd`,{className:`flex flex-wrap gap-1`,children:e.unmapped_attributes.length?e.unmapped_attributes.map(e=>(0,N.jsx)(`span`,{className:`chip muted font-mono`,children:e},e)):`none`})]})}function sO({doc:e,baseline:t}){let n=t?Qv(t):null;return(0,N.jsxs)(`table`,{className:`data-table`,children:[(0,N.jsx)(`thead`,{children:(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(`th`,{children:`Field`}),(0,N.jsx)(`th`,{children:`Span attribute`}),(0,N.jsx)(`th`,{children:`How it is read`})]})}),(0,N.jsx)(`tbody`,{children:Qv(e).map((e,t)=>{let r=n!==null&&!ey(e.rule,n[t].rule);return(0,N.jsxs)(`tr`,{children:[(0,N.jsxs)(`td`,{className:`whitespace-nowrap`,children:[e.label,r&&(0,N.jsx)(`span`,{className:`chip chip-info ml-2`,children:`changed`})]}),(0,N.jsx)(`td`,{className:`font-mono`,children:e.rule?e.rule.attribute:(0,N.jsx)(`span`,{className:`text-ink-3`,children:`not read`})}),(0,N.jsx)(`td`,{children:(0,N.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[e.rule&&ty(e.rule).map(e=>(0,N.jsx)(`span`,{className:`chip muted`,children:e},e)),e.rule?.values&&Object.entries(e.rule.values).map(([e,t])=>(0,N.jsxs)(`span`,{className:`chip muted font-mono`,children:[e,` → `,t]},e))]})})]},e.field)})})]})}function cO({label:e,session:t}){return(0,N.jsxs)(`section`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,N.jsx)(`h2`,{className:`font-medium`,children:e}),!t&&(0,N.jsx)(`div`,{className:`pane-status`,children:`Loading…`}),t&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`card p-3`,children:(0,N.jsx)(oO,{session:t})}),(0,N.jsx)(`div`,{className:`card flex min-h-96 flex-col p-3`,children:t.trajectory?(0,N.jsx)(aO,{doc:t.trajectory}):(0,N.jsx)(`div`,{className:`pane-status`,children:`No spans in this session.`})})]})]})}function lO({agent:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)([]),[s,c]=(0,v.useState)(``),[l,u]=(0,v.useState)(null),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)(!1),[h,g]=(0,v.useState)(null),_=`/agents/${encodeURIComponent(e)}`,y=t?.some(e=>e.status===`draft`)??!1,b=(0,v.useCallback)(()=>M(`${_}/mappings`).then(n).catch(e=>g(String(e))),[_]);(0,v.useEffect)(()=>{b(),M(`${_}/runs?limit=10`).then(e=>{let t=e.runs.map(e=>e.run_id);o(t),c(e=>e||t[0]||``)}).catch(e=>g(String(e)))},[_,b]),(0,v.useEffect)(()=>{if(!s||t===null)return;u(null),f(null);let e=`${_}/sessions/${encodeURIComponent(s)}/trajectory`;M(`${e}?mapping=active&esf=true`).then(u).catch(e=>g(String(e))),y&&M(`${e}?mapping=draft&esf=true`).then(f).catch(e=>g(String(e)))},[_,s,t,y]);let x=t?.find(e=>e.status===`active`)??null,S=r??(x?`v${x.version}`:null),C=t?.find(e=>`v${e.version}`===S)??null,w=C?.document??null,T=C&&x&&C.id!==x.id?x.document:null,E=e=>(0,N.jsx)(`button`,{className:`btn ${S===e?`btn-primary`:``}`,onClick:()=>i(e),children:S===e?`Showing`:`View`}),D=async e=>{m(!0),g(null);try{await rr(`${_}/mappings/${e}/activate`,`POST`),await b()}catch(e){g(e instanceof Error?e.message:String(e))}finally{m(!1)}};return(0,N.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[h&&(0,N.jsx)(`div`,{className:`pane-status error`,children:h}),(0,N.jsxs)(`section`,{className:`flex flex-col gap-2`,children:[(0,N.jsx)(`h2`,{className:`font-medium`,children:`Versions`}),(0,N.jsx)(`div`,{className:`card rows`,children:t?.map(e=>(0,N.jsxs)(`div`,{className:`row grid-cols-[auto_auto_1fr_auto_auto_auto]`,children:[(0,N.jsxs)(`span`,{className:`row-strong font-mono`,children:[`v`,e.version]}),(0,N.jsx)(`span`,{className:`chip ${e.status===`active`?`chip-pass`:`muted`}`,children:e.status}),(0,N.jsxs)(`span`,{className:`row-meta`,children:[`by `,e.created_by??`-`]}),(0,N.jsx)(`span`,{className:`row-meta`,children:jv(e.created_at)??``}),e.status===`draft`?(0,N.jsx)(`button`,{className:`btn`,disabled:p,onClick:()=>D(e.version),children:`Activate`}):(0,N.jsx)(`span`,{}),E(`v${e.version}`)]},e.id))}),t&&t.length===0&&(0,N.jsxs)(`p`,{className:`text-meta text-ink-3`,children:[`No mapping yet, so this agent's spans are stored without a session id. Push one with `,(0,N.jsx)(`code`,{children:`evalkit traces mapping push`}),`, starting from the connect-traces skill's `,(0,N.jsx)(`code`,{children:`gen_ai.json`}),` or`,` `,(0,N.jsx)(`code`,{children:`openinference.json`}),`.`]})]}),(0,N.jsxs)(`section`,{className:`flex flex-col gap-2`,children:[(0,N.jsxs)(`h2`,{className:`font-medium`,children:[`Rules:`,` `,C?`v${C.version} (${C.status})`:`no mapping`]}),(0,N.jsxs)(`p`,{className:`text-meta text-ink-3`,children:[`Which span attribute fills each field of a converted span.`,T&&` Rows marked changed differ from the active mapping.`,` `,`The session id comes from the mapping's `,(0,N.jsx)(`code`,{children:`session_id`}),` rule.`]}),(0,N.jsx)(`div`,{className:`card`,children:w?(0,N.jsx)(sO,{doc:w,baseline:T}):(0,N.jsx)(`div`,{className:`pane-status`,children:t===null?`Loading…`:`No mapping to show.`})})]}),(0,N.jsxs)(`section`,{className:`flex flex-col gap-2`,children:[(0,N.jsxs)(`div`,{className:`toolbar`,children:[(0,N.jsx)(`h2`,{className:`font-medium`,children:`Preview over recent sessions`}),(0,N.jsx)(xh,{ariaLabel:`session`,value:s,onChange:c,placeholder:`No sessions`,options:a.map(e=>({value:e,label:e}))})]}),s&&(0,N.jsxs)(`div`,{className:`grid gap-4 ${y?`lg:grid-cols-2`:`grid-cols-1`}`,children:[(0,N.jsx)(cO,{label:`Active mapping`,session:l}),y&&(0,N.jsx)(cO,{label:`Draft mapping`,session:d})]})]})]})}var uO=2e3;function dO({agent:e,session:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null);return(0,v.useEffect)(()=>{r(null),M(`/agents/${encodeURIComponent(e)}/sessions/${encodeURIComponent(t)}/trajectory?esf=true`).then(r).catch(e=>a(e instanceof Error?e.message:String(e)))},[e,t]),(0,N.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,N.jsxs)(`div`,{className:`toolbar`,children:[(0,N.jsxs)(`span`,{className:`row-meta`,children:[`Session `,(0,N.jsx)(`span`,{className:`font-mono`,children:t})]}),(0,N.jsx)(kn,{className:`btn btn-quiet text-brand`,to:`/runs/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,children:`Trajectory ↗`})]}),i&&(0,N.jsx)(`div`,{className:`pane-status error`,children:i}),n&&(0,N.jsx)(oO,{session:n})]})}function fO({item:e,agent:t,busy:n,act:r}){let[i,a]=(0,v.useState)(!1),o=Gv(e.status),s=Math.round(100*Kv(e));return(0,N.jsxs)(`div`,{className:`row gap-2`,children:[(0,N.jsxs)(`div`,{className:`grid grid-cols-[auto_auto_1fr_auto_auto_auto] items-center gap-3`,children:[(0,N.jsxs)(`span`,{className:`row-strong font-mono`,children:[`#`,e.id]}),(0,N.jsx)(`span`,{className:`chip ${e.status===`done`?`chip-pass`:e.status===`failed`?`chip-fail`:`muted`}`,children:e.status}),(0,N.jsxs)(`span`,{className:`row-meta`,children:[e.source,`/`,e.project,` · `,jv(e.since),` →`,` `,jv(e.until),` · by `,e.created_by]}),(0,N.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`span`,{className:`relative h-2 w-40 overflow-hidden rounded bg-line-soft`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s,children:(0,N.jsx)(`span`,{className:`absolute inset-y-0 left-0 bg-brand`,style:{width:`${s}%`}})}),(0,N.jsxs)(`span`,{className:`row-meta num`,children:[s,`% · `,e.traces,` traces · `,e.spans,` spans`]})]}),o?(0,N.jsx)(`button`,{className:`btn btn-sm`,disabled:n,onClick:()=>r(e,o),children:o===`stop`?`Stop`:`Continue`}):(0,N.jsx)(`span`,{}),e.status===`done`&&e.sample_session?(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:()=>a(e=>!e),children:i?`Hide check`:`Check a session`}):(0,N.jsx)(`span`,{})]}),e.error&&(0,N.jsxs)(`div`,{className:`pane-status error`,children:[e.error,`. Imported up to `,jv(e.resume_from),`.`]}),i&&e.sample_session&&(0,N.jsx)(dO,{agent:t,session:e.sample_session})]})}function pO({agent:e}){let t=`/agents/${encodeURIComponent(e)}`,[n,r]=(0,v.useState)([]),[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(`range`),[u,d]=(0,v.useState)(``),[f,p]=(0,v.useState)(``),[m,h]=(0,v.useState)(``),[g,_]=(0,v.useState)(null),[y,b]=(0,v.useState)(null),[x,S]=(0,v.useState)(!1),[C,w]=(0,v.useState)(null);(0,v.useEffect)(()=>{M(`/trace-sources`).then(e=>{r(e),e.length&&a(t=>t||e[0].name)}).catch(e=>w(e instanceof Error?e.message:String(e)))},[]);let T=(0,v.useCallback)(()=>M(`${t}/imports`).then(_).catch(e=>w(e instanceof Error?e.message:String(e))),[t]);(0,v.useEffect)(()=>{T()},[T]);let E=g?.some(e=>Wv(e.status))??!1;(0,v.useEffect)(()=>{if(!E)return;let e=window.setInterval(T,uO);return()=>window.clearInterval(e)},[E,T]);let D=async e=>{S(!0),w(null);try{await e()}catch(e){w(e instanceof Error?e.message:String(e))}finally{S(!1)}},O=()=>D(async()=>{if(c===`session`){b(null);let e=await rr(`${t}/sessions/import`,`POST`,{source:i,project:o,session_id:u});b({session:u,spans:e.imported})}else await rr(`${t}/imports`,`POST`,{source:i,project:o,since:qv(f),until:m?qv(m):new Date().toISOString()}),await T()}),k=(e,n)=>D(async()=>{await rr(`${t}/imports/${e.id}/${n}`,`POST`),await T()}),A=i&&o&&(c===`session`?u.trim():f)&&!x;return(0,N.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[C&&(0,N.jsx)(`div`,{className:`pane-status error`,children:C}),(0,N.jsxs)(`section`,{className:`flex max-w-3xl flex-col gap-2`,children:[(0,N.jsx)(`h2`,{className:`font-medium`,children:`Import from a trace source`}),n.length===0?(0,N.jsxs)(`p`,{className:`text-meta text-ink-3`,children:[`No trace sources yet. An admin adds one on the Trace sources page or with `,(0,N.jsx)(`code`,{children:`evalkit trace-sources create`}),`.`]}):(0,N.jsxs)(`div`,{className:`card flex flex-col gap-2 p-3`,children:[(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Source`}),(0,N.jsx)(xh,{ariaLabel:`trace source`,value:i,onChange:a,options:n.map(e=>({value:e.name,label:e.name}))})]}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Project`}),(0,N.jsx)(`input`,{className:`input w-72`,value:o,onChange:e=>s(e.target.value)})]}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`What`}),(0,N.jsxs)(`div`,{className:`segment self-start`,children:[(0,N.jsx)(`button`,{"aria-pressed":c===`range`,onClick:()=>l(`range`),children:`Time range`}),(0,N.jsx)(`button`,{"aria-pressed":c===`session`,onClick:()=>l(`session`),children:`One session`})]})]}),c===`session`?(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Session id`}),(0,N.jsx)(`input`,{className:`input w-72 font-mono`,value:u,onChange:e=>d(e.target.value)})]}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Since`}),(0,N.jsx)(`input`,{type:`datetime-local`,className:`input`,value:f,onChange:e=>p(e.target.value)})]}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Until`}),(0,N.jsx)(`input`,{type:`datetime-local`,className:`input`,value:m,onChange:e=>h(e.target.value)}),(0,N.jsx)(`span`,{className:`row-meta`,children:`empty means now`})]}),(0,N.jsxs)(`p`,{className:`text-meta text-ink-3`,children:[`Imports every trace that started in this range, oldest first, as a job on the server. Sessions come from the active mapping's `,(0,N.jsx)(`code`,{children:`session_id`}),` rule. Leaving this page does not stop it.`]})]}),(0,N.jsx)(`div`,{children:(0,N.jsx)(`button`,{className:`btn btn-primary`,disabled:!A,onClick:O,children:c===`session`?`Import session`:`Start import`})})]}),y&&(0,N.jsxs)(`div`,{className:`card flex flex-col gap-2 p-3`,children:[(0,N.jsxs)(`span`,{children:[`Imported `,y.spans,` spans.`]}),(0,N.jsx)(dO,{agent:e,session:y.session})]})]}),(0,N.jsxs)(`section`,{className:`flex flex-col gap-2`,children:[(0,N.jsx)(`h2`,{className:`font-medium`,children:`Range imports`}),(0,N.jsxs)(`div`,{className:`card rows`,children:[g?.map(t=>(0,N.jsx)(fO,{item:t,agent:e,busy:x,act:k},t.id)),g&&g.length===0&&(0,N.jsx)(`div`,{className:`pane-status`,children:`No range imports yet.`}),g===null&&(0,N.jsx)(`div`,{className:`pane-status`,children:`Loading…`})]})]})]})}function mO(e){let t=[{id:`overview`,label:`Overview`}];return e.trajectory_source===`otel`&&t.push({id:`mappings`,label:`Mappings`},{id:`import`,label:`Import`}),e.harness_url&&t.push({id:`check`,label:`Harness check`}),t}function hO(e){return e===`overview`||e===`mappings`||e===`import`||e===`check`}function gO(e){return`${e.harness_url?`Harness API`:`SDK`} · ${e.trajectory_source===`otel`?`traces`:`ATIF from the agent`}`}function _O(e,t,n){return(e.roles[t]??[]).includes(n)}function vO(e,t){return t.type===`personal`?t.name===e.personal_workspace:e.is_admin||_O(e,t.name,`writer`)}function yO(e,t){return _O(e,t,`reviewer`)}function bO(e,t){return e.is_admin&&t.type===`shared`}function xO(e,t){return t.workspace_type===`shared`||t.workspace===e.personal_workspace}var SO=[`writer`,`reviewer`];function CO(e){let t=new Map;for(let n of e)t.set(n.username,[...t.get(n.username)??[],n]);return[...t].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({username:e,grants:t.sort((e,t)=>SO.indexOf(e.role)-SO.indexOf(t.role))}))}function wO({what:e,up:t}){return(0,N.jsx)(`div`,{className:`page`,children:(0,N.jsxs)(`div`,{className:`card p-6`,children:[(0,N.jsx)(`h1`,{className:`page-title mb-2`,children:`Not found`}),(0,N.jsxs)(`p`,{className:`text-lede text-ink-3`,children:[`There is no `,(0,N.jsx)(`span`,{className:`font-mono`,children:e}),`.`]}),(0,N.jsxs)(kn,{className:`btn btn-quiet mt-3 text-brand`,to:t.to,children:[`← `,t.label]})]})})}function TO({agent:e}){let t=_r(e.repo_url);return(0,N.jsxs)(`dl`,{className:`grid max-w-3xl grid-cols-[max-content_1fr] gap-x-4 gap-y-1 text-lede`,children:[(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Name`}),(0,N.jsx)(`dd`,{className:`font-mono`,children:e.name}),(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Workspace`}),(0,N.jsxs)(`dd`,{children:[`@`,e.workspace,` `,(0,N.jsxs)(`span`,{className:`row-meta`,children:[`(`,e.workspace_type,`)`]})]}),(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Kind`}),(0,N.jsx)(`dd`,{children:gO(e)}),(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Driven by`}),(0,N.jsx)(`dd`,{children:EO[e.driver]}),(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Harness URL`}),(0,N.jsx)(`dd`,{className:`font-mono break-all`,children:e.harness_url??`none (code-driven agent; runs from run_experiment)`}),(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Trajectories`}),(0,N.jsx)(`dd`,{children:e.trajectory_source===`otel`?`converted from spans the agent exports, with its active mapping`:`ATIF served by the harness or returned by the task`}),e.repo_url&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`Repository`}),(0,N.jsx)(`dd`,{children:t?(0,N.jsx)(`a`,{className:`text-brand`,href:t,target:`_blank`,rel:`noopener`,children:e.repo_url}):e.repo_url})]}),ih.map(({key:t,label:n})=>(0,N.jsxs)(v.Fragment,{children:[(0,N.jsx)(`dt`,{className:`text-ink-3`,children:n}),(0,N.jsx)(`dd`,{className:`num`,children:e.settings[t]})]},t)),e.archived&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`dt`,{className:`text-ink-3`,children:`State`}),(0,N.jsx)(`dd`,{children:`archived`})]})]})}var EO={server:`the server (shared agent)`,cli:`its owner's CLI (evalkit run)`,sdk:`the SDK (evalkit.sdk.run_experiment)`};function DO(){let{agent:e=``,tab:t}=ht();jr(dr(e).workspace);let n=dt(),r=Tr(),[i,a]=(0,v.useState)(void 0),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(!1);if((0,v.useEffect)(()=>{M(`/agents/${encodeURIComponent(e)}`).then(a).catch(e=>{Yn(e)?a(null):s(e instanceof Error?e.message:String(e))})},[e]),!hO(t))return(0,N.jsx)(Lt,{to:`/agents/${encodeURIComponent(e)}/overview`,replace:!0});if(i===null)return(0,N.jsx)(wO,{what:`agent ${e}`,up:{label:`All agents`,to:`/agents`}});let u=i&&vO(r,{name:i.workspace,type:i.workspace_type}),d=i?mO(i).filter(e=>(e.id!==`check`||xO(r,i))&&(e.id!==`import`||u&&!i.archived)):[];return i&&!d.some(e=>e.id===t)?(0,N.jsx)(Lt,{to:`/agents/${encodeURIComponent(e)}/overview`,replace:!0}):(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-2`,children:[(0,N.jsx)(`h1`,{className:`max-w-160 truncate font-mono text-head font-semibold`,children:(0,N.jsx)(Ym,{value:e})}),i&&(0,N.jsx)(`span`,{className:`chip muted`,children:gO(i)}),u&&!i.archived&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`button`,{className:`btn btn-sm ml-auto`,onClick:()=>l(!0),children:`Edit`}),(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:async()=>{if(i&&window.confirm(`Archive ${i.ref}? Nobody can run it until it's restored. Its runs and results stay.`)){s(null);try{a(await rr(`/agents/${encodeURIComponent(i.ref)}/archive`,`POST`))}catch(e){s(e instanceof Error?e.message:String(e))}}},children:`Archive`})]}),u&&i.archived&&(0,N.jsx)(`button`,{className:`btn btn-sm ml-auto`,onClick:async()=>{if(i){s(null);try{a(await rr(`/agents/${encodeURIComponent(i.ref)}/restore`,`POST`))}catch(e){s(e instanceof Error?e.message:String(e))}}},children:`Restore`}),(0,N.jsx)(kn,{className:`btn btn-quiet text-brand ${u?``:`ml-auto`}`,to:`/runs?agent=${encodeURIComponent(e)}`,children:`Runs ↗`}),(0,N.jsx)(kn,{className:`btn btn-quiet text-brand`,to:`/agents`,children:`All agents ↗`})]}),o&&(0,N.jsx)(`div`,{className:`pane-status error`,children:o}),i&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)($m,{tabs:d,active:t,onSelect:t=>n(`/agents/${encodeURIComponent(e)}/${t}`)}),(0,N.jsxs)(`div`,{className:`mt-4`,children:[t===`overview`&&(0,N.jsx)(TO,{agent:i}),t===`mappings`&&(0,N.jsx)(lO,{agent:e}),t===`import`&&(0,N.jsx)(pO,{agent:e}),t===`check`&&(0,N.jsx)(Dh,{agent:i.ref})]}),c&&(0,N.jsx)(wh,{workspace:i.workspace,shared:i.workspace_type===`shared`,agent:i,onSaved:e=>{a(e),l(!1)},onClose:()=>l(!1)})]})]})}function OO({agent:e}){return(0,N.jsxs)(kn,{className:`row grid-cols-[minmax(0,1fr)_auto_minmax(0,2fr)_auto]`,to:`/agents/${encodeURIComponent(e.ref)}/overview`,children:[(0,N.jsx)(`span`,{className:`row-strong`,children:e.name}),(0,N.jsx)(`span`,{className:`chip muted`,children:gO(e)}),(0,N.jsx)(`span`,{className:`row-meta truncate font-mono`,children:e.harness_url??``}),(0,N.jsx)(`span`,{className:`chip muted`,children:e.driver})]})}function kO(){let e=Tr(),[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)([]),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(!1),l=dt(),{workspace:u}=Ar(),d=vO(e,u)&&!u.archived;return(0,v.useEffect)(()=>{let e=!1;return n(null),i([]),o(null),M(`/agents${or({workspace:u.name,include_archived:`true`})}`).then(t=>{if(e)return;let r=[...t].sort((e,t)=>e.name.localeCompare(t.name));n(r.filter(e=>!e.archived)),i(r.filter(e=>e.archived))}).catch(t=>!e&&o(String(t))),()=>{e=!0}},[u.name]),(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-3`,children:[(0,N.jsx)(`h1`,{className:`page-title`,children:`Agents`}),t&&(0,N.jsxs)(`span`,{className:`row-meta num ml-auto`,children:[t.length,` agents`]}),d&&(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:()=>c(!0),children:`New agent`})]}),a&&(0,N.jsx)(`div`,{className:`pane-status error`,children:a}),t&&t.length===0&&(0,N.jsxs)(`div`,{className:`pane-status`,children:[`No agents in @`,u.name,`.`,d&&(0,N.jsxs)(N.Fragment,{children:[` `,`Create one here or with`,` `,(0,N.jsx)(`span`,{className:`font-mono`,children:`evalkit agents create`}),`.`]})]}),t&&t.length>0&&(0,N.jsx)(`div`,{className:`card rows`,children:t.map(e=>(0,N.jsx)(OO,{agent:e},e.ref))}),r.length>0&&(0,N.jsxs)(`details`,{className:`mt-4`,children:[(0,N.jsxs)(`summary`,{className:`row-meta cursor-pointer`,children:[`Archived (`,r.length,`)`]}),(0,N.jsx)(`div`,{className:`card rows mt-2`,children:r.map(e=>(0,N.jsx)(OO,{agent:e},e.ref))})]}),s&&(0,N.jsx)(wh,{workspace:u.name,shared:u.type===`shared`,onSaved:e=>l(`/agents/${encodeURIComponent(e.ref)}/overview`),onClose:()=>c(!1)})]})}function AO(e){return jO(e)||typeof e==`function`||MO(e)}function jO(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function MO(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function NO(e,t){return e==null?null:AO(e)?v.createElement(e,t):e}function PO(e){if(`cell`in e&&e.cell){let t=e.cell,n=t.column.columnDef,r=t,i=n;return r.getIsAggregated?.()?NO(i.aggregatedCell??n.cell,t.getContext()):r.getIsPlaceholder?.()?null:NO(n.cell,t.getContext())}return`header`in e&&e.header?NO(e.header.column.columnDef.header,e.header.getContext()):`footer`in e&&e.footer?NO(e.footer.column.columnDef.footer,e.footer.getContext()):null}function FO({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function IO(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var LO=[],RO=0,{link:zO,unlink:BO,propagate:VO,checkDirty:HO,shallowPropagate:UO}=FO({update(e){return e._update()},notify(e){LO[GO++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,YO(e))}}),WO=0,GO=0,KO,qO=0;function JO(e){try{++qO,e()}finally{--qO||XO()}}function YO(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=BO(n,e)}function XO(){if(!(qO>0)){for(;WO<GO;){let e=LO[WO];LO[WO++]=void 0,e.notify()}WO=0,GO=0}}function ZO(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return KO!==void 0&&zO(i,KO,RO),i._snapshot},subscribe(e){let t=IO(e),n={current:!1},r=QO(()=>{i.get(),n.current?(KO=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=KO,o=t?.compare??Object.is;if(n)KO=i,++RO,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{KO=a,n&&(i.flags&=-5),YO(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&HO(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&UO(e)}}else e&32&&(i.flags=e&-33);return KO!==void 0&&zO(i,KO,RO),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(VO(e),UO(e),XO())}},i}function QO(e){let t=()=>{let t=KO;KO=n,++RO,n.depsTail=void 0,n.flags=6;try{return e()}finally{KO=t,n.flags&=-5,YO(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&HO(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,YO(this)}};return t(),n}function $O(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=ek(e);if(n.length!==ek(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function ek(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}var tk=o((e=>{var t=d();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),nk=o(((e,t)=>{t.exports=tk()})),rk=o((e=>{var t=d(),n=nk();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),ik=o(((e,t)=>{t.exports=rk()}))();function ak(e,t){return e===t}function ok(e,t=e=>e,n){let r=n?.compare??ak,i=(0,v.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,v.useCallback)(()=>e.get(),[e]);return(0,ik.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function sk(e){let t=ok(e.source,e.selector,{compare:$O});return typeof e.children==`function`?e.children(t):e.children}function ck(e){let t=e;return Object.defineProperty(e,"state",{get(){return e.get()}}),`set`in e&&(t.setState=e.set.bind(e)),t}function lk(e){let{createAtom:t,batch:n}=e,r=t(0);return{createOptionsStore:!1,wrapExternalAtoms:!1,addSubscription:()=>{throw Error(`Feature not supported in current reactivity implementation`)},unmount:()=>{throw Error(`Feature not supported in current reactivity implementation`)},schedule:e.schedule??(e=>queueMicrotask(e)),batch:n,untrack:e=>e(),createReadonlyAtom:(e,n)=>{let i=n?.compare??Object.is,a=!1,o,s=()=>{let t=e();return a&&i(o,t)||(o=t,a=!0),o},c=t(()=>(r.get(),s()),{compare:i});return{get:s,subscribe:c.subscribe.bind(c)}},createWritableAtom:(e,n)=>t(e,{compare:n?.compare}),commit:()=>{r.set(e=>e+1)}}}function uk(e,t=Object.is){let n=!1,r;return{get:e.get,markCommitted:e=>{r=e,n=!0},subscribe:i=>e.subscribe(e=>{n&&t(r,e)||i(e)})}}function dk(){return lk({createAtom:ZO,batch:JO})}function fk(e,t){return typeof e==`function`?e(t):e}function pk(e){if(Array.isArray(e))return e.map(pk);if(e&&typeof e==`object`){let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)return e;let n=t===null?hk():{},r=Object.keys(e);for(let t=0;t<r.length;t++){let i=r[t];Object.defineProperty(n,i,{configurable:!0,enumerable:!0,value:pk(e[i]),writable:!0})}return n}return e}function mk(e,t){let n=Object.keys(t),r=e;for(let e=0;e<n.length;e++){let i=n[e];!i.startsWith(`_memo_`)&&i!==`_cellsCache`&&(r[i]=t[i])}return e}function hk(){return Object.create(null)}function gk(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _k(e,t){return n=>{(t.options.atoms?.[e]??t.baseAtoms[e]).set(e=>fk(n,e))}}function vk(e){if(typeof e!=`object`||!e)return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function yk(e){return Reflect.ownKeys(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var bk=3;function xk(e,t){return Sk(e,t,bk)}function Sk(e,t,n){if(Object.is(e,t))return!0;if(n<=0||!vk(e)||!vk(t)||(Array.isArray(e)||Array.isArray(t))&&(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length))return!1;let r=yk(e),i=yk(t);if(r.length!==i.length)return!1;let a=e,o=t;for(let e=0;e<r.length;e++){let i=r[e];if(!Object.prototype.propertyIsEnumerable.call(t,i)||!Sk(a[i],o[i],n-1))return!1}return!0}function Ck(e,t,n,r=xk){let i=`on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`,a=e.options[i];a&&a(e=>{let t=fk(n,e);return r(e,t)?e:t})}function wk(e){return e instanceof Function}function Tk(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i.length&&r(i)})};return r(e),n}var Ek=({fn:e,memoDeps:t,onAfterCompare:n,onAfterUpdate:r,onBeforeCompare:i,onBeforeUpdate:a})=>{let o=[],s;return c=>{i?.();let l=t?.(c),u=!l||l.length!==o?.length;if(!u&&l){for(let e=0;e<l.length;e++)if(l[e]!==o[e]){u=!0;break}}return n?.(u),u&&(o=l,a?.(),s=e(...l??[]),r?.(s)),s}};function Dk(e){let t=!1;return()=>{t?e():t=!0}}function Ok({feature:e,fnName:t,objectId:n,onAfterUpdate:r,table:i,...a}){let o={onAfterUpdate:r?()=>{let{schedule:e,untrack:t}=i._reactivity;e(()=>t(()=>r()))}:void 0};return Ek({...a,...o})}function kk(e,t=`_`){let[n,r]=e.replace(t,` `).split(` `);return{fnKey:r,fnName:`${n}.${r}`,parentName:n}}function Ak(e,t,n){for(let[r,{fn:i,memoDeps:a}]of Object.entries(n)){let{fnKey:n,fnName:o}=kk(r);t[n]=a?Ok({memoDeps:a,fn:i,fnName:o,table:t,feature:e}):i}}function jk(e,t,n,r){for(let[i,{fn:a,memoDeps:o}]of Object.entries(r)){let{fnKey:r,fnName:s}=kk(i);if(o){let i=`_memo_${r}`;t[r]=function(...t){if(!this[i]){let t=this;this[i]=Ok({memoDeps:e=>o(t,e),fn:(...e)=>a(t,...e),fnName:s,objectId:t.id,table:n,feature:e})}return this[i](...t)}}else t[r]=function(...e){return a(this,...e)}}}function Mk(e,t,n,...r){return e[t]?.(...r)??n(e,...r)}function Nk(e){return e.row.getValue(e.column.id)}function Pk(e){return e.getValue()??e.table.options.renderFallbackValue}function Fk(e){return{table:e.table,column:e.column,row:e.row,cell:e,getValue:()=>e.getValue(),renderValue:()=>e.renderValue()}}var Ik={assignCellPrototype:(e,t)=>{jk(`coreCellsFeature`,e,t,{cell_getValue:{fn:e=>Nk(e)},cell_renderValue:{fn:e=>Pk(e)},cell_getContext:{fn:e=>Fk(e),memoDeps:e=>[e]}})}};function Lk(e){if(!e._columnPrototype){e._columnPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignColumnPrototype?.(e._columnPrototype,e)}return e._columnPrototype}function Rk(e,t,n,r){let i={...e.getDefaultColumnDef(),...t},a=i.accessorKey,o=a===void 0?void 0:String(a),s=i.id??o?.replaceAll(`.`,`_`)??(typeof i.header==`string`?i.header:void 0),c;if(i.accessorFn)c=i.accessorFn;else if(a!==void 0){if(typeof a==`string`&&a.includes(`.`)){let e=a.split(`.`);c=t=>{let n=t;for(let t=0;t<e.length;t++){let r=e[t];n=n?.[r]}return n}}else c=e=>e[i.accessorKey]}if(!s)throw Error();let l=Lk(e),u=Object.create(l);u.accessorFn=c,u.columnDef=i,u.columns=[],u.depth=n,u.id=`${String(s)}`,u.parent=r;let d=e._columnInstanceInitFns;for(let e=0;e<d.length;e++)d[e](u);return u}function zk(e){return e.getIsVisible?.()??!0}function Bk(e){return e.getVisibleLeafColumns?.()??e.getAllLeafColumns()}function Vk(e,t){let n=e,r=t;return n.getOrderColumnsFn?.()(r)??n._orderGroupedColumns?.(r)??t}function Hk(e,t,n,r){return e._orderByColumnPinning?.(t,n,r)??t}function Uk(e,t){return e.getPinnedVisibleLeafColumns?.(t)??(t&&t!==`center`?[]:Bk(e))}function Wk(e,t){return e._expandRows?.(t)??t}function Gk(e){e.autoResetExpanded?.()}function Kk(e){e.autoResetPageIndex?.()}function qk(e){e.autoResetSorting?.()}function Jk(e){e.autoResetCellSelection?.()}function Yk(e){return[e,...e.columns.flatMap(e=>e.getFlatColumns())]}function Xk(e){if(e.columns.length){let t=e.columns.flatMap(e=>e.getLeafColumns());return Vk(e.table,t)}return[e]}function Zk(e){return{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>e.renderValue()?.toString?.()??null,...Object.values(e._features).reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef?.()),{}),...e.options.defaultColumn}}function Qk(e,t,n,r=0){let i=Array(t.length);for(let a=0;a<t.length;a++){if(!(a in t))continue;let o=t[a],s=Rk(e,o,r,n),c=o;s.columns=c.columns?Qk(e,c.columns,s,r+1):[],i[a]=s}return i}function $k(e){return Qk(e,e.options.columns)}function eA(e){return e.getAllColumns().flatMap(e=>e.getFlatColumns())}function tA(e){let t=hk(),n=e.getAllFlatColumns();for(let e=0;e<n.length;e++){let r=n[e];t[r.id]=r}return t}function nA(e){return Vk(e,e.getAllColumns().flatMap(e=>e.getLeafColumns()))}function rA(e){let t=hk(),n=e.getAllLeafColumns();for(let e=0;e<n.length;e++){let r=n[e];t[r.id]=r}return t}function iA(e,t){return e.getAllFlatColumnsById()[t]}var aA={assignColumnPrototype:(e,t)=>{jk(`coreColumnsFeature`,e,t,{column_getFlatColumns:{fn:e=>Yk(e),memoDeps:e=>[e.table.options.columns]},column_getLeafColumns:{fn:e=>Xk(e),memoDeps:e=>[e.table.atoms.columnOrder?.get(),e.table.atoms.grouping?.get(),e.table.options.columns,e.table.options.groupedColumnMode]}})},constructTableAPIs:e=>{Ak(`coreColumnsFeature`,e,{table_getDefaultColumnDef:{fn:()=>Zk(e),memoDeps:()=>[e.options.defaultColumn]},table_getAllColumns:{fn:()=>$k(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumns:{fn:()=>eA(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumnsById:{fn:()=>tA(e),memoDeps:()=>[e.options.columns]},table_getAllLeafColumns:{fn:()=>nA(e),memoDeps:()=>[e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_getAllLeafColumnsById:{fn:()=>rA(e),memoDeps:()=>[e.getAllLeafColumns()]},table_getColumn:{fn:t=>iA(e,t)}})}};function oA(e){if(!e._headerPrototype){e._headerPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignHeaderPrototype?.(e._headerPrototype,e)}return e._headerPrototype}function sA(e,t,n){let r=oA(e),i=Object.create(r);i.colSpan=0,i.column=t,i.depth=n.depth,i.headerGroup=null,i.id=n.id??t.id,i.index=n.index,i.isPlaceholder=!!n.isPlaceholder,i.placeholderId=n.placeholderId,i.rowSpan=0,i.subHeaders=[];let a=e._headerInstanceInitFns;for(let e=0;e<a.length;e++)a[e](i);return i}function cA(e,t=1){let n=t;for(let r=0;r<e.length;r++){let i=e[r];zk(i)&&i.columns.length&&(n=Math.max(n,cA(i.columns,t+1)))}return n}function lA(e,t){return e?`${e}_${t}`:String(t)}function uA(e,t,n,r){let i=e??``;return t&&(i=i?`${i}_${t}`:String(t)),n&&(i=i?`${i}_${n}`:n),r&&(i=i?`${i}_${r}`:r),i}function dA(e,t){let n=0;for(let r=0;r<e.length;r++)e[r].column===t&&n++;return n}function fA(e,t,n,r,i,a){let o={depth:t,id:lA(r,t),headers:[]},s=[];for(let i=0;i<e.length;i++){if(!(i in e))continue;let a=e[i],c=s[s.length-1],l=a.column.depth===o.depth,u,d=!1;if(l&&a.column.parent?u=a.column.parent:(u=a.column,d=!0),c&&c.column===u)c.subHeaders.push(a);else{let e=sA(n,u,{id:uA(r,t,u.id,a.id),isPlaceholder:d,placeholderId:d?String(dA(s,u)):void 0,depth:t,index:s.length});e.subHeaders.push(a),s.push(e)}o.headers.push(a),a.headerGroup=o}for(let e=0;e<a.length;e++)a[e](o);i.push(o),t>0&&fA(s,t-1,n,r,i,a)}function pA(e){for(let t=0;t<e.length;t++){let n=e[t];if(!zk(n.column))continue;let r=0;if(n.subHeaders.length){pA(n.subHeaders);for(let e=0;e<n.subHeaders.length;e++){let t=n.subHeaders[e];zk(t.column)&&(r+=t.colSpan)}}else r=1;if(n.colSpan=r,n.isPlaceholder&&n.subHeaders.length===1&&n.subHeaders[0].column===n.column){let e=1,t=n.subHeaders[0];for(;t;)t.rowSpan=0,e++,t=t.subHeaders.length===1&&t.subHeaders[0].column===n.column?t.subHeaders[0]:void 0;n.rowSpan=e}else n.rowSpan=1}}function mA(e,t,n,r){let i=cA(e),a=[],o=n._headerGroupInstanceInitFns,s=Array(t.length);for(let e=0;e<t.length;e++)e in t&&(s[e]=sA(n,t[e],{depth:i,index:e}));return fA(s,i-1,n,r,a,o),a.reverse(),pA(a[0]?.headers??[]),a}function hA(e,t){for(let n=0;n<e.subHeaders.length;n++)hA(e.subHeaders[n],t);t.push(e)}function gA(e){let t=[];return hA(e,t),t}function _A(e){return{column:e.column,header:e,table:e.column.table}}function vA(e){return mA(e.getAllColumns(),Hk(e,Bk(e),e=>e.id),e)}function yA(e){return[...e.getHeaderGroups()].reverse()}function bA(e){let t=e.getHeaderGroups(),n=[];for(let e=0;e<t.length;e++){let r=t[e].headers;for(let e=0;e<r.length;e++)n.push(r[e])}return n}function xA(e){let t=e.getHeaderGroups()[0]?.headers??[],n=[];for(let e=0;e<t.length;e++){let r=t[e].getLeafHeaders();for(let e=0;e<r.length;e++)n.push(r[e])}return n}var SA={assignHeaderPrototype:(e,t)=>{jk(`coreHeadersFeature`,e,t,{header_getLeafHeaders:{fn:e=>gA(e),memoDeps:e=>[e.column.table.options.columns]},header_getContext:{fn:e=>_A(e),memoDeps:e=>[e.column.table.options.columns]}})},constructTableAPIs:e=>{Ak(`coreHeadersFeature`,e,{table_getHeaderGroups:{fn:()=>vA(e),memoDeps:()=>[e.options.columns,e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.options.groupedColumnMode]},table_getFooterGroups:{fn:()=>yA(e),memoDeps:()=>[e.getHeaderGroups()]},table_getFlatHeaders:{fn:()=>bA(e),memoDeps:()=>[e.getHeaderGroups()]},table_getLeafHeaders:{fn:()=>xA(e),memoDeps:()=>[e.getHeaderGroups()]}})}};function CA(e){if(!e._rowPrototype){e._rowPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignRowPrototype?.(e._rowPrototype,e)}return e._rowPrototype}var wA=(e,t,n,r,i,a,o)=>{let s=CA(e),c=Object.create(s);c._displayIndexCache=-1,c._uniqueValuesCache=hk(),c._valuesCache=hk(),c.depth=i,c.id=t,c.index=r,c.original=n,c.parentId=o,c.subRows=a??[];let l=e._rowInstanceInitFns;for(let e=0;e<l.length;e++)l[e](c);return c};function TA(){return e=>Ok({feature:`coreRowModelsFeature`,table:e,fnName:`table.getCoreRowModel`,memoDeps:()=>[e.options.data],fn:()=>DA(e,e.options.data),onAfterUpdate:Dk(()=>{Gk(e),Kk(e),qk(e),Jk(e)})})}function EA(e,t,n,r=0,i){let a=[];for(let o=0;o<n.length;o++){let s=n[o],c=wA(e,e.getRowId(s,o,i),s,o,r,void 0,i?.id);t.flatRows.push(c),t.rowsById[c.id]=c,a.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(s,o),c.originalSubRows?.length&&(c.subRows=EA(e,t,c.originalSubRows,r+1,c)))}return a}function DA(e,t){let n={rows:[],flatRows:[],rowsById:hk()};return n.rows=EA(e,n,t),n}function OA(e){return e._rowModels.coreRowModel||(e._rowModels.coreRowModel=e.options.features.coreRowModel?.(e)??TA()(e)),e._rowModels.coreRowModel()}function kA(e){return e.getCoreRowModel()}function AA(e){return e._rowModels.filteredRowModel||(e._rowModels.filteredRowModel=e.options.features.filteredRowModel?.(e)),e.options.manualFiltering||!e._rowModels.filteredRowModel?e.getPreFilteredRowModel():e._rowModels.filteredRowModel()}function jA(e){return e.getFilteredRowModel()}function MA(e){return e._rowModels.groupedRowModel||(e._rowModels.groupedRowModel=e.options.features.groupedRowModel?.(e)),e.options.manualGrouping||!e._rowModels.groupedRowModel?e.getPreGroupedRowModel():e._rowModels.groupedRowModel()}function NA(e){return e.getGroupedRowModel()}function PA(e){return e._rowModels.sortedRowModel||(e._rowModels.sortedRowModel=e.options.features.sortedRowModel?.(e)),e.options.manualSorting||!e._rowModels.sortedRowModel?e.getPreSortedRowModel():e._rowModels.sortedRowModel()}function FA(e){return e.getSortedRowModel()}function IA(e){return e._rowModels.expandedRowModel||(e._rowModels.expandedRowModel=e.options.features.expandedRowModel?.(e)),e.options.manualExpanding||!e._rowModels.expandedRowModel?e.getPreExpandedRowModel():e._rowModels.expandedRowModel()}function LA(e){return e.getExpandedRowModel()}function RA(e){return e._rowModels.paginatedRowModel||(e._rowModels.paginatedRowModel=e.options.features.paginatedRowModel?.(e)),e.options.manualPagination||!e._rowModels.paginatedRowModel?e.getPrePaginatedRowModel():e._rowModels.paginatedRowModel()}function zA(e){return e.getPaginatedRowModel()}var BA={constructTableAPIs:e=>{Ak(`coreRowModelsFeature`,e,{table_getCoreRowModel:{fn:()=>OA(e)},table_getPreFilteredRowModel:{fn:()=>kA(e)},table_getFilteredRowModel:{fn:()=>AA(e)},table_getPreGroupedRowModel:{fn:()=>jA(e)},table_getGroupedRowModel:{fn:()=>MA(e)},table_getPreSortedRowModel:{fn:()=>NA(e)},table_getSortedRowModel:{fn:()=>PA(e)},table_getPreExpandedRowModel:{fn:()=>FA(e)},table_getExpandedRowModel:{fn:()=>IA(e)},table_getPrePaginatedRowModel:{fn:()=>LA(e)},table_getPaginatedRowModel:{fn:()=>RA(e)},table_getRowModel:{fn:()=>zA(e)}})}};function VA(e){if(!e._cellPrototype){e._cellPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignCellPrototype?.(e._cellPrototype,e)}return e._cellPrototype}function HA(e,t,n){let r=VA(n),i=Object.create(r);i.column=e,i.id=`${t.id}_${e.id}`,i.row=t;let a=n._cellInstanceInitFns;for(let e=0;e<a.length;e++)a[e](i);return i}function UA(e){let t=e.table.getRowsInDisplayOrder(),n=e._displayIndexCache;return t[n]===e?n:-1}function WA(e){let t=e.getPrePaginatedRowModel(),n=e.options.paginateExpandedRows===!1?Wk(e,t).rows:t.rows;for(let e=0;e<n.length;e++)n[e]._displayIndexCache=e;return n}function GA(e,t){if(gk(e._valuesCache,t))return e._valuesCache[t];let n=e.table.getColumn(t);if(n?.accessorFn)return e._valuesCache[t]=n.accessorFn(e.original,e.index),e._valuesCache[t]}function KA(e,t){if(gk(e._uniqueValuesCache,t))return e._uniqueValuesCache[t];let n=e.table.getColumn(t);if(n?.accessorFn)return n.columnDef.getUniqueValues?(e._uniqueValuesCache[t]=n.columnDef.getUniqueValues(e.original,e.index),e._uniqueValuesCache[t]):(e._uniqueValuesCache[t]=[e.getValue(t)],e._uniqueValuesCache[t])}function qA(e,t){return e.getValue(t)??e.table.options.renderFallbackValue}function JA(e){return Tk(e.subRows,e=>e.subRows)}function YA(e){let t=e.getCoreRowModel().flatRows,n=0;for(let e=0;e<t.length;e++)n=Math.max(n,t[e].depth);return n}function XA(e){if(e.parentId)return e.table.getCoreRowModel().rowsById[e.parentId]??e.table.getRow(e.parentId,!0)}function ZA(e){let t=[],n=e;for(;;){let e=n.getParentRow();if(!e)break;t.push(e),n=e}return t.reverse()}function QA(e){let t=e.table.getAllLeafColumns(),n=e._cellsCache;n||=e._cellsCache=new WeakMap;let r=Array(t.length);for(let i=0;i<t.length;i++){let a=t[i],o=n.get(a);o||(o=HA(a,e,e.table),n.set(a,o)),r[i]=o}return r}function $A(e){let t=hk(),n=e.getAllCells();for(let e=0;e<n.length;e++){let r=n[e];t[r.column.id]=r}return t}function ej(e,t,n,r){return t.options.getRowId?.(e,n,r)??(r?`${r.id}.${n}`:String(n))}function tj(e,t,n){let r=(n?e.getPrePaginatedRowModel():e.getRowModel()).rowsById[t];if(!r&&(r=e.getCoreRowModel().rowsById[t],!r))throw Error();return r}var nj={assignRowPrototype:(e,t)=>{jk(`coreRowsFeature`,e,t,{row_getDisplayIndex:{fn:e=>UA(e)},row_getAllCellsByColumnId:{fn:e=>$A(e),memoDeps:e=>[e.getAllCells()]},row_getAllCells:{fn:e=>QA(e),memoDeps:e=>[e.table.getAllLeafColumns()]},row_getLeafRows:{fn:e=>JA(e),memoDeps:e=>[e.subRows]},row_getParentRow:{fn:e=>XA(e)},row_getParentRows:{fn:e=>ZA(e)},row_getUniqueValues:{fn:(e,t)=>KA(e,t)},row_getValue:{fn:(e,t)=>GA(e,t)},row_renderValue:{fn:(e,t)=>qA(e,t)}})},constructTableAPIs:e=>{Ak(`coreRowsFeature`,e,{table_getRowsInDisplayOrder:{fn:()=>WA(e),memoDeps:()=>[e.getPrePaginatedRowModel().rows,e.options.paginateExpandedRows,e.options.paginateExpandedRows===!1?e.atoms.expanded?.get():void 0]},table_getRowId:{fn:(t,n,r)=>ej(t,e,n,r)},table_getRow:{fn:(t,n)=>tj(e,t,n)},table_getMaxSubRowDepth:{fn:()=>YA(e),memoDeps:()=>[e.getCoreRowModel()]}})}};function rj(e,t,n=(e,t)=>e===t){let r=t===void 0?e.options.state:t;e._reactivity.batch(()=>{if(r)for(let t in r){let i=e.baseAtoms[t];if(!i)continue;let a=r[t],o=a===void 0?e.initialState[t]:a;n(e._reactivity.untrack(()=>i.get()),o)||i.set(()=>o)}})}function ij(e,t,n=(e,t)=>e===t){e._reactivity.batch(()=>{rj(e,t,n),e._reactivity.commit?.()})}function aj(e){let t=pk(e.initialState);e._reactivity.batch(()=>{let n=Object.keys(t);for(let r=0;r<n.length;r++){let i=n[r];e.baseAtoms[i].set(t[i])}});let n=Object.values(e._features);for(let t=0;t<n.length;t++)n[t].resetTableInstanceData?.(e)}function oj(e,t){let{features:n,atoms:r,initialState:i}=e.options;if(!e.options.mergeOptions)return{...e.options,...t,features:n,atoms:r,initialState:i};let a=e.options.mergeOptions(e.options,t),o={...Object.getOwnPropertyDescriptors(a)};return Object.defineProperties(Object.create(Object.getPrototypeOf(a)),{...o,features:{value:n,enumerable:!0,configurable:!0,writable:!0},atoms:{value:r,enumerable:!0,configurable:!0,writable:!0},initialState:{value:i,enumerable:!0,configurable:!0,writable:!0}})}function sj(e,t,n){let r=oj(e,fk(t,e.options));e.optionsStore?e.optionsStore.set(()=>r):e.options=r,n?.syncExternalState!==!1&&ij(e,r.state??null)}var cj={coreCellsFeature:Ik,coreColumnsFeature:aA,coreHeadersFeature:SA,coreRowModelsFeature:BA,coreRowsFeature:nj,coreTablesFeature:{constructTableAPIs:e=>{Ak(`coreTablesFeature`,e,{table_reset:{fn:()=>aj(e)},table_setOptions:{fn:t=>sj(e,t)}})}}};function lj(){return{accessor:(e,t)=>typeof e==`function`?{...t,accessorFn:e}:{...t,accessorKey:e},columns:e=>e,display:e=>e,group:e=>e}}function uj(){return{}}function dj(e){return e}function fj(e,t={}){return Object.values(e).forEach(e=>{t=e.getInitialState?.(t)??t}),pk(t)}function pj(e){let t=e.features.coreReactivityFeature,{aggregationFns:n,columnMeta:r,coreRowModel:i,expandedRowModel:a,facetedMinMaxValues:o,facetedRowModel:s,facetedUniqueValues:c,filterFns:l,filterMeta:u,filteredRowModel:d,groupedRowModel:f,paginatedRowModel:p,sortFns:m,sortedRowModel:h,tableMeta:g,..._}=e.features,v={_cellInstanceInitFns:[],_columnInstanceInitFns:[],_features:{...cj,..._},_headerGroupInstanceInitFns:[],_headerInstanceInitFns:[],_reactivity:t,_rowInstanceInitFns:[],_rowModelFns:{aggregationFns:n,filterFns:l,sortFns:m},_rowModels:{},atoms:{},baseAtoms:{}},y=Object.values(v._features),b={...y.reduce((e,t)=>Object.assign(e,t.getDefaultTableOptions?.(v)),{}),...e};if(t.wrapExternalAtoms&&b.atoms)for(let[e,n]of Object.entries(b.atoms)){let r=n,i=t.createWritableAtom(r.get(),{debugName:`externalAtom/${e}`});b.atoms[e]=i;let a=!1,o=r.subscribe(e=>{a||i.set(e)}),s=i.subscribe(e=>{a=!0,r.set(e),a=!1});t.addSubscription(o),t.addSubscription(s)}t.createOptionsStore?(v.optionsStore=t.createWritableAtom(b,{debugName:`table/optionsStore`}),Object.defineProperty(v,"options",{configurable:!0,enumerable:!0,get(){return v.optionsStore.get()},set(e){v.optionsStore.set(()=>e)}})):v.options=b,v.initialState=fj(v._features,v.options.initialState);let x=Object.keys(v.initialState);for(let e=0;e<x.length;e++){let n=x[e];v.baseAtoms[n]=t.createWritableAtom(v.initialState[n],{debugName:`table/baseAtoms/${n}`}),v.atoms[n]=t.createReadonlyAtom(()=>{let e=v.options,t=e.atoms?.[n],r=t?t.get():v.baseAtoms[n].get();if(t)return r;let i=e.state;if(i&&gk(i,n)){let e=i[n];return e===void 0?v.initialState[n]:e}return r},{debugName:`table/atoms/${n}`})}rj(v),v.store=ck(t.createReadonlyAtom(()=>{let e={};for(let t=0;t<x.length;t++){let n=x[t];e[n]=v.atoms[n].get()}return e},{compare:$O,debugName:`table/store`}));for(let e=0;e<y.length;e++){let t=y[e];t.initTableInstanceData?.(v),t.initCellInstanceData&&v._cellInstanceInitFns.push(t.initCellInstanceData.bind(t)),t.initColumnInstanceData&&v._columnInstanceInitFns.push(t.initColumnInstanceData.bind(t)),t.initHeaderGroupInstanceData&&v._headerGroupInstanceInitFns.push(t.initHeaderGroupInstanceData.bind(t)),t.initHeaderInstanceData&&v._headerInstanceInitFns.push(t.initHeaderInstanceData.bind(t)),t.initRowInstanceData&&v._rowInstanceInitFns.push(t.initRowInstanceData.bind(t)),t.constructTableAPIs?.(v)}return v}function mj(){return[]}function hj(e){let t=e=>{let t=hk();for(let n=0;n<e.length;n++)t[e[n].id]=n;return t};return{all:t(Uk(e)),center:t(Uk(e,`center`)),start:t(Uk(e,`start`)),end:t(Uk(e,`end`))}}function gj(e,t){return Mk(e.table,`getColumnIndexes`,hj)[t===`start`?`start`:t===`end`?`end`:t===`center`?`center`:`all`][e.id]??-1}function _j(e,t){return Uk(e.table,t)[0]?.id===e.id}function vj(e,t){let n=Uk(e.table,t);return n[n.length-1]?.id===e.id}function yj(e,t){Ck(e,`columnOrder`,t)}function bj(e,t){yj(e,t?[]:pk(e.initialState.columnOrder??[]))}function xj(e){let t=e.atoms.columnOrder?.get();return n=>{let r=[];if(!t?.length)r=n;else{let e=new Map;for(let t=0;t<n.length;t++){let r=n[t];e.set(r.id,r)}for(let n=0;n<t.length;n++){let i=t[n],a=e.get(i);a&&(r.push(a),e.delete(i))}for(let t=0;t<n.length;t++){let i=n[t];e.has(i.id)&&r.push(i)}}return Sj(e,r)}}function Sj(e,t){let n=e.atoms.grouping?.get()??[],{groupedColumnMode:r}=e.options;if(!n.length||!r)return t;let i=t.filter(e=>!n.includes(e.id));if(r===`remove`)return i;let a=new Map;for(let e=0;e<t.length;e++){let n=t[e];a.set(n.id,n)}let o=[];for(let e=0;e<n.length;e++){let t=a.get(n[e]);t&&o.push(t)}return[...o,...i]}var Cj={getInitialState:e=>({columnOrder:mj(),...e}),getDefaultTableOptions:e=>({onColumnOrderChange:_k(`columnOrder`,e)}),assignColumnPrototype:(e,t)=>{jk(`columnOrderingFeature`,e,t,{column_getIndex:{fn:(e,t)=>gj(e,t)},column_getIsFirstColumn:{fn:(e,t)=>_j(e,t)},column_getIsLastColumn:{fn:(e,t)=>vj(e,t)}})},constructTableAPIs:e=>{Ak(`columnOrderingFeature`,e,{table_getColumnIndexes:{fn:()=>hj(e),memoDeps:()=>[e.options.columns,e.atoms.columnOrder?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.atoms.grouping?.get(),e.options.groupedColumnMode]},table_setColumnOrder:{fn:t=>yj(e,t)},table_resetColumnOrder:{fn:t=>bj(e,t)},table_getOrderColumnsFn:{fn:()=>xj(e),memoDeps:()=>[e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.groupedColumnMode]}})}};function wj(){return hk()}function Tj(){return{size:150,minSize:20,maxSize:2**53-1}}function Ej(e){let t=Tj(),n=e.table.atoms.columnSizing?.get(),r=n&&gk(n,e.id)?n[e.id]:void 0;return Math.min(Math.max(e.columnDef.minSize??t.minSize,r??e.columnDef.size??t.size),e.columnDef.maxSize??t.maxSize)}function Dj(e){let t=hk(),n=hk(),r=Array(e.length),i=0;for(let n=0;n<e.length;n++){let a=e[n],o=Mk(a,`getSize`,Ej);r[n]=o,t[a.id]=i,i+=o}let a=0;for(let t=e.length-1;t>=0;t--)n[e[t].id]=a,a+=r[t];return{starts:t,afters:n}}function Oj(e){return{all:Dj(Uk(e)),center:Dj(Uk(e,`center`)),start:Dj(Uk(e,`start`)),end:Dj(Uk(e,`end`))}}function kj(e){return e===`start`?`start`:e===`end`?`end`:e===`center`?`center`:`all`}function Aj(e,t){return Mk(e.table,`getColumnOffsets`,Oj)[kj(t)].starts[e.id]??0}function jj(e,t){return Mk(e.table,`getColumnOffsets`,Oj)[kj(t)].afters[e.id]??0}function Mj(e){Ij(e.table,t=>{let n=hk(),r=Object.keys(t);for(let i=0;i<r.length;i++){let a=r[i];a!==e.id&&(n[a]=t[a])}return n})}function Nj(e){if(!e.subHeaders.length)return Ej(e.column);let t=0;for(let n=0;n<e.subHeaders.length;n++)t+=Nj(e.subHeaders[n]);return t}function Pj(e){return Nj(e)}function Fj(e){if(e.index>0){let t=e.headerGroup?.headers[e.index-1];if(t)return Mk(t,`getStart`,Fj)+Mk(t,`getSize`,Pj)}return 0}function Ij(e,t){e.options.onColumnSizingChange?.(t)}function Lj(e,t){Ij(e,t?hk():Object.assign(hk(),pk(e.initialState.columnSizing??{})))}function Rj(e){let t=0;for(let n=0;n<e.length;n++)t+=Mk(e[n],`getSize`,Ej);return t}function zj(e){return e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+Pj(t),0)??0}function Bj(e){return Rj(Uk(e,`start`))}function Vj(e){return Rj(Uk(e,`center`))}function Hj(e){return Rj(Uk(e,`end`))}function Uj(){return{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}}function Wj(e){return(e.columnDef.enableResizing??!0)&&(e.table.options.enableColumnResizing??!0)}function Gj(e){return e.table.atoms.columnResizing?.get()?.isResizingColumn===e.id}function Kj(e,t){let n=e.table.getColumn(e.column.id),r=Wj(n);return i=>{if(!r||Zj(i)&&i.touches.length>1)return;let a=Pj(e),o=e.getLeafHeaders().map(e=>[e.column.id,Ej(e.column)]),s=Zj(i)?Math.round(i.touches[0].clientX):i.clientX,c=hk(),l=(e,t)=>{if(typeof t!=`number`)return;let r=n.table,i=r.options.columnResizeMode===`onChange`||e===`end`;r._reactivity.batch(()=>{qj(r,e=>{let n=r.options.columnResizeDirection===`rtl`?-1:1,a=(t-(e.startOffset??0))*n,o=e.startSize??0,s=Math.max(o>0?a/o:0,-.999999);if(i){let t=e.columnSizingStart;for(let e=0;e<t.length;e++){let n=t[e],r=n[1];c[n[0]]=Math.round(Math.max(r>0?r+r*s:a/t.length,0)*100)/100}}return{...e,deltaOffset:a,deltaPercentage:s}}),i&&Ij(r,e=>Object.assign(hk(),e,c))})},u=null,d=!1,f,p=()=>{d?(d=!1,l(`move`,f),u=requestAnimationFrame(p)):u=null},m=e=>{f=e,typeof requestAnimationFrame==`function`?u===null?(l(`move`,e),u=requestAnimationFrame(p)):d=!0:l(`move`,e)},h=e=>{u!==null&&(cancelAnimationFrame(u),u=null,d=!1),n.table._reactivity.batch(()=>{l(`end`,e??f),qj(n.table,e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))})},g=t||(typeof document<`u`?document:null),_={moveHandler:e=>m(e.clientX),upHandler:e=>{g?.removeEventListener(`mousemove`,_.moveHandler),g?.removeEventListener(`mouseup`,_.upHandler),h(e.clientX)}},v={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),m(e.touches[0].clientX),!1),upHandler:e=>{y(),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(e.touches[0]?.clientX)},cancelHandler:()=>{y(),h()}},y=()=>{g?.removeEventListener(`touchmove`,v.moveHandler),g?.removeEventListener(`touchend`,v.upHandler),g?.removeEventListener(`touchcancel`,v.cancelHandler)},b=Xj()?{passive:!1}:!1;Zj(i)?(g?.addEventListener(`touchmove`,v.moveHandler,b),g?.addEventListener(`touchend`,v.upHandler,b),g?.addEventListener(`touchcancel`,v.cancelHandler,b)):(g?.addEventListener(`mousemove`,_.moveHandler,b),g?.addEventListener(`mouseup`,_.upHandler,b)),qj(n.table,e=>({...e,startOffset:s,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:o,isResizingColumn:n.id}))}}function qj(e,t){e.options.onColumnResizingChange?.(t)}function Jj(e,t){qj(e,t?Uj():pk(e.initialState.columnResizing??Uj()))}var Yj=null;function Xj(){if(typeof Yj==`boolean`)return Yj;let e=!1;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener(`test`,n,t),window.removeEventListener(`test`,n)}catch{e=!1}return Yj=e,Yj}function Zj(e){return e.type===`touchstart`}var Qj={getInitialState:e=>({columnResizing:Uj(),...e}),getDefaultTableOptions:e=>({columnResizeMode:`onEnd`,columnResizeDirection:`ltr`,onColumnResizingChange:_k(`columnResizing`,e)}),assignColumnPrototype:(e,t)=>{jk(`columnResizingFeature`,e,t,{column_getCanResize:{fn:e=>Wj(e)},column_getIsResizing:{fn:e=>Gj(e)}})},assignHeaderPrototype:(e,t)=>{jk(`columnResizingFeature`,e,t,{header_getResizeHandler:{fn:(e,t)=>Kj(e,t)}})},constructTableAPIs:e=>{Ak(`columnResizingFeature`,e,{table_setColumnResizing:{fn:t=>qj(e,t)},table_resetHeaderSizeInfo:{fn:t=>Jj(e,t)}})}},$j={getInitialState:e=>({columnSizing:wj(),...e}),getDefaultColumnDef:()=>Tj(),getDefaultTableOptions:e=>({onColumnSizingChange:_k(`columnSizing`,e)}),assignColumnPrototype:(e,t)=>{jk(`columnSizingFeature`,e,t,{column_getSize:{fn:e=>Ej(e),memoDeps:e=>[t.options.columns,t.atoms.columnSizing?.get()?.[e.id]]},column_getStart:{fn:(e,t)=>Aj(e,t)},column_getAfter:{fn:(e,t)=>jj(e,t)},column_resetSize:{fn:e=>Mj(e)}})},assignHeaderPrototype:(e,t)=>{jk(`columnSizingFeature`,e,t,{header_getSize:{fn:e=>Pj(e),memoDeps:e=>[t.options.columns,e.column.columns.length>0?t.atoms.columnSizing?.get():t.atoms.columnSizing?.get()?.[e.column.id]]},header_getStart:{fn:e=>Fj(e),memoDeps:()=>[t.options.columns,t.atoms.columnSizing?.get(),t.atoms.columnOrder?.get(),t.atoms.columnPinning?.get(),t.atoms.columnVisibility?.get(),t.atoms.grouping?.get(),t.options.groupedColumnMode]}})},constructTableAPIs:e=>{Ak(`columnSizingFeature`,e,{table_getColumnOffsets:{fn:()=>Oj(e),memoDeps:()=>[e.options.columns,e.atoms.columnSizing?.get(),e.atoms.columnOrder?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.atoms.grouping?.get(),e.options.groupedColumnMode]},table_setColumnSizing:{fn:t=>Ij(e,t)},table_resetColumnSizing:{fn:t=>Lj(e,t)},table_getTotalSize:{fn:()=>zj(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getStartTotalSize:{fn:()=>Bj(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getCenterTotalSize:{fn:()=>Vj(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getEndTotalSize:{fn:()=>Hj(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]}})}};function eM(){return hk()}function tM(e,t){rM(e)&&lM(e.table,n=>{let r=Object.assign(hk(),n),i=t??!Mk(e,`getIsVisible`,nM),a=e.getLeafColumns();for(let e=0;e<a.length;e++){let t=a[e];rM(t)&&(r[t.id]=i)}return r})}function nM(e){let t=e.table.atoms.columnVisibility?.get();if(!t)return!0;let n=e.columns;return n.length?n.some(e=>Mk(e,`getIsVisible`,nM)):(gk(t,e.id)?t[e.id]:void 0)??!0}function rM(e){return(e.columnDef.enableHiding??!0)&&(e.table.options.enableHiding??!0)}function iM(e){return t=>{tM(e,t.target.checked)}}function aM(e){let t=e.getAllCells(),n=[];for(let e=0;e<t.length;e++){let r=t[e];Mk(r.column,`getIsVisible`,nM)&&n.push(r)}return Hk(e.table,n,e=>e.column.id,()=>Mk(e,`getVisibleCellsByColumnId`,oM))}function oM(e){let t=hk(),n=e.getAllCells();for(let e=0;e<n.length;e++){let r=n[e];Mk(r.column,`getIsVisible`,nM)&&(t[r.column.id]=r)}return t}function sM(e){return e.getAllFlatColumns().filter(e=>Mk(e,`getIsVisible`,nM))}function cM(e){return e.getAllLeafColumns().filter(e=>Mk(e,`getIsVisible`,nM))}function lM(e,t){Ck(e,`columnVisibility`,t)}function uM(e,t){lM(e,t?hk():Object.assign(hk(),pk(e.initialState.columnVisibility??{})))}function dM(e,t){t??=!fM(e);let n=hk(),r=e.getAllLeafColumns();for(let e=0;e<r.length;e++){let i=r[e];n[i.id]=t||!rM(i)}lM(e,n)}function fM(e){return!e.getAllLeafColumns().some(e=>!Mk(e,`getIsVisible`,nM))}function pM(e){return e.getAllLeafColumns().some(e=>Mk(e,`getIsVisible`,nM))}function mM(e){return t=>{dM(e,t.target.checked)}}var hM={getInitialState:e=>({columnVisibility:eM(),...e}),getDefaultTableOptions:e=>({onColumnVisibilityChange:_k(`columnVisibility`,e)}),assignColumnPrototype:(e,t)=>{jk(`columnVisibilityFeature`,e,t,{column_getIsVisible:{fn:e=>nM(e),memoDeps:e=>[t.options.columns,t.atoms.columnVisibility?.get(),e.columns]},column_getCanHide:{fn:e=>rM(e)},column_getToggleVisibilityHandler:{fn:e=>iM(e)},column_toggleVisibility:{fn:(e,t)=>tM(e,t)}})},assignRowPrototype:(e,t)=>{jk(`columnVisibilityFeature`,e,t,{row_getVisibleCells:{fn:e=>aM(e),memoDeps:e=>[e.getAllCells(),t.atoms.columnPinning?.get(),t.atoms.columnVisibility?.get()]},row_getVisibleCellsByColumnId:{fn:e=>oM(e),memoDeps:e=>[e.getAllCells(),t.atoms.columnVisibility?.get()]}})},constructTableAPIs:e=>{Ak(`columnVisibilityFeature`,e,{table_getVisibleFlatColumns:{fn:()=>sM(e),memoDeps:()=>[e.atoms.columnVisibility?.get(),e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_getVisibleLeafColumns:{fn:()=>cM(e),memoDeps:()=>[e.atoms.columnVisibility?.get(),e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_setColumnVisibility:{fn:t=>lM(e,t)},table_resetColumnVisibility:{fn:t=>uM(e,t)},table_toggleAllColumnsVisible:{fn:t=>dM(e,t)},table_getIsAllColumnsVisible:{fn:()=>fM(e)},table_getIsSomeColumnsVisible:{fn:()=>pM(e)},table_getToggleAllColumnsVisibilityHandler:{fn:()=>mM(e)}})}},gM=/([0-9]+)/gm;function _M(e){let t=Object.assign((e,n,r)=>{let i=e.getValue(r),a=n.getValue(r),o=t.resolveDataValue;return o&&(i=o(i),a=o(a)),t.sort(i,a,e,n,r)},e);return t}var vM=_M({resolveDataValue:e=>wM(e).toLowerCase(),sort:(e,t)=>TM(e,t)}),yM=_M({resolveDataValue:e=>wM(e).toLowerCase(),sort:(e,t)=>SM(e,t)}),bM=_M({resolveDataValue:e=>CM(e),sort:(e,t)=>e>t?1:e<t?-1:0}),xM=_M({sort:(e,t)=>SM(e,t)});function SM(e,t){return e===t?0:e>t?1:-1}function CM(e){return e instanceof Date?e.getTime():e}function wM(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function TM(e,t){let n=0,r=0,i=e.length,a=t.length;for(;n<i&&r<a;){let i=EM(e.charCodeAt(n)),a=EM(t.charCodeAt(r)),o=DM(e,n,i),s=DM(t,r,a);if(!i&&!a){let i=OM(e,n,o,t,r,s);if(i)return i;n=o,r=s;continue}if(i!==a)return i?1:-1;let c=kM(e,n,o,t,r,s);if(c)return c;n=o,r=s}return jM(e,n)-jM(t,r)}function EM(e){return e>=48&&e<=57}function DM(e,t,n){let r=t+1;for(;r<e.length&&EM(e.charCodeAt(r))===n;)r++;return r}function OM(e,t,n,r,i,a){let o=n-t,s=a-i,c=o<s?o:s;for(let n=0;n<c;n++){let a=e.charCodeAt(t+n),o=r.charCodeAt(i+n);if(a>o)return 1;if(o>a)return-1}return o>s?1:s>o?-1:0}function kM(e,t,n,r,i,a){let o=t;for(;o<n&&e.charCodeAt(o)===48;)o++;let s=i;for(;s<a&&r.charCodeAt(s)===48;)s++;let c=n-o,l=a-s;if(c===0&&l===0)return 0;if(c<=15&&l<=15){let t=AM(e,o,n),i=AM(r,s,a);return t>i?1:i>t?-1:0}let u=parseInt(e.slice(t,n),10),d=parseInt(r.slice(i,a),10);return u>d?1:d>u?-1:0}function AM(e,t,n){let r=0;for(let i=t;i<n;i++)r=r*10+e.charCodeAt(i)-48;return r}function jM(e,t){let n=0,r=t;for(;r<e.length;)n++,r=DM(e,r,EM(e.charCodeAt(r)));return n}function MM(){return[]}function NM(e,t){Ck(e,`sorting`,t)}function PM(e,t){NM(e,t?[]:pk(e.initialState.sorting??[]))}function FM(e){e.atoms.sorting&&(e.options.autoResetAll??e.options.autoResetSorting??!1)&&PM(e)}function IM(e){let t=e.table._rowModelFns.sortFns,n=e.table.getFilteredRowModel().flatRows.slice(0,10),r,i=!1;for(let t=0;t<n.length;t++){let a=n[t].getValue(e.id);if(Object.prototype.toString.call(a)===`[object Date]`){r=`datetime`;break}if(typeof a==`string`&&(i=!0,a.split(gM).length>1)){r=`alphanumeric`;break}}if(!r&&i&&(r=`text`),r){let e=t?.[r];if(e||r===`alphanumeric`&&(e=t?.text),e)return e}return xM}function LM(e){let t=e.table.getFilteredRowModel().flatRows.slice(0,10);for(let n=0;n<t.length;n++){let r=t[n].getValue(e.id);if(r!=null)return typeof r==`string`?`asc`:`desc`}return`desc`}function RM(e){let t=e.table._rowModelFns.sortFns;return wk(e.columnDef.sortFn)?e.columnDef.sortFn:e.columnDef.sortFn===`auto`?IM(e):t?.[e.columnDef.sortFn]??xM}function zM(e,t,n){let r=VM(e,n&&UM(e)),i=t!==void 0;NM(e.table,a=>{let o=a.findIndex(t=>t.id===e.id),s=o===-1?void 0:a[o],c=[],l,u=i?t:r===`desc`,d=!!(a.length&&UM(e)&&n);return l=d?s?`toggle`:`add`:s?`toggle`:`replace`,l===`toggle`&&(i||r||(l=`remove`)),l===`add`?(c=[...a,{id:e.id,desc:u}],c.splice(0,c.length-(e.table.options.maxMultiSortColCount??2**53-1))):c=l===`toggle`?d?a.map(t=>t.id===e.id?{...t,desc:u}:t):[{id:e.id,desc:u}]:l===`remove`?d?a.filter(t=>t.id!==e.id):[]:[{id:e.id,desc:u}],c})}function BM(e){return e.columnDef.sortDescFirst??e.table.options.sortDescFirst??LM(e)===`desc`?`desc`:`asc`}function VM(e,t){let n=BM(e),r=WM(e);return r?r!==n&&(e.table.options.enableSortingRemoval??!0)&&(!t||(e.table.options.enableMultiRemove??!0))?!1:r===`desc`?`asc`:`desc`:n}function HM(e){return(e.columnDef.enableSorting??!0)&&(e.table.options.enableSorting??!0)&&!!e.accessorFn}function UM(e){return e.columnDef.enableMultiSort??e.table.options.enableMultiSort??!!e.accessorFn}function WM(e){let t=e.table.atoms.sorting?.get()?.find(t=>t.id===e.id);return t?t.desc?`desc`:`asc`:!1}function GM(e){return e.table.atoms.sorting?.get()?.findIndex(t=>t.id===e.id)??-1}function KM(e){NM(e.table,t=>t.length?t.filter(t=>t.id!==e.id):[])}function qM(e){let t=HM(e);return n=>{t&&zM(e,void 0,UM(e)?e.table.options.isMultiSortEvent?.(n):!1)}}var JM={getInitialState(e){return{sorting:MM(),...e}},getDefaultColumnDef(){return{sortFn:`auto`,sortUndefined:1}},getDefaultTableOptions(e){return{autoResetSorting:!1,onSortingChange:_k(`sorting`,e),isMultiSortEvent:e=>e.shiftKey}},assignColumnPrototype(e,t){jk(`rowSortingFeature`,e,t,{column_getAutoSortFn:{fn:e=>IM(e)},column_getAutoSortDir:{fn:e=>LM(e)},column_getSortFn:{fn:e=>RM(e)},column_toggleSorting:{fn:(e,t,n)=>zM(e,t,n)},column_getFirstSortDir:{fn:e=>BM(e)},column_getNextSortingOrder:{fn:(e,t)=>VM(e,t)},column_getCanSort:{fn:e=>HM(e)},column_getCanMultiSort:{fn:e=>UM(e)},column_getIsSorted:{fn:e=>WM(e)},column_getSortIndex:{fn:e=>GM(e)},column_clearSorting:{fn:e=>KM(e)},column_getToggleSortingHandler:{fn:e=>qM(e)}})},constructTableAPIs(e){Ak(`rowSortingFeature`,e,{table_autoResetSorting:{fn:()=>FM(e)},table_setSorting:{fn:t=>NM(e,t)},table_resetSorting:{fn:t=>PM(e,t)}})}};function YM(){return e=>{let t=e;return Ok({feature:`rowSortingFeature`,table:t,fnName:`table.getSortedRowModel`,memoDeps:()=>[t.atoms.sorting?.get(),t.getPreSortedRowModel()],fn:()=>XM(t),onAfterUpdate:Dk(()=>Kk(t))})}}function XM(e){let t=e.getPreSortedRowModel(),n=e.atoms.sorting?.get();if(!t.rows.length||!n?.length)return t;let r=[],i=n.filter(t=>{let n=e.getColumn(t.id);return n?HM(n):!1});if(!i.length)return t;let a=[];for(let t=0;t<i.length;t++){let n=i[t],r=e.getColumn(n.id);r&&a.push({id:n.id,desc:n.desc,sortUndefined:r.columnDef.sortUndefined,invertSorting:r.columnDef.invertSorting,sortFn:RM(r)})}let o=(e,t)=>{for(let n=0;n<a.length;n++){let r=a[n],i=r.sortUndefined,o=r.desc,s=0;if(i){let n=e.getValue(r.id),a=t.getValue(r.id),o=n===void 0,c=a===void 0;if(o&&c)continue;if(o||c){if(i===`first`)return o?-1:1;if(i===`last`)return o?1:-1;s=o?i:-i}}if(s===0&&(s=r.sortFn(e,t,r.id)),s!==0)return o&&(s*=-1),r.invertSorting&&(s*=-1),s}return e.index-t.index},s=e=>{let t=e.slice();t.sort(o);let n=!1;for(let i=0;i<t.length;i++){let a=t[i];a!==e[i]&&(n=!0);let o=r.length;if(r.push(a),a.subRows.length){let e=s(a.subRows);if(e.changed){let s=Object.create(Object.getPrototypeOf(a));mk(s,a),s.subRows=e.rows,t[i]=s,r[o]=s,n=!0}}}return{rows:t,changed:n}};return{rows:s(t.rows).rows,flatRows:r,rowsById:t.rowsById}}var ZM=typeof window>`u`?v.useEffect:v.useLayoutEffect;function QM(e,t){let[{table:n,rootSource:r}]=(0,v.useState)(()=>{let t=pj({...e,features:{coreReactivityFeature:dk(),...e.features}});return t.Subscribe=(e=>sk({...e,source:e.source??t.store})),t.FlexRender=PO,{table:t,rootSource:uk(t.store,$O)}}),i=n;sj(i,t=>({...t,...e}),{syncExternalState:!1});let a=i.options.state,o=r.get(),s=ok(r,t,{compare:$O});return ZM(()=>{r.markCommitted(o),ij(i,a??null,$O)}),(0,v.useMemo)(()=>({...n,options:e,state:s}),[n,e,s])}var $M=l(h(),1);function eN(e,t){let n=e.filter(e=>t.includes(e));for(let[e,r]of t.entries()){if(n.includes(r))continue;let i=t.slice(0,e).reverse().find(e=>n.includes(e));n.splice(i===void 0?0:n.indexOf(i)+1,0,r)}return n}function tN(e,t,n){let r=e.filter(e=>e!==t),i=e.indexOf(n),a=e.indexOf(t);return r.splice(a<i?r.indexOf(n)+1:r.indexOf(n),0,t),r}var nN=dj({columnOrderingFeature:Cj,columnVisibilityFeature:hM,columnSizingFeature:$j,columnResizingFeature:Qj,rowSortingFeature:JM,sortedRowModel:YM(),sortFns:{alphanumeric:vM,basic:xM,datetime:bM,text:yM},columnMeta:uj()});function rN(){return lj()}var iN=`evalkit.table.`;function aN(e){let t=localStorage.getItem(iN+e);return t?JSON.parse(t):{}}function oN({id:e,data:t,columns:n,getRowId:r,defaultHidden:i=[]}){let a=(0,v.useMemo)(()=>aN(e),[e]),[o,s]=(0,v.useState)(a.sorting??[]),[c,l]=(0,v.useState)(a.order??[]),[u,d]=(0,v.useState)({...Object.fromEntries(i.map(e=>[e,!1])),...a.hidden}),[f,p]=(0,v.useState)(a.sizing??{});return(0,v.useEffect)(()=>{let t={sorting:o,order:c,hidden:u,sizing:f};localStorage.setItem(iN+e,JSON.stringify(t))},[e,o,c,u,f]),QM({features:nN,data:t,columns:n,getRowId:r,state:{sorting:o,columnOrder:eN(c,sN(n)),columnVisibility:u,columnSizing:f},onSortingChange:s,onColumnOrderChange:l,onColumnVisibilityChange:d,onColumnSizingChange:p,enableSortingRemoval:!0,columnResizeMode:`onChange`,defaultColumn:{minSize:48}})}function sN(e){return e.flatMap(e=>`columns`in e&&e.columns?sN(e.columns):[e.id??``])}function cN(e,t){e.setSorting([]),e.setColumnOrder([]),e.setColumnSizing({}),e.setColumnVisibility(Object.fromEntries(t.map(e=>[e,!1])))}function lN(e,t){let n=e.getColumn(t)?.columnDef;return n?.meta?.label?n.meta.label:typeof n?.header==`string`?n.header:t}function uN({table:e,defaultHidden:t=[]}){let[n,r]=(0,v.useState)(!1),i=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(!n)return;let e=e=>{i.current?.contains(e.target)||r(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[n]);let a=e.state.columnOrder,o=e.getAllLeafColumns().filter(e=>e.getCanHide()).map(e=>e.id);return(0,N.jsxs)(`div`,{className:`relative`,ref:i,children:[(0,N.jsx)(`button`,{type:`button`,className:`btn`,"aria-expanded":n,onClick:()=>r(!n),children:`Columns`}),n&&(0,N.jsxs)(`div`,{className:`select-menu columns-menu right-0 left-auto`,children:[(0,N.jsx)(`ul`,{className:`select-list`,children:a.filter(e=>o.includes(e)).map((t,n,r)=>{let i=e.getColumn(t);return i?(0,N.jsxs)(`li`,{className:`columns-menu-row`,children:[(0,N.jsxs)(`label`,{className:`flex flex-1 items-center gap-2`,children:[(0,N.jsx)(`input`,{type:`checkbox`,checked:i.getIsVisible(),onChange:i.getToggleVisibilityHandler()}),lN(e,t)]}),(0,N.jsx)(`button`,{type:`button`,className:`btn btn-sm btn-quiet`,"aria-label":`move ${t} up`,disabled:n===0,onClick:()=>e.setColumnOrder(tN(a,t,r[n-1])),children:`↑`}),(0,N.jsx)(`button`,{type:`button`,className:`btn btn-sm btn-quiet`,"aria-label":`move ${t} down`,disabled:n===r.length-1,onClick:()=>e.setColumnOrder(tN(a,t,r[n+1])),children:`↓`})]},t):null})}),(0,N.jsx)(`div`,{className:`flex justify-end border-t border-line p-1.5`,children:(0,N.jsx)(`button`,{type:`button`,className:`btn btn-sm`,onClick:()=>cN(e,t),children:`Reset`})})]})]})}function dN(e,t,n){e.stopPropagation();let r=n.column.id,i=e.currentTarget.parentElement?.offsetWidth;!(r in t.state.columnSizing)&&i&&(0,$M.flushSync)(()=>t.setColumnSizing(e=>({...e,[r]:i}))),n.getResizeHandler()(e)}function fN(e){return e===`asc`?` ↑`:e===`desc`?` ↓`:``}function pN({table:e,loading:t=!1,skeletonRows:n=8,empty:r,className:i=``,containerClassName:a=`card overflow-x-auto`}){let o=e.state.columnSizing,s=(e,t)=>e in o?{width:t,minWidth:t,maxWidth:t}:void 0,c=e.getVisibleLeafColumns(),l=e.getRowModel().rows,u=c.some(e=>e.columnDef.footer)?e.getFooterGroups()[0]:null;return(0,N.jsx)(`div`,{className:a,children:(0,N.jsxs)(`table`,{className:`data-table grid-table ${i}`,children:[(0,N.jsx)(`thead`,{children:e.getHeaderGroups().map(t=>(0,N.jsx)(`tr`,{children:t.headers.map(t=>{let n=t.column,r=n.columnDef.meta,i=n.getCanSort();return t.isPlaceholder?(0,N.jsx)(`th`,{colSpan:t.colSpan,className:r?.headerClassName},t.id):(0,N.jsxs)(`th`,{colSpan:t.colSpan,className:`${r?.align===`right`?`col-num`:``} ${r?.headerClassName??``}`,style:s(n.id,t.getSize()),title:r?.title,"aria-sort":n.getIsSorted()===`asc`?`ascending`:n.getIsSorted()===`desc`?`descending`:void 0,children:[(0,N.jsxs)(`span`,{className:i?`th-sortable`:void 0,onClick:i?n.getToggleSortingHandler():void 0,children:[NO(n.columnDef.header,t.getContext()),fN(n.getIsSorted())]}),n.getCanResize()&&!t.subHeaders.length&&(0,N.jsx)(`span`,{className:`th-resizer ${n.getIsResizing()?`active`:``}`,role:`separator`,"aria-label":`resize ${n.id}`,onMouseDown:n=>dN(n,e,t),onTouchStart:n=>dN(n,e,t),onDoubleClick:()=>n.resetSize()})]},t.id)})},t.id))}),(0,N.jsxs)(`tbody`,{children:[t&&Array.from({length:n},(e,t)=>(0,N.jsx)(`tr`,{children:(0,N.jsx)(`td`,{colSpan:c.length,children:(0,N.jsx)(`span`,{className:`skeleton block h-4`,style:{width:`${25+t*7%60}%`}})})},t)),!t&&l.map(e=>(0,N.jsx)(`tr`,{children:e.getVisibleCells().map(t=>{let n=t.column.columnDef.meta;return(0,N.jsx)(`td`,{className:`${n?.align===`right`?`col-num`:``} ${n?.wrap?`cell-wrap`:``} ${t.column.id in o?`cell-sized`:``} ${n?.className??``} ${n?.cellClass?.(e.original)??``}`,style:s(t.column.id,t.column.getSize()),children:NO(t.column.columnDef.cell,t.getContext())},t.id)})},e.id)),!t&&l.length===0&&r&&(0,N.jsx)(`tr`,{children:(0,N.jsx)(`td`,{colSpan:c.length,className:`pane-status`,children:r})})]}),u&&!t&&(0,N.jsx)(`tfoot`,{children:(0,N.jsx)(`tr`,{children:u.headers.map(e=>{let t=e.column.columnDef.meta;return(0,N.jsx)(`td`,{className:`${t?.align===`right`?`col-num`:``} ${t?.className??``}`,style:s(e.column.id,e.getSize()),children:NO(e.column.columnDef.footer,e.getContext())},e.id)})})})]})})}var mN=[{id:`mine`,label:`requested to me`},{id:`all`,label:`all under review`},{id:`changes`,label:`changes requested`}],hN=[];function gN(e){return[{id:`dataset`,header:`dataset`,accessorFn:e=>dr(e.dataset).name},{id:`case`,header:`case`,accessorKey:`case_id`,cell:e=>(0,N.jsx)(kn,{className:`font-mono text-brand hover:underline`,to:`/datasets/${encodeURIComponent(e.row.original.dataset)}/cases/${encodeURIComponent(e.row.original.case_id)}`,children:e.row.original.case_id})},{id:`requested_by`,header:e?`reviewer`:`requested by`,accessorKey:`requested_by`},...e?[]:[{id:`requested_to`,header:`to`,accessorFn:e=>e.requested_to??`—`}],{id:`requested_at`,header:e?`sent back`:`requested`,accessorFn:e=>e.requested_at??``,cell:e=>(0,N.jsx)(`span`,{className:`row-meta`,children:jv(e.row.original.requested_at)})},{id:`question`,header:`question`,accessorKey:`input`,meta:{wrap:!0},cell:e=>(0,N.jsx)(`span`,{className:`line-clamp-3 text-ink-3`,children:e.row.original.input})}]}function _N(){let e=Tr(),{workspace:t}=Ar(),[n,r]=(0,v.useState)(`mine`),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(null);(0,v.useEffect)(()=>{let r=!1;return a(null),s(null),M(`/review/queue${or({reviewer:n===`mine`?e.username:void 0,state:n===`changes`?`changes_requested`:void 0,workspace:t.name})}`).then(e=>!r&&a(e.items)).catch(e=>!r&&s(String(e))),()=>{r=!0}},[n,e.username,t.name]);let c=n===`changes`,l=(0,v.useMemo)(()=>gN(c),[c]),u=oN({id:`review-queue`,data:i??hN,columns:l,getRowId:e=>`${e.dataset}/${e.case_id}`});return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-2`,children:[(0,N.jsx)(`h1`,{className:`page-title`,children:`Reviews`}),(0,N.jsx)(`div`,{className:`ml-4 flex flex-wrap items-center gap-3`,children:mN.map(e=>(0,N.jsxs)(`label`,{className:`row-meta flex items-center gap-1`,children:[(0,N.jsx)(`input`,{type:`radio`,checked:n===e.id,onChange:()=>r(e.id)}),e.label]},e.id))}),(0,N.jsx)(`span`,{className:`row-meta num ml-auto`,children:o?``:i?`${i.length} ${c?`awaiting an edit`:`waiting`}`:`Loading…`})]}),o&&(0,N.jsx)(`div`,{className:`pane-status error`,children:o}),!o&&(0,N.jsx)(pN,{table:u,loading:!i,empty:t.type===`personal`?`Personal datasets have no review state.`:c?`No cases are waiting on their author.`:`Nothing waiting for review.`})]})}function vN(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(null),c=()=>{M(`/users`).then(t).catch(e=>s(String(e)))};(0,v.useEffect)(c,[]);let l=async e=>{e.preventDefault(),s(null);try{await rr(`/users`,`POST`,{username:n,password:i}),r(``),a(``),c()}catch(e){s(e instanceof Error?e.message:String(e))}},u=async(e,t)=>{s(null);try{await rr(`/users/${encodeURIComponent(e)}/${t}`,`POST`),c()}catch(e){s(e instanceof Error?e.message:String(e))}};return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsx)(`h1`,{className:`page-title`,children:`Users`}),(0,N.jsx)(`p`,{className:`row-meta mt-1`,children:`Users are archived, never deleted: archiving revokes their tokens, blocks login and archives their personal workspace.`}),(0,N.jsxs)(`form`,{className:`toolbar mt-3 mb-3`,onSubmit:l,children:[(0,N.jsx)(`input`,{className:`input`,placeholder:`username`,value:n,onChange:e=>r(e.target.value),required:!0}),(0,N.jsx)(`input`,{className:`input`,type:`password`,placeholder:`password`,value:i,onChange:e=>a(e.target.value),required:!0}),(0,N.jsx)(`button`,{className:`btn btn-primary`,children:`Add user`}),o&&(0,N.jsx)(`span`,{className:`text-meta text-err-text`,children:o})]}),e?(0,N.jsx)(`div`,{className:`card`,children:(0,N.jsx)(`div`,{className:`rows`,children:e.map(e=>(0,N.jsxs)(`div`,{className:`row grid-cols-[minmax(0,1fr)_auto_auto_auto_auto]`,children:[(0,N.jsx)(`span`,{className:`font-mono`,children:e.username}),(0,N.jsxs)(`span`,{className:`flex gap-1`,children:[e.is_admin&&(0,N.jsx)(`span`,{className:`chip muted`,children:`admin`}),e.archived&&(0,N.jsx)(`span`,{className:`chip muted`,children:`archived`})]}),(0,N.jsx)(`span`,{className:`row-meta num`,children:jv(e.created_at)}),(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:()=>u(e.username,e.is_admin?`demote`:`promote`),children:e.is_admin?`demote`:`make admin`}),(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:()=>u(e.username,e.archived?`restore`:`archive`),children:e.archived?`restore`:`archive`})]},e.id))})}):(0,N.jsx)(`div`,{className:`card rows`,children:Array.from({length:4},(e,t)=>(0,N.jsxs)(`div`,{className:`row grid-cols-[1fr_auto]`,children:[(0,N.jsx)(`span`,{className:`skeleton h-4`,style:{width:`${20+t*8}%`}}),(0,N.jsx)(`span`,{className:`skeleton h-3 w-24`})]},t))})]})}function yN(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(null),u=()=>{M(`/trace-sources`).then(t).catch(e=>l(String(e)))};(0,v.useEffect)(u,[]);let d=async e=>{e.preventDefault(),l(null);try{await rr(`/trace-sources`,`POST`,{name:n.trim(),provider:`phoenix`,url:i.trim(),api_key:o||null}),r(``),a(``),s(``),u()}catch(e){l(e instanceof Error?e.message:String(e))}},f=async e=>{l(null);try{await rr(`/trace-sources/${encodeURIComponent(e)}/archive`,`POST`),u()}catch(e){l(e instanceof Error?e.message:String(e))}};return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsx)(`h1`,{className:`page-title`,children:`Trace sources`}),(0,N.jsx)(`p`,{className:`row-meta mt-1`,children:`Third-party trace stores to import history from. Keys are stored encrypted and never shown again.`}),(0,N.jsxs)(`form`,{className:`toolbar mt-3 mb-3`,onSubmit:d,children:[(0,N.jsx)(`input`,{className:`input`,placeholder:`name`,value:n,onChange:e=>r(e.target.value),required:!0}),(0,N.jsx)(`input`,{className:`input min-w-0 flex-1`,placeholder:`Phoenix URL`,value:i,onChange:e=>a(e.target.value),required:!0}),(0,N.jsx)(`input`,{className:`input`,type:`password`,placeholder:`API key`,value:o,onChange:e=>s(e.target.value)}),(0,N.jsx)(`button`,{className:`btn btn-primary`,children:`Add trace source`})]}),(0,N.jsx)(`p`,{className:`row-meta mb-3 whitespace-normal`,children:gh}),c&&(0,N.jsx)(`div`,{className:`pane-status error`,children:c}),(0,N.jsxs)(`div`,{className:`card rows`,children:[e?.map(e=>(0,N.jsxs)(`div`,{className:`row grid-cols-[minmax(0,1fr)_auto_minmax(0,2fr)_auto]`,children:[(0,N.jsx)(`span`,{className:`row-strong`,children:e.name}),(0,N.jsx)(`span`,{className:`chip muted`,children:e.provider}),(0,N.jsx)(`span`,{className:`row-meta truncate font-mono`,children:e.url}),(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:()=>f(e.name),children:`archive`})]},e.id)),e&&!e.length&&(0,N.jsx)(`div`,{className:`pane-status`,children:`No trace sources.`})]})]})}function bN(e,t,n,r){let i=r?{}:{name:e.trim(),base_url:t.trim()};return r&&t.trim()!==r.base_url&&(i.base_url=t.trim()),n.key?i.api_key=n.key:n.clear&&(i.api_key=null),i}function xN({provider:e,onSaved:t,onClose:n}){let[r,i]=(0,v.useState)(e?.name??``),[a,o]=(0,v.useState)(e?.base_url??``),[s,c]=(0,v.useState)({key:``,clear:!1}),[l,u]=(0,v.useState)(!1),[d,f]=(0,v.useState)(null);(0,v.useEffect)(()=>{let e=e=>{e.key===`Escape`&&!e.defaultPrevented&&n()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n]);let p=!!e?.has_api_key&&a.trim()!==e.base_url&&!s.key,m=!a.trim()||!e&&!r.trim();return(0,N.jsx)(`div`,{className:`dialog-backdrop`,onMouseDown:n,children:(0,N.jsxs)(`div`,{className:`dialog w-160`,role:`dialog`,"aria-label":e?`Edit LLM provider`:`New LLM provider`,onMouseDown:e=>e.stopPropagation(),children:[(0,N.jsxs)(`div`,{className:`dialog-head`,children:[(0,N.jsx)(`span`,{className:`font-semibold`,children:e?`Edit LLM provider`:`New LLM provider`}),e&&(0,N.jsx)(`span`,{className:`row-meta font-mono`,children:e.name}),(0,N.jsx)(`button`,{className:`btn btn-quiet btn-sm ml-auto`,"aria-label":`close`,onClick:n,children:`✕`})]}),(0,N.jsxs)(`div`,{className:`dialog-body`,children:[!e&&(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Name`}),(0,N.jsx)(`input`,{className:`input w-72`,placeholder:`openai`,value:r,onChange:e=>i(e.target.value)})]}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Base URL`}),(0,N.jsx)(`input`,{className:`input min-w-0 flex-1`,placeholder:`https://api.openai.com/v1`,value:a,onChange:e=>o(e.target.value)})]}),(0,N.jsx)(`p`,{className:`row-meta whitespace-normal`,children:gh}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`API key`}),(0,N.jsx)(mh,{hasKey:e?.has_api_key??!1,value:s,onChange:c})]}),p&&(0,N.jsx)(`p`,{className:`row-meta whitespace-normal text-err-text`,children:`Saving a new base URL removes the stored API key. Enter the key for the new URL above.`}),d&&(0,N.jsx)(`div`,{className:`text-meta text-err-text`,children:d})]}),(0,N.jsxs)(`div`,{className:`dialog-foot`,children:[(0,N.jsx)(`button`,{className:`btn`,onClick:n,children:`Cancel`}),(0,N.jsx)(`button`,{className:`btn btn-primary`,disabled:l||m,onClick:async()=>{u(!0),f(null);try{let n=bN(r,a,s,e);await(e?rr(`/llm-providers/${encodeURIComponent(e.name)}`,`PATCH`,n):rr(`/llm-providers`,`POST`,n)),t()}catch(e){f(e instanceof Error?e.message:String(e)),u(!1)}},children:e?`Save`:`Create provider`})]})]})})}function SN({providers:e,editable:t}){let[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(`high`),[c,l]=(0,v.useState)(null),[u,d]=(0,v.useState)(!1);(0,v.useEffect)(()=>{M(`/judge-default`).then(e=>{r(e.base_url),a(e.model),s(e.reasoning_effort)}).catch(e=>l(e instanceof Jn?`No default judge yet.`:String(e))).finally(()=>d(!0))},[]);let f=async e=>{e.preventDefault(),l(null);try{let e=await rr(`/judge-default`,`PATCH`,{base_url:n,model:i.trim(),reasoning_effort:o.trim()});a(e.model),l(`Saved.`)}catch(e){l(e instanceof Error?e.message:String(e))}};if(!u)return null;if(!t){let t=e.find(e=>e.base_url===n);return(0,N.jsxs)(`p`,{className:`row-meta mb-3 whitespace-normal`,children:[`Default judge:`,` `,c??`${i} on ${t?.name??n} (effort ${o})`]})}return(0,N.jsxs)(`form`,{className:`toolbar mb-3`,onSubmit:f,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Default judge`}),(0,N.jsx)(xh,{ariaLabel:`default judge provider`,value:n,onChange:r,placeholder:`provider`,options:e.map(e=>({value:e.base_url,label:e.name}))}),(0,N.jsx)(`input`,{className:`input`,placeholder:`model`,value:i,onChange:e=>a(e.target.value),required:!0}),(0,N.jsx)(`input`,{className:`input w-28`,placeholder:`effort`,value:o,onChange:e=>s(e.target.value)}),(0,N.jsx)(`button`,{className:`btn btn-primary`,disabled:!n,children:`Save`}),c&&(0,N.jsx)(`span`,{className:`row-meta`,children:c})]})}function CN(){let e=Tr(),[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null),s=()=>{M(`/llm-providers?include_archived=true`).then(n).catch(e=>i(String(e)))};(0,v.useEffect)(s,[]);let c=async e=>{i(null);try{await rr(`/llm-providers/${encodeURIComponent(e.name)}/${e.archived?`restore`:`archive`}`,`POST`),s()}catch(e){i(e instanceof Error?e.message:String(e))}},l=t?.filter(e=>!e.archived)??[];return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-1`,children:[(0,N.jsx)(`h1`,{className:`page-title`,children:`LLM providers`}),e.is_admin&&(0,N.jsx)(`button`,{className:`btn btn-sm ml-auto`,onClick:()=>o(`new`),children:`New provider`})]}),(0,N.jsx)(`p`,{className:`row-meta mb-3 whitespace-normal`,children:`OpenAI-compatible endpoints the server judges with. Server runs only use a judge from this list. Keys are stored encrypted and never shown again.`}),t&&(0,N.jsx)(SN,{providers:l,editable:e.is_admin}),r&&(0,N.jsx)(`div`,{className:`pane-status error`,children:r}),(0,N.jsxs)(`div`,{className:`card rows`,children:[t?.map(t=>(0,N.jsxs)(`div`,{className:`row grid-cols-[minmax(0,1fr)_minmax(0,2fr)_auto_auto_auto]`,children:[(0,N.jsx)(`span`,{className:`row-strong`,children:t.name}),(0,N.jsx)(`span`,{className:`row-meta truncate font-mono`,children:t.base_url}),(0,N.jsx)(`span`,{className:`chip muted`,children:t.archived?`archived`:t.has_api_key?`key set`:`no key`}),e.is_admin?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`button`,{className:`btn btn-sm`,disabled:t.archived,onClick:()=>o(t),children:`edit`}),(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:()=>c(t),children:t.archived?`restore`:`archive`})]}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`span`,{}),(0,N.jsx)(`span`,{})]})]},t.name)),t&&!t.length&&(0,N.jsx)(`div`,{className:`pane-status`,children:`No LLM providers.`})]}),a&&(0,N.jsx)(xN,{provider:a===`new`?void 0:a,onSaved:()=>{o(null),s()},onClose:()=>o(null)})]})}function wN(e,t){let n=[];t&&!e.name.trim()&&n.push(`Name is required.`),t&&e.name.includes(`@`)&&n.push(`Name cannot contain @.`),e.endpoint.trim()||n.push(`Endpoint is required.`);let r=Number(e.timeout.trim());return(!e.timeout.trim()||!Number.isInteger(r)||r<1)&&n.push(`Timeout must be a whole number of at least 1.`),n}function TN(e,t,n){let r={endpoint:e.endpoint.trim(),timeout_seconds:Number(e.timeout.trim())},i=n?{settings:r}:{workspace:t,name:e.name.trim(),kind:e.kind,settings:r};return e.apiKey.key?i.api_key=e.apiKey.key:e.apiKey.clear&&(i.api_key=null),i}function EN({ws:e,evaluator:t,onSaved:n,onClose:r}){let[i,a]=(0,v.useState)({name:t?.name??``,kind:t?.kind??`score`,endpoint:t?.settings.endpoint??``,timeout:String(t?.settings.timeout_seconds??120),apiKey:{key:``,clear:!1}}),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(null),u=wN(i,!t),d=(e,t)=>a(n=>({...n,[e]:t}));(0,v.useEffect)(()=>{let e=e=>{e.key===`Escape`&&!e.defaultPrevented&&r()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[r]);let f=e.type===`shared`,p=!!t?.has_api_key&&i.endpoint.trim()!==t.settings.endpoint&&!i.apiKey.key;return(0,N.jsx)(`div`,{className:`dialog-backdrop`,onMouseDown:r,children:(0,N.jsxs)(`div`,{className:`dialog w-160`,role:`dialog`,"aria-label":t?`Edit evaluator`:`New evaluator`,onMouseDown:e=>e.stopPropagation(),children:[(0,N.jsxs)(`div`,{className:`dialog-head`,children:[(0,N.jsx)(`span`,{className:`font-semibold`,children:t?`Edit evaluator`:`New evaluator`}),(0,N.jsx)(`span`,{className:`row-meta font-mono`,children:t?t.ref:`@${e.name}`}),(0,N.jsx)(`button`,{className:`btn btn-quiet btn-sm ml-auto`,"aria-label":`close`,onClick:r,children:`✕`})]}),(0,N.jsxs)(`div`,{className:`dialog-body`,children:[!t&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Name`}),(0,N.jsx)(`input`,{className:`input w-72`,"aria-label":`name`,value:i.name,onChange:e=>d(`name`,e.target.value)})]}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Kind`}),(0,N.jsx)(xh,{ariaLabel:`kind`,value:i.kind,onChange:e=>d(`kind`,e),options:[{value:`score`,label:`score`},{value:`gauge`,label:`gauge`}]})]})]}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Endpoint`}),(0,N.jsx)(`input`,{className:`input min-w-0 flex-1`,"aria-label":`endpoint`,placeholder:`https://evaluators.example.com/evaluate`,value:i.endpoint,onChange:e=>d(`endpoint`,e.target.value)})]}),(0,N.jsx)(`p`,{className:`row-meta whitespace-normal`,children:gh}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Timeout (s)`}),(0,N.jsx)(`input`,{className:`input w-28`,"aria-label":`timeout`,inputMode:`numeric`,value:i.timeout,onChange:e=>d(`timeout`,e.target.value)})]}),f?(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`API key`}),(0,N.jsx)(mh,{hasKey:t?.has_api_key??!1,value:i.apiKey,onChange:e=>d(`apiKey`,e)})]}):(0,N.jsx)(`p`,{className:`row-meta whitespace-normal`,children:_h}),p&&(0,N.jsx)(`p`,{className:`row-meta whitespace-normal text-err-text`,children:`Saving a new endpoint removes the stored API key. Enter the key for the new endpoint above.`}),u.map(e=>(0,N.jsx)(`div`,{className:`text-meta text-err-text`,children:e},e)),c&&(0,N.jsx)(`div`,{className:`text-meta text-err-text`,children:c})]}),(0,N.jsxs)(`div`,{className:`dialog-foot`,children:[(0,N.jsx)(`button`,{className:`btn`,onClick:r,children:`Cancel`}),(0,N.jsx)(`button`,{className:`btn btn-primary`,disabled:o||u.length>0,onClick:async()=>{s(!0),l(null);try{let r=TN(i,e.name,t);await(t?rr(`/evaluators/${encodeURIComponent(t.ref)}`,`PATCH`,r):rr(`/evaluators`,`POST`,r)),n()}catch(e){l(e instanceof Error?e.message:String(e)),s(!1)}},children:t?`Save`:`Create evaluator`})]})]})})}var DN=[{id:`evaluators`,label:`Evaluators`},{id:`members`,label:`Members`}];function ON(e){return DN.some(t=>t.id===e)}function kN({ws:e,writable:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(null),c=(0,v.useCallback)(()=>{M(`/evaluators?workspace=${encodeURIComponent(e.name)}&include_archived=true`).then(r).catch(e=>a(e instanceof Error?e.message:String(e)))},[e.name]);(0,v.useEffect)(c,[c]);let l=async e=>{a(null);try{await rr(`/evaluators/${encodeURIComponent(e.ref)}/${e.archived?`restore`:`archive`}`,`POST`),c()}catch(e){a(e instanceof Error?e.message:String(e))}},u=t&&!e.archived;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`toolbar mb-2`,children:[(0,N.jsxs)(`p`,{className:`row-meta whitespace-normal`,children:[`Runs of this workspace's agents are scored with these evaluators.`,` `,e.type===`shared`?`Their API keys are stored encrypted on the server and never shown again.`:_h]}),u&&(0,N.jsx)(`button`,{className:`btn btn-sm ml-auto`,onClick:()=>s(`new`),children:`New evaluator`})]}),i&&(0,N.jsx)(`div`,{className:`pane-status error`,children:i}),(0,N.jsxs)(`div`,{className:`card rows`,children:[n?.map(t=>(0,N.jsxs)(`div`,{className:`row grid-cols-[minmax(0,1fr)_auto_auto_minmax(0,2fr)_auto_auto]`,children:[(0,N.jsx)(`span`,{className:`row-strong`,children:t.name}),(0,N.jsx)(`span`,{className:`chip muted`,children:t.kind}),(0,N.jsx)(`span`,{className:`chip muted`,children:t.archived?`archived`:e.type===`shared`?t.has_api_key?`key set`:`no key`:``}),(0,N.jsx)(`span`,{className:`row-meta truncate font-mono`,children:t.settings.endpoint}),u?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`button`,{className:`btn btn-sm`,disabled:t.archived,onClick:()=>s(t),children:`edit`}),(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:()=>l(t),children:t.archived?`restore`:`archive`})]}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`span`,{}),(0,N.jsx)(`span`,{})]})]},t.ref)),n&&!n.length&&(0,N.jsx)(`div`,{className:`pane-status`,children:`No remote evaluators.`})]}),o&&(0,N.jsx)(EN,{ws:e,evaluator:o===`new`?void 0:o,onSaved:()=>{s(null),c()},onClose:()=>s(null)})]})}function AN({ws:e}){let t=bO(Tr(),e),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(`reviewer`),[c,l]=(0,v.useState)(null),u=`/workspaces/${encodeURIComponent(e.name)}/members`,d=(0,v.useCallback)(()=>{M(u).then(r).catch(e=>l(e instanceof Error?e.message:String(e)))},[u]);(0,v.useEffect)(d,[d]);let f=async e=>{l(null);try{await e(),d()}catch(e){l(e instanceof Error?e.message:String(e))}};return e.type===`personal`?(0,N.jsxs)(`div`,{className:`pane-status`,children:[`A personal workspace has no members: only @`,e.name,` writes to it.`]}):(0,N.jsxs)(N.Fragment,{children:[t&&(0,N.jsxs)(`form`,{className:`toolbar mb-2`,onSubmit:e=>{e.preventDefault(),f(()=>rr(u,`POST`,{username:i.trim(),role:o})),a(``)},children:[(0,N.jsx)(`input`,{className:`input`,placeholder:`username`,value:i,onChange:e=>a(e.target.value),required:!0}),(0,N.jsx)(xh,{ariaLabel:`role`,value:o,onChange:s,options:[{value:`reviewer`,label:`reviewer`},{value:`writer`,label:`writer`}]}),(0,N.jsx)(`button`,{className:`btn btn-primary`,children:`Add member`})]}),(0,N.jsx)(`p`,{className:`row-meta mb-2`,children:`Writers sync datasets and edit agents and evaluators. Reviewers approve cases or request changes. Both can run experiments, and one member can hold both roles.`}),c&&(0,N.jsx)(`div`,{className:`pane-status error`,children:c}),(0,N.jsxs)(`div`,{className:`card rows`,children:[n&&CO(n).map(e=>(0,N.jsxs)(`div`,{className:`row grid-cols-[minmax(0,1fr)_auto]`,children:[(0,N.jsx)(`span`,{className:`row-strong`,children:e.username}),(0,N.jsx)(`span`,{className:`flex items-center justify-end gap-3`,children:e.grants.map(n=>(0,N.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,N.jsx)(`span`,{className:`chip muted`,children:n.role}),(0,N.jsxs)(`span`,{className:`row-meta`,children:[`by `,n.granted_by,` `,jv(n.created_at)??``]}),t&&(0,N.jsx)(`button`,{className:`btn btn-sm btn-quiet`,title:`remove the ${n.role} role from ${e.username}`,"aria-label":`remove ${n.role}`,onClick:()=>f(()=>rr(`${u}/${encodeURIComponent(e.username)}/${n.role}`,`DELETE`)),children:`×`})]},n.role))})]},e.username)),n&&!n.length&&(0,N.jsx)(`div`,{className:`pane-status`,children:`No members.`})]})]})}function jN(){let{tab:e}=ht(),t=dt(),n=Tr(),{workspace:r,workspaces:i,reload:a,select:o}=Ar(),[s,c]=(0,v.useState)(``),[l,u]=(0,v.useState)(null);if(!ON(e))return(0,N.jsx)(Lt,{to:`/workspace/evaluators`,replace:!0});let d=vO(n,r),f=r.type===`shared`?n.is_admin:r.name===n.personal_workspace,p=async e=>{u(null);try{await e()}catch(e){u(e instanceof Error?e.message:String(e))}},m=()=>p(async()=>{await rr(`/workspaces/${encodeURIComponent(r.name)}/${r.archived?`restore`:`archive`}`,`POST`),await a()}),h=e=>{e.preventDefault(),p(async()=>{let e=await rr(`/workspaces`,`POST`,{name:s.trim()});c(``),await a(),o(e.name)})},g=e=>p(async()=>{await rr(`/workspaces/${encodeURIComponent(r.name)}`,`PATCH`,{promotes_to:e||null}),await a()}),_=i.filter(e=>e.type===`shared`&&!e.archived&&e.name!==r.name&&!e.promotes_to&&(!e.promoted_from||e.promoted_from===r.name));return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-2`,children:[(0,N.jsxs)(`h1`,{className:`page-title`,children:[`@`,r.name]}),(0,N.jsx)(`span`,{className:`chip muted`,children:r.type}),r.archived&&(0,N.jsx)(`span`,{className:`chip muted`,children:`archived`}),r.promotes_to&&(0,N.jsxs)(`span`,{className:`chip chip-info`,title:`promotion target`,children:[`→ `,r.promotes_to]}),r.promoted_from&&(0,N.jsxs)(`span`,{className:`chip chip-info`,title:`promotion source`,children:[`← `,r.promoted_from]}),n.is_admin&&r.type===`shared`&&!r.promoted_from&&(0,N.jsxs)(`label`,{className:`row-meta flex items-center gap-1`,children:[`promotes to`,(0,N.jsx)(xh,{ariaLabel:`promotion target`,value:r.promotes_to??``,onChange:g,options:[{value:``,label:`none`},..._.map(e=>({value:e.name,label:e.name}))]})]}),f&&(0,N.jsx)(`button`,{className:`btn btn-sm ml-auto`,onClick:m,children:r.archived?`Restore`:`Archive`})]}),n.is_admin&&(0,N.jsxs)(`form`,{className:`toolbar mb-3`,onSubmit:h,children:[(0,N.jsx)(`input`,{className:`input`,placeholder:`shared workspace name, e.g. dev`,value:s,onChange:e=>c(e.target.value),required:!0}),(0,N.jsx)(`button`,{className:`btn btn-primary`,children:`Create workspace`})]}),l&&(0,N.jsx)(`div`,{className:`pane-status error`,children:l}),(0,N.jsx)($m,{tabs:DN,active:e,onSelect:e=>t(`/workspace/${e}`)}),(0,N.jsxs)(`div`,{className:`mt-4`,children:[e===`evaluators`&&(0,N.jsx)(kN,{ws:r,writable:d}),e===`members`&&(0,N.jsx)(AN,{ws:r})]})]})}var MN=[`completed`,`running`,`evaluating`,`failed`],NN=[`running`,`evaluating`];function PN(e){return NN.includes(e)}var FN={completed:`chip-pass`,running:`chip`,evaluating:`chip`,failed:`chip-fail`};function IN(e){let{total:t,ran:n,evaluated:r}=e;return`${n}/${t} ran · ${r}/${t} evaluated`}function LN(e){return`${e.evaluated}/${e.total}`}function RN(e){return e.evaluated<e.total}function zN(e){return e>=200?`Showing the latest 200 experiments; older ones are not listed.`:null}function BN(e){return e.resumable}function VN(e){return e.status===`failed`&&e.pending_runs}function HN(e,t){return t===`sdk`?`re-run from your script: run_experiment(..., resume=${e.id})`:`evalkit run ${e.dataset} --agent ${e.agent} --resume ${e.id}`}var UN=[{kind:`dataset`,label:`Datasets`,hint:`name@workspace`},{kind:`split`,label:`Splits`,hint:`name, across datasets`},{kind:`experiment`,label:`Experiments`,hint:`id, #number or dataset`},{kind:`case`,label:`Cases`,hint:`case id or question`},{kind:`run`,label:`Runs`,hint:`run id or title, per agent`},{kind:`workspace`,label:`Workspaces`,hint:`name, to switch to`}];function WN(e,t){let n=new Map;for(let e of t)for(let t of e.split_tags)n.set(t,(n.get(t)??0)+1);return[...n].map(([t,n])=>({key:`split:${e}:${t}`,label:t,sub:`${e} · ${n} cases`,tag:`split`,route:`/datasets/${encodeURIComponent(e)}/cases?tag=${encodeURIComponent(t)}`,terms:[t]}))}function GN(e,t,n){return e.map(e=>({key:`workspace:${e.name}`,label:`@${e.name}`,sub:e.name===t?`${pr(e,n)} · current`:pr(e,n),tag:`workspace`,route:``,terms:[e.name,`@${e.name}`],switchTo:e.name}))}function KN(e,t){let n=0;for(let r of e){let e=r.toLowerCase();if(e===t)return 3;e.startsWith(t)?n=Math.max(n,2):e.includes(t)&&(n=Math.max(n,1))}return n}function qN(e,t,n=50){let r=t.trim().toLowerCase();return r?e.map((e,t)=>({item:e,i:t,s:KN(e.terms,r)})).filter(e=>e.s>0).sort((e,t)=>t.s-e.s||e.i-t.i).slice(0,n).map(e=>e.item):e.slice(0,n)}function JN(e,t,n){let r=e.trim().toLowerCase(),i=UN.filter(e=>!r||e.label.toLowerCase().startsWith(r)).map(e=>({type:`kind`,...e})),a=t.filter(e=>!r||e.label.toLowerCase().includes(r)).map(e=>({type:`page`,label:e.label,route:e.to})),o=r.length>=2?qN(n,r,8).map(e=>({type:`item`,item:e})):[];return[...i,...a,...o]}var YN=[{to:`/datasets`,label:`Datasets`},{to:`/experiments`,label:`Experiments`},{to:`/reviews`,label:`Reviews`},{to:`/runs`,label:`Runs`}],XN=[{to:`/agents`,label:`Agents`},{to:`/workspace`,label:`Settings`},{to:`/docs`,label:`Docs`}],ZN=[{to:`/users`,label:`Users`},{to:`/admin/trace-sources`,label:`Trace sources`},{to:`/admin/llm-providers`,label:`LLM providers`}],QN=encodeURIComponent;async function $N(e){let[t,n]=await Promise.all([M(`/datasets${or({workspace:e})}`),M(`/experiments${or({workspace:e,brief:`true`,limit:`200`})}`).catch(()=>[])]),r=await Promise.all(t.map(async e=>({ds:e,cases:await M(`/datasets/${QN(e.ref)}/cases`).catch(()=>[])})));return{dataset:t.map(e=>({key:`dataset:${e.ref}`,label:e.ref,sub:e.kind,tag:`dataset`,route:`/datasets/${QN(e.ref)}`,terms:[e.ref]})),split:r.flatMap(({ds:e,cases:t})=>WN(e.ref,t)).sort((e,t)=>e.label.localeCompare(t.label)||e.key.localeCompare(t.key)),experiment:n.map(e=>({key:`experiment:${e.id}`,label:`${e.dataset} #${e.number}`,sub:`${e.agent} · experiment ${e.id}`,tag:`experiment`,route:`/experiments/${e.id}`,terms:[String(e.id),`#${e.number}`,e.dataset]})),case:r.flatMap(({ds:e,cases:t})=>t.map(t=>({key:`case:${e.ref}:${t.case_id}`,label:t.case_id,sub:`${e.ref} · ${Fv(t.input)}`,tag:`case`,route:`/datasets/${QN(e.ref)}/cases/${QN(t.case_id)}`,terms:[t.case_id,Fv(t.input)]})))}}async function eP(e,t){let n=await M(`/agents${or({workspace:e})}`);return(await Promise.all(n.map(e=>M(`/agents/${QN(e.ref)}/runs${or({query:t||void 0,limit:`10`})}`).then(t=>({agent:e.ref,runs:t.runs})).catch(()=>({agent:e.ref,runs:[]}))))).flatMap(({agent:e,runs:t})=>t.map(t=>({key:`run:${e}:${t.run_id}`,label:t.title||t.run_id,sub:`${e} · ${t.run_id}`,tag:`run`,route:`/runs/${QN(e)}/${QN(t.run_id)}`,terms:[t.run_id,t.title??``]})))}function tP(){let e=Tr(),{workspace:t,workspaces:n}=Ar(),r=Mr(),[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(0),[f,p]=(0,v.useState)(null),[m,h]=(0,v.useState)(null),g=(0,v.useRef)(null),_=(0,v.useRef)(null),y=dt(),b=(0,v.useMemo)(()=>[...YN,...XN,...e.is_admin?ZN:[]],[e.is_admin]);(0,v.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`k`&&(e.preventDefault(),a(e=>!e)),e.key===`Escape`&&a(!1)},t=()=>a(!0);return window.addEventListener(`keydown`,e),window.addEventListener(`jump-palette:open`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`jump-palette:open`,t)}},[]),(0,v.useEffect)(()=>{i?(g.current?.focus(),p(null),$N(t.name).then(p).catch(()=>{})):(s(null),l(``))},[i,t.name]),(0,v.useEffect)(()=>{if(!i||o!==`run`)return;h(null);let e=setTimeout(()=>{eP(t.name,c.trim()).then(h).catch(()=>h([]))},250);return()=>clearTimeout(e)},[i,o,c,t.name]),(0,v.useEffect)(()=>d(0),[c,i,o]);let x=(0,v.useMemo)(()=>GN(n,t.name,e.personal_workspace),[n,t.name,e.personal_workspace]),S=(0,v.useMemo)(()=>[...x,...f?[...f.dataset,...f.split,...f.experiment,...f.case]:[]],[x,f]),C=(0,v.useMemo)(()=>{if(o===null)return JN(c,b,S);let e=o===`workspace`?x:o===`run`?m??[]:f?f[o]:[];return(o===`run`?e:qN(e,c)).map(e=>({type:`item`,item:e}))},[o,c,b,S,f,m,x]);(0,v.useEffect)(()=>{_.current?.querySelector(`[data-idx="${u}"]`)?.scrollIntoView({block:`nearest`})},[u,C.length]);let w=(e,t=!1)=>{a(!1),t?window.open(e,`_blank`,`noopener`):y(e)},T=e=>{s(e),l(``),g.current?.focus()},E=(e,t)=>{e&&(e.type===`kind`?T(e.kind):e.type===`page`?w(e.route,t):e.item.switchTo?(a(!1),r(e.item.switchTo)):w(e.item.route,t))};if(!i)return null;let D=UN.find(e=>e.kind===o),O=o!==null&&o!==`workspace`&&(o===`run`?m===null:f===null);return(0,N.jsx)(`div`,{className:`dialog-backdrop`,onMouseDown:()=>a(!1),children:(0,N.jsxs)(`div`,{className:`dialog w-140`,role:`dialog`,"aria-label":`Search`,onMouseDown:e=>e.stopPropagation(),children:[(0,N.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-line px-3`,children:[D&&(0,N.jsxs)(`button`,{className:`chip shrink-0`,title:`back to all types (Backspace)`,onClick:()=>{s(null),g.current?.focus()},children:[D.label,` ›`]}),(0,N.jsx)(`input`,{ref:g,className:`palette-input min-w-0 flex-1 bg-transparent py-2.5 text-body outline-none`,placeholder:D?`Search ${D.label.toLowerCase()} by ${D.hint}`:`Pick a type, go to a page, or type an id`,value:c,onChange:e=>l(e.target.value),onKeyDown:e=>{if(e.key===`ArrowDown`)e.preventDefault(),d(e=>Math.min(e+1,C.length-1));else if(e.key===`ArrowUp`)e.preventDefault(),d(e=>Math.max(e-1,0));else if(e.key===`Tab`&&o===null){let t=C[u];t?.type===`kind`&&(e.preventDefault(),T(t.kind))}else if(e.key===`Backspace`&&o!==null&&!c)e.preventDefault(),s(null);else if(e.key===`Enter`){e.preventDefault();let t=e.metaKey||e.ctrlKey;C[u]?E(C[u],t):c.trim()&&(o===null||o===`experiment`)&&w(`/experiments/${QN(c.trim())}`,t)}}})]}),(0,N.jsxs)(`ul`,{className:`max-h-80 overflow-auto p-1`,ref:_,children:[O&&(0,N.jsx)(`li`,{className:`select-empty`,children:`Searching…`}),!O&&C.length===0&&(0,N.jsx)(`li`,{className:`select-empty`,children:c.trim()?`No matches`:`Nothing here yet`}),C.map((e,t)=>(0,N.jsx)(`li`,{children:(0,N.jsx)(`button`,{"data-idx":t,className:`select-option w-full text-left ${t===u?`active`:``}`,onMouseEnter:()=>d(t),onClick:t=>E(e,t.metaKey||t.ctrlKey),children:(0,N.jsx)(rP,{row:e})})},nP(e)))]}),(0,N.jsx)(`div`,{className:`border-t border-line px-3 py-1.5 text-micro text-ink-4`,children:o===null?`↑↓ choose · Enter or Tab opens a type · Enter on an unknown id opens it as an experiment`:`↑↓ choose · Enter opens · ⌘Enter new tab · Backspace on empty goes back`})]})})}function nP(e){return e.type===`kind`?`kind:${e.kind}`:e.type===`page`?`page:${e.route}`:e.item.key}function rP({row:e}){return e.type===`kind`?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`span`,{className:`font-medium text-ink`,children:e.label}),(0,N.jsx)(`span`,{className:`truncate text-ink-4`,children:e.hint}),(0,N.jsx)(`span`,{className:`select-hint`,children:`›`})]}):e.type===`page`?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`span`,{className:`text-ink`,children:[`Go to `,e.label]}),(0,N.jsx)(`span`,{className:`select-hint`,children:`page`})]}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`span`,{className:`shrink-0 truncate font-mono text-ink`,children:e.item.label}),e.item.sub&&(0,N.jsx)(`span`,{className:`min-w-0 truncate text-ink-4`,children:e.item.sub}),(0,N.jsx)(`span`,{className:`select-hint`,children:e.item.tag})]})}function iP(){return(0,N.jsxs)(`span`,{"aria-label":`InferEdge`,className:`num inline-flex items-baseline font-mono text-meta tracking-[0.08em] whitespace-nowrap uppercase select-none`,children:[(0,N.jsx)(`span`,{className:`font-normal text-n-400`,children:`Infer`}),(0,N.jsx)(`span`,{className:`font-normal text-brand`,"aria-hidden":!0,children:`/`}),(0,N.jsx)(`span`,{className:`font-bold text-n-700`,children:`Edge`})]})}function aP(){let e=Tr(),{workspace:t,workspaces:n,switchedAt:r}=Ar(),i=Mr(),[a,o]=(0,v.useState)(!1);(0,v.useEffect)(()=>{if(r===null)return;o(!0);let e=setTimeout(()=>o(!1),Or);return()=>clearTimeout(e)},[r]);let s=t=>({value:t.name,label:`@${t.name}`,hint:pr(t,e.personal_workspace)}),c=n.filter(t=>mr(t,e.personal_workspace));return(0,N.jsxs)(`div`,{className:`flex items-center gap-1.5 rounded-md ${a?`ws-switched`:``}`,"aria-live":`polite`,children:[(0,N.jsx)(`span`,{className:`text-micro tracking-wide text-ink-4 uppercase`,children:a?`Switched to @${t.name}`:`Workspace`}),(0,N.jsx)(xh,{ariaLabel:`workspace`,title:`workspace (⌘K, w)`,value:t.name,onChange:i,options:n.filter(t=>!mr(t,e.personal_workspace)).map(s),more:{label:`Show ${c.length} other personal workspace${c.length===1?``:`s`}`,options:c.map(s)}}),mr(t,e.personal_workspace)&&(0,N.jsx)(`span`,{className:`text-micro text-ink-4`,children:`read-only`})]})}var oP=({isActive:e})=>`rounded-md px-2.5 py-1 text-lede transition-colors ${e?`bg-info-bg font-medium text-brand`:`text-ink-2 hover:bg-fill`}`;function sP(){let e=Tr(),{pathname:t}=ct(),[n,r]=(0,v.useState)(!1),i=(0,v.useRef)(null),a=e.is_admin?[XN,ZN]:[XN],o=a.flat().find(e=>t===e.to||t.startsWith(`${e.to}/`));return(0,v.useEffect)(()=>r(!1),[t]),(0,v.useEffect)(()=>{if(!n)return;let e=e=>{i.current?.contains(e.target)||r(!1)},t=e=>{e.key===`Escape`&&r(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[n]),(0,N.jsxs)(`div`,{ref:i,className:`relative`,children:[(0,N.jsxs)(`button`,{type:`button`,"aria-haspopup":`menu`,"aria-expanded":n,className:oP({isActive:!!o}),onClick:()=>r(e=>!e),children:[o?o.label:`More`,` `,(0,N.jsx)(`span`,{className:`text-ink-4`,children:`▾`})]}),n&&(0,N.jsx)(`div`,{role:`menu`,className:`select-menu`,children:(0,N.jsx)(`div`,{className:`select-list`,children:a.map((e,t)=>(0,N.jsx)(`div`,{className:t?`select-more mt-1 pt-1`:``,children:e.map(e=>(0,N.jsx)(An,{to:e.to,role:`menuitem`,onClick:()=>r(!1),className:({isActive:e})=>`select-option ${e?`font-medium text-brand`:``}`,children:e.label},e.to))},t))})})]})}function cP(){let e=Tr(),t=dt(),{theme:n,toggle:r}=Bm();return(0,N.jsxs)(`div`,{className:`flex h-dvh flex-col`,children:[(0,N.jsxs)(`header`,{className:`flex items-center gap-4 border-b border-line bg-surface px-4 py-2`,children:[(0,N.jsxs)(An,{to:`/`,className:`flex items-baseline gap-2`,children:[(0,N.jsx)(iP,{}),(0,N.jsx)(`span`,{className:`font-mono text-head font-semibold tracking-tight text-brand`,children:`Evalkit`})]}),(0,N.jsx)(aP,{}),(0,N.jsxs)(`nav`,{className:`ml-2 flex items-center gap-0.5`,children:[YN.map(e=>(0,N.jsx)(An,{to:e.to,className:oP,children:e.label},e.to)),(0,N.jsx)(sP,{})]}),(0,N.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,N.jsx)(`span`,{className:`chip muted`,title:`signed in as`,children:e.username}),(0,N.jsxs)(`button`,{className:`btn`,title:`search datasets, experiments, cases, runs and pages`,onClick:()=>window.dispatchEvent(new Event(`jump-palette:open`)),children:[`Search `,(0,N.jsx)(`span`,{className:`num font-mono text-ink-4`,children:`⌘K`})]}),(0,N.jsx)(`button`,{className:`btn`,title:`switch to ${n===`dark`?`light`:`dark`} mode`,onClick:r,children:n===`dark`?`☀ Light`:`☾ Dark`}),(0,N.jsx)(`button`,{className:`btn btn-quiet`,onClick:()=>cr().finally(()=>t(`/login`)),children:`Sign out`})]})]}),(0,N.jsx)(`main`,{className:`min-h-0 flex-1 overflow-auto`,children:(0,N.jsx)(Rt,{})}),(0,N.jsx)(tP,{})]})}var lP=[{bucket:`content`,label:`answer`,short:`ans`},{bucket:`presentation`,label:`presentation`,short:`pres`},{bucket:`trajectory`,label:`trajectory`,short:`traj`}],uP=[...lP,{bucket:`efficiency`,label:`efficiency`,short:`eff`},{bucket:`custom`,label:`custom`,short:`custom`}];function dP(e){return uP.filter(t=>e.some(e=>fP(e.scores,t.bucket)!==null))}function fP(e,t){let n=e?.[t];return typeof n==`number`&&Number.isFinite(n)?n:null}var pP={synced:`synced`,review_requested:`review requested`,approved:`approved`,changes_requested:`changes requested`},mP=4;function hP({dataset:e,caseId:t,currentHash:n,version:r}){let[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(!1);(0,v.useEffect)(()=>{M(`/datasets/${encodeURIComponent(e)}/cases/${encodeURIComponent(t)}/events`).then(e=>a(e.events))},[e,t,r]);let c=i??[],l=o?c:c.slice(0,mP),u=c.length-l.length;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Changelog`}),(0,N.jsx)(`div`,{className:`card`,children:(0,N.jsxs)(`div`,{className:`rows`,children:[l.map(e=>{let t=n!==void 0&&e.content_hash!==n;return(0,N.jsxs)(`div`,{className:`flex flex-col gap-0.5 px-3 py-2 ${t?`text-ink-4`:``}`,children:[(0,N.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,children:[(0,N.jsx)(`span`,{className:`shrink-0 font-medium`,children:pP[e.kind]}),(0,N.jsxs)(`span`,{className:`min-w-0 truncate text-ink-3`,children:[e.actor,e.target?` → ${e.target}`:``]})]}),(0,N.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2 text-micro text-ink-3`,children:[(0,N.jsx)(`span`,{className:`shrink-0`,children:jv(e.created_at)}),(0,N.jsxs)(`span`,{className:`min-w-0 truncate font-mono`,title:t?`Content hash of the case when this happened. The case has been edited since, so this event no longer counts toward its state.`:`Content hash of the case when this happened. Matches the current content.`,children:[e.content_hash,t?` · previous content`:``]})]})]},e.id)}),i&&i.length===0?(0,N.jsx)(`div`,{className:`pane-status`,children:`No events yet.`}):null,u>0||o?(0,N.jsx)(`button`,{className:`w-full px-3 py-1.5 text-left text-micro text-brand hover:underline`,onClick:()=>s(!o),children:o?`Show fewer`:`Show ${u} more`}):null]})})]})}var gP={unreviewed:`Unreviewed`,review_requested:`Review requested`,changes_requested:`Changes requested`,approved:`Approved`},_P={unreviewed:`muted`,review_requested:`chip-info`,changes_requested:`chip-partial`,approved:`chip-pass`},vP=[`unreviewed`,`review_requested`,`changes_requested`,`approved`];function yP(e){return gP[e]}function bP(e){return _P[e]}function xP(e,t){return t!==void 0&&e.content_hash!==t}function SP({dataset:e,caseId:t,currentHash:n,version:r}){let i=Tr(),a=`/datasets/${encodeURIComponent(e)}/cases/${encodeURIComponent(t)}/comments`,[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(!1);(0,v.useEffect)(()=>{M(a).then(e=>s(e.threads))},[a,r]);let m=()=>M(a).then(e=>s(e.threads)),h=async()=>{c.trim()&&(await rr(a,`POST`,{body:c,parent_id:u}),l(``),d(null),await m())},g=async e=>{await rr(`${a}/${e.id}`,`PATCH`,{resolved:!e.resolved}),await m()},_=t=>yO(i,dr(e).workspace)||t.author===i.username,y=({c:e,reply:t})=>(0,N.jsxs)(`div`,{className:t?`ml-6 mt-2 border-l-2 border-line pl-3`:``,children:[(0,N.jsxs)(`div`,{className:`flex items-center gap-2 text-meta`,children:[(0,N.jsx)(`span`,{className:`font-medium`,children:e.author}),(0,N.jsx)(`span`,{className:`text-ink-3`,children:jv(e.created_at)}),xP(e,n)?(0,N.jsx)(`span`,{className:`chip chip-partial`,children:`Case has been updated since`}):null,e.resolved?(0,N.jsx)(`span`,{className:`chip muted`,children:`resolved`}):null,_(e)?(0,N.jsx)(`button`,{className:`btn btn-sm ml-auto`,onClick:()=>g(e),children:e.resolved?`Unresolve`:`Resolve`}):null,!t&&!e.resolved?(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:()=>d(e.id),children:`Reply`}):null]}),e.resolved&&t?null:(0,N.jsx)(`div`,{className:`mt-1 whitespace-pre-wrap`,children:e.body})]}),b=(o??[]).filter(e=>!e.resolved),x=(o??[]).filter(e=>e.resolved);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Comments`}),(0,N.jsxs)(`div`,{className:`card p-3`,children:[o===null?(0,N.jsx)(`div`,{className:`pane-status`,children:`Loading…`}):null,b.map(e=>(0,N.jsxs)(`div`,{className:`mb-3 border-b border-line pb-3 last:border-0`,children:[(0,N.jsx)(y,{c:e}),e.replies.map(e=>(0,N.jsx)(y,{c:e,reply:!0},e.id))]},e.id)),x.length>0?(0,N.jsxs)(`button`,{className:`btn btn-sm mb-2`,onClick:()=>p(!f),children:[f?`Hide`:`Show`,` `,x.length,` resolved thread`,x.length===1?``:`s`]}):null,f?x.map(e=>(0,N.jsxs)(`div`,{className:`mb-3 border-b border-line pb-3 opacity-70 last:border-0`,children:[(0,N.jsx)(y,{c:e}),e.replies.map(e=>(0,N.jsx)(y,{c:e,reply:!0},e.id))]},e.id)):null,(0,N.jsx)(`textarea`,{className:`input mt-2 w-full`,rows:3,placeholder:u===null?`Write a comment…`:`Reply to #${u}…`,value:c,onChange:e=>l(e.target.value)}),(0,N.jsxs)(`div`,{className:`toolbar mt-2 justify-end`,children:[u===null?null:(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:()=>d(null),children:`Cancel reply`}),(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:h,disabled:!c.trim(),children:u===null?`Comment`:`Reply`})]})]})]})}function CP({dataset:e,caseId:t,review:n,twin:r,onChanged:i}){let a=Tr(),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(!1),[f,p]=(0,v.useState)(null),m=async()=>{if(o){d(!0),p(null);try{await rr(`/datasets/${encodeURIComponent(e)}/cases/${encodeURIComponent(t)}/review`,`POST`,{action:o,comment:c.trim()||null}),s(null),l(``),i()}catch(e){p(String(e))}finally{d(!1)}}},h=o===`request_changes`&&!c.trim(),g=o===`approve`?`btn-approve`:`btn-reject`;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Review`}),(0,N.jsxs)(`div`,{className:`card p-3`,children:[(0,N.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,N.jsx)(`span`,{className:`chip ${bP(n.state)}`,children:yP(n.state)}),n.state===`review_requested`&&n.requested_to?(0,N.jsxs)(`span`,{className:`row-meta`,children:[`→ `,n.requested_to]}):null,n.updated_at?(0,N.jsx)(`span`,{className:`row-meta`,children:jv(n.updated_at)}):null]}),r?(0,N.jsxs)(`div`,{className:`mt-3 text-meta text-ink-3 whitespace-normal break-words`,children:[r.locked?`This dataset is fed by promotion. `:null,(0,N.jsx)(kn,{className:`text-brand hover:underline`,to:r.href,children:r.text})]}):null,!r?.locked&&yO(a,dr(e).workspace)&&o===null?(0,N.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:[(0,N.jsx)(`button`,{className:`btn btn-lg btn-approve`,onClick:()=>s(`approve`),children:`Approve`}),(0,N.jsx)(`button`,{className:`btn btn-lg btn-reject`,onClick:()=>s(`request_changes`),children:`Request changes`})]}):null,o?(0,N.jsxs)(`div`,{className:`mt-3`,children:[(0,N.jsx)(`textarea`,{className:`input w-full`,rows:3,placeholder:o===`approve`?`Comment (optional)`:`What needs to change?`,value:c,onChange:e=>l(e.target.value)}),f?(0,N.jsx)(`div`,{className:`pane-status error`,children:f}):null,(0,N.jsxs)(`div`,{className:`mt-2 flex flex-wrap justify-end gap-2`,children:[(0,N.jsx)(`button`,{className:`btn`,onClick:()=>s(null),disabled:u,children:`Cancel`}),(0,N.jsx)(`button`,{className:`btn btn-lg ${g}`,onClick:m,disabled:u||h,children:o===`approve`?`Approve ✓`:`Request changes`})]})]}):null]})]})}function wP(e){return e?e.promotes_to?`source`:e.promoted_from?`target`:null:null}function TP(e,t){let n=e.workspace;if(e.state===`absent`)return t===`source`?`Not in ${n}`:`Removed in ${n}`;let r=[e.state===`same`?t===`source`?`Promoted to ${n}`:`Same version in ${n}`:`${n} has ${e.content_hash??`another version`}`];if(e.review){let t=jv(e.review.updated_at);r.push(t?`${yP(e.review.state).toLowerCase()} ${t}`:yP(e.review.state).toLowerCase())}return e.overlays_differ&&r.push(`overlays differ from ${n}`),r.join(` · `)}function EP(e,t){return!e||!t?null:t===`source`?e.state===`same`?{label:`Promoted`,cls:`chip-pass`}:e.state===`differs`?{label:`ahead of ${e.workspace}`,cls:`chip-info`}:{label:`not in ${e.workspace}`,cls:`muted`}:e.state===`same`?{label:`same`,cls:`muted`}:e.state===`differs`?{label:`newer in ${e.workspace}`,cls:`chip-info`}:{label:`removed in ${e.workspace}`,cls:`chip-partial`}}function DP(e,t,n){return t===`source`&&e?.state===`same`&&n===`approved`}var OP=10,kP=[];function AP({dataset:e,caseId:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(0);(0,v.useEffect)(()=>{r(null),a(null),M(`/datasets/${encodeURIComponent(e)}/cases/${encodeURIComponent(t)}/scores${or({limit:String(OP),offset:String(o)})}`).then(e=>r(e.points)).catch(e=>a(String(e)))},[e,t,o]);let c=(n?.length??0)===OP,l=lP,u=(0,v.useMemo)(()=>[{id:`experiment`,header:`experiment`,accessorKey:`number`,cell:e=>{let t=e.row.original;return(0,N.jsxs)(kn,{to:`/experiments/${t.experiment_id}`,className:`font-mono font-medium text-brand hover:underline`,title:`#${t.number} by ${t.created_by} · ${jv(t.created_at)??``}${t.repetitions>1?` · ×${t.repetitions}`:``}`,children:[`#`,t.number]})}},{id:`agent`,header:`agent`,accessorKey:`agent`,meta:{wrap:!0},cell:e=>(0,N.jsx)(`span`,{className:`row-meta`,children:e.row.original.agent})},{id:`model`,header:`model`,accessorFn:e=>e.model??``,meta:{wrap:!0},cell:e=>(0,N.jsx)(`span`,{className:`row-meta`,children:e.row.original.model??`—`})},...l.map(e=>({id:`score:${e.bucket}`,header:e.short,accessorFn:t=>fP(t.scores,e.bucket)??void 0,sortUndefined:`last`,meta:{align:`right`,title:`${e.bucket} bucket`},cell:t=>(0,N.jsx)(dD,{score:t.row.original.scores[e.bucket]})})),{id:`cost`,header:`cost`,accessorFn:e=>e.cost_usd??void 0,sortUndefined:`last`,meta:{align:`right`},cell:e=>(0,N.jsx)(fD,{cost:e.row.original.cost_usd})}],[l]),d=oN({id:`case-score-history`,data:n??kP,columns:u,getRowId:e=>String(e.experiment_id)});return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Score history`}),i&&(0,N.jsx)(`div`,{className:`pane-status error`,children:i}),(0,N.jsx)(pN,{table:d,loading:!n&&!i,skeletonRows:4,empty:o===0?`This case has never been run.`:void 0}),(o>0||c)&&(0,N.jsxs)(`div`,{className:`toolbar mt-2`,children:[(0,N.jsx)(`button`,{className:`btn btn-sm`,disabled:o===0,onClick:()=>s(Math.max(0,o-OP)),children:`← Newer`}),(0,N.jsx)(`span`,{className:`row-meta`,children:n&&n.length>0?`${o+1}–${o+n.length}`:`—`}),(0,N.jsx)(`button`,{className:`btn btn-sm`,disabled:!c,onClick:()=>s(o+OP),children:`Older →`})]})]})}function jP(){let{ref:e=``,caseId:t=``}=ht(),n=dr(e).workspace;jr(n);let{workspaces:r}=Ar(),i=wP(r.find(e=>e.name===n)),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(null),[d,f]=(0,v.useState)(0);(0,v.useEffect)(()=>{c(null),M(`/datasets/${encodeURIComponent(e)}/cases/${encodeURIComponent(t)}`).then(o).catch(e=>{if(!Yn(e))return u(String(e));c(String(e).includes(`unknown case`)?`case`:`dataset`)})},[e,t,d]);let p=()=>f(e=>e+1);if(s===`dataset`)return(0,N.jsx)(wO,{what:`dataset ${e}`,up:{label:`All datasets`,to:`/datasets`}});if(s===`case`)return(0,N.jsx)(wO,{what:`case ${t} in ${e}`,up:{label:e,to:`/datasets/${encodeURIComponent(e)}/cases`}});if(l)return(0,N.jsx)(`div`,{className:`pane-status error`,children:l});if(!a)return(0,N.jsx)(`div`,{className:`pane-status`,children:`Loading case…`});let m=a.split_tags,h=a.twin&&i?a.twin:null,g=h&&i?{href:h.href,text:i===`target`?`Review this case in ${dr(e).name}@${h.workspace}`:TP(h,i),locked:i===`target`}:null;return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsx)(`div`,{className:`toolbar mb-1`,children:(0,N.jsxs)(`nav`,{className:`flex min-w-0 items-baseline gap-1.5`,children:[(0,N.jsx)(kn,{className:`shrink-0 text-meta text-ink-3 transition-colors hover:text-brand`,to:`/datasets/${encodeURIComponent(e)}/cases`,children:e}),(0,N.jsx)(`span`,{className:`text-ink-4`,"aria-hidden":!0,children:`›`}),(0,N.jsx)(`h1`,{className:`page-title font-mono`,children:(0,N.jsx)(Ym,{value:a.case_id})})]})}),m.length>0?(0,N.jsx)(`div`,{className:`mb-3 flex flex-wrap items-center gap-1`,children:m.map(e=>(0,N.jsx)(cD,{children:e},e))}):null,(0,N.jsxs)(`div`,{className:`grid gap-x-6 lg:grid-cols-[minmax(0,3fr)_minmax(0,1fr)]`,children:[(0,N.jsxs)(`div`,{className:`min-w-0`,children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Question`}),(0,N.jsx)(`div`,{className:`card p-4`,children:(0,N.jsx)(oD,{text:Fv(a.input)})}),(0,N.jsx)(lD,{files:a.files}),(0,N.jsxs)(`details`,{className:`mt-2 text-micro`,children:[(0,N.jsx)(`summary`,{className:`cursor-pointer text-n-400`,children:`Raw input`}),(0,N.jsx)(sD,{text:mv(a.input),language:`yaml`})]}),a.expected?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Expected`}),(0,N.jsx)(sD,{text:mv(a.expected),language:`yaml`})]}):null,(0,N.jsx)(`div`,{className:`eyebrow`,children:`Evaluators`}),(0,N.jsx)(JD,{evaluators:a.evaluators,scores:{}}),(0,N.jsxs)(`details`,{className:`mt-2 text-micro`,children:[(0,N.jsx)(`summary`,{className:`cursor-pointer text-n-400`,children:`Full evaluator config`}),(0,N.jsx)(sD,{text:mv(a.evaluators),language:`yaml`})]}),(0,N.jsx)(AP,{dataset:e,caseId:a.case_id})]}),a.review?(0,N.jsxs)(`div`,{className:`min-w-0`,children:[(0,N.jsx)(CP,{dataset:e,caseId:a.case_id,review:a.review,twin:g,onChanged:p}),(0,N.jsx)(hP,{dataset:e,caseId:a.case_id,currentHash:a.content_hash,version:d}),(0,N.jsx)(SP,{dataset:e,caseId:a.case_id,currentHash:a.content_hash,version:d})]}):null]})]})}var MP=`by type`,NP=[`answer_rubric_coverage`,`answer_rubric_accuracy`,`answer_rubric_citation`],PP=[{label:`answer rubric`,match:e=>NP.includes(e)},{label:MP,match:e=>e.startsWith(`answer_rubric_`)},{label:`other`,match:()=>!0}];function FP(e){let t=e.filter(e=>e!=null);return t.length?t.reduce((e,t)=>e+t,0)/t.length:null}function IP(e){return Object.entries(e.buckets).filter(([,e])=>e!==null).map(([t,n])=>({bucket:t,score:n,members:e.evaluators.filter(e=>e.bucket===t)}))}function LP(e){let t=new Map(e.evaluators.map(e=>[e.name,e.bucket])),n=Object.keys(e.buckets).map(n=>({label:n,kind:`score`,cols:e.evaluator_columns.filter(e=>t.get(e)===n)})).filter(e=>e.cols.length),r=new Set(n.flatMap(e=>e.cols));for(let t of PP){let i=e.evaluator_columns.filter(e=>!r.has(e)&&t.match(e));i.forEach(e=>r.add(e)),i.length&&n.push({label:t.label,kind:`score`,cols:i})}return n}function RP(e){let t=e.gauges.filter(e=>e.count>0).map(e=>e.name);return t.length?{label:`gauges`,kind:`gauge`,cols:t}:null}function zP(e,t,n){return t===`avg`?e.overall:(t===`gauge`?e.gauges[n]:e.scores[n])??null}function BP(e,t,n){return t===`avg`?FP(e.cases.map(e=>e.overall)):t===`gauge`?e.gauges.find(e=>e.name===n)?.mean??null:e.evaluators.find(e=>e.name===n)?.score??null}function VP(e,t,n){let r=e.map(e=>zP(e,t,n)).filter(e=>e!==null);return{mean:FP(r),n:r.length}}function HP(e){return e.evaluators.some(e=>e.score!==null)}var UP=[`regressed`,`improved`,`unchanged`,`unscored`,`only_in_base`,`only_in_compare`],WP={improved:`improved`,regressed:`regressed`,unchanged:`unchanged`,unscored:`unscored`,only_in_base:`only in base`,only_in_compare:`only in compare`};function GP(e,t){return e==null||t==null?null:Math.round((t-e)*1e6)/1e6}function KP(e,t){return[...new Set([...Object.keys(e.buckets),...Object.keys(t.buckets)])].map(n=>{let r=e=>new Map(e.evaluators.filter(e=>e.bucket===n&&e.score!==null).map(e=>[e.name,e.score])),i=r(e),a=r(t),o=[...new Set([...i.keys(),...a.keys()])];return{bucket:n,base:e.buckets[n]??null,compare:t.buckets[n]??null,members:o.map(e=>({name:e,base:i.get(e)??null,compare:a.get(e)??null,side:i.has(e)&&a.has(e)?`both`:i.has(e)?`base`:`compare`}))}}).filter(e=>e.base!==null||e.compare!==null)}function qP(e,t){if(!t)return`only_in_base`;if(!e)return`only_in_compare`;let n=GP(e.overall,t.overall);return n===null?`unscored`:n>=.05?`improved`:n<=-.05?`regressed`:`unchanged`}function JP(e,t){let n=new Map(e.cases.map(e=>[e.case_id,e])),r=new Map(t.cases.map(e=>[e.case_id,e]));return[...new Set([...n.keys(),...r.keys()])].map(e=>{let t=n.get(e),i=r.get(e);return{case_id:e,base:t??null,compare:i??null,delta:GP(t?.overall,i?.overall),change:qP(t,i)}}).sort((e,t)=>(e.delta??1/0)-(t.delta??1/0)||UP.indexOf(e.change)-UP.indexOf(t.change)||e.case_id.localeCompare(t.case_id))}var YP=new Set([`satisfied`,`met`,`present`,`correct`,`pass`,`passed`,`yes`]),XP=3;function ZP(e){return Array.isArray(e)?e.flatMap(e=>e&&typeof e==`object`&&`verdict`in e?[e]:ZP(e)):e&&typeof e==`object`?Object.values(e).flatMap(ZP):[]}function QP(e){if(/^\s*[[{]/.test(e))try{return JSON.parse(e)}catch{return}}function $P(e){let t=QP(e);if(t===void 0)return{lines:[e],more:0};let n=ZP(t).filter(e=>!YP.has(String(e.verdict).toLowerCase())).map(e=>`${e.verdict}: ${e.rubric??e.text??e.note??``}`);return{lines:n.slice(0,XP),more:Math.max(0,n.length-XP)}}var eF=e=>e.replace(/^(answer_rubric_|gauge_)/,``).replaceAll(`_`,` `);function tF(e,t,n){return e===`gauge`?bv(t,n):vv(n)}function nF(e,t,n,r){return r?!e.row||!e.base?null:GP(zP(e.base,t,n),zP(e.row,t,n)):t===`avg`?e.row?.delta??null:null}function rF(e,t){return n=>{let r=n.row?zP(n.row,e,t):null;if(r===null&&e===`score`&&n.row&&t in n.row.errors)return`score text-err-text`;let i=e===`gauge`?`none`:_v(r);return`score sev-fg-${i} ${i===`none`?``:`heat-${i}`}`}}function iF({r:e,kind:t,col:n,withBase:r}){let i=e.row?zP(e.row,t,n):null,a=t===`score`?e.row?.errors[n]:void 0;if(i===null&&a!==void 0)return(0,N.jsx)(`span`,{title:a,children:`error`});let o=nF(e,t,n,r),s=o!==null&&Math.abs(o)>=.005;return(0,N.jsxs)(`span`,{title:s?`${a?`${a} · `:``}${xv(o)} vs base`:a,children:[tF(t,n,i),s&&t!==`gauge`&&(0,N.jsxs)(`span`,{className:`ml-1 text-micro ${o>0?`text-ok`:`text-err-text`}`,children:[o>0?`▲`:`▼`,Math.abs(o).toFixed(2)]})]})}function aF({report:e,kind:t,col:n,rows:r,filtered:i,withBase:a}){let o=BP(e,t,n),s=VP(r.flatMap(e=>e.row?[e.row]:[]),t,n),c=a?FP(r.map(e=>nF(e,t,n,!0))):null;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`font-semibold sev-fg-${t===`gauge`?`none`:_v(o)}`,children:tF(t,n,o)}),c!==null&&!i&&(0,N.jsx)(`div`,{className:`text-micro ${c>0?`text-ok`:c<0?`text-err-text`:`text-ink-4`}`,children:xv(c)}),i&&(0,N.jsxs)(`div`,{className:`text-micro text-ink-3`,title:`mean over the rows shown`,children:[`visible `,tF(t,n,s.mean),` · n=`,s.n,c!==null&&(0,N.jsxs)(`span`,{className:c>0?`text-ok`:c<0?`text-err-text`:``,children:[` `,xv(c)]})]})]})}function oF(e,t,n){if(!e.row)return;let r=zP(e.row,t,n);return r===null?t===`score`&&n in e.row.errors?-1:void 0:r}function sF({id:e,report:t,groups:n,rows:r,filtered:i,caseCell:a,defaultHidden:o=[],sortBy:s=``,toolbar:c,toggles:l=[],withBase:u=!1}){let d=oN({id:e,data:r,columns:(0,v.useMemo)(()=>{let e=(e,n)=>({id:e===`avg`?`avg`:n,header:e===`avg`?`mean`:()=>(0,N.jsxs)(`span`,{className:`whitespace-nowrap`,children:[eF(n),` `,(0,N.jsx)(qm,{term:n})]}),accessorFn:t=>oF(t,e,n),sortUndefined:`last`,meta:{label:e===`avg`?`mean`:eF(n),title:e===`avg`?`mean of the case's bucketed scores`:n,className:`score`,cellClass:rF(e,n)},cell:t=>(0,N.jsx)(iF,{r:t.row.original,kind:e,col:n,withBase:u}),footer:()=>(0,N.jsx)(aF,{report:t,kind:e,col:n,rows:r,filtered:i,withBase:u})});return[{id:`case`,header:`case`,accessorFn:e=>e.case_id,enableHiding:!1,meta:{className:`col-case font-mono`,headerClassName:`col-case`},cell:e=>a(e.row.original),footer:()=>(0,N.jsx)(`span`,{className:`text-micro font-semibold tracking-wide text-ink-3 uppercase`,children:`mean`})},e(`avg`,``),...n.map(t=>({id:`group:${t.label}`,header:t.label,meta:{headerClassName:`border-l border-line text-micro font-semibold tracking-wide text-ink-3 uppercase`},columns:t.cols.map(n=>e(t.kind,n))})),{id:`slack`,header:``,enableHiding:!1,enableSorting:!1,enableResizing:!1,meta:{className:`col-slack`,headerClassName:`col-slack`},cell:()=>null}]},[t,n,r,i,a,u]),getRowId:e=>e.case_id,defaultHidden:o}),f=(0,v.useRef)(s);return(0,v.useEffect)(()=>{let e=f.current;f.current=s,s?(d.getColumn(s)?.toggleVisibility(!0),d.setSorting([{id:s,desc:!1}])):e&&d.state.sorting[0]?.id===e&&d.setSorting([])},[s]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`toolbar mb-1`,children:[c,l.map(e=>{let t=e.cols.flatMap(e=>d.getColumn(e)??[]);return t.length?(0,N.jsxs)(`label`,{className:`check`,title:e.title,children:[(0,N.jsx)(`input`,{type:`checkbox`,checked:t.every(e=>e.getIsVisible()),onChange:e=>t.forEach(t=>t.toggleVisibility(e.target.checked))}),e.label]},e.label):null}),(0,N.jsx)(`span`,{className:`ml-auto`,children:(0,N.jsx)(uN,{table:d,defaultHidden:o})})]}),(0,N.jsx)(pN,{table:d,className:`matrix`,containerClassName:`card mt-2 max-h-[calc(100dvh-15rem)] overflow-auto`})]})}var cF=[`gauge_agent_cost_usd`,`gauge_duration_seconds`],lF=e=>e.replace(/^gauge_/,``).replaceAll(`_`,` `);function uF({value:e}){return e===null||Math.abs(e)<.005?null:(0,N.jsxs)(`span`,{className:`num ${e>0?`text-ok`:`text-err-text`}`,children:[` `,xv(e)]})}function dF({report:e,onPick:t}){let n=e.cases.length,r=IP(e);return r.length?(0,N.jsx)(`div`,{className:`bucket-cards`,children:r.map(e=>(0,N.jsxs)(`div`,{className:`tile tile-hero`,children:[(0,N.jsxs)(`div`,{className:`flex items-baseline gap-1`,children:[(0,N.jsx)(`div`,{className:`tile-label`,children:e.bucket}),(0,N.jsx)(qm,{term:`bucket:${e.bucket}`}),(0,N.jsx)(`div`,{className:`ml-auto tile-value sev-fg-${_v(e.score)}`,children:vv(e.score)})]}),(0,N.jsx)(`ul`,{className:`bucket-members`,children:e.members.map(e=>(0,N.jsx)(`li`,{children:(0,N.jsxs)(`button`,{type:`button`,onClick:()=>t?.(e.name),title:`focus ${e.name} in the case table`,children:[(0,N.jsx)(`span`,{className:`member-name truncate font-mono`,children:e.name}),e.cases<n&&(0,N.jsxs)(`span`,{className:`text-ink-4`,children:[`n=`,e.cases,`/`,n]}),e.errors>0&&(0,N.jsxs)(`span`,{className:`text-err-text`,children:[e.errors,` err`]}),(0,N.jsx)(`span`,{className:`num sev-fg-${_v(e.score)}`,children:vv(e.score)})]})},e.name))})]},e.bucket))}):null}function fF({base:e,compare:t}){let n=KP(e,t),r=HP(e)&&HP(t);return n.length?(0,N.jsx)(`div`,{className:`bucket-cards`,children:n.map(e=>(0,N.jsxs)(`div`,{className:`tile tile-hero`,children:[(0,N.jsxs)(`div`,{className:`flex items-baseline gap-1`,children:[(0,N.jsx)(`div`,{className:`tile-label`,children:e.bucket}),(0,N.jsx)(qm,{term:`bucket:${e.bucket}`}),(0,N.jsx)(`div`,{className:`ml-auto tile-value num sev-fg-${_v(e.compare)}`,children:vv(e.compare)})]}),e.base!==null&&e.compare!==null&&(0,N.jsxs)(`div`,{className:`tile-sub num text-right`,children:[`was `,vv(e.base),(0,N.jsx)(uF,{value:GP(e.base,e.compare)})]}),(0,N.jsx)(`ul`,{className:`bucket-members`,children:e.members.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsx)(`span`,{className:`member-name truncate font-mono`,children:e.name}),e.side===`both`?(0,N.jsxs)(`span`,{className:`num`,children:[(0,N.jsxs)(`span`,{className:`text-ink-3`,children:[vv(e.base),` → `]}),(0,N.jsx)(`span`,{className:`sev-fg-${_v(e.compare)}`,children:vv(e.compare)}),(0,N.jsx)(uF,{value:GP(e.base,e.compare)})]}):(0,N.jsxs)(`span`,{className:`num`,children:[r&&(0,N.jsxs)(`span`,{className:`text-ink-4`,children:[`only in `,e.side,` `]}),vv(e.side===`base`?e.base:e.compare)]})]},e.name))})]},e.bucket))}):null}function pF({report:e,base:t}){let n=cF.map(n=>({name:n,now:e.gauges.find(e=>e.name===n&&e.count>0),was:t?.gauges.find(e=>e.name===n&&e.count>0)})).filter(e=>e.now||e.was);return n.length?(0,N.jsx)(`div`,{className:`mt-2 flex flex-wrap items-baseline gap-x-6 gap-y-1 text-meta`,children:n.map(({name:e,now:n,was:r})=>(0,N.jsxs)(`span`,{className:`flex items-baseline gap-1.5`,children:[(0,N.jsx)(`span`,{className:`tile-label`,children:lF(e)}),(0,N.jsx)(qm,{term:e}),r&&(0,N.jsxs)(`span`,{className:`num text-ink-3`,children:[bv(e,r.median),` →`]}),(0,N.jsx)(`span`,{className:`num font-semibold`,children:bv(e,n?.median??null)}),r&&n&&(0,N.jsx)(`span`,{className:`num text-ink-3`,children:xv(GP(r?.median,n?.median))??``}),!t&&n&&(0,N.jsxs)(`span`,{className:`num text-micro text-ink-3`,children:[`median · mean `,bv(e,n.mean),` · n=`,n.count]})]},e))}):null}var mF=e=>e&&e>0?`text-ok`:e&&e<0?`text-err-text`:`text-ink-4`;function hF({row:e,data:t,base:n,compare:r}){let i=[...new Set([...t.compare.evaluator_columns,...t.base.evaluator_columns])].filter(t=>e.base?.scores[t]!=null||e.compare?.scores[t]!=null),a=(t,n)=>(0,N.jsxs)(kn,{className:`text-brand hover:underline`,to:`/experiments/${encodeURIComponent(t)}/${encodeURIComponent(e.case_id)}`,target:`_blank`,rel:`noopener`,children:[n,` ↗`]});return(0,N.jsxs)(`div`,{className:`border-t border-line-soft px-4 py-2 text-meta`,children:[i.map((t,n)=>{let r=GP(e.base?.scores[t],e.compare?.scores[t]),a=e.compare?.explanations[t],o=i.slice(0,n).some(t=>e.compare?.explanations[t]===a),s=a&&!o?$P(a):null;return(0,N.jsxs)(`div`,{className:`py-1`,children:[(0,N.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,N.jsx)(`span`,{className:`flex-1 font-mono`,children:t}),(0,N.jsxs)(`span`,{className:`num text-ink-3`,children:[vv(e.base?.scores[t]??null),` →`]}),(0,N.jsx)(`span`,{className:`num sev-fg-${_v(e.compare?.scores[t]??null)}`,children:vv(e.compare?.scores[t]??null)}),(0,N.jsx)(`span`,{className:`num w-12 text-right ${mF(r)}`,children:xv(r)??``})]}),s&&(0,N.jsxs)(`ul`,{className:`text-micro text-ink-3`,children:[s.lines.map((e,t)=>(0,N.jsx)(`li`,{className:`line-clamp-2`,title:e,children:e},t)),s.more>0&&(0,N.jsxs)(`li`,{children:[`+`,s.more,` more in the run`]})]})]},t)}),(0,N.jsxs)(`div`,{className:`mt-1 flex gap-3`,children:[e.base&&a(n,`base run`),e.compare&&a(r,`compare run`)]})]})}function gF(){let[e]=Fn(),t=e.get(`base`)??``,n=e.get(`compare`)??``,[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!1),[d,f]=(0,v.useState)(`list`),[p,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(new Set),_=Zn(t)&&Zn(n);if((0,v.useEffect)(()=>{t&&n&&_&&(M(`/experiments/compare?base=${encodeURIComponent(t)}&compare=${encodeURIComponent(n)}`).then(i).catch(e=>Xn(e)?u(!0):c(String(e))),Promise.all([M(`/experiments/${encodeURIComponent(t)}`),M(`/experiments/${encodeURIComponent(n)}`)]).then(([e,t])=>o({base:e,compare:t})).catch(e=>c(String(e))))},[t,n,_]),l||t&&n&&!_)return(0,N.jsx)(wO,{what:`experiment ${t} or ${n}`,up:{label:`All experiments`,to:`/experiments`}});if(!t||!n)return(0,N.jsx)(`div`,{className:`pane-status`,children:`Pick two experiments to compare: /experiments/compare?base=…&compare=…`});if(s)return(0,N.jsx)(`div`,{className:`pane-status error`,children:s});if(!r)return(0,N.jsx)(`div`,{className:`pane-status`,children:`Loading comparison…`});let y=JP(r.base,r.compare),b=new Map;y.forEach(e=>b.set(e.change,(b.get(e.change)??0)+1));let x=p?y.filter(e=>e.change===p):y,S=e=>g(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n});return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-3`,children:[(0,N.jsx)(`h1`,{className:`page-title`,children:`Compare`}),(0,N.jsxs)(kn,{className:`chip muted font-mono`,to:`/experiments/${t}`,children:[`base: `,r.base.dataset,` `,r.base.name]}),(0,N.jsx)(`span`,{className:`text-ink-4`,children:`→`}),(0,N.jsxs)(kn,{className:`chip muted font-mono`,to:`/experiments/${n}`,children:[r.compare.dataset,` `,r.compare.name]})]}),[`base`,`compare`].map(e=>HP(r[e])?null:(0,N.jsxs)(`div`,{className:`pane-status`,children:[e,` `,r[e].name,` has no scores`,a&&(0,N.jsxs)(N.Fragment,{children:[`: `,a[e].status,`, `,IN(a[e].progress),a[e].status_error?` (${a[e].status_error})`:``]})]},e)),(0,N.jsx)(`div`,{className:`eyebrow`,children:`Scores`}),(0,N.jsx)(fF,{base:r.base,compare:r.compare}),(0,N.jsx)(pF,{report:r.compare,base:r.base}),(0,N.jsx)(`div`,{className:`eyebrow`,children:`Cases`}),(0,N.jsxs)(`div`,{className:`toolbar mb-1`,children:[UP.filter(e=>b.get(e)).map(e=>(0,N.jsxs)(`button`,{type:`button`,className:`chip ${p===e?``:`muted`}`,onClick:()=>m(p===e?null:e),title:p===e?`show all cases`:`show only ${WP[e]} cases`,children:[b.get(e),` `,WP[e]]},e)),(0,N.jsxs)(`span`,{className:`ml-auto flex gap-1`,children:[(0,N.jsx)(`button`,{type:`button`,className:`btn btn-sm ${d===`list`?`btn-primary`:``}`,onClick:()=>f(`list`),children:`List`}),(0,N.jsx)(`button`,{type:`button`,className:`btn btn-sm ${d===`grid`?`btn-primary`:``}`,onClick:()=>f(`grid`),children:`All evaluators`})]})]}),d===`list`&&(0,N.jsx)(`div`,{className:`card`,children:(0,N.jsx)(`div`,{className:`rows`,children:x.map(e=>(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(`button`,{type:`button`,className:`row w-full grid-cols-[minmax(0,1fr)_auto_auto_auto_7rem] text-left hover:bg-fill`,onClick:()=>S(e.case_id),"aria-expanded":h.has(e.case_id),children:[(0,N.jsx)(`span`,{className:`truncate font-mono`,children:e.case_id}),(0,N.jsx)(`span`,{className:`num sev-fg-${_v(e.base?.overall??null)}`,title:`base mean`,children:vv(e.base?.overall??null)}),(0,N.jsx)(`span`,{className:`num sev-fg-${_v(e.compare?.overall??null)}`,title:`compare mean`,children:vv(e.compare?.overall??null)}),(0,N.jsx)(`span`,{className:`num ${mF(e.delta)}`,children:xv(e.delta)??`—`}),(0,N.jsx)(`span`,{className:`chip muted justify-self-end`,children:WP[e.change]})]}),h.has(e.case_id)&&(0,N.jsx)(hF,{row:e,data:r,base:t,compare:n})]},e.case_id))})}),d===`grid`&&(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(sF,{id:`compare-cases`,report:r.compare,groups:LP(r.compare),rows:x.map(e=>({case_id:e.case_id,row:e.compare,base:e.base})),filtered:p!==null,withBase:!0,caseCell:({case_id:e,row:t})=>t?(0,N.jsx)(kn,{className:`text-inherit`,to:`/experiments/${encodeURIComponent(n)}/${encodeURIComponent(e)}`,target:`_blank`,rel:`noopener`,children:e}):e})})]})}function _F(e){let t=[],n=e.last_sync;if(!n)return``;n.detail.sha&&t.push(n.detail.sha.slice(0,8)),n.detail.branch&&t.push(n.detail.branch),n.detail.dirty&&t.push(`dirty`),typeof n.detail.row_count==`number`&&t.push(`${n.detail.row_count} rows`);let r=jv(n.created_at);return r&&t.push(r),t.join(` · `)}function vF({ds:e}){return(0,N.jsxs)(kn,{className:`row grid-cols-[minmax(0,1fr)_auto_minmax(0,18rem)]`,to:`/datasets/${encodeURIComponent(e.ref)}`,children:[(0,N.jsx)(`span`,{className:`row-strong`,children:e.name}),(0,N.jsx)(`span`,{className:`chip muted`,children:e.kind}),(0,N.jsx)(`span`,{className:`row-meta num truncate text-right`,title:_F(e),children:_F(e)})]})}function yF(){let e=Tr(),{workspace:t}=Ar(),n=vO(e,t),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(``);(0,v.useEffect)(()=>{let e=!1;return i(null),o(null),M(`/datasets${or({workspace:t.name})}`).then(t=>{e||i([...t].sort((e,t)=>e.name.localeCompare(t.name)))}).catch(t=>!e&&o(String(t))),()=>{e=!0}},[t.name]);let l=!r&&!a,u=(r??[]).filter(e=>!s||e.name.toLowerCase().includes(s.toLowerCase()));return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-3`,children:[(0,N.jsx)(`h1`,{className:`page-title`,children:`Datasets`}),(0,N.jsx)(`input`,{className:`input w-64`,placeholder:`Filter datasets`,value:s,onChange:e=>c(e.target.value)}),(0,N.jsx)(`span`,{className:`row-meta ml-auto`,children:l?`Loading…`:`${u.length} datasets`})]}),a&&(0,N.jsx)(`div`,{className:`pane-status error`,children:a}),l&&(0,N.jsx)(`div`,{className:`card rows`,children:Array.from({length:6},(e,t)=>(0,N.jsxs)(`div`,{className:`row grid-cols-[1fr_auto]`,children:[(0,N.jsx)(`span`,{className:`skeleton h-4`,style:{width:`${30+t*6}%`}}),(0,N.jsx)(`span`,{className:`skeleton h-3 w-40`})]},t))}),!l&&(0,N.jsxs)(N.Fragment,{children:[r&&r.length===0&&!n&&(0,N.jsxs)(`div`,{className:`card pane-status`,children:[`No datasets in @`,t.name,`. This workspace is read-only for you.`]}),r&&r.length===0&&n&&(0,N.jsxs)(`div`,{className:`card pane-status`,children:[`No datasets in @`,t.name,` — run`,` `,(0,N.jsx)(`span`,{className:`font-mono`,children:t.type===`shared`?`evalkit sync <dir> --workspace ${t.name}`:`evalkit run finance --agent <your-agent>`}),` `,`from a repo with an evalkit.yaml.`]}),r&&r.length>0&&u.length===0&&(0,N.jsx)(`div`,{className:`card pane-status`,children:`No datasets match this filter.`}),u.length>0&&(0,N.jsx)(`div`,{className:`card rows`,children:u.map(e=>(0,N.jsx)(vF,{ds:e},e.ref))})]})]})}var bF=4,xF=[],SF=[`source`];function CF({dataset:e,reviewed:t,onRun:n}){let[r,i]=Fn(),a=r.get(`tag`)??``,[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)({}),m=t,{workspaces:h}=Ar(),g=h.find(t=>t.name===dr(e).workspace),_=wP(g),y=m&&_!==`target`,b=g?.promotes_to??g?.promoted_from??null,x=m&&_!==null&&b!==null,[S,C]=(0,v.useState)([]),[w,T]=(0,v.useState)(``),[E,D]=(0,v.useState)(new Set),[O,k]=(0,v.useState)(!1),[A,ee]=(0,v.useState)(null),te=`/datasets/${encodeURIComponent(e)}/cases${or({tag:a||void 0})}`;(0,v.useEffect)(()=>{d(null),M(te).then(d).catch(e=>ee(String(e)))},[e,a,te]),(0,v.useEffect)(()=>{D(new Set)},[e]),(0,v.useEffect)(()=>{if(!y)return;let t=dr(e).workspace;M(`/workspaces/${encodeURIComponent(t)}/members?role=reviewer`).then(e=>{let t=e.map(e=>e.username);C(t),T(t[0]??``)}).catch(()=>C([]))},[y,e]),(0,v.useEffect)(()=>{p({}),M(`/datasets/${encodeURIComponent(e)}/case-scores${or({experiments:String(bF)})}`).then(p).catch(()=>p({}))},[e]);let ne=(0,v.useMemo)(()=>[...new Set((u??[]).flatMap(e=>e.split_tags))].sort(),[u]),re=lP,ie=o.trim().toLowerCase(),ae=(0,v.useMemo)(()=>{let e=ie?(u??xF).filter(e=>e.case_id.toLowerCase().includes(ie)||Fv(e.input).toLowerCase().includes(ie)):u??xF;return c?e.filter(e=>e.review?.state===c):e},[u,ie,c]),oe=oN({id:`dataset-cases`,data:ae,columns:(0,v.useMemo)(()=>[{id:`select`,enableSorting:!1,enableHiding:!1,enableResizing:!1,header:()=>(0,N.jsx)(`input`,{type:`checkbox`,"aria-label":`select all shown`,checked:ae.length>0&&ae.every(e=>E.has(e.case_id)),onChange:e=>D(e.target.checked?new Set([...E,...ae.map(e=>e.case_id)]):new Set)}),cell:e=>(0,N.jsx)(`input`,{type:`checkbox`,"aria-label":`select ${e.row.original.case_id}`,checked:E.has(e.row.original.case_id),onChange:t=>ce(e.row.original.case_id,t.target.checked)})},{id:`id`,header:`id`,accessorKey:`case_id`,meta:{wrap:!0,className:`min-w-44 max-w-72`},cell:t=>(0,N.jsx)(kn,{className:`font-mono font-medium text-brand hover:underline`,to:`/datasets/${encodeURIComponent(e)}/cases/${encodeURIComponent(t.row.original.case_id)}`,children:t.row.original.case_id})},{id:`source`,header:`source`,accessorFn:e=>e.source??``,cell:e=>e.row.original.source?(0,N.jsx)(`span`,{className:`row-meta font-mono`,children:e.row.original.source}):(0,N.jsx)(`span`,{className:`row-meta text-ink-4`,children:`—`})},{id:`question`,header:`question`,accessorFn:e=>Fv(e.input),meta:{wrap:!0,className:`min-w-40`},cell:e=>(0,N.jsx)(`span`,{className:`line-clamp-2 text-ink-3`,title:Fv(e.row.original.input),children:Fv(e.row.original.input)})},...re.map(e=>({id:`score:${e.bucket}`,header:e.label,enableSorting:!1,meta:{title:`${e.bucket} bucket, last ${bF} experiments (newest first)`},cell:t=>(0,N.jsx)(mD,{points:(f[t.row.original.case_id]??[]).slice(0,bF),bucket:e.bucket})})),{id:`tags`,header:`tags`,accessorFn:e=>e.split_tags.join(` `),meta:{wrap:!0},cell:e=>(0,N.jsx)(`span`,{className:`flex gap-1`,children:e.row.original.split_tags.map(e=>(0,N.jsx)(`span`,{className:`chip muted`,children:e},e))})},...x?[{id:`twin`,header:b??``,accessorFn:e=>EP(e.twin,_)?.label??``,cell:e=>{let t=EP(e.row.original.twin,_);return t?(0,N.jsx)(`span`,{className:`chip ${t.cls}`,children:t.label}):null}}]:[],...m?[{id:`state`,header:`state`,accessorFn:e=>e.review?.state??``,cell:e=>{let t=e.row.original;return(0,N.jsxs)(`span`,{className:`flex flex-col items-start gap-0.5`,children:[t.review&&!DP(t.twin,_,t.review.state)?(0,N.jsx)(`span`,{className:`chip ${bP(t.review.state)}`,children:yP(t.review.state)}):null,t.review?.state===`review_requested`&&t.review.requested_to?(0,N.jsxs)(`span`,{className:`row-meta`,children:[`→ `,t.review.requested_to]}):null]})}}]:[]],[re,ae,E,f,e,x,m,_,b]),getRowId:e=>e.case_id,defaultHidden:SF}),se=async()=>{k(!0);try{await rr(`/datasets/${encodeURIComponent(e)}/review-requests`,`POST`,{selection:{case_ids:[...E]},reviewer:w}),D(new Set),d(await M(te))}catch(e){ee(String(e))}finally{k(!1)}},ce=(e,t)=>{let n=new Set(E);t?n.add(e):n.delete(e),D(n)};if(A)return(0,N.jsx)(`div`,{className:`pane-status error`,children:A});let le=!u;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`toolbar mb-2`,children:[(0,N.jsx)(`input`,{className:`input w-72`,placeholder:`Filter by id or question`,value:o,onChange:e=>s(e.target.value)}),(0,N.jsx)(xh,{ariaLabel:`tag`,value:a,onChange:e=>i(e?{tag:e}:{}),options:[{value:``,label:`All tags`},...(a&&!ne.includes(a)?[a,...ne]:ne).map(e=>({value:e,label:e}))]}),m&&(0,N.jsx)(xh,{ariaLabel:`review state`,value:c,onChange:l,options:[{value:``,label:`All states`},...vP.map(e=>({value:e,label:yP(e)}))]}),(0,N.jsx)(`span`,{className:`row-meta num ml-auto`,children:le?`Loading…`:`${ae.length} cases`}),(0,N.jsx)(uN,{table:oe,defaultHidden:SF})]}),E.size>0&&(0,N.jsxs)(`div`,{className:`toolbar mb-2 rounded-md border border-brand bg-info-bg px-3 py-2`,children:[(0,N.jsxs)(`span`,{className:`font-medium`,children:[E.size,` selected`]}),(0,N.jsx)(`button`,{className:`btn btn-sm btn-primary`,onClick:()=>n([...E]),children:`Run selected`}),y&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`span`,{className:`row-meta ml-2`,children:`Request review from`}),(0,N.jsx)(xh,{ariaLabel:`reviewer`,value:w,onChange:T,placeholder:`No reviewers`,options:S.map(e=>({value:e,label:e}))}),(0,N.jsx)(`button`,{className:`btn btn-sm`,disabled:O||!w,onClick:se,children:`Request`})]}),(0,N.jsx)(`button`,{className:`btn btn-sm ml-auto`,onClick:()=>D(new Set),children:`✕`})]}),(0,N.jsx)(pN,{table:oe,loading:le,empty:`No cases match this filter.`})]})}function wF(e){let t=e.config.model?` · ${e.config.model.split(`/`).pop()}`:``;return`${e.agent}${t}`}function TF(e){let t=e.config.snapshot.capabilities;return{sha:typeof t.revision==`string`?t.revision:void 0,branch:typeof t.branch==`string`?t.branch:void 0}}var EF=rN();function DF(e){return[...e.map(e=>EF.accessor(t=>fP(t.scores,e.bucket)??void 0,{id:`score:${e.bucket}`,header:e.short,meta:{align:`right`,title:Km(`bucket:${e.bucket}`)??e.label},sortUndefined:`last`,cell:e=>(0,N.jsx)(dD,{score:e.getValue()})})),EF.accessor(e=>e.cost_usd??void 0,{id:`cost`,sortUndefined:`last`,header:`cost`,meta:{align:`right`,title:`mean agent cost per run (gauge_agent_cost_usd)`},cell:e=>(0,N.jsx)(fD,{cost:e.getValue()})}),EF.accessor(e=>e.avg_latency_ms??void 0,{id:`latency`,sortUndefined:`last`,header:`latency`,meta:{align:`right`},cell:e=>{let t=e.getValue();return(0,N.jsx)(`span`,{className:`row-meta num`,children:t?Vv(t):``})}}),EF.accessor(`status`,{id:`status`,header:`status`,cell:e=>(0,N.jsx)(`span`,{className:`chip ${FN[e.getValue()]??`muted`}`,children:e.getValue()})}),EF.accessor(e=>e.progress.evaluated,{id:`cases`,header:`cases`,meta:{align:`right`,title:`cases evaluated / pinned`},cell:e=>{let t=e.row.original.progress;return(0,N.jsx)(`span`,{className:`row-meta num ${RN(t)?`text-warn`:``}`,title:IN(t),children:LN(t)})}}),EF.accessor(e=>wF(e),{id:`agent`,header:`agent`,cell:e=>{let t=e.row.original;return(0,N.jsxs)(`span`,{className:`flex flex-col items-start`,title:e.getValue(),children:[(0,N.jsxs)(`span`,{className:`flex items-center gap-1`,children:[dr(t.agent).name,(0,N.jsx)(uD,{workspace:t.workspace})]}),t.config.model&&(0,N.jsx)(`span`,{className:`row-meta`,children:t.config.model.split(`/`).pop()})]})}}),EF.accessor(e=>e.config.judge?.model??``,{id:`judge`,header:`judge`,meta:{title:`LLM judge model and reasoning effort`},cell:e=>{let t=e.row.original.config.judge;return t?.model?(0,N.jsxs)(`span`,{className:`flex flex-col items-start`,title:t.model,children:[(0,N.jsx)(`span`,{className:`row-meta`,children:t.model.split(`/`).pop()}),t.reasoning_effort&&(0,N.jsx)(`span`,{className:`row-meta text-ink-4`,children:t.reasoning_effort})]}):null}}),EF.accessor(e=>Iv({selection:e.config.selection})??``,{id:`split`,header:`split`,meta:{wrap:!0,title:`dataset split this experiment ran on`},cell:e=>(0,N.jsx)(`span`,{className:`row-meta`,children:e.getValue()})}),EF.accessor(e=>TF(e).sha??``,{id:`rev`,header:`rev`,meta:{title:`harness git revision, and the cases revision`},cell:e=>{let t=e.row.original,n=TF(t),r=t.config.revision;return(0,N.jsxs)(`span`,{className:`flex flex-col`,children:[(0,N.jsx)(hD,{sha:n.sha,branch:n.branch,url:Cr(t.agent,n.sha),compact:!0}),r?.sha&&(0,N.jsxs)(`span`,{className:`num font-mono text-meta text-ink-4`,title:`cases ${r.branch?`${r.branch} @ `:``}${r.sha}${r.dirty?` (dirty)`:``}`,children:[`cases `,r.sha.slice(0,8),r.dirty?`*`:``]})]})}}),EF.accessor(`created_by`,{id:`user`,header:`user`,cell:e=>(0,N.jsx)(gD,{user:e.getValue()})}),EF.accessor(e=>Uv(e.started_at,e.ended_at)??void 0,{id:`took`,header:`took`,meta:{align:`right`,title:`wall time from start to end`},sortUndefined:`last`,cell:e=>{let t=e.getValue();return(0,N.jsx)(`span`,{className:`row-meta num`,children:t===void 0?``:Hv(t)})}}),EF.accessor(`started_at`,{id:`started`,header:`started`,meta:{align:`right`,wrap:!0,className:`min-w-28`},cell:e=>(0,N.jsxs)(`span`,{className:`row-meta`,children:[jv(e.getValue())??``,e.row.original.repetitions>1?` ×${e.row.original.repetitions}`:``]})})]}var OF=[`latency`,`took`,`rev`,`judge`],kF=[];function AF({dataset:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),a=(0,v.useMemo)(()=>dP(t??[]),[t]),o=(0,v.useMemo)(()=>[{id:`number`,header:`#`,accessorKey:`number`,meta:{align:`right`,title:`number in its dataset`},cell:e=>(0,N.jsxs)(kn,{className:`font-mono font-medium text-brand hover:underline`,to:`/experiments/${e.row.original.id}`,title:`experiment ${e.row.original.id}`,children:[`#`,e.row.original.number]})},...DF(a)],[a]),s=oN({id:`dataset-experiments`,data:t??kF,columns:o,getRowId:e=>String(e.id),defaultHidden:OF});if((0,v.useEffect)(()=>{M(`/datasets/${encodeURIComponent(e)}/experiments?limit=200`).then(n).catch(e=>i(String(e)))},[e]),r)return(0,N.jsx)(`div`,{className:`pane-status error`,children:r});if(!t)return(0,N.jsx)(`div`,{className:`card rows`,children:Array.from({length:5},(e,t)=>(0,N.jsxs)(`div`,{className:`row grid-cols-[1fr_auto]`,children:[(0,N.jsx)(`span`,{className:`skeleton h-4`,style:{width:`${25+t*7}%`}}),(0,N.jsx)(`span`,{className:`skeleton h-3 w-40`})]},t))});if(t.length===0)return(0,N.jsxs)(`div`,{className:`pane-status`,children:[`No experiments yet — run one with the button above or`,` `,(0,N.jsxs)(`span`,{className:`font-mono`,children:[`evalkit run `,e,` --agent <agent>`]}),`.`]});let c=zN(t.length);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`toolbar mb-2`,children:[c&&(0,N.jsx)(`p`,{className:`row-meta`,children:c}),(0,N.jsx)(`span`,{className:`ml-auto`,children:(0,N.jsx)(uN,{table:s,defaultHidden:OF})})]}),(0,N.jsx)(pN,{table:s})]})}function jF({splits:e,dataset:t}){return e.length===0?(0,N.jsx)(`div`,{className:`pane-status`,children:`No tags on this dataset's cases yet.`}):(0,N.jsx)(`div`,{className:`card`,children:(0,N.jsx)(`div`,{className:`rows`,children:e.map(e=>(0,N.jsxs)(kn,{className:`row grid-cols-[minmax(0,1fr)_auto] hover:bg-fill`,to:`/datasets/${encodeURIComponent(t)}/cases?tag=${encodeURIComponent(e.name)}`,children:[(0,N.jsx)(`span`,{className:`font-mono`,children:e.name}),(0,N.jsxs)(`span`,{className:`row-meta num`,children:[e.count,` cases`]})]},e.name))})})}function MF(e){let t=new Map;for(let n of e){let e=n.source;e&&t.set(e,(t.get(e)??0)+1)}return[...t].map(([e,t])=>({name:e,count:t})).sort((e,t)=>e.name.localeCompare(t.name))}function NF(e,t){switch(t.scope){case`all`:return e;case`split`:return e.filter(e=>e.split_tags.includes(t.tag));case`file`:return e.filter(e=>e.source===t.file);case`cases`:{let n=new Set(t.caseIds);return e.filter(e=>n.has(e.case_id))}}}function PF(e,t){if(t.scope===`all`)return{all:!0};if(t.scope===`split`)return t.tag?{tag:t.tag}:null;let n=NF(e,t).map(e=>e.case_id);return n.length?{case_ids:n}:null}var FF=e=>/^[\w./:@=+-]+$/.test(e)?e:`'${e.replaceAll(`'`,`'\\''`)}'`;function IF(e){let t=[`evalkit run`,FF(`tag`in e.selection?`${e.dataset}/${e.selection.tag}`:e.dataset),`--agent ${FF(e.agent)}`];return e.repetitions!==1&&t.push(`--runs ${e.repetitions}`),`case_ids`in e.selection&&t.push(...e.selection.case_ids.map(e=>`--case-id ${FF(e)}`)),e.model&&t.push(`--model ${FF(e.model)}`),e.judge&&t.push(`--judge-model ${FF(e.judge.model)}`,`--judge-base-url ${FF(e.judge.base_url)}`,`--judge-effort ${FF(e.judge.reasoning_effort)}`),t.join(` `)}function LF(e){return{model:e.model,base_url:e.base_url,reasoning_effort:e.reasoning_effort}}function RF(e,t){if(!e){let e=t.base_url.trim(),n=t.model.trim();return!e||!n?null:{base_url:e,model:n,reasoning_effort:t.reasoning_effort.trim()||`high`,max_tokens:32768,concurrency:16}}let n={model:t.model.trim()||e.model,base_url:t.base_url.trim()||e.base_url,reasoning_effort:t.reasoning_effort.trim()||e.reasoning_effort};return n.model===e.model&&n.base_url===e.base_url&&n.reasoning_effort===e.reasoning_effort?null:{...e,...n}}var zF=[{id:`all`,label:`All cases`},{id:`split`,label:`Split`},{id:`file`,label:`Case file`},{id:`cases`,label:`Pick cases`}];function BF({dataset:e,splits:t,initialCaseIds:n,onClose:r}){let i=dt(),[a,o]=(0,v.useState)([]),[s,c]=(0,v.useState)(``),[l,u]=(0,v.useState)(null),[d,f]=(0,v.useState)(!1),[p,m]=(0,v.useState)({scope:n?.length?`cases`:`all`,tag:t[0]?.name??``,file:``,caseIds:n??[]}),[h,g]=(0,v.useState)(1),[_,y]=(0,v.useState)(``),[b,x]=(0,v.useState)(null),[S,C]=(0,v.useState)([]),[w,T]=(0,v.useState)({model:``,base_url:``,reasoning_effort:``}),[E,D]=(0,v.useState)(``),[O,k]=(0,v.useState)(!1),[A,ee]=(0,v.useState)(null);(0,v.useEffect)(()=>{M(`/agents`).then(e=>{let t=e.filter(e=>e.driver===`server`);o(t),c(e=>e||t[0]?.ref||``)}).catch(e=>ee(String(e))),M(`/llm-providers`).then(C).catch(e=>ee(String(e))),M(`/judge-default`).then(e=>{x(e),T(LF(e))}).catch(e=>{x(null),e instanceof Jn||ee(String(e))}),M(`/datasets/${encodeURIComponent(e)}/cases`).then(u).catch(e=>ee(String(e))),M(`/datasets/${encodeURIComponent(e)}`).then(e=>f(e.kind===`suite`&&e.workspace_is_shared)).catch(()=>f(!1))},[e]),(0,v.useEffect)(()=>{let e=e=>{e.key===`Escape`&&!e.defaultPrevented&&r()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[r]);let te=(0,v.useMemo)(()=>MF(l??[]),[l]);(0,v.useEffect)(()=>{!p.file&&te.length&&m(e=>({...e,file:te[0].name}))},[te,p.file]),(0,v.useEffect)(()=>{!p.tag&&t.length&&m(e=>({...e,tag:t[0].name}))},[t,p.tag]);let ne=NF(l??[],p),re=PF(l??[],p),ie=b!==null||RF(null,w)!==null,ae=re&&s&&ie?{dataset:e,agent:s,repetitions:h,selection:re,model:_.trim()||null,judge:RF(b,w)}:null,oe=async()=>{if(ae){k(!0),ee(null);try{let e=await rr(`/experiments`,`POST`,ae);i(`/experiments/${e.id}`)}catch(e){ee(e instanceof Error?e.message:String(e)),k(!1)}}},se=e=>m(t=>({...t,scope:e})),ce=new Set(p.caseIds),le=e=>m(t=>({...t,caseIds:ce.has(e)?t.caseIds.filter(t=>t!==e):[...t.caseIds,e]})),ue=E.trim().toLowerCase(),de=(l??[]).filter(e=>!ue||e.case_id.toLowerCase().includes(ue)||Fv(e.input).toLowerCase().includes(ue));return(0,N.jsx)(`div`,{className:`dialog-backdrop`,onMouseDown:r,children:(0,N.jsxs)(`div`,{className:`dialog w-160`,role:`dialog`,"aria-label":`Run experiment`,onMouseDown:e=>e.stopPropagation(),children:[(0,N.jsxs)(`div`,{className:`dialog-head`,children:[(0,N.jsx)(`span`,{className:`font-semibold`,children:`Run experiment`}),(0,N.jsx)(`span`,{className:`row-meta font-mono`,children:e}),(0,N.jsx)(`button`,{className:`btn btn-quiet btn-sm ml-auto`,"aria-label":`close`,onClick:r,children:`✕`})]}),(0,N.jsxs)(`div`,{className:`dialog-body`,children:[(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Agent`}),(0,N.jsx)(xh,{ariaLabel:`agent`,value:s,onChange:c,placeholder:`No shared agents`,options:a.map(e=>({value:e.ref,label:e.ref}))})]}),(0,N.jsxs)(`div`,{className:`form-row items-start`,children:[(0,N.jsx)(`span`,{className:`form-label pt-1.5`,children:`Cases`}),(0,N.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-2`,children:[(0,N.jsx)(`div`,{className:`segment self-start`,children:zF.map(e=>(0,N.jsx)(`button`,{"aria-pressed":p.scope===e.id,disabled:e.id===`split`&&!t.length||e.id===`file`&&!te.length,onClick:()=>se(e.id),children:e.label},e.id))}),p.scope===`split`&&(0,N.jsx)(xh,{ariaLabel:`split`,className:`self-start`,value:p.tag,onChange:e=>m(t=>({...t,tag:e})),options:t.map(e=>({value:e.name,label:e.name,hint:e.count}))}),p.scope===`file`&&(0,N.jsx)(xh,{ariaLabel:`case file`,className:`self-start`,value:p.file,onChange:e=>m(t=>({...t,file:e})),options:te.map(e=>({value:e.name,label:e.name,hint:e.count}))}),p.scope===`cases`&&(0,N.jsxs)(`div`,{className:`picker`,children:[(0,N.jsxs)(`div`,{className:`picker-toolbar`,children:[(0,N.jsx)(`input`,{className:`input h-7 min-w-0 flex-1`,placeholder:`Filter by id or question`,value:E,onChange:e=>D(e.target.value)}),(0,N.jsx)(`button`,{className:`btn btn-sm`,disabled:!de.length,onClick:()=>m(e=>({...e,caseIds:[...new Set([...e.caseIds,...de.map(e=>e.case_id)])]})),children:`Select shown`}),(0,N.jsx)(`button`,{className:`btn btn-sm`,disabled:!p.caseIds.length,onClick:()=>m(e=>({...e,caseIds:[]})),children:`Clear`})]}),(0,N.jsxs)(`div`,{className:`picker-list`,children:[!l&&(0,N.jsx)(`div`,{className:`pane-status`,children:`Loading…`}),de.map(e=>(0,N.jsxs)(`label`,{className:`picker-row check`,children:[(0,N.jsx)(`input`,{type:`checkbox`,checked:ce.has(e.case_id),onChange:()=>le(e.case_id)}),(0,N.jsx)(`span`,{className:`max-w-[60%] shrink-0 truncate font-mono text-ink`,children:e.case_id}),(0,N.jsx)(`span`,{className:`truncate text-ink-3`,children:Fv(e.input)}),d&&e.review&&e.review.state!==`approved`&&(0,N.jsx)(`span`,{className:`chip ml-auto shrink-0 ${bP(e.review.state)}`,children:yP(e.review.state)})]},e.case_id)),l&&!de.length&&(0,N.jsx)(`div`,{className:`pane-status`,children:`No cases match.`})]})]}),(0,N.jsx)(`span`,{className:`row-meta`,children:l===null?`Loading cases…`:`${ne.length} case${ne.length===1?``:`s`}`})]})]}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Repetitions`}),(0,N.jsx)(`input`,{className:`input w-20`,type:`number`,min:1,max:10,value:h,onChange:e=>g(Math.max(1,Math.min(10,Number(e.target.value)||1)))})]}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Model`}),(0,N.jsx)(`input`,{className:`input w-72`,placeholder:`harness default`,value:_,onChange:e=>y(e.target.value),title:`Used only if the harness accepts a model override`})]}),(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:`Judge provider`}),(0,N.jsx)(xh,{ariaLabel:`judge provider`,value:w.base_url,onChange:e=>T(t=>({...t,base_url:e})),options:[...b?[{value:``,label:`server default`}]:[],...S.map(e=>({value:e.base_url,label:`${e.name} (${e.base_url})`}))],title:`LLM providers an admin registered; server runs only judge with these`})]}),!b&&(0,N.jsx)(`p`,{className:`row-meta whitespace-normal`,children:`This server has no default judge yet. Pick a provider and a judge model.`}),[`model`,`reasoning_effort`].map(e=>(0,N.jsxs)(`div`,{className:`form-row`,children:[(0,N.jsx)(`span`,{className:`form-label`,children:e===`model`?`Judge model`:`Judge effort`}),(0,N.jsx)(`input`,{className:`input w-72`,placeholder:b?.[e]??``,value:w[e],onChange:t=>T(n=>({...n,[e]:t.target.value})),title:`Defaults to the server's judge; the experiment records the judge it used`})]},e)),ae&&(0,N.jsxs)(`div`,{className:`form-row items-start`,children:[(0,N.jsx)(`span`,{className:`form-label pt-1`,children:`CLI`}),(0,N.jsxs)(`div`,{className:`cli-preview`,children:[(0,N.jsx)(`code`,{children:IF(ae)}),(0,N.jsx)(Xm,{text:IF(ae)})]})]})]}),(0,N.jsxs)(`div`,{className:`dialog-foot`,children:[A&&(0,N.jsx)(`span`,{className:`text-meta text-err-text`,children:A}),(0,N.jsx)(`button`,{className:`btn btn-quiet ml-auto`,onClick:r,children:`Cancel`}),(0,N.jsx)(`button`,{className:`btn btn-primary`,disabled:O||!ae||ne.length===0,onClick:oe,children:O?`Starting…`:`Start ${ne.length*h} run${ne.length*h===1?``:`s`}`})]})]})})}var VF=[{id:`experiments`,label:`Experiments`},{id:`cases`,label:`Cases`},{id:`splits`,label:`Splits`}];function HF(e){let t=[e.workspace_is_shared?`@${e.workspace}`:`${e.workspace}'s workspace`],n=e.last_sync;if(!n)return t;n.detail.branch&&t.push(n.detail.branch),n.detail.sha&&t.push(n.detail.sha.slice(0,8)),n.detail.dirty&&t.push(`dirty`),typeof n.detail.row_count==`number`&&t.push(`${n.detail.row_count} rows`),t.push(`synced by ${n.detail.actor??n.actor}`);let r=jv(n.created_at);return r&&t.push(r),t}function UF(){let{ref:e=``,tab:t=`experiments`}=ht();jr(dr(e).workspace);let n=dt(),[r,i]=(0,v.useState)([]),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(!1),[l,u]=(0,v.useState)(null),[d,f]=(0,v.useState)(null),p=e.includes(`@`);if((0,v.useEffect)(()=>{c(!1),p&&(M(`/datasets/${encodeURIComponent(e)}`).then(o).catch(e=>Xn(e)?c(!0):u(String(e))),M(`/datasets/${encodeURIComponent(e)}/splits`).then(i).catch(()=>i([])))},[e,p]),s||!p)return(0,N.jsx)(wO,{what:`dataset ${e}`,up:{label:`All datasets`,to:`/datasets`}});if(!VF.some(e=>e.id===t))return(0,N.jsx)(Lt,{to:`/datasets/${encodeURIComponent(e)}/experiments`,replace:!0});let m=a?HF(a):[];return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-2`,children:[(0,N.jsx)(`h1`,{className:`page-title font-mono`,children:e}),m.length>0&&(0,N.jsx)(`span`,{className:`row-meta truncate`,title:m.join(` · `),children:m.join(` · `)}),(0,N.jsx)(`span`,{className:`ml-auto`,children:a?.workspace_is_shared?(0,N.jsx)(`button`,{className:`btn btn-primary`,onClick:()=>f({}),children:`Run experiment`}):(0,N.jsxs)(`span`,{className:`row-meta font-mono`,title:`workspace datasets run from the CLI`,children:[`evalkit run `,e,` --agent <agent>`]})})]}),l&&(0,N.jsx)(`div`,{className:`pane-status error`,children:l}),(0,N.jsx)($m,{tabs:VF,active:t,onSelect:t=>n(`/datasets/${encodeURIComponent(e)}/${t}`)}),(0,N.jsxs)(`div`,{className:`mt-3`,children:[t===`cases`&&(0,N.jsx)(CF,{dataset:e,reviewed:!!a?.workspace_is_shared&&a.kind===`suite`,onRun:e=>f({caseIds:e})}),t===`experiments`&&(0,N.jsx)(AF,{dataset:e}),t===`splits`&&(0,N.jsx)(jF,{splits:r,dataset:e})]}),d&&(0,N.jsx)(BF,{dataset:e,splits:r,initialCaseIds:d.caseIds,onClose:()=>f(null)})]})}var WF={pending:`not run`,ran:`ran, not evaluated`,evaluated:`evaluated`},GF={pending:`muted`,ran:`chip-partial`,evaluated:`chip-pass`};function KF(e,t,n){let r=new Map((n?.cases??[]).map(e=>[e.case_id,e]));return[...e].sort().map(e=>({case_id:e,state:t[e]??`pending`,row:r.get(e)??null}))}function qF(e,t){return e.scores[t]!=null||t in e.errors}function JF(e){return e.run_errors.length>0||Object.keys(e.errors).length>0||Object.values(e.scores).some(e=>e!==null&&e<.8)}function YF(e,t){return`/experiments/compare?base=${e}&compare=${t}`}function XF(e,t){return e.filter(e=>e.id!==t).map(e=>({value:e.id,label:`#${e.number} · ${e.agent}${e.config.model?` · ${e.config.model.split(`/`).pop()}`:``}`}))}function ZF({dataset:e,experimentId:t}){let n=dt(),[r,i]=(0,v.useState)([]);(0,v.useEffect)(()=>{M(`/datasets/${encodeURIComponent(e)}/experiments?limit=200`).then(i).catch(()=>i([]))},[e]);let a=XF(r,t);return a.length===0?null:(0,N.jsx)(xh,{ariaLabel:`compare with`,value:0,placeholder:`Compare with…`,title:`compare this experiment against another run of the same dataset${zN(r.length)?` (${zN(r.length)})`:``}`,options:a,onChange:e=>n(YF(e,t))})}function QF({progress:e}){let t=Math.max(e.total,1),n=100*e.ran/t,r=100*e.evaluated/t;return(0,N.jsxs)(`span`,{className:`flex items-center gap-2`,title:IN(e),children:[(0,N.jsxs)(`span`,{className:`relative h-2 w-40 overflow-hidden rounded bg-line-soft`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":e.total,"aria-valuenow":e.evaluated,children:[(0,N.jsx)(`span`,{className:`absolute inset-y-0 left-0 bg-info-bg`,style:{width:`${n}%`}}),(0,N.jsx)(`span`,{className:`absolute inset-y-0 left-0 bg-brand`,style:{width:`${r}%`}})]}),(0,N.jsx)(`span`,{className:`row-meta num`,children:IN(e)})]})}function $F(){return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Scores`}),(0,N.jsx)(`div`,{className:`grid grid-cols-2 gap-2 md:grid-cols-3 xl:grid-cols-5`,children:Array.from({length:5},(e,t)=>(0,N.jsxs)(`div`,{className:`tile tile-hero`,children:[(0,N.jsx)(`div`,{className:`skeleton h-3 w-24`}),(0,N.jsx)(`div`,{className:`skeleton mt-2 h-7 w-16`})]},t))}),(0,N.jsx)(`div`,{className:`eyebrow`,children:`Cost & speed`}),(0,N.jsx)(`div`,{className:`tile-grid`,children:Array.from({length:10},(e,t)=>(0,N.jsxs)(`div`,{className:`tile`,children:[(0,N.jsx)(`div`,{className:`skeleton h-3 w-20`}),(0,N.jsx)(`div`,{className:`skeleton mt-2 h-4 w-10`})]},t))}),(0,N.jsx)(`div`,{className:`eyebrow`,children:`Cases`}),(0,N.jsx)(`div`,{className:`card`,children:(0,N.jsx)(`div`,{className:`rows`,children:Array.from({length:12},(e,t)=>(0,N.jsxs)(`div`,{className:`row grid-cols-[minmax(0,1fr)_repeat(5,4rem)]`,children:[(0,N.jsx)(`span`,{className:`skeleton h-3.5`,style:{width:`${30+t*4}%`}}),Array.from({length:5},(e,t)=>(0,N.jsx)(`span`,{className:`skeleton h-3.5`},t))]},t))})})]})}function eI(){let{experimentId:e=``}=ht(),[t]=Fn(),n=t.get(`baseline`),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null);jr(a?.workspace);let[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!1),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)(!1),[h,g]=(0,v.useState)(``),[_,y]=(0,v.useState)(null),b=Zn(e),x=()=>{b&&(M(`/experiments/${encodeURIComponent(e)}`).then(o).catch(e=>Xn(e)?u(!0):f(String(e))),M(`/experiments/${encodeURIComponent(e)}/scorecard${or({baseline_id:n??void 0})}`).then(i).catch(e=>Xn(e)?u(!0):f(String(e))))};(0,v.useEffect)(()=>{i(null),o(null),u(!1),f(null),x()},[e,n]),(0,v.useEffect)(()=>{c(null),b&&M(`/experiments/${encodeURIComponent(e)}/cases`).then(c).catch(()=>{})},[e]);let[S,C]=(0,v.useState)(null),w=a?.agent;(0,v.useEffect)(()=>{w&&M(`/agents/${encodeURIComponent(w)}`).then(e=>C(e.driver)).catch(()=>C(null))},[w]),(0,v.useEffect)(()=>{if(!a||!PN(a.status))return;let e=setInterval(x,3e3);return()=>clearInterval(e)},[a?.status]);let T=async t=>{if(!(t===`evaluate`&&a&&VN(a)&&!window.confirm(`Some runs of this experiment have not completed. Resume first to run them; re-evaluating now scores only the runs that finished. Re-evaluate anyway?`))){y(t),f(null);try{await rr(`/experiments/${encodeURIComponent(e)}/${t}`,`POST`)}catch(e){f(e instanceof Error?e.message:String(e))}finally{y(null),x()}}};if(l||!b)return(0,N.jsx)(wO,{what:`experiment ${e}`,up:{label:`All experiments`,to:`/experiments`}});let E=a?.config,D=a?wF(a):null,O=E?Iv({selection:E.selection}):null,k=a?TF(a):{},A=E?.revision??null,ee=!!a&&a.can_change&&a.server_may_drive,te=r?LP(r):[],ne=r?RP(r):null,re=[...te,...ne?[ne]:[]],ie=re.filter(e=>e.label===`by type`||e.kind===`gauge`).flatMap(e=>e.cols),ae=KF((s??[]).map(e=>e.case_id),a?.case_states??{},r),oe=new Map(ae.map(e=>[e.case_id,e.state])),se=ae.filter(e=>!((p||h)&&!e.row||p&&e.row&&!JF(e.row)||h&&e.row&&!qF(e.row,h)));return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-3 flex-wrap`,children:[(0,N.jsxs)(`nav`,{className:`flex shrink-0 items-baseline gap-1.5`,children:[a&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(kn,{className:`shrink-0 text-meta text-ink-3 transition-colors hover:text-brand`,to:`/datasets/${encodeURIComponent(a.dataset)}`,children:a.dataset}),(0,N.jsx)(`span`,{className:`text-ink-4`,"aria-hidden":!0,children:`›`})]}),(0,N.jsx)(`h1`,{className:`max-w-160 truncate font-mono text-head font-semibold`,title:`experiment ${e}`,children:a?`#${a.number}`:e}),(0,N.jsx)(`span`,{className:`row-meta`,children:(0,N.jsx)(Ym,{value:e})})]}),D&&(0,N.jsx)(`span`,{className:`chip muted`,children:D}),E?.snapshot.trajectory_source===`otel`&&(0,N.jsx)(`span`,{className:`chip muted`,title:`trajectories come from collected traces`,children:`traces`}),(0,N.jsx)(uD,{workspace:a?.workspace}),O&&(0,N.jsxs)(`span`,{className:`chip muted`,title:`dataset split this experiment ran on`,children:[`split: `,O]}),(0,N.jsx)(hD,{sha:k.sha,branch:k.branch,url:Cr(a?.agent,k.sha)}),A?.sha&&(0,N.jsxs)(`span`,{className:`chip muted font-mono`,title:`cases ${A.branch?`${A.branch} @ `:``}${A.sha}${A.dirty?` (dirty)`:``}`,children:[`cases `,A.sha.slice(0,8),A.dirty?`*`:``]}),E?.judge?.model&&(0,N.jsxs)(`span`,{id:`judge`,className:`chip muted font-mono`,title:[`judge ${E.judge.model}`,E.judge.base_url,E.judge.reasoning_effort&&`effort ${E.judge.reasoning_effort}`,E.judge.max_tokens!=null&&`max tokens ${E.judge.max_tokens}`,E.judge.concurrency!=null&&`concurrency ${E.judge.concurrency}`].filter(Boolean).join(` · `),children:[`judge `,E.judge.model,E.judge.reasoning_effort?` · ${E.judge.reasoning_effort}`:``]}),E?.snapshot.evalkit_version&&(0,N.jsxs)(`span`,{className:`row-meta font-mono`,title:`evalkit version that ran this experiment`,children:[`evalkit `,E.snapshot.evalkit_version]}),a&&(0,N.jsx)(`span`,{className:`chip ${FN[a.status]??`muted`}`,children:a.status}),a&&(0,N.jsx)(QF,{progress:a.progress}),a&&(0,N.jsx)(YD,{start:a.started_at,end:a.ended_at,running:PN(a.status)}),a&&PN(a.status)&&a.lease_holder&&(0,N.jsxs)(`span`,{className:`row-meta`,title:`who is running this experiment`,children:[`held by `,(0,N.jsx)(`span`,{className:`font-mono`,children:a.lease_holder})]}),n&&(0,N.jsxs)(`span`,{className:`row-meta`,children:[`vs baseline `,(0,N.jsx)(`span`,{className:`font-mono`,children:n})]}),(0,N.jsxs)(`span`,{className:`ml-auto flex items-center gap-2`,children:[a&&(0,N.jsx)(ZF,{dataset:a.dataset,experimentId:a.id}),a&&ee&&(0,N.jsx)(`button`,{className:`btn`,disabled:_!==null||PN(a.status),onClick:()=>T(`evaluate`),title:`re-run the evaluate phase on recorded runs`,children:_===`evaluate`?`Evaluating…`:`Re-evaluate`}),a&&ee&&BN(a)&&(0,N.jsx)(`button`,{className:`btn`,disabled:_!==null,onClick:()=>T(`resume`),children:_===`resume`?`Resuming…`:`Resume`}),a&&!ee&&a.can_change&&BN(a)&&(0,N.jsx)(`span`,{className:`row-meta font-mono`,children:(0,N.jsx)(Ym,{value:HN(a,S??`cli`)})})]})]}),a?.status_error&&(0,N.jsx)(`div`,{className:`pane-status error`,children:a.status_error}),d&&(0,N.jsx)(`div`,{className:`pane-status error`,children:d}),!r&&!d&&(0,N.jsx)($F,{}),r&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Scores`}),(0,N.jsx)(dF,{report:r,onPick:e=>{g(e),document.getElementById(`col-${e}`)?.scrollIntoView({block:`nearest`,inline:`center`})}}),(0,N.jsx)(pF,{report:r}),(0,N.jsx)(`div`,{className:`eyebrow`,children:`Cases`}),(0,N.jsx)(sF,{id:`experiment-cases`,report:r,groups:re,defaultHidden:ie,toggles:[{label:`by type`,title:`show the answer-rubric rates broken down by rubric type`,cols:te.find(e=>e.label===`by type`)?.cols??[]},{label:`gauges`,title:`show per-case gauges: cost, time, tokens, tool calls`,cols:ne?.cols??[]}],sortBy:h,toolbar:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(xh,{ariaLabel:`evaluator`,value:h,onChange:g,title:`focus one evaluator: sorts by it, worst first, and drops cases it never scored`,options:[{value:``,label:`All evaluators`},...r.evaluator_columns.map(e=>({value:e,label:e}))]}),(0,N.jsxs)(`label`,{className:`check`,children:[(0,N.jsx)(`input`,{type:`checkbox`,checked:p,onChange:e=>m(e.target.checked)}),`failing only`]})]}),rows:se.map(({case_id:e,row:t})=>({case_id:e,row:t??null})),filtered:se.length!==ae.length,caseCell:({case_id:t,row:n})=>{let r=oe.get(t);return(0,N.jsxs)(N.Fragment,{children:[r===`pending`?(0,N.jsx)(`span`,{title:`this case has not run yet`,children:t}):(0,N.jsx)(kn,{to:`/experiments/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,target:`_blank`,rel:`noopener`,className:`text-inherit`,title:`open this case's run in a new tab`,onClick:e=>e.stopPropagation(),children:t}),(0,N.jsx)(`span`,{className:`chip ${GF[r]} ml-2`,children:WF[r]}),a&&(0,N.jsx)(kn,{to:`/datasets/${encodeURIComponent(a.dataset)}/cases/${encodeURIComponent(t)}`,target:`_blank`,rel:`noreferrer`,className:`ml-2 text-micro text-ink-3 hover:text-brand hover:underline`,title:`open the case definition in its dataset (new tab)`,onClick:e=>e.stopPropagation(),children:`def ↗`}),n&&n.run_errors.length>0&&(0,N.jsx)(`span`,{className:`chip chip-fail ml-2`,title:n.run_errors.join(`
|
|
736
|
+
`),children:`run error`})]})}}),(0,N.jsxs)(`div`,{className:`num mt-2 text-micro text-ink-3`,children:[ae.length,` cases`,r.baseline_id?` · vs ${r.baseline_id}`:``]})]}),r&&ae.length===0&&(0,N.jsx)(`div`,{className:`pane-status`,children:`This experiment pinned no cases.`})]})}var tI=[`latency`,`took`,`rev`,`judge`];function nI(){let{workspace:e}=Ar(),[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(``),[s,c]=(0,v.useState)(``),[l,u]=(0,v.useState)(``);(0,v.useEffect)(()=>{let t=!1;return n(null),i(null),u(``),M(`/experiments${or({workspace:e.name,limit:`200`})}`).then(e=>!t&&n(e)).catch(e=>!t&&i(String(e))),()=>{t=!0}},[e.name]);let d=(0,v.useMemo)(()=>dP(t??[]),[t]),f=(0,v.useMemo)(()=>[{id:`dataset`,header:`dataset`,accessorFn:e=>dr(e.dataset).name,meta:{wrap:!0},cell:e=>(0,N.jsx)(kn,{to:`/datasets/${encodeURIComponent(e.row.original.dataset)}`,className:`row-meta hover:text-brand`,title:e.row.original.dataset,children:e.getValue()})},{id:`number`,header:`#`,accessorKey:`number`,meta:{align:`right`,title:`number in its dataset`},cell:e=>(0,N.jsxs)(kn,{to:`/experiments/${e.row.original.id}`,className:`font-mono font-medium text-brand hover:underline`,title:`experiment ${e.row.original.id}`,children:[`#`,e.row.original.number]})},...DF(d)],[d]),p=!t&&!r,m=[...new Set((t??[]).map(e=>e.agent))].sort(),h=(t??[]).filter(e=>!(a&&!`#${e.number} ${e.id} ${e.dataset}`.toLowerCase().includes(a.toLowerCase())||s&&e.status!==s||l&&e.agent!==l)),g=oN({id:`experiments`,data:h,columns:f,getRowId:e=>String(e.id),defaultHidden:tI});return(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-3`,children:[(0,N.jsx)(`h1`,{className:`page-title`,children:`Experiments`}),(0,N.jsx)(`input`,{className:`input w-64`,placeholder:`Filter name or dataset`,value:a,onChange:e=>o(e.target.value)}),(0,N.jsx)(xh,{ariaLabel:`status`,value:s,onChange:c,options:[{value:``,label:`All statuses`},...MN.map(e=>({value:e,label:e}))]}),(0,N.jsx)(xh,{ariaLabel:`agent`,value:l,onChange:u,options:[{value:``,label:`All agents`},...m.map(e=>({value:e,label:e}))]}),(0,N.jsx)(`span`,{className:`row-meta ml-auto`,title:zN(t?.length??0)??void 0,children:p?`Loading…`:`${h.length} experiments${zN(t?.length??0)?` (of the latest 200)`:``}`}),(0,N.jsx)(uN,{table:g,defaultHidden:tI})]}),r&&(0,N.jsx)(`div`,{className:`pane-status error`,children:r}),(0,N.jsx)(pN,{table:g,loading:p,empty:t&&t.length===0?`No experiments in @${e.name} yet.`:`No experiments match this filter.`})]})}function rI(e,t){return e.find(e=>e.run_id===t)?.title??null}function iI(e,t){let n=e.find(e=>e.run_id===t);return!n?.experiment_id||!n.case_id?null:`/experiments/${n.experiment_id}/${encodeURIComponent(n.case_id)}`}function aI(e){return e===`valid`||e===`partial`}function oI(e,t,n){let r=[];return e.trajectory_source===`otel`&&(r.push(`traces`),r.push(n==null?`no mapping`:`mapping v${n}`)),t===`partial`&&r.push(`partial`),r.length?r.join(` · `):null}var sI=[`items`,`steps`,`verdicts`];function cI(e){let t={score:e.value,label:e.label,explanation:e.error?`error: ${e.error}`:e.explanation},n=e.explanation?.trim();if(!n||!n.startsWith(`{`)&&!n.startsWith(`[`))return t;let r;try{r=JSON.parse(n)}catch{return t}if(Array.isArray(r))return r.every(e=>e&&typeof e==`object`)&&(t.items=r,t.explanation=null),t;if(r&&typeof r==`object`){let e=r;for(let n of sI){let r=e[n];if(Array.isArray(r)&&r.every(e=>e&&typeof e==`object`)){t.items=r;break}}let n=Object.fromEntries(Object.entries(e).filter(([e])=>!sI.includes(e)));if(Object.keys(n).length&&(t.detail=n),t.explanation=null,t.items){let e={};for(let n of t.items){let t=n.verdict??n.status;if(t===void 0)continue;let r=typeof t==`string`?t:Ov(t);e[r]=(e[r]??0)+1}Object.keys(e).length&&(t.summary=e)}}return t}function lI(e){let t={};for(let n of e)n.kind!==`gauge`&&(t[n.name]=cI(n));return t}function uI(e){return e.filter(e=>e.kind===`gauge`)}function dI({value:e,label:t,sub:n,title:r,hero:i=!1}){return(0,N.jsxs)(`div`,{className:`tile ${i?`tile-hero`:``}`,title:r,children:[(0,N.jsx)(`div`,{className:`tile-label`,children:t}),(0,N.jsx)(`div`,{className:`tile-value`,children:e}),n&&(0,N.jsx)(`div`,{className:`tile-sub`,children:n})]})}function fI({title:e,rows:t}){if(t.length===0)return null;let n=Math.max(...t.map(e=>e.cost),0);return(0,N.jsxs)(`section`,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:e}),(0,N.jsx)(`div`,{className:`card`,children:(0,N.jsxs)(`table`,{className:`data-table`,children:[(0,N.jsx)(`thead`,{children:(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(`th`,{children:`key`}),(0,N.jsx)(`th`,{className:`col-num`,children:`calls`}),(0,N.jsx)(`th`,{className:`col-num`,children:`input`}),(0,N.jsx)(`th`,{className:`col-num`,children:`output`}),(0,N.jsx)(`th`,{className:`col-num`,children:`cache read`}),(0,N.jsx)(`th`,{className:`col-num`,children:`cost`})]})}),(0,N.jsx)(`tbody`,{children:t.map(e=>(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(`td`,{className:`font-mono`,children:e.key}),(0,N.jsx)(`td`,{className:`num col-num`,children:e.calls}),(0,N.jsx)(`td`,{className:`num col-num`,children:zv(e.input)}),(0,N.jsx)(`td`,{className:`num col-num`,children:zv(e.output)}),(0,N.jsx)(`td`,{className:`num col-num`,children:zv(e.cache_read)}),(0,N.jsx)(`td`,{className:`num col-num bar`,style:{"--bar":n>0?e.cost/n:0},children:e.unpriced?`—`:Lv(e.cost)})]},e.key))})]})})]})}function pI({doc:e}){let t=(0,v.useMemo)(()=>iy(py(e)),[e]),n=t.summary;return(0,N.jsxs)(`div`,{className:`max-w-[68rem]`,children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Spend`}),(0,N.jsx)(`div`,{className:`grid grid-cols-2 gap-2 lg:grid-cols-3`,children:(0,N.jsx)(dI,{hero:!0,value:n.cost===null?`—`:Lv(n.cost),label:`cost`,sub:`${n.calls} llm calls · ${n.steps} steps`,title:`Sum of the per-step cost_usd metrics the harness reported in the trajectory.`})}),(0,N.jsx)(`div`,{className:`eyebrow`,children:`Tokens`}),(0,N.jsxs)(`div`,{className:`tile-grid`,children:[(0,N.jsx)(dI,{value:Rv(n.input),label:`input`}),(0,N.jsx)(dI,{value:Rv(n.output),label:`output`}),(0,N.jsx)(dI,{value:Rv(n.cache_read),label:`cache read`}),(0,N.jsx)(dI,{value:String(n.models.length),label:`models`,sub:n.models.join(`, `),title:n.models.join(`, `)})]}),n.unpriced_models.length>0&&(0,N.jsxs)(`div`,{className:`mt-2 text-meta text-warn`,children:[`Unpriced models (token counts only): `,n.unpriced_models.join(`, `)]}),(0,N.jsx)(fI,{title:`Per model`,rows:t.by_model}),t.by_agent.length>1&&(0,N.jsx)(fI,{title:`Per agent`,rows:t.by_agent}),t.tool_calls.length>0&&(0,N.jsxs)(`section`,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Tool calls`}),(0,N.jsx)(`div`,{className:`card`,children:(0,N.jsxs)(`table`,{className:`data-table`,children:[(0,N.jsx)(`thead`,{children:(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(`th`,{children:`tool`}),(0,N.jsx)(`th`,{className:`col-num`,children:`calls`}),(0,N.jsx)(`th`,{className:`col-num`,children:`errors`})]})}),(0,N.jsx)(`tbody`,{children:t.tool_calls.map(e=>(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(`td`,{className:`font-mono`,children:e.key}),(0,N.jsx)(`td`,{className:`num col-num`,children:e.calls}),(0,N.jsx)(`td`,{className:`num col-num ${e.errors?`text-err-text`:``}`,children:e.errors||``})]},e.key))})]})})]})]})}function mI({row:e,max:t}){return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`td`,{className:`num col-num`,children:[`#`,e.step]}),(0,N.jsx)(`td`,{children:e.agent}),(0,N.jsx)(`td`,{children:e.source}),(0,N.jsx)(`td`,{className:`max-w-80 truncate font-mono`,title:e.tools.join(`, `),children:e.tools.join(`, `)}),(0,N.jsx)(`td`,{className:`num col-num`,children:Vv(e.start_ms)}),(0,N.jsx)(`td`,{className:`num col-num bar`,style:{"--bar":t>0&&e.duration_ms!==null?e.duration_ms/t:0},children:e.duration_ms===null?`—`:Vv(e.duration_ms)})]})}function hI({title:e,rows:t}){if(t.length===0)return null;let n=Math.max(...t.map(e=>e.duration_ms??0),0);return(0,N.jsxs)(`section`,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:e}),(0,N.jsx)(`div`,{className:`card`,children:(0,N.jsxs)(`table`,{className:`data-table`,children:[(0,N.jsx)(`thead`,{children:(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(`th`,{className:`col-num`,children:`step`}),(0,N.jsx)(`th`,{children:`agent`}),(0,N.jsx)(`th`,{children:`source`}),(0,N.jsx)(`th`,{children:`tools`}),(0,N.jsx)(`th`,{className:`col-num`,children:`start`}),(0,N.jsx)(`th`,{className:`col-num`,children:`duration`})]})}),(0,N.jsx)(`tbody`,{children:t.map(e=>(0,N.jsx)(`tr`,{children:(0,N.jsx)(mI,{row:e,max:n})},`${e.agent}-${e.step}`))})]})})]})}function gI({doc:e}){let t=(0,v.useMemo)(()=>sy(py(e)),[e]);return t.timed_steps===0?(0,N.jsx)(`div`,{className:`pane-status`,children:`No step timestamps in this trajectory — timing needs at least two timestamped steps.`}):(0,N.jsxs)(`div`,{className:`max-w-[68rem]`,children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Wall clock`}),(0,N.jsxs)(`div`,{className:`tile-grid`,children:[(0,N.jsxs)(`div`,{className:`tile tile-hero`,children:[(0,N.jsx)(`div`,{className:`tile-label`,children:`total`}),(0,N.jsx)(`div`,{className:`tile-value`,children:t.wall_ms===null?`—`:Vv(t.wall_ms)})]}),(0,N.jsxs)(`div`,{className:`tile`,children:[(0,N.jsx)(`div`,{className:`tile-label`,children:`steps`}),(0,N.jsx)(`div`,{className:`tile-value`,children:t.steps})]}),(0,N.jsxs)(`div`,{className:`tile`,title:`steps whose duration is measurable — the gap to the next timestamped step`,children:[(0,N.jsx)(`div`,{className:`tile-label`,children:`timed steps`}),(0,N.jsx)(`div`,{className:`tile-value`,children:t.timed_steps})]})]}),(0,N.jsx)(hI,{title:`Slowest steps`,rows:t.slowest}),(0,N.jsx)(hI,{title:`All steps`,rows:t.rows})]})}var _I=new Set([`png`,`jpg`,`jpeg`,`gif`,`webp`,`bmp`,`ico`,`avif`]),vI=new Set([`md`,`html`,`htm`,`svg`]),yI=4194304,bI={py:`python`,ts:`typescript`,tsx:`typescript`,js:`javascript`,jsx:`javascript`,json:`json`,jsonl:`json`,md:`markdown`,html:`html`,htm:`html`,svg:`xml`,xml:`xml`,css:`css`,yml:`yaml`,yaml:`yaml`,toml:`ini`,ini:`ini`,sh:`shell`,bash:`shell`,sql:`sql`,csv:`plaintext`};function xI(e){return e.split(`/`).map(encodeURIComponent).join(`/`)}function SI(e){return`download failed: ${e instanceof Error?e.message:String(e)}`}function CI(e){return e.split(`.`).pop()?.toLowerCase()??``}function wI(e){let t=[],n=new Map,r=e=>{if(!e)return t;let i=n.get(e);if(i)return i.children;let a=e.lastIndexOf(`/`),o={name:a===-1?e:e.slice(a+1),path:e,type:`dir`,children:[]};return n.set(e,o),r(a===-1?``:e.slice(0,a)).push(o),o.children};for(let t of e){let e=t.path.lastIndexOf(`/`);r(e===-1?``:t.path.slice(0,e)).push({name:e===-1?t.path:t.path.slice(e+1),path:t.path,type:`file`,size:t.size})}let i=e=>{e.sort((e,t)=>Number(t.type===`dir`)-Number(e.type===`dir`)||e.name.localeCompare(t.name));for(let t of e)t.children&&i(t.children)};return i(t),t}function TI(e,t){if(!t)return e;let n=[];for(let r of e)if(r.type===`dir`){let e=TI(r.children??[],t);e.length?n.push({...r,children:e}):r.name.toLowerCase().includes(t)&&n.push(r)}else r.name.toLowerCase().includes(t)&&n.push(r);return n}function EI({base:e,node:t,depth:n,selected:r,onSelect:i,onError:a,forceOpen:o}){let[s,c]=(0,v.useState)(n===0),l=s||o,u={paddingLeft:`${n*14+6}px`};return t.type===`dir`?(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(`div`,{className:`group flex cursor-pointer items-center gap-1 py-0.5 pr-2 text-meta font-medium text-ink hover:bg-fill`,style:u,onClick:()=>c(!l),children:[(0,N.jsx)(`span`,{className:`text-ink-4`,children:l?`▾`:`▸`}),(0,N.jsxs)(`span`,{children:[t.name,`/`]}),(0,N.jsx)(`button`,{className:`ml-auto hidden text-micro text-ink-3 group-hover:inline hover:text-brand`,title:`download folder as zip`,onClick:n=>{n.stopPropagation(),ar(`${e}/zip${or({path:t.path})}`).catch(e=>a(SI(e)))},children:`⇩ zip`})]}),l&&t.children?.map(t=>(0,N.jsx)(EI,{base:e,node:t,depth:n+1,selected:r,onSelect:i,onError:a,forceOpen:o},t.path))]}):(0,N.jsxs)(`button`,{className:`flex w-full items-center gap-2 py-0.5 pr-2 text-left text-meta transition-colors ${r===t.path?`bg-info-bg text-brand`:`text-ink-2 hover:bg-fill`}`,style:u,onClick:()=>i(t),title:t.path,children:[(0,N.jsx)(`span`,{className:`truncate font-mono`,children:t.name}),(0,N.jsx)(`span`,{className:`num ml-auto shrink-0 text-micro text-ink-4`,children:Bv(t.size??0)})]})}function DI(e){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null);return(0,v.useEffect)(()=>{if(n(null),i(null),!e)return;let t=null,r=!1;return ir(e).then(e=>{r?URL.revokeObjectURL(e):(t=e,n(e))}).catch(e=>!r&&i(String(e))),()=>{r=!0,t&&URL.revokeObjectURL(t)}},[e]),{url:t,error:r}}function OI({base:e,node:t}){let{theme:n}=Bm(),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null),s=CI(t.name),c=vI.has(s),[l,u]=(0,v.useState)(c?`preview`:`source`),d=`${e}/files/${xI(t.path)}`,f=_I.has(s),p=s===`pdf`,m=(t.size??0)>yI,h=DI(f||p||c&&l===`preview`&&(s===`svg`||s===`html`||s===`htm`)&&!m?d:null);(0,v.useEffect)(()=>{i(null),o(null),u(vI.has(CI(t.name))?`preview`:`source`),!(f||p||m)&&nr(d).then(async e=>{if(e.status===404){let t=await e.json().catch(()=>({}));throw Error(t.detail===`not found on the harness: wrong path, or the harness no longer has it`?`The harness doesn't have this file: the path is wrong, or the harness has dropped the session. Only stored deliverables outlive the session.`:`No such file.`)}if(!e.ok)throw Error(`Failed to load file: ${e.statusText}`);let n=await e.text();if(CI(t.name)===`json`)try{i(JSON.stringify(JSON.parse(n),null,2));return}catch{}i(n)}).catch(e=>o(e.message))},[d,f,p,m,t.name]);let g=!f&&!p&&(!c||l===`source`),_=!f&&c&&l===`preview`&&!m;return(0,N.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,N.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-line bg-surface px-3 py-1.5 text-meta`,children:[(0,N.jsx)(`span`,{className:`truncate font-mono`,children:t.path}),(0,N.jsx)(`span`,{className:`num shrink-0 text-ink-3`,children:Bv(t.size??0)}),(0,N.jsxs)(`div`,{className:`ml-auto flex shrink-0 items-center gap-2`,children:[c&&!m&&(0,N.jsx)(`div`,{className:`segment`,children:[`preview`,`source`].map(e=>(0,N.jsx)(`button`,{"aria-pressed":l===e,onClick:()=>u(e),children:e},e))}),r!==null&&(0,N.jsx)(Xm,{text:r}),(0,N.jsx)(`button`,{className:`btn btn-sm`,onClick:()=>ar(`${d}${or({download:`1`})}`).catch(e=>o(SI(e))),children:`Download`})]})]}),(0,N.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-auto`,children:[(a||h.error)&&(0,N.jsx)(`div`,{className:`pane-status error`,children:a??h.error}),f&&h.url&&(0,N.jsx)(`img`,{src:h.url,className:`max-h-full max-w-full p-4`}),p&&h.url&&(0,N.jsx)(`iframe`,{className:`h-full w-full border-0`,src:h.url,title:`pdf`}),m&&g&&(0,N.jsx)(`div`,{className:`pane-status`,children:`File is too large to display inline — use Download.`}),_&&(s===`md`?(0,N.jsx)(`div`,{className:`md-body max-w-3xl p-4 text-meta`,children:(0,N.jsx)(Su,{remarkPlugins:[Dp],children:r??``})}):s===`svg`?h.url&&(0,N.jsx)(`img`,{src:h.url,className:`max-h-full max-w-full p-4`}):h.url&&(0,N.jsx)(`iframe`,{className:`h-full w-full border-0`,sandbox:`allow-scripts`,src:h.url,title:`preview`})),g&&!m&&r===null&&!a&&(0,N.jsx)(`div`,{className:`pane-status`,children:`Loading…`}),g&&r!==null&&(0,N.jsx)(Lm,{height:`100%`,theme:Vm(n),language:bI[s]??`plaintext`,value:r,options:{readOnly:!0,minimap:{enabled:!1},fontSize:12,wordWrap:s===`md`||s===`txt`?`on`:`off`,scrollBeyondLastLine:!1,renderLineHighlight:`none`}})]})]})}var kI=`evalkit.workspace.treeWidth`,AI=180,jI=.6;function MI({agent:e,runId:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(null),f=(0,v.useRef)(null),[p,m]=(0,v.useState)(()=>{let e=Number(localStorage.getItem(kI));return Number.isFinite(e)&&e>=AI?e:288}),h=e=>{if(!e.currentTarget.hasPointerCapture(e.pointerId))return;let t=f.current?.getBoundingClientRect();t&&m(Math.min(Math.max(e.clientX-t.left,AI),t.width*jI))},g=`/agents/${encodeURIComponent(e)}/runs/${encodeURIComponent(t)}`;(0,v.useEffect)(()=>{r(null),s(null),M(`${g}/files`).then(e=>r(e.files)).catch(e=>a(`${e instanceof Error?e.message:e} — the harness may have pruned this session's workspace`))},[g]);let _=(0,v.useMemo)(()=>wI(n??[]),[n]);if(i)return(0,N.jsx)(`div`,{className:`pane-status error`,children:i});if(!n)return(0,N.jsx)(`div`,{className:`space-y-1.5 p-2`,children:Array.from({length:8},(e,t)=>(0,N.jsx)(`div`,{className:`skeleton h-4`,style:{width:`${20+t*7}%`}},t))});if(n.length===0)return(0,N.jsx)(`div`,{className:`pane-status`,children:`Workspace is empty.`});let y=c.trim().toLowerCase(),b=TI(_,y);return(0,N.jsxs)(`div`,{ref:f,className:`flex h-[calc(100dvh-16rem)] min-h-96 overflow-hidden rounded-lg border border-line`,children:[(0,N.jsxs)(`div`,{className:`flex shrink-0 flex-col border-r border-line bg-surface`,style:{width:p},children:[(0,N.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-line-soft p-2`,children:[(0,N.jsx)(`input`,{className:`input btn-sm min-w-0 flex-1`,placeholder:`Filter files`,value:c,onChange:e=>l(e.target.value)}),(0,N.jsx)(`button`,{className:`btn btn-sm btn-quiet shrink-0`,title:`download the whole workspace as zip`,onClick:()=>ar(`${g}/zip`).catch(e=>d(SI(e))),children:`⇩ zip all`})]}),u&&(0,N.jsx)(`div`,{className:`pane-status error cursor-pointer`,title:`dismiss`,onClick:()=>d(null),children:u}),(0,N.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-auto py-1`,children:[b.map(e=>(0,N.jsx)(EI,{base:g,node:e,depth:0,selected:o?.path??null,onSelect:s,onError:d,forceOpen:!!y},e.path)),y&&b.length===0&&(0,N.jsx)(`div`,{className:`px-3 py-2 text-meta text-ink-3`,children:`No files match.`})]})]}),(0,N.jsx)(`div`,{className:`w-1.5 shrink-0 cursor-col-resize touch-none bg-surface transition-colors hover:bg-brand-ring`,role:`separator`,"aria-orientation":`vertical`,"aria-label":`resize file tree`,onPointerDown:e=>{e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId)},onPointerMove:h,onPointerUp:e=>{e.currentTarget.releasePointerCapture(e.pointerId),m(e=>(localStorage.setItem(kI,String(Math.round(e))),e))}}),(0,N.jsx)(`div`,{className:`min-w-0 flex-1 bg-surface`,children:o?(0,N.jsx)(OI,{base:g,node:o},o.path):(0,N.jsxs)(`div`,{className:`pane-empty`,children:[(0,N.jsx)(`div`,{children:`Pick a file from the tree to view it.`}),(0,N.jsx)(`div`,{className:`text-micro text-ink-4`,children:`Markdown, HTML, SVG and images render inline.`})]})})]})}var NI=[`trajectory`,`cost`,`timing`];function PI(){return(0,N.jsx)(`div`,{className:`space-y-2`,children:Array.from({length:5},(e,t)=>(0,N.jsx)(`div`,{className:`skeleton h-10`,style:{width:`${100-t*7}%`}},t))})}function FI({tab:e,trajectory:t,error:n,agent:r,runId:i}){return e===`workspace`?r&&i?(0,N.jsx)(MI,{agent:r,runId:i}):null:NI.includes(e)?n?(0,N.jsx)(`div`,{className:`pane-status error`,children:n}):t?e===`cost`?(0,N.jsx)(pI,{doc:t}):e===`timing`?(0,N.jsx)(gI,{doc:t}):(0,N.jsx)(aO,{doc:t}):(0,N.jsx)(PI,{}):null}var II=[`case`,`scores`,`trajectory`,`workspace`,`cost`,`timing`];function LI(){let{experimentId:e=``,exampleId:t=``}=ht(),[n,r]=(0,v.useState)(null);jr(n?.workspace);let[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(!1),[u,d]=(0,v.useState)(1),[f,p]=Fn(),m=f.get(`tab`)??``,h=II.includes(m)?m:`case`,g=e=>{let t=new URLSearchParams(f);e===`case`?t.delete(`tab`):t.set(`tab`,e),p(t,{replace:!0})},[_,y]=(0,v.useState)(null),[b,x]=(0,v.useState)(null),[S,C]=(0,v.useState)(null),w=Zn(e);(0,v.useEffect)(()=>{l(!1),w&&(M(`/experiments/${encodeURIComponent(e)}`).then(r).catch(e=>Xn(e)?l(!0):C(String(e))),M(`/experiments/${encodeURIComponent(e)}/cases`).then(e=>s(e.find(e=>e.case_id===t)??null)).catch(()=>{}),M(`/experiments/${encodeURIComponent(e)}/runs`).then(e=>a(e.filter(e=>e.case_id===t))).catch(e=>Xn(e)?l(!0):C(String(e))))},[e,t,w]);let T=i?.find(e=>e.repetition===u)??i?.[0]??null;if((0,v.useEffect)(()=>{y(null),x(null)},[T]),(0,v.useEffect)(()=>{NI.includes(h)&&T&&!_&&!b&&M(`/experiments/${encodeURIComponent(e)}/runs/${T.experiment_run_id}/trajectory`).then(y).catch(e=>x(String(e)))},[h,T,e,_,b]),c||!w)return(0,N.jsx)(wO,{what:`experiment ${e}`,up:{label:`All experiments`,to:`/experiments`}});if(S)return(0,N.jsx)(`div`,{className:`pane-status error`,children:S});if(!i)return(0,N.jsx)(`div`,{className:`pane-status`,children:`Loading run…`});if(i.length===0&&o)return(0,N.jsx)(`div`,{className:`page`,children:(0,N.jsxs)(`div`,{className:`pane-status`,children:[`This case has not run yet in experiment `,e,`.`,` `,(0,N.jsx)(kn,{className:`text-brand`,to:`/experiments/${encodeURIComponent(e)}`,children:`Back to the experiment`})]})});if(i.length===0)return(0,N.jsx)(wO,{what:`run of ${t} in experiment ${e}`,up:{label:`experiment ${e}`,to:`/experiments/${encodeURIComponent(e)}`}});let E=T?.agent_run??null,D=T?lI(T.evaluations):{},O=T?uI(T.evaluations):[],k=Nv(E?.output),A=E?.answer!=null,ee=n?.agent,te=n?wF(n):null,ne=E?.harness_run_id??null,re=E?.trajectory_status??null,ie=_?.extra?.mapping_version,ae=oI({trajectory_source:n?.config.snapshot.trajectory_source},re,typeof ie==`number`?ie:null),oe=ne;return(0,N.jsxs)(`div`,{className:`page flex h-full flex-col`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-2`,children:[(0,N.jsx)(`h1`,{className:`max-w-160 truncate font-mono text-head font-semibold`,children:t}),ne&&(0,N.jsx)(`span`,{className:`row-meta font-mono`,title:`harness run id`,children:(0,N.jsx)(Ym,{value:ne})}),te&&(0,N.jsx)(`span`,{className:`chip muted`,title:`agent · model`,children:te}),ae&&(0,N.jsx)(`span`,{className:`chip muted`,title:`trajectory source and mapping`,children:ae}),E&&(0,N.jsx)(YD,{start:E.started_at,end:E.ended_at}),(o?.split_tags??[]).map(e=>(0,N.jsx)(cD,{children:e},e)),i.length>1&&(0,N.jsx)(xh,{ariaLabel:`repetition`,value:u,onChange:d,options:i.map(e=>({value:e.repetition,label:`repetition ${e.repetition}`}))}),n?.config.judge?.model&&(0,N.jsxs)(kn,{className:`row-meta ml-auto font-mono hover:underline`,to:`/experiments/${encodeURIComponent(e)}#judge`,title:`one judge scores the whole experiment; its settings are on the experiment page`,children:[`judge `,n.config.judge.model]}),(0,N.jsx)(kn,{className:`btn btn-quiet text-brand ${n?.config.judge?.model?``:`ml-auto`}`,to:`/experiments/${encodeURIComponent(e)}`,children:`Experiment ↗`})]}),E?.error&&(0,N.jsxs)(`div`,{className:`pane-status error`,children:[`run error: `,E.error]}),O.length>0&&(0,N.jsx)(`div`,{className:`num mt-1 flex flex-wrap gap-3 text-micro text-ink-3`,children:O.filter(e=>e.value!==null).map(e=>(0,N.jsxs)(`span`,{className:`inline-flex items-center gap-1`,title:e.explanation??e.name,children:[e.name.replace(/^gauge_/,``).replaceAll(`_`,` `),` `,bv(e.name,e.value),(0,N.jsx)(qm,{term:e.name})]},e.name))}),(0,N.jsx)(`div`,{className:`mt-3`,children:(0,N.jsx)($m,{tabs:[{id:`case`,label:`Case`},{id:`scores`,label:`Scores`},{id:`trajectory`,label:`Trajectory`,disabled:!aI(re),title:aI(re)?void 0:`trajectory ${re??`not recorded`}`},{id:`workspace`,label:`Workspace`,disabled:!ee||!oe,title:oe?void 0:`no run id recorded for this run`},{id:`cost`,label:`Cost`,disabled:!aI(re),title:aI(re)?void 0:`trajectory ${re??`not recorded`}`},{id:`timing`,label:`Timing`,disabled:!aI(re),title:aI(re)?void 0:`trajectory ${re??`not recorded`}`}],active:h,onSelect:g})}),(0,N.jsx)(`div`,{className:`mt-3 flex min-h-96 flex-1 flex-col`,children:h===`case`?(0,N.jsxs)(`div`,{className:`shrink-0`,children:[o&&(0,N.jsxs)(`div`,{className:`grid gap-x-5 lg:grid-cols-[minmax(0,3fr)_minmax(0,1fr)]`,children:[(0,N.jsxs)(`div`,{className:`min-w-0`,children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Question`}),(0,N.jsx)(`div`,{className:`card p-4`,children:(0,N.jsx)(oD,{text:Fv(o.input)})})]}),(0,N.jsx)(`div`,{className:`min-w-0`,children:(0,N.jsx)(lD,{files:o.files})})]}),k&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Output`}),(0,N.jsx)(`div`,{className:`card p-4`,children:(0,N.jsx)(sD,{text:k})})]}),(A||!k)&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`div`,{className:`eyebrow`,children:`Answer`}),(0,N.jsx)(`div`,{className:`card p-4 lg:px-8 lg:py-6`,children:(0,N.jsx)(oD,{text:Pv(E?.answer)})}),(0,N.jsxs)(`details`,{className:`mt-1 text-micro`,children:[(0,N.jsx)(`summary`,{className:`cursor-pointer text-n-400`,children:`raw answer`}),(0,N.jsx)(sD,{text:Pv(E?.answer),language:`markdown`})]})]})]}):h===`scores`?(0,N.jsx)(JD,{evaluators:o?.effective_evaluators??{},scores:D}):(0,N.jsx)(FI,{tab:h,trajectory:_,error:b,agent:ee,runId:oe})})]})}var RI=[];function zI(e){let t=t=>`/runs/${encodeURIComponent(e)}/${encodeURIComponent(t.run_id)}`;return[{id:`title`,header:`title`,accessorFn:e=>e.title??e.run_id,meta:{wrap:!0},cell:e=>(0,N.jsx)(kn,{className:`font-medium text-brand hover:underline`,to:t(e.row.original),children:e.row.original.title||(0,N.jsx)(`span`,{className:`font-mono`,children:e.row.original.run_id})})},{id:`run_id`,header:`run id`,accessorKey:`run_id`,cell:e=>(0,N.jsx)(`span`,{className:`row-meta font-mono text-ink-4`,children:e.row.original.run_id})},{id:`experiment`,header:`experiment`,accessorFn:e=>e.experiment_number??void 0,sortUndefined:`last`,meta:{align:`right`},cell:e=>(0,N.jsx)(`span`,{className:`row-meta font-mono`,children:e.row.original.experiment_id==null?``:`#${e.row.original.experiment_number??`?`}`})},{id:`case`,header:`case`,accessorFn:e=>e.case_id??``,cell:e=>(0,N.jsx)(`span`,{className:`row-meta font-mono`,children:e.row.original.case_id})},{id:`user`,header:`user`,accessorFn:e=>e.user_id??``,cell:e=>(0,N.jsx)(`span`,{className:`row-meta font-mono`,children:e.row.original.user_id})},{id:`created`,header:`created`,accessorFn:e=>e.created_at??``,meta:{align:`right`},cell:e=>(0,N.jsx)(`span`,{className:`row-meta`,children:jv(e.row.original.created_at)??``})}]}function BI(){let{workspace:e,workspaces:t}=Ar(),[n,r]=Fn(),[i,a]=(0,v.useState)([]),o=n.get(`agent`)??``,s=dr(o).workspace;jr(s);let[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(``),[f,p]=(0,v.useState)(null),[m,h]=(0,v.useState)(null),[g,_]=(0,v.useState)(!1),y=(0,v.useMemo)(()=>zI(o),[o]),b=oN({id:`runs`,data:f?.runs??RI,columns:y,getRowId:e=>e.run_id}),x=i.find(e=>e.ref===o)?.trajectory_source===`otel`;return(0,v.useEffect)(()=>{if(s!==e.name&&t.some(e=>e.name===s))return;let n=!1;return h(null),M(`/agents${or({workspace:e.name})}`).then(e=>{if(n)return;let t=[...e].sort((e,t)=>e.name.localeCompare(t.name));a(t),t.some(e=>e.ref===o)||r(t.length?{agent:t[0].ref}:{},{replace:!0})}).catch(e=>!n&&h(String(e))),()=>{n=!0}},[e.name]),(0,v.useEffect)(()=>{let e=!1;if(p(null),h(null),o)return M(`/agents/${encodeURIComponent(o)}/runs${or({query:c||void 0,user_id:u||void 0,no_session:g?`true`:void 0})}`).then(t=>!e&&p(t)).catch(t=>!e&&h(String(t))),()=>{e=!0}},[o,c,u,g]),(0,N.jsxs)(`div`,{className:`page`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-3`,children:[(0,N.jsx)(`h1`,{className:`page-title`,children:`Runs`}),(0,N.jsx)(xh,{ariaLabel:`agent`,value:o,onChange:e=>r({agent:e}),placeholder:`No agents`,options:i.map(e=>({value:e.ref,label:e.name}))}),(0,N.jsx)(`input`,{className:`input w-72`,placeholder:x?`Session id prefix`:`Search id prefix or title`,value:c,onChange:e=>l(e.target.value)}),!x&&(0,N.jsx)(`input`,{className:`input w-44`,placeholder:`User id`,value:u,onChange:e=>d(e.target.value)}),x&&(0,N.jsxs)(`label`,{className:`flex items-center gap-1 text-meta text-ink-2`,children:[(0,N.jsx)(`input`,{type:`checkbox`,checked:g,onChange:e=>_(e.target.checked)}),`no session`]}),x&&(0,N.jsx)(kn,{className:`btn btn-quiet text-brand`,to:`/agents/${encodeURIComponent(o)}/mappings`,children:`Agent ↗`}),f&&(0,N.jsxs)(`span`,{className:`row-meta num ml-auto`,children:[f.total,` runs`]})]}),m&&(0,N.jsxs)(`div`,{className:`pane-status error`,children:[m,!x&&` — the harness may not implement run listing.`]}),f?.harness_note&&(0,N.jsxs)(`div`,{className:`pane-status`,children:[f.harness_note,` — showing the runs evalkit stored.`]}),o&&!m&&(0,N.jsx)(pN,{table:b,loading:!f,empty:`No runs match.`})]})}function VI(){let{agent:e=``,runId:t=``}=ht();jr(dr(e).workspace);let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(`trajectory`),[c,l]=(0,v.useState)(null),[u,d]=(0,v.useState)(null);return(0,v.useEffect)(()=>{l(null),d(null),M(`/agents/${encodeURIComponent(e)}/runs/${encodeURIComponent(t)}/trajectory`).then(l).catch(e=>d(String(e)))},[e,t]),(0,v.useEffect)(()=>{r(null),a(null),M(`/agents/${encodeURIComponent(e)}/runs?query=${encodeURIComponent(t)}&limit=20`).then(e=>{r(rI(e.runs,t)),a(iI(e.runs,t))}).catch(()=>r(null))},[e,t]),(0,N.jsxs)(`div`,{className:`page flex h-full flex-col`,children:[(0,N.jsxs)(`div`,{className:`toolbar mb-2`,children:[(0,N.jsx)(`h1`,{className:`max-w-160 truncate font-mono text-head font-semibold`,children:n||(0,N.jsx)(Ym,{value:t})}),n&&(0,N.jsx)(`span`,{className:`row-meta font-mono`,children:(0,N.jsx)(Ym,{value:t})}),(0,N.jsx)(`span`,{className:`chip muted`,children:e}),c&&(0,N.jsx)(YD,{...my(c),doneLabel:`steps span`,doneTitle:`first to last step start; the last step's own time is not recorded`}),i&&(0,N.jsx)(kn,{className:`btn btn-quiet ml-auto text-brand`,to:i,children:`Experiment run ↗`}),(0,N.jsx)(kn,{className:`btn btn-quiet text-brand${i?``:` ml-auto`}`,to:`/runs?agent=${e}`,children:`Runs ↗`})]}),(0,N.jsx)($m,{tabs:[{id:`trajectory`,label:`Trajectory`},{id:`workspace`,label:`Workspace`},{id:`cost`,label:`Cost`},{id:`timing`,label:`Timing`}],active:o,onSelect:s}),(0,N.jsx)(`div`,{className:`mt-3 flex min-h-0 flex-1 flex-col`,children:(0,N.jsx)(FI,{tab:o,trajectory:c,error:u,agent:e,runId:t})})]})}function HI(){return(0,N.jsxs)(Vt,{children:[(0,N.jsx)(zt,{path:`/login`,element:(0,N.jsx)(ur,{})}),(0,N.jsx)(zt,{element:(0,N.jsx)(Er,{}),children:(0,N.jsx)(zt,{element:(0,N.jsx)(Nr,{}),children:(0,N.jsxs)(zt,{element:(0,N.jsx)(cP,{}),children:[(0,N.jsx)(zt,{path:`/`,element:(0,N.jsx)(Lr,{})}),(0,N.jsx)(zt,{path:`/datasets`,element:(0,N.jsx)(yF,{})}),(0,N.jsx)(zt,{path:`/datasets/:ref`,element:(0,N.jsx)(Lt,{to:`experiments`,replace:!0})}),(0,N.jsx)(zt,{path:`/datasets/:ref/:tab`,element:(0,N.jsx)(UF,{})}),(0,N.jsx)(zt,{path:`/datasets/:ref/cases/:caseId`,element:(0,N.jsx)(jP,{})}),(0,N.jsx)(zt,{path:`/experiments`,element:(0,N.jsx)(nI,{})}),(0,N.jsx)(zt,{path:`/experiments/compare`,element:(0,N.jsx)(gF,{})}),(0,N.jsx)(zt,{path:`/experiments/:experimentId`,element:(0,N.jsx)(eI,{})}),(0,N.jsx)(zt,{path:`/experiments/:experimentId/:exampleId`,element:(0,N.jsx)(LI,{})}),(0,N.jsx)(zt,{path:`/reviews`,element:(0,N.jsx)(_N,{})}),(0,N.jsx)(zt,{path:`/runs`,element:(0,N.jsx)(BI,{})}),(0,N.jsx)(zt,{path:`/runs/:agent/:runId`,element:(0,N.jsx)(VI,{})}),(0,N.jsx)(zt,{path:`/agents`,element:(0,N.jsx)(kO,{})}),(0,N.jsx)(zt,{path:`/agents/:agent`,element:(0,N.jsx)(Lt,{to:`overview`,replace:!0})}),(0,N.jsx)(zt,{path:`/agents/:agent/:tab`,element:(0,N.jsx)(DO,{})}),(0,N.jsx)(zt,{path:`/harness`,element:(0,N.jsx)(Lt,{to:`/agents`,replace:!0})}),(0,N.jsx)(zt,{path:`/docs`,element:(0,N.jsx)(Lt,{to:`/docs/quickstart`,replace:!0})}),(0,N.jsx)(zt,{path:`/docs/:tab`,element:(0,N.jsx)(rh,{})}),(0,N.jsx)(zt,{path:`/cli`,element:(0,N.jsx)(Lt,{to:`/docs/install`,replace:!0})}),(0,N.jsx)(zt,{path:`/users`,element:(0,N.jsx)(vN,{})}),(0,N.jsx)(zt,{path:`/workspace`,element:(0,N.jsx)(Lt,{to:`evaluators`,replace:!0})}),(0,N.jsx)(zt,{path:`/workspace/:tab`,element:(0,N.jsx)(jN,{})}),(0,N.jsx)(zt,{path:`/admin/trace-sources`,element:(0,N.jsx)(yN,{})}),(0,N.jsx)(zt,{path:`/admin/llm-providers`,element:(0,N.jsx)(CN,{})}),(0,N.jsx)(zt,{path:`*`,element:(0,N.jsx)(wO,{what:`page`,up:{label:`Home`,to:`/`}})})]})})})]})}(0,Vn.createRoot)(document.getElementById(`root`)).render((0,N.jsx)(v.StrictMode,{children:(0,N.jsx)(Hm,{children:(0,N.jsx)(On,{children:(0,N.jsx)(HI,{})})})}));export{l as i,d as n,s as r,Fm as t};
|